@things-factory/reference-app 6.0.28 → 6.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (920) hide show
  1. package/attachments/03e21709-60c1-4796-bb0b-9920148ce2c6.png +0 -0
  2. package/attachments/1c5f7b4e-45f7-47dc-94e2-6d4aa04c331d.png +0 -0
  3. package/attachments/5c7f2330-a93d-4c48-bcca-6b2a10974386.png +0 -0
  4. package/attachments/97e18c62-6e73-4407-a062-276cd25de43a.png +0 -0
  5. package/attachments/9c6e1599-a4e2-483e-833d-c67e336b27e5.png +0 -0
  6. package/attachments/9d1d12ea-0140-46cc-8eba-b1ab475bfd98.png +0 -0
  7. package/attachments/a727d8fa-5afe-47b3-9b29-97a1f26637f3.png +0 -0
  8. package/attachments/b713c6b6-15e3-4c80-a288-b0e8eba5e091.png +0 -0
  9. package/attachments/c7b6e18b-fd21-49c5-8a38-9b2455957c2a.png +0 -0
  10. package/attachments/dabc0a7e-bb5b-46a3-b73c-d310c95f0832.png +0 -0
  11. package/attachments/f099313a-c616-4753-b2d7-33db2ac29b3b.png +0 -0
  12. package/attachments/f90a4af7-5555-4078-8960-2c978363ac42.png +0 -0
  13. package/config.development.js +32 -7
  14. package/db.sqlite +0 -0
  15. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +49 -24
  16. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +32 -12
  17. package/logs/application-2023-03-19-07.log +11 -0
  18. package/logs/application-2023-03-19-08.log +4 -0
  19. package/logs/application-2023-03-19-10.log +5 -0
  20. package/logs/application-2023-03-19-11.log +10 -0
  21. package/logs/application-2023-03-19-12.log +5 -0
  22. package/logs/application-2023-03-19-16.log +3 -0
  23. package/logs/application-2023-03-19-19.log +1 -0
  24. package/logs/application-2023-03-19-20.log +2 -0
  25. package/logs/application-2023-03-19-21.log +1 -0
  26. package/logs/application-2023-03-21-03.log +15 -0
  27. package/logs/application-2023-03-21-04.log +15 -0
  28. package/logs/application-2023-03-21-12.log +3 -0
  29. package/logs/application-2023-03-21-13.log +3 -0
  30. package/package.json +5 -5
  31. package/attachments/311f5a1f-9a28-4f45-b335-11f8bbb12317.png +0 -0
  32. package/attachments/4bff6789-9d9a-4b61-acfd-75e419eb9bf3.png +0 -0
  33. package/attachments/5f4b08bc-7574-461d-a54f-bd0462c3bd37.jpeg +0 -0
  34. package/attachments/8c562e28-85e9-4cff-a055-5a08a4e57b88.jpeg +0 -0
  35. package/attachments/a2f74466-cc49-47fb-8c2b-7b0cf23a644d.jpeg +0 -0
  36. package/attachments/da8aaec2-ad03-4eec-adfb-8a9812c8330a.jpeg +0 -0
  37. package/config.production.js +0 -55
  38. package/dist-client/033a8a362e39e81521c5.png +0 -0
  39. package/dist-client/04d0a0b4f98288ff2746.png +0 -0
  40. package/dist-client/0567329dce1421547133.png +0 -0
  41. package/dist-client/08bbd147bbaa98b332db.png +0 -0
  42. package/dist-client/0aed78d02c1b6c64de60.png +0 -0
  43. package/dist-client/1212.js +0 -1
  44. package/dist-client/1442.js +0 -1
  45. package/dist-client/1550.js +0 -1
  46. package/dist-client/1593.js +0 -1
  47. package/dist-client/1689.js +0 -1
  48. package/dist-client/1733.js +0 -1
  49. package/dist-client/1766.js +0 -1
  50. package/dist-client/190b9d948ce6d6a87e94.png +0 -0
  51. package/dist-client/1c0dbf70fa46fc25deb8.png +0 -0
  52. package/dist-client/1c555219c119d1c496df.png +0 -0
  53. package/dist-client/1f4e2dcff0657747fad0.png +0 -0
  54. package/dist-client/2098.js +0 -1
  55. package/dist-client/2142.js +0 -1
  56. package/dist-client/2265.js +0 -1
  57. package/dist-client/22cf3c62ad9582d39c28.png +0 -0
  58. package/dist-client/23bb06ca921d23b125ba.png +0 -0
  59. package/dist-client/2418.js +0 -1
  60. package/dist-client/2568.js +0 -1
  61. package/dist-client/258.js +0 -1
  62. package/dist-client/27c4af6600f89bc8aa4c.png +0 -0
  63. package/dist-client/2878.js +0 -1
  64. package/dist-client/2883.js +0 -1
  65. package/dist-client/2990.js +0 -1
  66. package/dist-client/2d144601a82af822ac30.png +0 -0
  67. package/dist-client/3098662927a30fdb8a4d.png +0 -0
  68. package/dist-client/3127ee8dd683ba59bd7b.png +0 -0
  69. package/dist-client/337c5d211682e431be6c.png +0 -0
  70. package/dist-client/3513.js +0 -1
  71. package/dist-client/3557.js +0 -1
  72. package/dist-client/3565.js +0 -1
  73. package/dist-client/3594.js +0 -1
  74. package/dist-client/3734.js +0 -2
  75. package/dist-client/3734.js.LICENSE.txt +0 -11
  76. package/dist-client/3746.js +0 -1
  77. package/dist-client/383.js +0 -2
  78. package/dist-client/383.js.LICENSE.txt +0 -9
  79. package/dist-client/3872.js +0 -1
  80. package/dist-client/3910.js +0 -1
  81. package/dist-client/3955.js +0 -1
  82. package/dist-client/4083.js +0 -1
  83. package/dist-client/411cbf41ec0faa4535ff.png +0 -0
  84. package/dist-client/4141.js +0 -2
  85. package/dist-client/4141.js.LICENSE.txt +0 -11
  86. package/dist-client/4162710af8eacb02b3d0.png +0 -0
  87. package/dist-client/4184cd4ea6a8d7349e21.png +0 -0
  88. package/dist-client/427c4cb716f8c30bbd1e.png +0 -0
  89. package/dist-client/4327.js +0 -1
  90. package/dist-client/4365cff2c5809bcf52d9.png +0 -0
  91. package/dist-client/4447.js +0 -1
  92. package/dist-client/4511.js +0 -2
  93. package/dist-client/4511.js.LICENSE.txt +0 -345
  94. package/dist-client/4516.js +0 -1
  95. package/dist-client/4575.js +0 -1
  96. package/dist-client/4820.js +0 -1
  97. package/dist-client/4e16d62bc1e459fc5b25.png +0 -0
  98. package/dist-client/5085.js +0 -2
  99. package/dist-client/5085.js.LICENSE.txt +0 -11
  100. package/dist-client/526ad807daa9d0c4a816.png +0 -0
  101. package/dist-client/5407.js +0 -1
  102. package/dist-client/5562.js +0 -1
  103. package/dist-client/556db371e2df3f29cea0.png +0 -0
  104. package/dist-client/55772bbc827ad7017d35.png +0 -0
  105. package/dist-client/5665.js +0 -1
  106. package/dist-client/5671.js +0 -1
  107. package/dist-client/574.js +0 -2
  108. package/dist-client/574.js.LICENSE.txt +0 -11
  109. package/dist-client/5761.js +0 -1
  110. package/dist-client/5824.js +0 -1
  111. package/dist-client/5873.js +0 -1
  112. package/dist-client/591.js +0 -1
  113. package/dist-client/5beb3d1071d94d67b73b.png +0 -0
  114. package/dist-client/5c45b501555a5bcaf6bd.png +0 -0
  115. package/dist-client/5e63fb5c3d72a5c3854d.png +0 -0
  116. package/dist-client/6067.js +0 -1
  117. package/dist-client/6100.js +0 -1
  118. package/dist-client/6163.js +0 -1
  119. package/dist-client/6204.js +0 -1
  120. package/dist-client/6264682326a8907cc922.png +0 -0
  121. package/dist-client/6283.js +0 -1
  122. package/dist-client/6331.js +0 -1
  123. package/dist-client/64224c44c766e71e3253.png +0 -0
  124. package/dist-client/6466.js +0 -1
  125. package/dist-client/6671.js +0 -1
  126. package/dist-client/6791e5773eac3f253e24.png +0 -0
  127. package/dist-client/689d645de355b5bf70e9.png +0 -0
  128. package/dist-client/68fa02818b287fa99811.png +0 -0
  129. package/dist-client/6955.js +0 -2
  130. package/dist-client/6955.js.LICENSE.txt +0 -649
  131. package/dist-client/6fbc47ded1e56a97b6a9.png +0 -0
  132. package/dist-client/70ef12050d5c2bc1d18b.png +0 -0
  133. package/dist-client/7263.js +0 -1
  134. package/dist-client/73d122c80f6803d982ae.png +0 -0
  135. package/dist-client/7462.js +0 -1
  136. package/dist-client/7471.js +0 -2
  137. package/dist-client/7471.js.LICENSE.txt +0 -20
  138. package/dist-client/7528.js +0 -2
  139. package/dist-client/7528.js.LICENSE.txt +0 -29
  140. package/dist-client/7566.js +0 -1
  141. package/dist-client/7627.js +0 -1
  142. package/dist-client/763.js +0 -2
  143. package/dist-client/763.js.LICENSE.txt +0 -11
  144. package/dist-client/77407838ded3346a802e.png +0 -0
  145. package/dist-client/7793.js +0 -1
  146. package/dist-client/7809.js +0 -1
  147. package/dist-client/7862.js +0 -1
  148. package/dist-client/7953.js +0 -1
  149. package/dist-client/7a8893ef51203b1d41ba.png +0 -0
  150. package/dist-client/7bcfa66864686ddce32a.png +0 -0
  151. package/dist-client/7ca1e30e518e350cff5a.png +0 -0
  152. package/dist-client/7d9596c5140e7290967f.png +0 -0
  153. package/dist-client/8085.js +0 -1
  154. package/dist-client/8184.js +0 -1
  155. package/dist-client/8299.js +0 -1
  156. package/dist-client/8317.js +0 -1
  157. package/dist-client/8645.js +0 -1
  158. package/dist-client/8653.js +0 -1
  159. package/dist-client/8654.js +0 -1
  160. package/dist-client/8695.js +0 -1
  161. package/dist-client/8733.js +0 -2
  162. package/dist-client/8733.js.LICENSE.txt +0 -3
  163. package/dist-client/8752.js +0 -1
  164. package/dist-client/8795.js +0 -1
  165. package/dist-client/8818.js +0 -1
  166. package/dist-client/8848.js +0 -2
  167. package/dist-client/8848.js.LICENSE.txt +0 -11
  168. package/dist-client/8852.js +0 -1
  169. package/dist-client/8957.js +0 -1
  170. package/dist-client/8cf3afd5f21703b894da.png +0 -0
  171. package/dist-client/8f04bd1494e66102676e.png +0 -0
  172. package/dist-client/8f778f433221cc09f419.png +0 -0
  173. package/dist-client/9041.js +0 -1
  174. package/dist-client/9092.js +0 -1
  175. package/dist-client/9193.js +0 -2
  176. package/dist-client/9193.js.LICENSE.txt +0 -8
  177. package/dist-client/9251.js +0 -1
  178. package/dist-client/9288819b91c1e64a752d.png +0 -0
  179. package/dist-client/9313.js +0 -2
  180. package/dist-client/9313.js.LICENSE.txt +0 -6
  181. package/dist-client/9454482d54ddf8bb8f60.png +0 -0
  182. package/dist-client/9550.js +0 -1
  183. package/dist-client/960ff955855910a0f418.png +0 -0
  184. package/dist-client/9659.js +0 -1
  185. package/dist-client/9726.js +0 -1
  186. package/dist-client/9864.js +0 -1
  187. package/dist-client/9a6591477d12befc59d2.png +0 -0
  188. package/dist-client/9bac8829b2e3a98d04f5.png +0 -0
  189. package/dist-client/9d136a4324aad2667a79.png +0 -0
  190. package/dist-client/9d14a3b8c05bd19fde84.png +0 -0
  191. package/dist-client/aa152d1b3d3fd105c1e6.png +0 -0
  192. package/dist-client/assets/data-report.jpg +0 -0
  193. package/dist-client/assets/data-samples.jpg +0 -0
  194. package/dist-client/assets/diagram.jpg +0 -0
  195. package/dist-client/assets/editorjs-demo.css +0 -415
  196. package/dist-client/assets/favicon.ico +0 -0
  197. package/dist-client/assets/glue-table-indices.png +0 -0
  198. package/dist-client/assets/helps/index.md +0 -1
  199. package/dist-client/assets/images/add-user-1.png +0 -0
  200. package/dist-client/assets/images/add-user-2.png +0 -0
  201. package/dist-client/assets/images/add-user-3.png +0 -0
  202. package/dist-client/assets/images/add-user-4.png +0 -0
  203. package/dist-client/assets/images/background-animation.json +0 -1
  204. package/dist-client/assets/images/bg-auth-ui.png +0 -0
  205. package/dist-client/assets/images/bg-blue.png +0 -0
  206. package/dist-client/assets/images/bg-green.png +0 -0
  207. package/dist-client/assets/images/bg-input-select.png +0 -0
  208. package/dist-client/assets/images/bg-rail.png +0 -0
  209. package/dist-client/assets/images/create-policy-1.png +0 -0
  210. package/dist-client/assets/images/create-policy-2.png +0 -0
  211. package/dist-client/assets/images/create-policy-3.png +0 -0
  212. package/dist-client/assets/images/create-s3-bucket-1.png +0 -0
  213. package/dist-client/assets/images/create-s3-bucket-2.png +0 -0
  214. package/dist-client/assets/images/forklift.png +0 -0
  215. package/dist-client/assets/images/hatiolab-logo.png +0 -0
  216. package/dist-client/assets/images/home.png +0 -0
  217. package/dist-client/assets/images/icon-activate.png +0 -0
  218. package/dist-client/assets/images/icon-backinfo.png +0 -0
  219. package/dist-client/assets/images/icon-brand.png +0 -0
  220. package/dist-client/assets/images/icon-close.png +0 -0
  221. package/dist-client/assets/images/icon-congratulations.png +0 -0
  222. package/dist-client/assets/images/icon-domain.png +0 -0
  223. package/dist-client/assets/images/icon-editor-gradient-direction.png +0 -0
  224. package/dist-client/assets/images/icon-mobile-brand.png +0 -0
  225. package/dist-client/assets/images/icon-nametag.png +0 -0
  226. package/dist-client/assets/images/icon-profile.png +0 -0
  227. package/dist-client/assets/images/icon-properties-label.png +0 -0
  228. package/dist-client/assets/images/icon-properties-line-type.png +0 -0
  229. package/dist-client/assets/images/icon-properties-table.png +0 -0
  230. package/dist-client/assets/images/icon-resource-select.png +0 -0
  231. package/dist-client/assets/images/icon-result.png +0 -0
  232. package/dist-client/assets/images/icon-setting.png +0 -0
  233. package/dist-client/assets/images/invitation.png +0 -0
  234. package/dist-client/assets/images/person.png +0 -0
  235. package/dist-client/assets/images/profile.png +0 -0
  236. package/dist-client/assets/images/spinner.png +0 -0
  237. package/dist-client/assets/manifest/apple-1024.png +0 -0
  238. package/dist-client/assets/manifest/apple-120.png +0 -0
  239. package/dist-client/assets/manifest/apple-152.png +0 -0
  240. package/dist-client/assets/manifest/apple-167.png +0 -0
  241. package/dist-client/assets/manifest/apple-180.png +0 -0
  242. package/dist-client/assets/manifest/apple-touch-icon.png +0 -0
  243. package/dist-client/assets/manifest/badge-128x128.png +0 -0
  244. package/dist-client/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
  245. package/dist-client/assets/manifest/chrome-touch-icon-192x192.png +0 -0
  246. package/dist-client/assets/manifest/icon-128x128.png +0 -0
  247. package/dist-client/assets/manifest/icon-192x192.png +0 -0
  248. package/dist-client/assets/manifest/icon-512x512.png +0 -0
  249. package/dist-client/assets/manifest/icon-72x72.png +0 -0
  250. package/dist-client/assets/manifest/icon-96x96.png +0 -0
  251. package/dist-client/assets/manifest/image-metaog.png +0 -0
  252. package/dist-client/assets/manifest/maskable_icon.png +0 -0
  253. package/dist-client/assets/manifest/ms-icon-144x144.png +0 -0
  254. package/dist-client/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
  255. package/dist-client/assets/manifest.json +0 -27
  256. package/dist-client/auth/activate.js +0 -2
  257. package/dist-client/auth/activate.js.LICENSE.txt +0 -162
  258. package/dist-client/auth/checkin.js +0 -2
  259. package/dist-client/auth/checkin.js.LICENSE.txt +0 -83
  260. package/dist-client/auth/forgot-password.js +0 -2
  261. package/dist-client/auth/forgot-password.js.LICENSE.txt +0 -122
  262. package/dist-client/auth/reset-password.js +0 -2
  263. package/dist-client/auth/reset-password.js.LICENSE.txt +0 -122
  264. package/dist-client/auth/result.js +0 -2
  265. package/dist-client/auth/result.js.LICENSE.txt +0 -93
  266. package/dist-client/auth/signin.js +0 -2
  267. package/dist-client/auth/signin.js.LICENSE.txt +0 -122
  268. package/dist-client/auth/signup.js +0 -2
  269. package/dist-client/auth/signup.js.LICENSE.txt +0 -122
  270. package/dist-client/auth/unlock-user.js +0 -2
  271. package/dist-client/auth/unlock-user.js.LICENSE.txt +0 -122
  272. package/dist-client/b62c2497caa3978e4cdc.png +0 -0
  273. package/dist-client/b640388996621bd3040e.png +0 -0
  274. package/dist-client/bac71281339c69e63421.png +0 -0
  275. package/dist-client/bb346e05d6b711d2ed8d.png +0 -0
  276. package/dist-client/c077fa0074e73452db46.png +0 -0
  277. package/dist-client/c62cd64b1413e4d1e652.png +0 -0
  278. package/dist-client/c81c6f2c0e82b3796b6e.png +0 -0
  279. package/dist-client/c9269a93bb18ae06affd.png +0 -0
  280. package/dist-client/ccd36ed4e050b84e523c.png +0 -0
  281. package/dist-client/cf23c1dc8743cf26dc75.png +0 -0
  282. package/dist-client/d39c2ce57a8c38e27e56.png +0 -0
  283. package/dist-client/d40282055a8309c96c4c.png +0 -0
  284. package/dist-client/d74f294abfe31d14964e.png +0 -0
  285. package/dist-client/d9b6b3243cd4bf2e63a8.png +0 -0
  286. package/dist-client/daacdd8ee024ac5b0379.png +0 -0
  287. package/dist-client/de7b6dfdbf9dfde49467.png +0 -0
  288. package/dist-client/e3466c7d8a49da978517.png +0 -0
  289. package/dist-client/e3efea6b1e596f2ceda3.png +0 -0
  290. package/dist-client/e433275c03dc4c240f48.png +0 -0
  291. package/dist-client/e6b1f9447b8d520a2f21.png +0 -0
  292. package/dist-client/e8af6dc62316e5759a73.png +0 -0
  293. package/dist-client/e8f855ba4a7793d0e0a4.png +0 -0
  294. package/dist-client/ed4ff0096ff238659d69.png +0 -0
  295. package/dist-client/f157b0233d3f083166e3.png +0 -0
  296. package/dist-client/f7183d9fb4a53537e50b.png +0 -0
  297. package/dist-client/fa33c0372723348a71c5.png +0 -0
  298. package/dist-client/fcdcd3b1851ab73ff6a0.png +0 -0
  299. package/dist-client/fd251baa5700266586a0.png +0 -0
  300. package/dist-client/fe12850d008bc2190ee7.png +0 -0
  301. package/dist-client/fffbf4ec108e494462bb.png +0 -0
  302. package/dist-client/headless-scene-components.js +0 -2
  303. package/dist-client/headless-scene-components.js.LICENSE.txt +0 -688
  304. package/dist-client/helps/about/components.md +0 -3
  305. package/dist-client/helps/about/framework/redirection.md +0 -45
  306. package/dist-client/helps/about/framework/typegraphql.md +0 -74
  307. package/dist-client/helps/about/framework.md +0 -10
  308. package/dist-client/helps/about/modules.md +0 -7
  309. package/dist-client/helps/about/things-factory.en.md +0 -255
  310. package/dist-client/helps/about/things-factory.ko.md +0 -258
  311. package/dist-client/helps/auth/appliance.en.md +0 -22
  312. package/dist-client/helps/auth/appliance.ko.md +0 -40
  313. package/dist-client/helps/auth/application.en.md +0 -33
  314. package/dist-client/helps/auth/images/app-binding.png +0 -0
  315. package/dist-client/helps/auth/images/appliance-generate-key.png +0 -0
  316. package/dist-client/helps/auth/images/appliance-sandbox-auth-1.png +0 -0
  317. package/dist-client/helps/auth/images/appliance-sandbox-auth-2.png +0 -0
  318. package/dist-client/helps/auth/images/appliance-sandbox-auth-3.png +0 -0
  319. package/dist-client/helps/auth/images/application-hub.png +0 -0
  320. package/dist-client/helps/auth/images/authorization-postman.png +0 -0
  321. package/dist-client/helps/auth/images/create-button2.png +0 -0
  322. package/dist-client/helps/auth/images/create-role.png +0 -0
  323. package/dist-client/helps/auth/images/flowchart-appliance-registration.jpg +0 -0
  324. package/dist-client/helps/auth/images/flowchart-role-management.jpg +0 -0
  325. package/dist-client/helps/auth/images/flowchart-user-account.jpg +0 -0
  326. package/dist-client/helps/auth/images/invite-user.png +0 -0
  327. package/dist-client/helps/auth/images/owner-transfer-confirm.png +0 -0
  328. package/dist-client/helps/auth/images/owner-transfer.png +0 -0
  329. package/dist-client/helps/auth/images/postman.png +0 -0
  330. package/dist-client/helps/auth/images/register-appliance-new.png +0 -0
  331. package/dist-client/helps/auth/images/register-appliance.png +0 -0
  332. package/dist-client/helps/auth/images/register-application.png +0 -0
  333. package/dist-client/helps/auth/images/registered-role.png +0 -0
  334. package/dist-client/helps/auth/images/role-list.png +0 -0
  335. package/dist-client/helps/auth/images/role-privilage.png +0 -0
  336. package/dist-client/helps/auth/images/role-privileges.png +0 -0
  337. package/dist-client/helps/auth/images/save-button2.png +0 -0
  338. package/dist-client/helps/auth/images/save-button3.png +0 -0
  339. package/dist-client/helps/auth/images/transfer-owner.png +0 -0
  340. package/dist-client/helps/auth/images/update-roles.png +0 -0
  341. package/dist-client/helps/auth/images/user-delete.png +0 -0
  342. package/dist-client/helps/auth/images/user-error.png +0 -0
  343. package/dist-client/helps/auth/images/user-invite.png +0 -0
  344. package/dist-client/helps/auth/images/user-roles.png +0 -0
  345. package/dist-client/helps/auth/roles.en.md +0 -59
  346. package/dist-client/helps/auth/roles.ko.md +0 -42
  347. package/dist-client/helps/auth/users.en.md +0 -33
  348. package/dist-client/helps/auth/users.ko.md +0 -54
  349. package/dist-client/helps/board-modeller/accessor.ko.md +0 -4
  350. package/dist-client/helps/board-modeller/accessor.md +0 -4
  351. package/dist-client/helps/board-modeller/accessor.zh.md +0 -4
  352. package/dist-client/helps/board-modeller/data-binding.ko.md +0 -100
  353. package/dist-client/helps/board-modeller/data-binding.md +0 -100
  354. package/dist-client/helps/board-modeller/data-binding.zh.md +0 -89
  355. package/dist-client/helps/board-modeller/data-spread.ko.md +0 -57
  356. package/dist-client/helps/board-modeller/data-spread.md +0 -57
  357. package/dist-client/helps/board-modeller/data-spread.zh.md +0 -55
  358. package/dist-client/helps/board-modeller/effects/animation.ko.md +0 -46
  359. package/dist-client/helps/board-modeller/effects/animation.md +0 -47
  360. package/dist-client/helps/board-modeller/effects/animation.zh.md +0 -47
  361. package/dist-client/helps/board-modeller/effects/hover-event.ko.md +0 -55
  362. package/dist-client/helps/board-modeller/effects/hover-event.md +0 -57
  363. package/dist-client/helps/board-modeller/effects/hover-event.zh.md +0 -55
  364. package/dist-client/helps/board-modeller/effects/retention.ko.md +0 -4
  365. package/dist-client/helps/board-modeller/effects/retention.md +0 -4
  366. package/dist-client/helps/board-modeller/effects/retention.zh.md +0 -4
  367. package/dist-client/helps/board-modeller/effects/shadow.ko.md +0 -18
  368. package/dist-client/helps/board-modeller/effects/shadow.md +0 -21
  369. package/dist-client/helps/board-modeller/effects/shadow.zh.md +0 -19
  370. package/dist-client/helps/board-modeller/effects/tap-event.ko.md +0 -86
  371. package/dist-client/helps/board-modeller/effects/tap-event.md +0 -74
  372. package/dist-client/helps/board-modeller/effects/tap-event.zh.md +0 -74
  373. package/dist-client/helps/board-modeller/images/animation-01.gif +0 -0
  374. package/dist-client/helps/board-modeller/images/animation-02.gif +0 -0
  375. package/dist-client/helps/board-modeller/images/animation-03.gif +0 -0
  376. package/dist-client/helps/board-modeller/images/animation-04.gif +0 -0
  377. package/dist-client/helps/board-modeller/images/animation-05.gif +0 -0
  378. package/dist-client/helps/board-modeller/images/animation-06.gif +0 -0
  379. package/dist-client/helps/board-modeller/images/animation-07.gif +0 -0
  380. package/dist-client/helps/board-modeller/images/animation-08.gif +0 -0
  381. package/dist-client/helps/board-modeller/images/animation-09.gif +0 -0
  382. package/dist-client/helps/board-modeller/images/animation-10.gif +0 -0
  383. package/dist-client/helps/board-modeller/images/common-property-text-align-horizontal.png +0 -0
  384. package/dist-client/helps/board-modeller/images/common-property-text-align-vertical.png +0 -0
  385. package/dist-client/helps/board-modeller/images/common-property-text-margin.png +0 -0
  386. package/dist-client/helps/board-modeller/images/component-3D.png +0 -0
  387. package/dist-client/helps/board-modeller/images/component-arrow.png +0 -0
  388. package/dist-client/helps/board-modeller/images/component-chart-gauge.png +0 -0
  389. package/dist-client/helps/board-modeller/images/component-container.png +0 -0
  390. package/dist-client/helps/board-modeller/images/component-datasource.png +0 -0
  391. package/dist-client/helps/board-modeller/images/component-etc.png +0 -0
  392. package/dist-client/helps/board-modeller/images/component-form.png +0 -0
  393. package/dist-client/helps/board-modeller/images/component-gauge.png +0 -0
  394. package/dist-client/helps/board-modeller/images/component-image.png +0 -0
  395. package/dist-client/helps/board-modeller/images/component-iot.png +0 -0
  396. package/dist-client/helps/board-modeller/images/component-line.png +0 -0
  397. package/dist-client/helps/board-modeller/images/component-shape.png +0 -0
  398. package/dist-client/helps/board-modeller/images/component-table.png +0 -0
  399. package/dist-client/helps/board-modeller/images/component-text-media.png +0 -0
  400. package/dist-client/helps/board-modeller/images/component-toolbar.png +0 -0
  401. package/dist-client/helps/board-modeller/images/component-warehouse.png +0 -0
  402. package/dist-client/helps/board-modeller/images/control-toolbar-02.png +0 -0
  403. package/dist-client/helps/board-modeller/images/control-toolbar-03.png +0 -0
  404. package/dist-client/helps/board-modeller/images/control-toolbar-04.png +0 -0
  405. package/dist-client/helps/board-modeller/images/control-toolbar-05.png +0 -0
  406. package/dist-client/helps/board-modeller/images/control-toolbar-06.png +0 -0
  407. package/dist-client/helps/board-modeller/images/control-toolbar-07.png +0 -0
  408. package/dist-client/helps/board-modeller/images/control-toolbar-08.png +0 -0
  409. package/dist-client/helps/board-modeller/images/control-toolbar-09.png +0 -0
  410. package/dist-client/helps/board-modeller/images/control-toolbar-10.png +0 -0
  411. package/dist-client/helps/board-modeller/images/control-toolbar-11.png +0 -0
  412. package/dist-client/helps/board-modeller/images/control-toolbar-12.png +0 -0
  413. package/dist-client/helps/board-modeller/images/control-toolbar-13.png +0 -0
  414. package/dist-client/helps/board-modeller/images/control-toolbar-14.png +0 -0
  415. package/dist-client/helps/board-modeller/images/control-toolbar-15.png +0 -0
  416. package/dist-client/helps/board-modeller/images/control-toolbar-16.png +0 -0
  417. package/dist-client/helps/board-modeller/images/control-toolbar-17.png +0 -0
  418. package/dist-client/helps/board-modeller/images/control-toolbar-18.png +0 -0
  419. package/dist-client/helps/board-modeller/images/control-toolbar-19.png +0 -0
  420. package/dist-client/helps/board-modeller/images/control-toolbar-20.png +0 -0
  421. package/dist-client/helps/board-modeller/images/control-toolbar-21.png +0 -0
  422. package/dist-client/helps/board-modeller/images/control-toolbar-22.png +0 -0
  423. package/dist-client/helps/board-modeller/images/control-toolbar-23.png +0 -0
  424. package/dist-client/helps/board-modeller/images/control-toolbar-24.png +0 -0
  425. package/dist-client/helps/board-modeller/images/control-toolbar-25.png +0 -0
  426. package/dist-client/helps/board-modeller/images/control-toolbar-26.png +0 -0
  427. package/dist-client/helps/board-modeller/images/control-toolbar-27.png +0 -0
  428. package/dist-client/helps/board-modeller/images/control-toolbar-28.png +0 -0
  429. package/dist-client/helps/board-modeller/images/control-toolbar-29.png +0 -0
  430. package/dist-client/helps/board-modeller/images/control-toolbar-30.png +0 -0
  431. package/dist-client/helps/board-modeller/images/control-toolbar-31.png +0 -0
  432. package/dist-client/helps/board-modeller/images/control-toolbar-32.png +0 -0
  433. package/dist-client/helps/board-modeller/images/control-toolbar.png +0 -0
  434. package/dist-client/helps/board-modeller/images/effect-property.png +0 -0
  435. package/dist-client/helps/board-modeller/images/hover-01.png +0 -0
  436. package/dist-client/helps/board-modeller/images/join-type-bevel.png +0 -0
  437. package/dist-client/helps/board-modeller/images/join-type-miter.png +0 -0
  438. package/dist-client/helps/board-modeller/images/join-type-round.png +0 -0
  439. package/dist-client/helps/board-modeller/images/modeler-layout-01.png +0 -0
  440. package/dist-client/helps/board-modeller/images/property-window.png +0 -0
  441. package/dist-client/helps/board-modeller/images/shadow-02.png +0 -0
  442. package/dist-client/helps/board-modeller/images/shadow-03.png +0 -0
  443. package/dist-client/helps/board-modeller/images/shadow-04.png +0 -0
  444. package/dist-client/helps/board-modeller/images/shadow-05.png +0 -0
  445. package/dist-client/helps/board-modeller/images/shape-property.png +0 -0
  446. package/dist-client/helps/board-modeller/images/specific-property.png +0 -0
  447. package/dist-client/helps/board-modeller/images/style-property.png +0 -0
  448. package/dist-client/helps/board-modeller/images/target-property.png +0 -0
  449. package/dist-client/helps/board-modeller/images/variable-property.png +0 -0
  450. package/dist-client/helps/board-modeller/initial-data.ko.md +0 -8
  451. package/dist-client/helps/board-modeller/initial-data.md +0 -8
  452. package/dist-client/helps/board-modeller/initial-data.zh.md +0 -8
  453. package/dist-client/helps/board-modeller/modeller.ko.md +0 -244
  454. package/dist-client/helps/board-modeller/modeller.md +0 -206
  455. package/dist-client/helps/board-modeller/modeller.zh.md +0 -241
  456. package/dist-client/helps/board-modeller/shapes/3dish.ko.md +0 -17
  457. package/dist-client/helps/board-modeller/shapes/3dish.md +0 -17
  458. package/dist-client/helps/board-modeller/shapes/3dish.zh.md +0 -17
  459. package/dist-client/helps/board-modeller/shapes/print-option.ko.md +0 -26
  460. package/dist-client/helps/board-modeller/shapes/print-option.md +0 -26
  461. package/dist-client/helps/board-modeller/shapes/print-option.zh.md +0 -26
  462. package/dist-client/helps/board-modeller/shapes/shapes.ko.md +0 -19
  463. package/dist-client/helps/board-modeller/shapes/shapes.md +0 -21
  464. package/dist-client/helps/board-modeller/shapes/shapes.zh.md +0 -19
  465. package/dist-client/helps/board-modeller/shapes/size.ko.md +0 -8
  466. package/dist-client/helps/board-modeller/shapes/size.md +0 -8
  467. package/dist-client/helps/board-modeller/shapes/size.zh.md +0 -8
  468. package/dist-client/helps/board-modeller/shapes/text-box.ko.md +0 -16
  469. package/dist-client/helps/board-modeller/shapes/text-box.md +0 -16
  470. package/dist-client/helps/board-modeller/shapes/text-box.zh.md +0 -16
  471. package/dist-client/helps/board-modeller/shapes/viewer-option.ko.md +0 -9
  472. package/dist-client/helps/board-modeller/shapes/viewer-option.md +0 -9
  473. package/dist-client/helps/board-modeller/shapes/viewer-option.zh.md +0 -9
  474. package/dist-client/helps/board-modeller/styles/fill-style.ko.md +0 -18
  475. package/dist-client/helps/board-modeller/styles/fill-style.md +0 -18
  476. package/dist-client/helps/board-modeller/styles/fill-style.zh.md +0 -18
  477. package/dist-client/helps/board-modeller/styles/line-style.ko.md +0 -19
  478. package/dist-client/helps/board-modeller/styles/line-style.md +0 -23
  479. package/dist-client/helps/board-modeller/styles/line-style.zh.md +0 -19
  480. package/dist-client/helps/board-modeller/styles/opacity.ko.md +0 -3
  481. package/dist-client/helps/board-modeller/styles/opacity.md +0 -3
  482. package/dist-client/helps/board-modeller/styles/opacity.zh.md +0 -3
  483. package/dist-client/helps/board-modeller/styles/text-style.ko.md +0 -8
  484. package/dist-client/helps/board-modeller/styles/text-style.md +0 -8
  485. package/dist-client/helps/board-modeller/styles/text-style.zh.md +0 -8
  486. package/dist-client/helps/components/oops-progress.md +0 -73
  487. package/dist-client/helps/contact/contact.md +0 -160
  488. package/dist-client/helps/dataset/data-archive.md +0 -9
  489. package/dist-client/helps/dataset/data-entry-list.md +0 -2
  490. package/dist-client/helps/dataset/data-key-set.md +0 -10
  491. package/dist-client/helps/dataset/data-ooc.md +0 -11
  492. package/dist-client/helps/dataset/data-report-list.md +0 -4
  493. package/dist-client/helps/dataset/data-sample-search.md +0 -2
  494. package/dist-client/helps/dataset/data-sample.md +0 -11
  495. package/dist-client/helps/dataset/data-sensor.md +0 -13
  496. package/dist-client/helps/dataset/data-set.md +0 -28
  497. package/dist-client/helps/dataset/ui/data-item-list.md +0 -19
  498. package/dist-client/helps/dataset/ui/data-key-item-list.md +0 -2
  499. package/dist-client/helps/index.md +0 -1
  500. package/dist-client/helps/integration/concept/connection.md +0 -27
  501. package/dist-client/helps/integration/concept/data-accessor.ko.md +0 -11
  502. package/dist-client/helps/integration/concept/data-accessor.md +0 -11
  503. package/dist-client/helps/integration/concept/data-accessor.zh.md +0 -11
  504. package/dist-client/helps/integration/concept/pending-queue.md +0 -32
  505. package/dist-client/helps/integration/concept/scenario-context.md +0 -83
  506. package/dist-client/helps/integration/concept/scenario-engine.md +0 -10
  507. package/dist-client/helps/integration/concept/scenario.md +0 -4
  508. package/dist-client/helps/integration/concept/task.md +0 -25
  509. package/dist-client/helps/integration/connector/mqtt-connector.md +0 -17
  510. package/dist-client/helps/integration/connector/mssql-connector.md +0 -38
  511. package/dist-client/helps/integration/connector/oracle-connector.md +0 -66
  512. package/dist-client/helps/integration/connector/postgresql-connector.md +0 -34
  513. package/dist-client/helps/integration/connector/sqlite-connector.md +0 -17
  514. package/dist-client/helps/integration/index.md +0 -37
  515. package/dist-client/helps/integration/task/book-up-scenario.md +0 -24
  516. package/dist-client/helps/integration/task/end.md +0 -3
  517. package/dist-client/helps/integration/task/floating-point.md +0 -34
  518. package/dist-client/helps/integration/task/goto.md +0 -8
  519. package/dist-client/helps/integration/task/graphql-mutate.md +0 -44
  520. package/dist-client/helps/integration/task/graphql-query.md +0 -44
  521. package/dist-client/helps/integration/task/local-graphql-mutate.md +0 -44
  522. package/dist-client/helps/integration/task/local-graphql-query.md +0 -44
  523. package/dist-client/helps/integration/task/log.md +0 -14
  524. package/dist-client/helps/integration/task/mqtt-publish.md +0 -10
  525. package/dist-client/helps/integration/task/mqtt-subscribe.md +0 -15
  526. package/dist-client/helps/integration/task/pick-pending-scenario.md +0 -13
  527. package/dist-client/helps/integration/task/publish.md +0 -16
  528. package/dist-client/helps/integration/task/script.md +0 -39
  529. package/dist-client/helps/integration/task/sleep.md +0 -8
  530. package/dist-client/helps/integration/task/throw.md +0 -12
  531. package/dist-client/helps/integration/task/variables.md +0 -37
  532. package/dist-client/helps/integration/ui/connection.md +0 -16
  533. package/dist-client/helps/integration/ui/crontab-editor.md +0 -9
  534. package/dist-client/helps/integration/ui/integration-monitor.md +0 -29
  535. package/dist-client/helps/integration/ui/scenario-detail.md +0 -35
  536. package/dist-client/helps/integration/ui/scenario.md +0 -35
  537. package/dist-client/helps/module/api.md +0 -117
  538. package/dist-client/helps/module/dashboard.md +0 -27
  539. package/dist-client/helps/module/help.md +0 -40
  540. package/dist-client/helps/module/lite-menu.md +0 -112
  541. package/dist-client/helps/module/notification-images/config-app-1.png +0 -0
  542. package/dist-client/helps/module/notification-images/config-app-2.png +0 -0
  543. package/dist-client/helps/module/notification-images/config-server-key.png +0 -0
  544. package/dist-client/helps/module/notification-images/config-service-account.png +0 -0
  545. package/dist-client/helps/module/notification-images/config-vapidkey-1.png +0 -0
  546. package/dist-client/helps/module/notification-images/config-vapidkey-2-get-public-key.png +0 -0
  547. package/dist-client/helps/module/notification-images/config-vapidkey-3-get-private-key.png +0 -0
  548. package/dist-client/helps/module/notification-images/element-notification-badge.png +0 -0
  549. package/dist-client/helps/module/notification-images/element-notification-list.png +0 -0
  550. package/dist-client/helps/module/notification-images/element-notification-setting-let.png +0 -0
  551. package/dist-client/helps/module/notification-images/push-test-on-chrome-1.png +0 -0
  552. package/dist-client/helps/module/notification-images/push-test-on-chrome-2.png +0 -0
  553. package/dist-client/helps/module/notification-images/push-test-on-firebase-1.png +0 -0
  554. package/dist-client/helps/module/notification-images/push-test-on-firebase-2.png +0 -0
  555. package/dist-client/helps/module/notification-images/push-test-on-firebase-3.png +0 -0
  556. package/dist-client/helps/module/notification-images/push-test-on-firebase-4.png +0 -0
  557. package/dist-client/helps/module/notification.md +0 -161
  558. package/dist-client/helps/oauth2-client/code-verifier.md +0 -5
  559. package/dist-client/helps/oauth2-client/credentials.md +0 -160
  560. package/dist-client/helps/oauth2-client/grant-type.md +0 -33
  561. package/dist-client/helps/organization/department.md +0 -160
  562. package/dist-client/helps/organization/employee.md +0 -160
  563. package/dist-client/helps/scene/component/analog-clock.ko.md +0 -6
  564. package/dist-client/helps/scene/component/analog-clock.md +0 -8
  565. package/dist-client/helps/scene/component/analog-clock.zh.md +0 -6
  566. package/dist-client/helps/scene/component/arrow.ko.md +0 -9
  567. package/dist-client/helps/scene/component/arrow.md +0 -9
  568. package/dist-client/helps/scene/component/arrow.zh.md +0 -9
  569. package/dist-client/helps/scene/component/audio.ko.md +0 -1
  570. package/dist-client/helps/scene/component/audio.md +0 -1
  571. package/dist-client/helps/scene/component/audio.zh.md +0 -1
  572. package/dist-client/helps/scene/component/both-arrow.ko.md +0 -9
  573. package/dist-client/helps/scene/component/both-arrow.md +0 -9
  574. package/dist-client/helps/scene/component/both-arrow.zh.md +0 -9
  575. package/dist-client/helps/scene/component/chartjs.ko.md +0 -332
  576. package/dist-client/helps/scene/component/chartjs.md +0 -333
  577. package/dist-client/helps/scene/component/chartjs.zh.md +0 -331
  578. package/dist-client/helps/scene/component/color-image.ko.md +0 -9
  579. package/dist-client/helps/scene/component/color-image.md +0 -9
  580. package/dist-client/helps/scene/component/color-image.zh.md +0 -9
  581. package/dist-client/helps/scene/component/container.ko.md +0 -7
  582. package/dist-client/helps/scene/component/container.md +0 -9
  583. package/dist-client/helps/scene/component/container.zh.md +0 -8
  584. package/dist-client/helps/scene/component/donut.ko.md +0 -14
  585. package/dist-client/helps/scene/component/donut.md +0 -17
  586. package/dist-client/helps/scene/component/donut.zh.md +0 -18
  587. package/dist-client/helps/scene/component/dotted-line.ko.md +0 -7
  588. package/dist-client/helps/scene/component/dotted-line.md +0 -9
  589. package/dist-client/helps/scene/component/dotted-line.zh.md +0 -7
  590. package/dist-client/helps/scene/component/ellipse.ko.md +0 -11
  591. package/dist-client/helps/scene/component/ellipse.md +0 -11
  592. package/dist-client/helps/scene/component/ellipse.zh.md +0 -10
  593. package/dist-client/helps/scene/component/gauge-circle.ko.md +0 -168
  594. package/dist-client/helps/scene/component/gauge-circle.md +0 -167
  595. package/dist-client/helps/scene/component/gauge-circle.zh.md +0 -164
  596. package/dist-client/helps/scene/component/gauge-horizon.ko.md +0 -145
  597. package/dist-client/helps/scene/component/gauge-horizon.md +0 -145
  598. package/dist-client/helps/scene/component/gauge-horizon.zh.md +0 -145
  599. package/dist-client/helps/scene/component/gauge-vertical.ko.md +0 -12
  600. package/dist-client/helps/scene/component/gauge-vertical.md +0 -9
  601. package/dist-client/helps/scene/component/gauge-vertical.zh.md +0 -10
  602. package/dist-client/helps/scene/component/gif-view.ko.md +0 -10
  603. package/dist-client/helps/scene/component/gif-view.md +0 -10
  604. package/dist-client/helps/scene/component/gif-view.zh.md +0 -10
  605. package/dist-client/helps/scene/component/global-ref.ko.md +0 -1
  606. package/dist-client/helps/scene/component/global-ref.md +0 -1
  607. package/dist-client/helps/scene/component/global-ref.zh.md +0 -1
  608. package/dist-client/helps/scene/component/gray-image.ko.md +0 -9
  609. package/dist-client/helps/scene/component/gray-image.md +0 -9
  610. package/dist-client/helps/scene/component/gray-image.zh.md +0 -8
  611. package/dist-client/helps/scene/component/indoor-map.ko.md +0 -65
  612. package/dist-client/helps/scene/component/indoor-map.md +0 -65
  613. package/dist-client/helps/scene/component/indoor-map.zh.md +0 -65
  614. package/dist-client/helps/scene/component/info-window.ko.md +0 -1
  615. package/dist-client/helps/scene/component/info-window.md +0 -1
  616. package/dist-client/helps/scene/component/info-window.zh.md +0 -1
  617. package/dist-client/helps/scene/component/input.ko.md +0 -59
  618. package/dist-client/helps/scene/component/input.md +0 -59
  619. package/dist-client/helps/scene/component/input.zh.md +0 -58
  620. package/dist-client/helps/scene/component/line.ko.md +0 -9
  621. package/dist-client/helps/scene/component/line.md +0 -9
  622. package/dist-client/helps/scene/component/line.zh.md +0 -7
  623. package/dist-client/helps/scene/component/local-ref.ko.md +0 -1
  624. package/dist-client/helps/scene/component/local-ref.md +0 -1
  625. package/dist-client/helps/scene/component/local-ref.zh.md +0 -1
  626. package/dist-client/helps/scene/component/marker.ko.md +0 -15
  627. package/dist-client/helps/scene/component/marker.md +0 -15
  628. package/dist-client/helps/scene/component/marker.zh.md +0 -15
  629. package/dist-client/helps/scene/component/news-ticker.ko.md +0 -27
  630. package/dist-client/helps/scene/component/news-ticker.md +0 -27
  631. package/dist-client/helps/scene/component/news-ticker.zh.md +0 -27
  632. package/dist-client/helps/scene/component/polygon.ko.md +0 -9
  633. package/dist-client/helps/scene/component/polygon.md +0 -9
  634. package/dist-client/helps/scene/component/polygon.zh.md +0 -9
  635. package/dist-client/helps/scene/component/polyline.ko.md +0 -10
  636. package/dist-client/helps/scene/component/polyline.md +0 -10
  637. package/dist-client/helps/scene/component/polyline.zh.md +0 -10
  638. package/dist-client/helps/scene/component/popup.ko.md +0 -27
  639. package/dist-client/helps/scene/component/popup.md +0 -27
  640. package/dist-client/helps/scene/component/progress-circle.ko.md +0 -41
  641. package/dist-client/helps/scene/component/progress-circle.md +0 -42
  642. package/dist-client/helps/scene/component/progress-circle.zh.md +0 -39
  643. package/dist-client/helps/scene/component/progress-horizontal.ko.md +0 -37
  644. package/dist-client/helps/scene/component/progress-horizontal.md +0 -31
  645. package/dist-client/helps/scene/component/progress-horizontal.zh.md +0 -31
  646. package/dist-client/helps/scene/component/progress-vertical.ko.md +0 -23
  647. package/dist-client/helps/scene/component/progress-vertical.md +0 -24
  648. package/dist-client/helps/scene/component/progress-vertical.zh.md +0 -23
  649. package/dist-client/helps/scene/component/rack.ko.md +0 -17
  650. package/dist-client/helps/scene/component/rack.md +0 -15
  651. package/dist-client/helps/scene/component/rack.zh.md +0 -16
  652. package/dist-client/helps/scene/component/random.ko.md +0 -12
  653. package/dist-client/helps/scene/component/random.md +0 -11
  654. package/dist-client/helps/scene/component/random.zh.md +0 -11
  655. package/dist-client/helps/scene/component/rect.ko.md +0 -17
  656. package/dist-client/helps/scene/component/rect.md +0 -16
  657. package/dist-client/helps/scene/component/rect.zh.md +0 -16
  658. package/dist-client/helps/scene/component/simple-switch.ko.md +0 -20
  659. package/dist-client/helps/scene/component/simple-switch.md +0 -19
  660. package/dist-client/helps/scene/component/simple-switch.zh.md +0 -19
  661. package/dist-client/helps/scene/component/star.ko.md +0 -19
  662. package/dist-client/helps/scene/component/star.md +0 -19
  663. package/dist-client/helps/scene/component/star.zh.md +0 -19
  664. package/dist-client/helps/scene/component/tab-container.ko.md +0 -58
  665. package/dist-client/helps/scene/component/tab-container.md +0 -57
  666. package/dist-client/helps/scene/component/tab-container.zh.md +0 -59
  667. package/dist-client/helps/scene/component/tab.ko.md +0 -14
  668. package/dist-client/helps/scene/component/tab.md +0 -13
  669. package/dist-client/helps/scene/component/tab.zh.md +0 -13
  670. package/dist-client/helps/scene/component/text-clock.ko.md +0 -25
  671. package/dist-client/helps/scene/component/text-clock.md +0 -22
  672. package/dist-client/helps/scene/component/text-clock.zh.md +0 -22
  673. package/dist-client/helps/scene/component/text.ko.md +0 -9
  674. package/dist-client/helps/scene/component/text.md +0 -9
  675. package/dist-client/helps/scene/component/text.zh.md +0 -9
  676. package/dist-client/helps/scene/component/top-rounded-ractangle.ko.md +0 -15
  677. package/dist-client/helps/scene/component/top-rounded-ractangle.md +0 -15
  678. package/dist-client/helps/scene/component/top-rounded-ractangle.zh.md +0 -15
  679. package/dist-client/helps/scene/component/triangle.ko.md +0 -9
  680. package/dist-client/helps/scene/component/triangle.md +0 -9
  681. package/dist-client/helps/scene/component/triangle.zh.md +0 -9
  682. package/dist-client/helps/scene/images/both-arrow-01.png +0 -0
  683. package/dist-client/helps/scene/images/button-evnet-mapping-01.png +0 -0
  684. package/dist-client/helps/scene/images/button-evnet-mapping-02.png +0 -0
  685. package/dist-client/helps/scene/images/button-evnet-mapping-03.png +0 -0
  686. package/dist-client/helps/scene/images/chart-bar-01.png +0 -0
  687. package/dist-client/helps/scene/images/chart-bar-02.png +0 -0
  688. package/dist-client/helps/scene/images/chart-bar-03.png +0 -0
  689. package/dist-client/helps/scene/images/chart-bar-08.png +0 -0
  690. package/dist-client/helps/scene/images/chart-bar-12.png +0 -0
  691. package/dist-client/helps/scene/images/chart-data-01.png +0 -0
  692. package/dist-client/helps/scene/images/chart-data-04.png +0 -0
  693. package/dist-client/helps/scene/images/chart-doughnut-01.png +0 -0
  694. package/dist-client/helps/scene/images/chart-horizontal-bar-01.png +0 -0
  695. package/dist-client/helps/scene/images/chart-line-01.png +0 -0
  696. package/dist-client/helps/scene/images/chart-mix-01.png +0 -0
  697. package/dist-client/helps/scene/images/chart-mix-02.png +0 -0
  698. package/dist-client/helps/scene/images/chart-pie-01.png +0 -0
  699. package/dist-client/helps/scene/images/chart-polar-01.png +0 -0
  700. package/dist-client/helps/scene/images/chart-radar-01.png +0 -0
  701. package/dist-client/helps/scene/images/clock-analog-01.png +0 -0
  702. package/dist-client/helps/scene/images/clock-text-01.png +0 -0
  703. package/dist-client/helps/scene/images/clock-text-02.png +0 -0
  704. package/dist-client/helps/scene/images/clock-text-03.png +0 -0
  705. package/dist-client/helps/scene/images/clock-text-04.png +0 -0
  706. package/dist-client/helps/scene/images/container-01.png +0 -0
  707. package/dist-client/helps/scene/images/container-03.png +0 -0
  708. package/dist-client/helps/scene/images/container-04.png +0 -0
  709. package/dist-client/helps/scene/images/dash-01.png +0 -0
  710. package/dist-client/helps/scene/images/donut-01.png +0 -0
  711. package/dist-client/helps/scene/images/donut-02.png +0 -0
  712. package/dist-client/helps/scene/images/ellipse-01.png +0 -0
  713. package/dist-client/helps/scene/images/gauge-circle-01.png +0 -0
  714. package/dist-client/helps/scene/images/gauge-circle-02.png +0 -0
  715. package/dist-client/helps/scene/images/gauge-circle-03.png +0 -0
  716. package/dist-client/helps/scene/images/gauge-circle-04.png +0 -0
  717. package/dist-client/helps/scene/images/gauge-circle-05.png +0 -0
  718. package/dist-client/helps/scene/images/gauge-circle-06.png +0 -0
  719. package/dist-client/helps/scene/images/gauge-circle-07.png +0 -0
  720. package/dist-client/helps/scene/images/gauge-circle-08.png +0 -0
  721. package/dist-client/helps/scene/images/gauge-circle-09.png +0 -0
  722. package/dist-client/helps/scene/images/gauge-circle-10.png +0 -0
  723. package/dist-client/helps/scene/images/gauge-circle-11.png +0 -0
  724. package/dist-client/helps/scene/images/gauge-circle-12.png +0 -0
  725. package/dist-client/helps/scene/images/gauge-circle-13.png +0 -0
  726. package/dist-client/helps/scene/images/gauge-circle-14.png +0 -0
  727. package/dist-client/helps/scene/images/gauge-circle-15.png +0 -0
  728. package/dist-client/helps/scene/images/gauge-circle-16.png +0 -0
  729. package/dist-client/helps/scene/images/gauge-circle-17.png +0 -0
  730. package/dist-client/helps/scene/images/gauge-circle-18.png +0 -0
  731. package/dist-client/helps/scene/images/gauge-circle-19.png +0 -0
  732. package/dist-client/helps/scene/images/gauge-circle-20.png +0 -0
  733. package/dist-client/helps/scene/images/gauge-circle-21.png +0 -0
  734. package/dist-client/helps/scene/images/gauge-horizontal-01.png +0 -0
  735. package/dist-client/helps/scene/images/gauge-vertical-01.png +0 -0
  736. package/dist-client/helps/scene/images/gauge-vertical-02.png +0 -0
  737. package/dist-client/helps/scene/images/gauge-vertical-03.png +0 -0
  738. package/dist-client/helps/scene/images/gauge-vertical-04.png +0 -0
  739. package/dist-client/helps/scene/images/gauge-vertical-05.png +0 -0
  740. package/dist-client/helps/scene/images/gauge-vertical-06.png +0 -0
  741. package/dist-client/helps/scene/images/gauge-vertical-07.png +0 -0
  742. package/dist-client/helps/scene/images/gauge-vertical-08.png +0 -0
  743. package/dist-client/helps/scene/images/gauge-vertical-09.png +0 -0
  744. package/dist-client/helps/scene/images/gauge-vertical-10.png +0 -0
  745. package/dist-client/helps/scene/images/gauge-vertical-11.png +0 -0
  746. package/dist-client/helps/scene/images/gauge-vertical-12.png +0 -0
  747. package/dist-client/helps/scene/images/gauge-vertical-13.png +0 -0
  748. package/dist-client/helps/scene/images/gauge-vertical-14.png +0 -0
  749. package/dist-client/helps/scene/images/gauge-vertical-15.png +0 -0
  750. package/dist-client/helps/scene/images/gauge-vertical-16.png +0 -0
  751. package/dist-client/helps/scene/images/gauge-vertical-17.png +0 -0
  752. package/dist-client/helps/scene/images/gauge-vertical-18.png +0 -0
  753. package/dist-client/helps/scene/images/half-round-rect-01.png +0 -0
  754. package/dist-client/helps/scene/images/half-round-rect-02.png +0 -0
  755. package/dist-client/helps/scene/images/indoor-button-finish-01.gif +0 -0
  756. package/dist-client/helps/scene/images/indoor-create-01.png +0 -0
  757. package/dist-client/helps/scene/images/indoor-create-02.png +0 -0
  758. package/dist-client/helps/scene/images/indoor-create-03.png +0 -0
  759. package/dist-client/helps/scene/images/indoor-setting-01.png +0 -0
  760. package/dist-client/helps/scene/images/line-01.png +0 -0
  761. package/dist-client/helps/scene/images/marker-01.png +0 -0
  762. package/dist-client/helps/scene/images/marker-02.png +0 -0
  763. package/dist-client/helps/scene/images/media-01.png +0 -0
  764. package/dist-client/helps/scene/images/media-02.png +0 -0
  765. package/dist-client/helps/scene/images/news_ticker_1.png +0 -0
  766. package/dist-client/helps/scene/images/news_ticker_2.png +0 -0
  767. package/dist-client/helps/scene/images/news_ticker_3.png +0 -0
  768. package/dist-client/helps/scene/images/news_ticker_video_1.gif +0 -0
  769. package/dist-client/helps/scene/images/news_ticker_video_2.gif +0 -0
  770. package/dist-client/helps/scene/images/polygon-01.png +0 -0
  771. package/dist-client/helps/scene/images/polyline-01.png +0 -0
  772. package/dist-client/helps/scene/images/progress-circle-01.png +0 -0
  773. package/dist-client/helps/scene/images/progress-circle-02.png +0 -0
  774. package/dist-client/helps/scene/images/progress-circle-03.png +0 -0
  775. package/dist-client/helps/scene/images/progress-circle-04.png +0 -0
  776. package/dist-client/helps/scene/images/progress-circle-05.png +0 -0
  777. package/dist-client/helps/scene/images/progress-horizontal-01.png +0 -0
  778. package/dist-client/helps/scene/images/progress-horizontal-02.png +0 -0
  779. package/dist-client/helps/scene/images/progress-horizontal-03.png +0 -0
  780. package/dist-client/helps/scene/images/progress-horizontal-04.png +0 -0
  781. package/dist-client/helps/scene/images/progress-vertical-01.png +0 -0
  782. package/dist-client/helps/scene/images/progress-vertical-02.png +0 -0
  783. package/dist-client/helps/scene/images/progress-vertical-03.png +0 -0
  784. package/dist-client/helps/scene/images/rect-01.png +0 -0
  785. package/dist-client/helps/scene/images/rect-02.png +0 -0
  786. package/dist-client/helps/scene/images/single-arrow-01.png +0 -0
  787. package/dist-client/helps/scene/images/star-01.png +0 -0
  788. package/dist-client/helps/scene/images/star-02.png +0 -0
  789. package/dist-client/helps/scene/images/star-03.png +0 -0
  790. package/dist-client/helps/scene/images/tab-button-finish-01.gif +0 -0
  791. package/dist-client/helps/scene/images/tab-container-03.png +0 -0
  792. package/dist-client/helps/scene/images/tab-container-create-01.png +0 -0
  793. package/dist-client/helps/scene/images/tab-container-create-02.png +0 -0
  794. package/dist-client/helps/scene/images/tab-container-create-03.png +0 -0
  795. package/dist-client/helps/scene/images/tab-container-setting-01.png +0 -0
  796. package/dist-client/helps/scene/images/text-01.png +0 -0
  797. package/dist-client/helps/scene/images/triangle-01.png +0 -0
  798. package/dist-client/helps/setting/images/confirm-button.PNG +0 -0
  799. package/dist-client/helps/setting/images/delete-button.png +0 -0
  800. package/dist-client/helps/setting/images/error-setting.png +0 -0
  801. package/dist-client/helps/setting/images/export-button.png +0 -0
  802. package/dist-client/helps/setting/images/flowchart-setting-management.jpg +0 -0
  803. package/dist-client/helps/setting/images/partner-setting.png +0 -0
  804. package/dist-client/helps/setting/images/partners-list.PNG +0 -0
  805. package/dist-client/helps/setting/images/save-button.png +0 -0
  806. package/dist-client/helps/setting/images/select-button.PNG +0 -0
  807. package/dist-client/helps/setting/images/setting-board.png +0 -0
  808. package/dist-client/helps/setting/images/upload-button.png +0 -0
  809. package/dist-client/helps/setting/partner-setting.en.md +0 -19
  810. package/dist-client/helps/setting/settings.en.md +0 -26
  811. package/dist-client/helps/setting/settings.ko.md +0 -4
  812. package/dist-client/index.html +0 -40
  813. package/dist-client/main.js +0 -2
  814. package/dist-client/main.js.LICENSE.txt +0 -53
  815. package/dist-client/modules.js +0 -2
  816. package/dist-client/modules.js.LICENSE.txt +0 -3
  817. package/dist-client/node_modules/@hatiolab/things-scene/babel.config.js +0 -1
  818. package/dist-client/node_modules/@hatiolab/things-scene/package.json +0 -89
  819. package/dist-client/node_modules/@hatiolab/things-scene/rollup.config.js +0 -1
  820. package/dist-client/node_modules/@hatiolab/things-scene/things-board.js +0 -1
  821. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js +0 -2
  822. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js.LICENSE.txt +0 -3
  823. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js +0 -2
  824. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js.LICENSE.txt +0 -3
  825. package/dist-client/node_modules/@hatiolab/things-scene/tsconfig.json +0 -9
  826. package/dist-client/node_modules/@webcomponents/webcomponentsjs/CHANGELOG.md +0 -71
  827. package/dist-client/node_modules/@webcomponents/webcomponentsjs/LICENSE.md +0 -19
  828. package/dist-client/node_modules/@webcomponents/webcomponentsjs/README.md +0 -259
  829. package/dist-client/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js +0 -2
  830. package/dist-client/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js.LICENSE.txt +0 -9
  831. package/dist-client/node_modules/@webcomponents/webcomponentsjs/package.json +0 -51
  832. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +0 -175
  833. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +0 -2
  834. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.LICENSE.txt +0 -9
  835. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  836. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +0 -2
  837. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js.LICENSE.txt +0 -9
  838. package/dist-client/node_modules/web-animations-js/web-animations-next.min.js +0 -1
  839. package/dist-client/node_modules/web-animations-js/web-animations-next.min.js.map +0 -1
  840. package/dist-client/oauth2/oauth2-decision-error-page.js +0 -2
  841. package/dist-client/oauth2/oauth2-decision-error-page.js.LICENSE.txt +0 -70
  842. package/dist-client/oauth2/oauth2-decision-page.js +0 -2
  843. package/dist-client/oauth2/oauth2-decision-page.js.LICENSE.txt +0 -104
  844. package/dist-client/openapi/unstable/scenario.yaml +0 -240
  845. package/dist-client/openapi/unstable.yaml +0 -41
  846. package/dist-client/profile.js +0 -1
  847. package/dist-client/public/home.js +0 -2
  848. package/dist-client/public/home.js.LICENSE.txt +0 -81
  849. package/dist-client/scene-player.js +0 -2
  850. package/dist-client/scene-player.js.LICENSE.txt +0 -822
  851. package/dist-client/scene-viewer.js +0 -2
  852. package/dist-client/scene-viewer.js.LICENSE.txt +0 -822
  853. package/dist-client/service-worker.js +0 -2
  854. package/dist-client/service-worker.js.LICENSE.txt +0 -6
  855. package/dist-client/theme.css +0 -17
  856. package/dist-client/translations/en.json +0 -1242
  857. package/dist-client/translations/ko.json +0 -1245
  858. package/dist-client/translations/ms.json +0 -1210
  859. package/dist-client/translations/zh.json +0 -1192
  860. package/dist-client/views/auth-page.html +0 -96
  861. package/dist-client/views/dependencies-view-graphviz.html +0 -75
  862. package/dist-client/views/dependencies-view.html +0 -139
  863. package/dist-client/views/internal-board-full-feature-view.html +0 -61
  864. package/dist-client/views/internal-board-service-view.html +0 -65
  865. package/dist-client/views/internal-label-command-view.html +0 -300
  866. package/dist-client/views/oauth2-page.html +0 -90
  867. package/dist-client/views/public/home.html +0 -87
  868. package/dist-client/views/public/html-editor-editorjs.html +0 -269
  869. package/dist-client/views/public/html-editor-jodit.html +0 -31
  870. package/dist-client/views/public/html-editor-tui.html +0 -54
  871. package/dist-client/views/scenario-view.html +0 -64
  872. package/dist-client/views/template.html +0 -21
  873. package/logs/.18d091b2bdb152ebed6b3b89b64872d0259f255d-audit.json +0 -20
  874. package/logs/application-2022-04-25-13.log +0 -3
  875. package/logs/application-2022-04-25-17.log +0 -9
  876. package/logs/application-2022-04-26-10.log +0 -28
  877. package/logs/application-2022-04-26-11.log +0 -13
  878. package/logs/application-2022-04-26-13.log +0 -9
  879. package/logs/application-2023-01-17-09.log +0 -7
  880. package/logs/application-2023-01-17-18.log +0 -2
  881. package/logs/application-2023-01-19-00.log +0 -3
  882. package/logs/application-2023-01-19-01.log +0 -3
  883. package/logs/application-2023-01-19-08.log +0 -3
  884. package/logs/application-2023-01-19-09.log +0 -1
  885. package/logs/application-2023-01-19-10.log +0 -1
  886. package/logs/application-2023-01-19-17.log +0 -1
  887. package/logs/connections-2022-04-18-20.log +0 -0
  888. package/logs/connections-2022-04-25-13.log +0 -0
  889. package/logs/connections-2022-04-25-17.log +0 -0
  890. package/logs/connections-2022-04-26-10.log +0 -0
  891. package/logs/connections-2022-04-26-11.log +0 -0
  892. package/logs/connections-2022-04-26-13.log +0 -0
  893. package/logs/connections-2023-01-17-09.log +0 -0
  894. package/logs/connections-2023-01-19-00.log +0 -0
  895. package/logs/connections-2023-01-19-01.log +0 -0
  896. package/logs/connections-2023-01-19-08.log +0 -0
  897. package/logs/system/.277b657c3d28ef3f7f13e894f05f9a5b78225124-audit.json +0 -15
  898. package/logs/system/.48785e489f583edb47e5bfd3d5cf6ac2a7e0bf3a-audit.json +0 -15
  899. package/logs/system/.4f2031dfc4e0de16454872a65d0a8b59646970f7-audit.json +0 -15
  900. package/logs/system/.6da447827b9a5ea2ccd1f5f28a0b784317582531-audit.json +0 -20
  901. package/logs/system/.8d440e4a6e875d88d938061d3d3037e6b0d7dc58-audit.json +0 -15
  902. package/logs/system/.b295089be805f3597aa7380952ce4f2670ac8e21-audit.json +0 -20
  903. package/logs/system/scenario-MAIN-2022-03-04-16.log +0 -190
  904. package/logs/system/scenario-PUBLISH-2022-03-16-13.log +0 -8
  905. package/logs/system/scenario-PUBLISH-2023-01-19-08.log +0 -36
  906. package/logs/system/scenario-SCALER-TEST-2022-02-25-11.log +0 -14
  907. package/logs/system/scenario-SCHEDULE-TESt-2022-03-02-12.log +0 -66
  908. package/logs/system/scenario-SCHEDULE-TESt-2022-03-02-13.log +0 -1396
  909. package/logs/system/scenario-pubsub-2-2022-04-11-23.log +0 -12
  910. package/logs/system/scenario-pubsub-2-2022-04-12-14.log +0 -12
  911. package/logs/system/scenario-pubsub-2022-04-11-23.log +0 -277
  912. /package/{dist-client/assets/images/image-api.png → attachments/92a49294-725c-445c-8fe3-98d328d6d0a5.png} +0 -0
  913. /package/{dist-client/helps/scene/component/image-view.md → logs/connections-2023-03-13-10.log} +0 -0
  914. /package/{dist-client/theme.js → logs/connections-2023-03-13-11.log} +0 -0
  915. /package/logs/{connections-2022-04-12-14.log → connections-2023-03-19-07.log} +0 -0
  916. /package/logs/{connections-2022-04-12-16.log → connections-2023-03-19-10.log} +0 -0
  917. /package/logs/{connections-2022-04-14-13.log → connections-2023-03-19-11.log} +0 -0
  918. /package/logs/{connections-2022-04-14-17.log → connections-2023-03-19-12.log} +0 -0
  919. /package/logs/{connections-2022-04-15-08.log → connections-2023-03-21-03.log} +0 -0
  920. /package/logs/{connections-2022-04-18-10.log → connections-2023-03-21-04.log} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see unlock-user.js.LICENSE.txt */
2
- (()=>{var __webpack_modules__={36974:(t,e,r)=>{"use strict";r.d(e,{g7:()=>l});var n=null,i={},o=1;function a(t){try{return t()}catch(t){}}var s="@wry/context:Slot",c=a((function(){return globalThis}))||a((function(){return r.g}))||Object.create(null),l=c[s]||Array[s]||function(t){try{Object.defineProperty(c,s,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(function(){function t(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var t=n;t;t=t.parent)if(this.id in t.slots){var e=t.slots[this.id];if(e===i)break;return t!==n&&(n.slots[this.id]=e),!0}return n&&(n.slots[this.id]=i),!1},t.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},t.prototype.withValue=function(t,e,r,i){var o,a=((o={__proto__:null})[this.id]=t,o),s=n;n={parent:s,slots:a};try{return e.apply(i,r)}finally{n=s}},t.bind=function(t){var e=n;return function(){var r=n;try{return n=e,t.apply(this,arguments)}finally{n=r}}},t.noContext=function(t,e,r){if(!n)return t.apply(r,e);var i=n;try{return n=null,t.apply(r,e)}finally{n=i}},t}());l.bind,l.noContext},64579:(t,e,r)=>{"use strict";r.d(e,{D:()=>c});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=Function.prototype.toString,s=new Map;function c(t,e){try{return l(t,e)}finally{s.clear()}}function l(t,e){if(t===e)return!0;var r,n,s,c=i.call(t);if(c!==i.call(e))return!1;switch(c){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":if(p(t,e))return!0;var d=u(t),f=u(e),m=d.length;if(m!==f.length)return!1;for(var g=0;g<m;++g)if(!o.call(e,d[g]))return!1;for(g=0;g<m;++g){var v=d[g];if(!l(t[v],e[v]))return!1}return!0;case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!=t)return e!=e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t=="".concat(e);case"[object Map]":case"[object Set]":if(t.size!==e.size)return!1;if(p(t,e))return!0;for(var y=t.entries(),b="[object Map]"===c;;){var w=y.next();if(w.done)break;var _=w.value,E=_[0],x=_[1];if(!e.has(E))return!1;if(b&&!l(x,e.get(E)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":var A=t.byteLength;if(A===e.byteLength)for(;A--&&t[A]===e[A];);return-1===A;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var C=a.call(t);return C===a.call(e)&&(n=h,!((s=(r=C).length-n.length)>=0&&r.indexOf(n,s)===s))}return!1}function u(t){return Object.keys(t).filter(d,t)}function d(t){return void 0!==this[t]}var h="{ [native code] }";function p(t,e){var r=s.get(t);if(r){if(r.has(e))return!0}else s.set(t,r=new Set);return r.add(e),!1}},63471:(t,e,r)=>{"use strict";r.d(e,{B:()=>s});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function t(t,e){void 0===t&&(t=!0),void 0===e&&(e=n),this.weakness=t,this.makeData=e}return t.prototype.lookup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.lookupArray(t)},t.prototype.lookupArray=function(t){var e=this;return o.call(t,(function(t){return e=e.getChildTrie(t)})),e.data||(e.data=this.makeData(a.call(t)))},t.prototype.getChildTrie=function(e){var r=this.weakness&&function(t){switch(typeof t){case"object":if(null===t)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(e);return n||r.set(e,n=new t(this.weakness,this.makeData)),n},t}()},85709:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var{ApolloLink:a,Observable:s}=r(21604),{createSignalIfSupported:c,fallbackHttpConfig:l,parseAndCheckHttpResponse:u,rewriteURIForGET:d,selectHttpOptionsAndBody:h,selectURI:p,serializeFetchParameter:f}=r(59555),m=r(51331),g=r(14398),v=r(42474);t.exports=function(){var{uri:t="/graphql",useGETForQueries:e,isExtractableFile:r=v,FormData:n,formDataAppendFile:o=g,fetch:y,fetchOptions:b,credentials:w,headers:_,includeExtensions:E}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},x={http:{includeExtensions:E},options:b,credentials:w,headers:_};return new a((a=>{var g=a.getContext(),{clientAwareness:{name:v,version:b}={},headers:w}=g,_={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:i(i(i({},v&&{"apollographql-client-name":v}),b&&{"apollographql-client-version":b}),w)},{options:E,body:A}=h(a,l,x,_),{clone:C,files:S}=m(A,"",r),D=p(a,t);if(S.size){delete E.headers["content-type"];var O=new(n||FormData);O.append("operations",f(C,"Payload"));var P={},I=0;S.forEach((t=>{P[++I]=t})),O.append("map",JSON.stringify(P)),I=0,S.forEach(((t,e)=>{o(O,++I,e)})),E.body=O}else if(e&&!a.query.definitions.some((t=>"OperationDefinition"===t.kind&&"mutation"===t.operation))&&(E.method="GET"),"GET"===E.method){var{newURI:k,parseError:T}=d(D,A);if(T)return new s((t=>{t.error(T)}));D=k}else E.body=f(C,"Payload");var{controller:R}=c();R&&(E.signal&&(E.signal.aborted?R.abort():E.signal.addEventListener("abort",(()=>{R.abort()}),{once:!0})),E.signal=R.signal);var F=y||fetch;return new s((t=>{var e;return F(D,E).then((t=>(a.setContext({response:t}),t))).then(u(a)).then((e=>{t.next(e),t.complete()})).catch((r=>{e||(r.result&&r.result.errors&&r.result.data&&t.next(r.result),t.error(r))})),()=>{e=!0,R&&R.abort()}}))}))}},14398:t=>{"use strict";t.exports=function(t,e,r){t.append(e,r,r.name)}},42474:(t,e,r)=>{"use strict";t.exports=r(45625)},24574:(t,e,r)=>{"use strict";var n=r(6591),i=r(51266);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a,s,c=r(2795).codes,l=c.ERR_AMBIGUOUS_ARGUMENT,u=c.ERR_INVALID_ARG_TYPE,d=c.ERR_INVALID_ARG_VALUE,h=c.ERR_INVALID_RETURN_VALUE,p=c.ERR_MISSING_ARGS,f=r(48186),m=r(17396).inspect,g=r(17396).types,v=g.isPromise,y=g.isRegExp,b=Object.assign?Object.assign:r(43566).assign,w=Object.is?Object.is:r(95518);function _(){var t=r(79377);a=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var E=!1,x=t.exports=D,A={};function C(t){if(t.message instanceof Error)throw t.message;throw new f(t)}function S(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new f({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function D(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[D,e.length].concat(e))}x.fail=function t(e,r,o,a,s){var c,l=arguments.length;if(0===l)c="Failed";else if(1===l)o=e,e=void 0;else{if(!1===E){E=!0;var u=n.emitWarning?n.emitWarning:i.warn.bind(i);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(a="!=")}if(o instanceof Error)throw o;var d={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==o&&(d.message=o);var h=new f(d);throw c&&(h.message=c,h.generatedMessage=!0),h},x.AssertionError=f,x.ok=D,x.equal=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e!=r&&C({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},x.notEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e==r&&C({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},x.deepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&_(),a(e,r)||C({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},x.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&_(),a(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},x.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&_(),s(e,r)||C({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},x.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&_(),s(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},x.strictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)||C({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},x.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)&&C({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var O=function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&y(e[t])&&e[t].test(n[t])?i[t]=n[t]:i[t]=e[t])}))};function P(t,e,r,n,i,o){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new O(t,i),c=new O(e,i,t),l=new f({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:o});throw l.actual=t,l.expected=e,l.operator=o.name,l}C({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}function I(t,e,r,n){if("function"!=typeof e){if(y(e))return e.test(t);if(2===arguments.length)throw new u("expected",["Function","RegExp"],e);if("object"!==o(t)||null===t){var i=new f({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw i.operator=n.name,i}var s=Object.keys(e);if(e instanceof Error)s.push("name","message");else if(0===s.length)throw new d("error",e,"may not be an empty object");return void 0===a&&_(),s.forEach((function(i){"string"==typeof t[i]&&y(e[i])&&e[i].test(t[i])||P(t,e,i,r,s,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function k(t){if("function"!=typeof t)throw new u("fn","Function",t);try{t()}catch(t){return t}return A}function T(t){return v(t)||null!==t&&"object"===o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function R(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!T(e=t()))throw new h("instance of Promise","promiseFn",e)}else{if(!T(t))throw new u("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return A})).catch((function(t){return t}))}))}function F(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===o(e)&&null!==e){if(e.message===r)throw new l("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new l("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(e===A){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";C({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:t})}if(r&&!I(e,r,n,t))throw e}function N(t,e,r,n){if(e!==A){if("string"==typeof r&&(n=r,r=void 0),!r||I(e,r)){var i=n?": ".concat(n):".",o="doesNotReject"===t.name?"rejection":"exception";C({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function M(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[M,e.length].concat(e))}x.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];F.apply(void 0,[t,k(e)].concat(n))},x.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return R(e).then((function(e){return F.apply(void 0,[t,e].concat(n))}))},x.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];N.apply(void 0,[t,k(e)].concat(n))},x.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return R(e).then((function(e){return N.apply(void 0,[t,e].concat(n))}))},x.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===o(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=m(e);var n=new f({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),i=e.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=n.stack.split("\n"),c=0;c<a.length;c++){var l=s.indexOf(a[c]);if(-1!==l){s=s.slice(0,l);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=b(M,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},48186:(t,e,r)=>{"use strict";var n=r(6591);function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?s(t):e}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return u(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,t)},c(t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t,e,r){return u=l()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&d(i,r.prototype),i},u.apply(null,arguments)}function d(t,e){return d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}var f=r(17396).inspect,m=r(2795).codes.ERR_INVALID_ARG_TYPE;function g(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var v="",y="",b="",w="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function E(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function x(t){return f(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==p(t)||null===t)throw new m("options","Object",t);var i=t.message,o=t.operator,c=t.stackStartFn,l=t.actual,u=t.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,h(e).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="",y="",w="",b=""):(v="",y="",w="",b="")),"object"===p(l)&&null!==l&&"object"===p(u)&&null!==u&&"stack"in l&&l instanceof Error&&"stack"in u&&u instanceof Error&&(l=E(l),u=E(u)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,h(e).call(this,function(t,e,r){var i="",o="",a=0,s="",c=!1,l=x(t),u=l.split("\n"),d=x(e).split("\n"),h=0,f="";if("strictEqual"===r&&"object"===p(t)&&"object"===p(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var m=u[0].length+d[0].length;if(m<=10){if(!("object"===p(t)&&null!==t||"object"===p(e)&&null!==e||0===t&&0===e))return"".concat(_[r],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][h]===d[0][h];)h++;h>2&&(f="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",h),"^"),h=0)}}for(var E=u[u.length-1],A=d[d.length-1];E===A&&(h++<2?s="\n ".concat(E).concat(s):i=E,u.pop(),d.pop(),0!==u.length&&0!==d.length);)E=u[u.length-1],A=d[d.length-1];var C=Math.max(u.length,d.length);if(0===C){var S=l.split("\n");if(S.length>30)for(S[26]="".concat(v,"...").concat(w);S.length>27;)S.pop();return"".concat(_.notIdentical,"\n\n").concat(S.join("\n"),"\n")}h>3&&(s="\n".concat(v,"...").concat(w).concat(s),c=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var D=0,O=_[r]+"\n".concat(y,"+ actual").concat(w," ").concat(b,"- expected").concat(w),P=" ".concat(v,"...").concat(w," Lines skipped");for(h=0;h<C;h++){var I=h-a;if(u.length<h+1)I>1&&h>2&&(I>4?(o+="\n".concat(v,"...").concat(w),c=!0):I>3&&(o+="\n ".concat(d[h-2]),D++),o+="\n ".concat(d[h-1]),D++),a=h,i+="\n".concat(b,"-").concat(w," ").concat(d[h]),D++;else if(d.length<h+1)I>1&&h>2&&(I>4?(o+="\n".concat(v,"...").concat(w),c=!0):I>3&&(o+="\n ".concat(u[h-2]),D++),o+="\n ".concat(u[h-1]),D++),a=h,o+="\n".concat(y,"+").concat(w," ").concat(u[h]),D++;else{var k=d[h],T=u[h],R=T!==k&&(!g(T,",")||T.slice(0,-1)!==k);R&&g(k,",")&&k.slice(0,-1)===T&&(R=!1,T+=","),R?(I>1&&h>2&&(I>4?(o+="\n".concat(v,"...").concat(w),c=!0):I>3&&(o+="\n ".concat(u[h-2]),D++),o+="\n ".concat(u[h-1]),D++),a=h,o+="\n".concat(y,"+").concat(w," ").concat(T),i+="\n".concat(b,"-").concat(w," ").concat(k),D+=2):(o+=i,i="",1!==I&&0!==h||(o+="\n ".concat(T),D++))}if(D>20&&h<C-2)return"".concat(O).concat(P,"\n").concat(o,"\n").concat(v,"...").concat(w).concat(i,"\n")+"".concat(v,"...").concat(w)}return"".concat(O).concat(c?P:"","\n").concat(o).concat(i).concat(s).concat(f)}(l,u,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var f=_[o],A=x(l).split("\n");if("notStrictEqual"===o&&"object"===p(l)&&null!==l&&(f=_.notStrictEqualObject),A.length>30)for(A[26]="".concat(v,"...").concat(w);A.length>27;)A.pop();r=1===A.length?a(this,h(e).call(this,"".concat(f," ").concat(A[0]))):a(this,h(e).call(this,"".concat(f,"\n\n").concat(A.join("\n"),"\n")))}else{var C=x(l),S="",D=_[o];"notDeepEqual"===o||"notEqual"===o?(C="".concat(_[o],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(S="".concat(x(u)),C.length>512&&(C="".concat(C.slice(0,509),"...")),S.length>512&&(S="".concat(S.slice(0,509),"...")),"deepEqual"===o||"equal"===o?C="".concat(D,"\n\n").concat(C,"\n\nshould equal\n\n"):S=" ".concat(o," ").concat(S)),r=a(this,h(e).call(this,"".concat(C).concat(S)))}return Error.stackTraceLimit=d,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=l,r.expected=u,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(r),c),r.stack,r.name="AssertionError",a(r)}var r,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t),r=e,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f.custom,value:function(t,e){return f(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],c&&o(r.prototype,c),e}(c(Error));t.exports=A},2795:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}var a,s,c={};function l(t,e,r){r||(r=Error);var a=function(r){function a(r,o,s){var c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),c=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(a).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,o,s))),c.code=t,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(a,r),a}(r);c[t]=a}function u(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,s,c,l,d;if(void 0===a&&(a=r(24574)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,s.length)===s)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))c="The ".concat(t," ").concat(o," ").concat(u(e,"type"));else{var h=("number"!=typeof d&&(d=0),d+".".length>(l=t).length||-1===l.indexOf(".",d)?"argument":"property");c='The "'.concat(t,'" ').concat(h," ").concat(o," ").concat(u(e,"type"))}return c+". Received type ".concat(n(i))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(17396));var i=s.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=r(24574)),a(e.length>0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=c},79377:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},s=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},c=Object.is?Object.is:r(95518),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:r(62183);function d(t){return t.call.bind(t)}var h=d(Object.prototype.hasOwnProperty),p=d(Object.prototype.propertyIsEnumerable),f=d(Object.prototype.toString),m=r(17396).types,g=m.isAnyArrayBuffer,v=m.isArrayBufferView,y=m.isDate,b=m.isMap,w=m.isRegExp,_=m.isSet,E=m.isNativeError,x=m.isBoxedPrimitive,A=m.isNumberObject,C=m.isStringObject,S=m.isBooleanObject,D=m.isBigIntObject,O=m.isSymbolObject,P=m.isFloat32Array,I=m.isFloat64Array;function k(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function T(t){return Object.keys(t).filter(k).concat(l(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function R(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function F(t,e,r,n){if(t===e)return 0!==t||!r||c(t,e);if(r){if("object"!==i(t))return"number"==typeof t&&u(t)&&u(e);if("object"!==i(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var a,s,l,d,h=f(t);if(h!==f(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var p=T(t),m=T(e);return p.length===m.length&&M(t,e,r,n,1,p)}if("[object Object]"===h&&(!b(t)&&b(e)||!_(t)&&_(e)))return!1;if(y(t)){if(!y(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||(l=t,d=e,!(o?l.source===d.source&&l.flags===d.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(d))))return!1}else if(E(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(v(t)){if(r||!P(t)&&!I(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===R(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var k=T(t),F=T(e);return k.length===F.length&&M(t,e,r,n,0,k)}if(_(t))return!(!_(e)||t.size!==e.size)&&M(t,e,r,n,2);if(b(t))return!(!b(e)||t.size!==e.size)&&M(t,e,r,n,3);if(g(t)){if(s=e,(a=t).byteLength!==s.byteLength||0!==R(new Uint8Array(a),new Uint8Array(s)))return!1}else if(x(t)&&!function(t,e){return A(t)?A(e)&&c(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):C(t)?C(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):S(t)?S(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):D(t)?D(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):O(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return M(t,e,r,n,0)}function N(t,e){return e.filter((function(e){return p(t,e)}))}function M(t,e,r,n,i,o){if(5===arguments.length){o=Object.keys(t);var a=Object.keys(e);if(o.length!==a.length)return!1}for(var s=0;s<o.length;s++)if(!h(e,o[s]))return!1;if(r&&5===arguments.length){var c=l(t);if(0!==c.length){var u=0;for(s=0;s<c.length;s++){var d=c[s];if(p(t,d)){if(!p(e,d))return!1;o.push(d),u++}else if(p(e,d))return!1}var f=l(e);if(c.length!==f.length&&N(e,f).length!==u)return!1}else{var m=l(e);if(0!==m.length&&0!==N(e,m).length)return!1}}if(0===o.length&&(0===i||1===i&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var g=n.val1.get(t);if(void 0!==g){var v=n.val2.get(e);if(void 0!==v)return g===v}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var y=U(t,e,r,o,n,i);return n.val1.delete(t),n.val2.delete(e),y}function B(t,e,r,n){for(var i=a(t),o=0;o<i.length;o++){var s=i[o];if(F(e,s,r,n))return t.delete(s),!0}return!1}function L(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(u(t))return!1}return!0}function j(t,e,r){var n=L(r);return null!=n?n:e.has(n)&&!t.has(n)}function V(t,e,r,n,i){var o=L(r);if(null!=o)return o;var a=e.get(o);return!(void 0===a&&!e.has(o)||!F(n,a,!1,i))&&!t.has(o)&&F(n,a,!1,i)}function z(t,e,r,n,i,o){for(var s=a(t),c=0;c<s.length;c++){var l=s[c];if(F(r,l,i,o)&&F(n,e.get(l),i,o))return t.delete(l),!0}return!1}function U(t,e,r,o,c,l){var u=0;if(2===l){if(!function(t,e,r,n){for(var o=null,s=a(t),c=0;c<s.length;c++){var l=s[c];if("object"===i(l)&&null!==l)null===o&&(o=new Set),o.add(l);else if(!e.has(l)){if(r)return!1;if(!j(t,e,l))return!1;null===o&&(o=new Set),o.add(l)}}if(null!==o){for(var u=a(e),d=0;d<u.length;d++){var h=u[d];if("object"===i(h)&&null!==h){if(!B(o,h,r,n))return!1}else if(!r&&!t.has(h)&&!B(o,h,r,n))return!1}return 0===o.size}return!0}(t,e,r,c))return!1}else if(3===l){if(!function(t,e,r,o){for(var a=null,c=s(t),l=0;l<c.length;l++){var u=n(c[l],2),d=u[0],h=u[1];if("object"===i(d)&&null!==d)null===a&&(a=new Set),a.add(d);else{var p=e.get(d);if(void 0===p&&!e.has(d)||!F(h,p,r,o)){if(r)return!1;if(!V(t,e,d,h,o))return!1;null===a&&(a=new Set),a.add(d)}}}if(null!==a){for(var f=s(e),m=0;m<f.length;m++){var g=n(f[m],2),v=(d=g[0],g[1]);if("object"===i(d)&&null!==d){if(!z(a,t,d,v,r,o))return!1}else if(!(r||t.has(d)&&F(t.get(d),v,!1,o)||z(a,t,d,v,!1,o)))return!1}return 0===a.size}return!0}(t,e,r,c))return!1}else if(1===l)for(;u<t.length;u++){if(!h(t,u)){if(h(e,u))return!1;for(var d=Object.keys(t);u<d.length;u++){var p=d[u];if(!h(e,p)||!F(t[p],e[p],r,c))return!1}return d.length===Object.keys(e).length}if(!h(e,u)||!F(t[u],e[u],r,c))return!1}for(u=0;u<o.length;u++){var f=o[u];if(!F(t[f],e[f],r,c))return!1}return!0}t.exports={isDeepEqual:function(t,e){return F(t,e,!1)},isDeepStrictEqual:function(t,e){return F(t,e,!0)}}},24104:(t,e)=>{"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=c(t),a=o[0],s=o[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),u=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[u++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(l(t,s,s+a>c?c:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},62453:(t,e,r)=>{"use strict";var n=r(15803),i=r(47426),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},47426:(t,e,r)=>{"use strict";var n=r(11442),i=r(15803),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){var e=s(n,a,arguments);if(c&&l){var r=c(e,"length");r.configurable&&l(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var d=function(){return s(n,o,arguments)};l?l(t.exports,"apply",{value:d}):t.exports.apply=d},51266:(t,e,r)=>{var n=r(17396),i=r(24574);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,c={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var l=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){c[t]=o()},"time"],[function(t){var e=c[t];if(!e)throw new Error("No such label: "+t);delete c[t];var r=o()-e;a.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);i.ok(!1,n.format.apply(null,e))}},"assert"]],u=0;u<l.length;u++){var d=l[u],h=d[0],p=d[1];a[p]||(a[p]=h)}t.exports=a},27741:(t,e,r)=>{"use strict";var n=r(76927),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,c=r(81224)(),l=s&&c,u=function(t,e,r,n){var i;(!(e in t)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(l?s(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},d=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)u(t,o[s],e[o[s]],r[o[s]])};d.supportsDescriptors=!!l,t.exports=d},43566:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var c=o[a],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(r[c]=i[c])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},10127:t=>{"use strict";t.exports=class{constructor(t){var{uri:e,name:r,type:n}=t;this.uri=e,this.name=r,this.type=n}}},51331:(t,e,r)=>{"use strict";var n=r(45625);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,i=new Map,o=new Map;function a(t,e,n){var s=t;if(r(t)){s=null;var c=i.get(t);c?c.push(e):i.set(t,[e])}else{var l=Array.isArray(t)||"undefined"!=typeof FileList&&t instanceof FileList,u=t&&t.constructor===Object;if(l||u){var d=o.has(t);if(d?s=o.get(t):(s=l?[]:{},o.set(t,s)),!n.has(t)){var h=e?"".concat(e,"."):"",p=new Set(n).add(t);if(l){var f=0;for(var m of t){var g=a(m,h+f++,p);d||s.push(g)}}else for(var v in t){var y=a(t[v],h+v,p);d||(s[v]=y)}}}}return s}return{clone:a(t,e,new Set),files:i}}},45625:(t,e,r)=>{"use strict";var n=r(10127);t.exports=function(t){return"undefined"!=typeof File&&t instanceof File||"undefined"!=typeof Blob&&t instanceof Blob||t instanceof n}},13366:(t,e,r)=>{"use strict";var n=r(41313),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},c=function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(t)?a(t,e,o):"string"==typeof t?s(t,e,o):c(t,e,o)}},98135:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";t.exports=function(t){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(e+o);for(var a,s=r.call(arguments,1),c=function(){if(this instanceof a){var e=o.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return o.apply(t,s.concat(r.call(arguments)))},l=Math.max(0,o.length-s.length),u=[],d=0;d<l;d++)u.push("$"+d);if(a=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),o.prototype){var h=function(){};h.prototype=o.prototype,a.prototype=new h,h.prototype=null}return a}},11442:(t,e,r)=>{"use strict";var n=r(98135);t.exports=Function.prototype.bind||n},15803:(t,e,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var l=function(){throw new a},u=c?function(){try{return l}catch(t){try{return c(arguments,"callee").get}catch(t){return l}}}():l,d=r(44439)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},f="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=h(i.prototype))}return m[e]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=r(11442),b=r(44106),w=y.call(Function.call,Array.prototype.concat),_=y.call(Function.apply,Array.prototype.splice),E=y.call(Function.call,String.prototype.replace),x=y.call(Function.call,String.prototype.slice),A=y.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,D=function(t){var e=x(t,0,1),r=x(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return E(t,C,(function(t,e,r,i){n[n.length]=r?E(i,S,"$1"):e||t})),n},O=function(t,e){var r,n=t;if(b(v,n)&&(n="%"+(r=v[n])[0]+"%"),b(m,n)){var o=m[n];if(o===p&&(o=g(n)),void 0===o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=D(t),n=r.length>0?r[0]:"",o=O("%"+n+"%",e),s=o.name,l=o.value,u=!1,d=o.alias;d&&(n=d[0],_(r,w([0,1],d)));for(var h=1,p=!0;h<r.length;h+=1){var f=r[h],g=x(f,0,1),v=x(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&p||(u=!0),b(m,s="%"+(n+="."+f)+"%"))l=m[s];else if(null!=l){if(!(f in l)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var y=c(l,f);l=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:l[f]}else p=b(l,f),l=l[f];p&&!u&&(m[s]=l)}}return l}},31606:(t,e,r)=>{"use strict";var n=r(15803)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},16682:(t,e,r)=>{"use strict";r.d(e,{HW:()=>p,J9:()=>g,Ps:()=>h,ZP:()=>x,_t:()=>f,wO:()=>m});var n=r(171),i=r(54509),o=r(51266),a=new Map,s=new Map,c=!0,l=!1;function u(t){return t.replace(/[\s,]+/g," ").trim()}function d(t){var e,r,d,h=u(t);if(!a.has(h)){var p=(0,i.Qc)(t,{experimentalFragmentVariables:l,allowLegacyFragmentVariables:l});if(!p||"Document"!==p.kind)throw new Error("Not a valid GraphQL document.");a.set(h,function(t){var e=new Set(t.definitions);e.forEach((function(t){t.loc&&delete t.loc,Object.keys(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&e.add(n)}))}));var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}((e=p,r=new Set,d=[],e.definitions.forEach((function(t){if("FragmentDefinition"===t.kind){var e=t.name.value,n=u((a=t.loc).source.body.substring(a.start,a.end)),i=s.get(e);i&&!i.has(n)?c&&o.warn("Warning: fragment with name "+e+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||s.set(e,i=new Set),i.add(n),r.has(n)||(r.add(n),d.push(t))}else d.push(t);var a})),(0,n.pi)((0,n.pi)({},e),{definitions:d}))))}return a.get(h)}function h(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];"string"==typeof t&&(t=[t]);var n=t[0];return e.forEach((function(e,r){e&&"Document"===e.kind?n+=e.loc.source.body:n+=e,n+=t[r+1]})),d(n)}function p(){a.clear(),s.clear()}function f(){c=!1}function m(){l=!0}function g(){l=!1}var v,y=h,b=p,w=f,_=m,E=g;(v=h||(h={})).gql=y,v.resetCaches=b,v.disableFragmentWarnings=w,v.enableExperimentalFragmentVariables=_,v.disableExperimentalFragmentVariables=E,h.default=h;const x=h},81224:(t,e,r)=>{"use strict";var n=r(15803)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},44439:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(83217);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},83217:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},44308:(t,e,r)=>{"use strict";var n=r(83217);t.exports=function(){return n()&&!!Symbol.toStringTag}},44106:(t,e,r)=>{"use strict";var n=r(11442);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},87040:(t,e)=>{e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,l=c>>1,u=-7,d=r?i-1:0,h=r?-1:1,p=t[e+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+t[e+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+t[e+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=l}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(e*c-1)*Math.pow(2,i),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[r+p]=255&a,p+=f,a/=256,l-=8);t[r+p-f]|=128*m}},23128:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},81582:(t,e,r)=>{"use strict";var n=r(44308)(),i=r(62453)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},41313:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(d=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(d(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return s(t);if(a(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},72654:(t,e,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(44308)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(o.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(t);if(!c)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&c(e)}return c(t)===n}},42026:t=>{"use strict";t.exports=function(t){return t!=t}},62183:(t,e,r)=>{"use strict";var n=r(47426),i=r(27741),o=r(42026),a=r(61638),s=r(93532),c=n(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),t.exports=c},61638:(t,e,r)=>{"use strict";var n=r(42026);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},93532:(t,e,r)=>{"use strict";var n=r(27741),i=r(61638);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},11438:(t,e,r)=>{"use strict";var n=r(13366),i=r(52697),o=r(62453),a=o("Object.prototype.toString"),s=r(44308)(),c=r(31606),l="undefined"==typeof globalThis?r.g:globalThis,u=i(),d=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},h=o("String.prototype.slice"),p={},f=Object.getPrototypeOf;s&&c&&f&&n(u,(function(t){var e=new l[t];if(Symbol.toStringTag in e){var r=f(e),n=c(r,Symbol.toStringTag);if(!n){var i=f(r);n=c(i,Symbol.toStringTag)}p[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=h(a(t),8,-1);return d(u,e)>-1}return!!c&&function(t){var e=!1;return n(p,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},41242:function(t,e,r){var n=r(51266);t.exports=function(){"use strict";function t(t,e){return t(e={exports:{}},e.exports),e.exports}var e=t((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),r=t((function(t){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)})),i=(r.version,function(t){return"object"==typeof t?null!==t:"function"==typeof t}),o=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t},a=function(t){try{return!!t()}catch(t){return!0}},s=!a((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c=e.document,l=i(c)&&i(c.createElement),u=!s&&!a((function(){return 7!=Object.defineProperty((t="div",l?c.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),d=Object.defineProperty,h={f:s?Object.defineProperty:function(t,e,r){if(o(t),e=function(t,e){if(!i(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!i(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(e,!0),o(r),u)try{return d(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},p=s?function(t,e,r){return h.f(t,e,function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}(1,r))}:function(t,e,r){return t[e]=r,t},f={}.hasOwnProperty,m=function(t,e){return f.call(t,e)},g=0,v=Math.random(),y=t((function(t){var n="__core-js_shared__",i=e[n]||(e[n]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),b=y("native-function-to-string",Function.toString),w=t((function(t){var n=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++g+v).toString(36))}("src"),i="toString",o=(""+b).split(i);r.inspectSource=function(t){return b.call(t)},(t.exports=function(t,r,i,a){var s="function"==typeof i;s&&(m(i,"name")||p(i,"name",r)),t[r]!==i&&(s&&(m(i,n)||p(i,n,t[r]?""+t[r]:o.join(String(r)))),t===e?t[r]=i:a?t[r]?t[r]=i:p(t,r,i):(delete t[r],p(t,r,i)))})(Function.prototype,i,(function(){return"function"==typeof this&&this[n]||b.call(this)}))})),_=function(t,e,r){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},E="prototype",x=function(t,n,i){var o,a,s,c,l=t&x.F,u=t&x.G,d=t&x.S,h=t&x.P,f=t&x.B,m=u?e:d?e[n]||(e[n]={}):(e[n]||{})[E],g=u?r:r[n]||(r[n]={}),v=g[E]||(g[E]={});for(o in u&&(i=n),i)s=((a=!l&&m&&void 0!==m[o])?m:i)[o],c=f&&a?_(s,e):h&&"function"==typeof s?_(Function.call,s):s,m&&w(m,o,s,t&x.U),g[o]!=s&&p(g,o,c),h&&v[o]!=s&&(v[o]=s)};e.core=r,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128;var A=x,C=Math.ceil,S=Math.floor,D=function(t){return isNaN(t=+t)?0:(t>0?S:C)(t)},O=(!1,function(t,e){var r,n,i=String(function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}(t)),o=D(e),a=i.length;return o<0||o>=a?void 0:(r=i.charCodeAt(o))<55296||r>56319||o+1===a||(n=i.charCodeAt(o+1))<56320||n>57343?r:n-56320+(r-55296<<10)+65536});A(A.P,"String",{codePointAt:function(t){return O(this,t)}}),r.String.codePointAt;var P=Math.max,I=Math.min,k=function(t,e){return(t=D(t))<0?P(t+e,0):I(t,e)},T=String.fromCharCode,R=String.fromCodePoint;A(A.S+A.F*(!!R&&1!=R.length),"String",{fromCodePoint:function(t){for(var e,r=arguments,n=[],i=arguments.length,o=0;i>o;){if(e=+r[o++],k(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?T(e):T(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}}),r.String.fromCodePoint;var F,N,M,B,L,j,V,z,U,H,G,q,W,Y,X={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},$=function(t){return"string"==typeof t&&X.Space_Separator.test(t)},Q=function(t){return"string"==typeof t&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||"$"===t||"_"===t||X.ID_Start.test(t))},K=function(t){return"string"==typeof t&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"$"===t||"_"===t||"‌"===t||"‍"===t||X.ID_Continue.test(t))},Z=function(t){return"string"==typeof t&&/[0-9]/.test(t)},J=function(t){return"string"==typeof t&&/[0-9A-Fa-f]/.test(t)};function tt(t,e,r){var n=t[e];if(null!=n&&"object"==typeof n)if(Array.isArray(n))for(var i=0;i<n.length;i++){var o=String(i),a=tt(n,o,r);void 0===a?delete n[o]:Object.defineProperty(n,o,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(var s in n){var c=tt(n,s,r);void 0===c?delete n[s]:Object.defineProperty(n,s,{value:c,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}function et(){for(H="default",G="",q=!1,W=1;;){Y=rt();var t=it[H]();if(t)return t}}function rt(){if(F[B])return String.fromCodePoint(F.codePointAt(B))}function nt(){var t=rt();return"\n"===t?(L++,j=0):t?j+=t.length:j++,t&&(B+=t.length),t}var it={default:function(){switch(Y){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void nt();case"/":return nt(),void(H="comment");case void 0:return nt(),ot("eof")}if(!$(Y))return it[N]();nt()},comment:function(){switch(Y){case"*":return nt(),void(H="multiLineComment");case"/":return nt(),void(H="singleLineComment")}throw dt(nt())},multiLineComment:function(){switch(Y){case"*":return nt(),void(H="multiLineCommentAsterisk");case void 0:throw dt(nt())}nt()},multiLineCommentAsterisk:function(){switch(Y){case"*":return void nt();case"/":return nt(),void(H="default");case void 0:throw dt(nt())}nt(),H="multiLineComment"},singleLineComment:function(){switch(Y){case"\n":case"\r":case"\u2028":case"\u2029":return nt(),void(H="default");case void 0:return nt(),ot("eof")}nt()},value:function(){switch(Y){case"{":case"[":return ot("punctuator",nt());case"n":return nt(),at("ull"),ot("null",null);case"t":return nt(),at("rue"),ot("boolean",!0);case"f":return nt(),at("alse"),ot("boolean",!1);case"-":case"+":return"-"===nt()&&(W=-1),void(H="sign");case".":return G=nt(),void(H="decimalPointLeading");case"0":return G=nt(),void(H="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return G=nt(),void(H="decimalInteger");case"I":return nt(),at("nfinity"),ot("numeric",1/0);case"N":return nt(),at("aN"),ot("numeric",NaN);case'"':case"'":return q='"'===nt(),G="",void(H="string")}throw dt(nt())},identifierNameStartEscape:function(){if("u"!==Y)throw dt(nt());nt();var t=st();switch(t){case"$":case"_":break;default:if(!Q(t))throw pt()}G+=t,H="identifierName"},identifierName:function(){switch(Y){case"$":case"_":case"‌":case"‍":return void(G+=nt());case"\\":return nt(),void(H="identifierNameEscape")}if(!K(Y))return ot("identifier",G);G+=nt()},identifierNameEscape:function(){if("u"!==Y)throw dt(nt());nt();var t=st();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!K(t))throw pt()}G+=t,H="identifierName"},sign:function(){switch(Y){case".":return G=nt(),void(H="decimalPointLeading");case"0":return G=nt(),void(H="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return G=nt(),void(H="decimalInteger");case"I":return nt(),at("nfinity"),ot("numeric",W*(1/0));case"N":return nt(),at("aN"),ot("numeric",NaN)}throw dt(nt())},zero:function(){switch(Y){case".":return G+=nt(),void(H="decimalPoint");case"e":case"E":return G+=nt(),void(H="decimalExponent");case"x":case"X":return G+=nt(),void(H="hexadecimal")}return ot("numeric",0*W)},decimalInteger:function(){switch(Y){case".":return G+=nt(),void(H="decimalPoint");case"e":case"E":return G+=nt(),void(H="decimalExponent")}if(!Z(Y))return ot("numeric",W*Number(G));G+=nt()},decimalPointLeading:function(){if(Z(Y))return G+=nt(),void(H="decimalFraction");throw dt(nt())},decimalPoint:function(){switch(Y){case"e":case"E":return G+=nt(),void(H="decimalExponent")}return Z(Y)?(G+=nt(),void(H="decimalFraction")):ot("numeric",W*Number(G))},decimalFraction:function(){switch(Y){case"e":case"E":return G+=nt(),void(H="decimalExponent")}if(!Z(Y))return ot("numeric",W*Number(G));G+=nt()},decimalExponent:function(){switch(Y){case"+":case"-":return G+=nt(),void(H="decimalExponentSign")}if(Z(Y))return G+=nt(),void(H="decimalExponentInteger");throw dt(nt())},decimalExponentSign:function(){if(Z(Y))return G+=nt(),void(H="decimalExponentInteger");throw dt(nt())},decimalExponentInteger:function(){if(!Z(Y))return ot("numeric",W*Number(G));G+=nt()},hexadecimal:function(){if(J(Y))return G+=nt(),void(H="hexadecimalInteger");throw dt(nt())},hexadecimalInteger:function(){if(!J(Y))return ot("numeric",W*Number(G));G+=nt()},string:function(){switch(Y){case"\\":return nt(),void(G+=function(){switch(rt()){case"b":return nt(),"\b";case"f":return nt(),"\f";case"n":return nt(),"\n";case"r":return nt(),"\r";case"t":return nt(),"\t";case"v":return nt(),"\v";case"0":if(nt(),Z(rt()))throw dt(nt());return"\0";case"x":return nt(),function(){var t="",e=rt();if(!J(e))throw dt(nt());if(t+=nt(),e=rt(),!J(e))throw dt(nt());return t+=nt(),String.fromCodePoint(parseInt(t,16))}();case"u":return nt(),st();case"\n":case"\u2028":case"\u2029":return nt(),"";case"\r":return nt(),"\n"===rt()&&nt(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw dt(nt())}return nt()}());case'"':return q?(nt(),ot("string",G)):void(G+=nt());case"'":return q?void(G+=nt()):(nt(),ot("string",G));case"\n":case"\r":throw dt(nt());case"\u2028":case"\u2029":!function(t){n.warn("JSON5: '"+ft(t)+"' in strings is not valid ECMAScript; consider escaping")}(Y);break;case void 0:throw dt(nt())}G+=nt()},start:function(){switch(Y){case"{":case"[":return ot("punctuator",nt())}H="value"},beforePropertyName:function(){switch(Y){case"$":case"_":return G=nt(),void(H="identifierName");case"\\":return nt(),void(H="identifierNameStartEscape");case"}":return ot("punctuator",nt());case'"':case"'":return q='"'===nt(),void(H="string")}if(Q(Y))return G+=nt(),void(H="identifierName");throw dt(nt())},afterPropertyName:function(){if(":"===Y)return ot("punctuator",nt());throw dt(nt())},beforePropertyValue:function(){H="value"},afterPropertyValue:function(){switch(Y){case",":case"}":return ot("punctuator",nt())}throw dt(nt())},beforeArrayValue:function(){if("]"===Y)return ot("punctuator",nt());H="value"},afterArrayValue:function(){switch(Y){case",":case"]":return ot("punctuator",nt())}throw dt(nt())},end:function(){throw dt(nt())}};function ot(t,e){return{type:t,value:e,line:L,column:j}}function at(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(rt()!==n)throw dt(nt());nt()}}function st(){for(var t="",e=4;e-- >0;){var r=rt();if(!J(r))throw dt(nt());t+=nt()}return String.fromCodePoint(parseInt(t,16))}var ct={start:function(){if("eof"===V.type)throw ht();lt()},beforePropertyName:function(){switch(V.type){case"identifier":case"string":return z=V.value,void(N="afterPropertyName");case"punctuator":return void ut();case"eof":throw ht()}},afterPropertyName:function(){if("eof"===V.type)throw ht();N="beforePropertyValue"},beforePropertyValue:function(){if("eof"===V.type)throw ht();lt()},beforeArrayValue:function(){if("eof"===V.type)throw ht();"punctuator"!==V.type||"]"!==V.value?lt():ut()},afterPropertyValue:function(){if("eof"===V.type)throw ht();switch(V.value){case",":return void(N="beforePropertyName");case"}":ut()}},afterArrayValue:function(){if("eof"===V.type)throw ht();switch(V.value){case",":return void(N="beforeArrayValue");case"]":ut()}},end:function(){}};function lt(){var t;switch(V.type){case"punctuator":switch(V.value){case"{":t={};break;case"[":t=[]}break;case"null":case"boolean":case"numeric":case"string":t=V.value}if(void 0===U)U=t;else{var e=M[M.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,z,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(null!==t&&"object"==typeof t)M.push(t),N=Array.isArray(t)?"beforeArrayValue":"beforePropertyName";else{var r=M[M.length-1];N=null==r?"end":Array.isArray(r)?"afterArrayValue":"afterPropertyValue"}}function ut(){M.pop();var t=M[M.length-1];N=null==t?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}function dt(t){return mt(void 0===t?"JSON5: invalid end of input at "+L+":"+j:"JSON5: invalid character '"+ft(t)+"' at "+L+":"+j)}function ht(){return mt("JSON5: invalid end of input at "+L+":"+j)}function pt(){return mt("JSON5: invalid identifier character at "+L+":"+(j-=5))}function ft(t){var e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){var r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function mt(t){var e=new SyntaxError(t);return e.lineNumber=L,e.columnNumber=j,e}return{parse:function(t,e){F=String(t),N="start",M=[],B=0,L=1,j=0,V=void 0,z=void 0,U=void 0;do{V=et(),ct[N]()}while("eof"!==V.type);return"function"==typeof e?tt({"":U},"",e):U},stringify:function(t,e,r){var n,i,o,a=[],s="",c="";if(null==e||"object"!=typeof e||Array.isArray(e)||(r=e.space,o=e.quote,e=e.replacer),"function"==typeof e)i=e;else if(Array.isArray(e)){n=[];for(var l=0,u=e;l<u.length;l+=1){var d=u[l],h=void 0;"string"==typeof d?h=d:("number"==typeof d||d instanceof String||d instanceof Number)&&(h=String(d)),void 0!==h&&n.indexOf(h)<0&&n.push(h)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),"number"==typeof r?r>0&&(r=Math.min(10,Math.floor(r)),c=" ".substr(0,r)):"string"==typeof r&&(c=r.substr(0,10)),p("",{"":t});function p(t,e){var r=e[t];switch(null!=r&&("function"==typeof r.toJSON5?r=r.toJSON5(t):"function"==typeof r.toJSON&&(r=r.toJSON(t))),i&&(r=i.call(e,t,r)),r instanceof Number?r=Number(r):r instanceof String?r=String(r):r instanceof Boolean&&(r=r.valueOf()),r){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof r?f(r):"number"==typeof r?String(r):"object"==typeof r?Array.isArray(r)?function(t){if(a.indexOf(t)>=0)throw TypeError("Converting circular structure to JSON5");a.push(t);var e=s;s+=c;for(var r,n=[],i=0;i<t.length;i++){var o=p(String(i),t);n.push(void 0!==o?o:"null")}if(0===n.length)r="[]";else if(""===c)r="["+n.join(",")+"]";else{var l=",\n"+s,u=n.join(l);r="[\n"+s+u+",\n"+e+"]"}return a.pop(),s=e,r}(r):function(t){if(a.indexOf(t)>=0)throw TypeError("Converting circular structure to JSON5");a.push(t);var e=s;s+=c;for(var r,i,o=[],l=0,u=n||Object.keys(t);l<u.length;l+=1){var d=u[l],h=p(d,t);if(void 0!==h){var f=m(d)+":";""!==c&&(f+=" "),f+=h,o.push(f)}}if(0===o.length)r="{}";else if(""===c)r="{"+(i=o.join(","))+"}";else{var g=",\n"+s;i=o.join(g),r="{\n"+s+i+",\n"+e+"}"}return a.pop(),s=e,r}(r):void 0}function f(t){for(var e={"'":.1,'"':.2},r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},n="",i=0;i<t.length;i++){var a=t[i];switch(a){case"'":case'"':e[a]++,n+=a;continue;case"\0":if(Z(t[i+1])){n+="\\x00";continue}}if(r[a])n+=r[a];else if(a<" "){var s=a.charCodeAt(0).toString(16);n+="\\x"+("00"+s).substring(s.length)}else n+=a}var c=o||Object.keys(e).reduce((function(t,r){return e[t]<e[r]?t:r}));return c+(n=n.replace(new RegExp(c,"g"),r[c]))+c}function m(t){if(0===t.length)return f(t);var e=String.fromCodePoint(t.codePointAt(0));if(!Q(e))return f(t);for(var r=e.length;r<t.length;r++)if(!K(String.fromCodePoint(t.codePointAt(r))))return f(t);return t}}}}()},26924:function(module,exports,__webpack_require__){var console=__webpack_require__(51266),factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,n,i=t.length;for(r=0;r<i;r+=1)for(var o in n=t[r].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(e.prototype[o]=n[o])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,n=0,i=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(n=0;n<e;n+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,r=createSizedArray(t.length),n=t.length;for(e=0;e<n;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,n){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,n){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var n,i,o,a,s,c,l,u;switch(c=r*(1-e),l=r*(1-(s=6*t-(a=Math.floor(6*t)))*e),u=r*(1-(1-s)*e),a%6){case 0:n=r,i=u,o=c;break;case 1:n=l,i=r,o=c;break;case 2:n=c,i=r,o=u;break;case 3:n=c,i=l,o=r;break;case 4:n=u,i=c,o=r;break;case 5:n=r,i=c,o=l}return[n,i,o]}function RGBtoHSV(t,e,r){var n,i=Math.max(t,e,r),o=Math.min(t,e,r),a=i-o,s=0===i?0:a/i,c=i/255;switch(i){case o:n=0;break;case t:n=e-r+a*(e<r?6:0),n/=6*a;break;case e:n=r-t+2*a,n/=6*a;break;case r:n=t-e+4*a,n/=6*a}return[n,s,c]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+r[t]+r[e]+r[n]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,r=1,n=[],i={onmessage:function(){},postMessage:function(e){t({data:e})}},o={postMessage:function(t){i.onmessage({data:t})}};function a(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(r);return new Worker(n)}return t=e,i}((function(t){if(o.dataManager||(o.dataManager=function(){function t(i,o){var a,s,c,l,u,d,h,p=i.length;for(s=0;s<p;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(l=f.length,c=0;c<l;c+=1)if(f[c].pt.k.i)n(f[c].pt.k);else for(d=f[c].pt.k.length,u=0;u<d;u+=1)f[c].pt.k[u].s&&n(f[c].pt.k[u].s[0]),f[c].pt.k[u].e&&n(f[c].pt.k[u].e[0])}0===a.ty?(a.layers=e(a.refId,o),t(a.layers,o)):4===a.ty?r(a.shapes):5===a.ty&&(0===(h=a).t.a.length&&h.t.p)}}function e(t,e){var r=function(t,e){for(var r=0,n=e.length;r<n;){if(e[r].id===t)return e[r];r+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var e,i,o;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(o=t[e].ks.k.length,i=0;i<o;i+=1)t[e].ks.k[i].s&&n(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&n(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function n(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function i(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var o,a=function(){var t=[4,4,14];function e(t){var e,r,n,i=t.length;for(e=0;e<i;e+=1)5===t[e].ty&&(void 0,n=(r=t[e]).t.d,r.t.d={k:[{s:n,t:0}]})}return function(r){if(i(t,r.v)&&(e(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&e(r.assets[n].layers)}}}(),s=(o=[4,7,99],function(t){if(t.chars&&!i(o,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),c=function(){var t=[5,7,15];function e(t){var e,r,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(r=void 0,"number"==typeof(r=t[e].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(t,r.v)&&(e(r.layers),r.assets)){var n,o=r.assets.length;for(n=0;n<o;n+=1)r.assets[n].layers&&e(r.assets[n].layers)}}}(),l=function(){var t=[4,1,9];function e(t){var r,n,i,o=t.length;for(r=0;r<o;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(i=t[r].c.k.length,n=0;n<i;n+=1)t[r].c.k[n].s&&(t[r].c.k[n].s[0]/=255,t[r].c.k[n].s[1]/=255,t[r].c.k[n].s[2]/=255,t[r].c.k[n].s[3]/=255),t[r].c.k[n].e&&(t[r].c.k[n].e[0]/=255,t[r].c.k[n].e[1]/=255,t[r].c.k[n].e[2]/=255,t[r].c.k[n].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,n=t.length;for(r=0;r<n;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}(),u=function(){var t=[4,4,18];function e(t){var r,n,i;for(r=t.length-1;r>=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(i=t[r].ks.k.length,n=0;n<i;n+=1)t[r].ks.k[n].s&&(t[r].ks.k[n].s[0].c=t[r].closed),t[r].ks.k[n].e&&(t[r].ks.k[n].e[0].c=t[r].closed);else"gr"===t[r].ty&&e(t[r].it)}function r(t){var r,n,i,o,a,s,c=t.length;for(n=0;n<c;n+=1){if((r=t[n]).hasMask){var l=r.masksProperties;for(o=l.length,i=0;i<o;i+=1)if(l[i].pt.k.i)l[i].pt.k.c=l[i].cl;else for(s=l[i].pt.k.length,a=0;a<s;a+=1)l[i].pt.k[a].s&&(l[i].pt.k[a].s[0].c=l[i].cl),l[i].pt.k[a].e&&(l[i].pt.k[a].e[0].c=l[i].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(i(t,e.v)&&(r(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&r(e.assets[n].layers)}}}();var d={completeData:function(r){r.__complete||(l(r),a(r),s(r),c(r),u(r),t(r.layers,r.assets),function(r,n){if(r){var i=0,o=r.length;for(i=0;i<o;i+=1)1===r[i].t&&(r[i].data.layers=e(r[i].data.refId,n),t(r[i].data.layers,n))}}(r.chars,r.assets),r.__complete=!0)}};return d.checkColors=l,d.checkChars=s,d.checkPathProperties=c,d.checkShapes=u,d.completeLayers=t,d}()),o.assetLoader||(o.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,n,i){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=t(a),n(o);else try{o=t(a),n(o)}catch(t){i&&i(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),r+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,r=e.id,i=n[r];n[r]=null,"success"===e.status?i.onComplete(e.payload):i.onError&&i.onError()})}function s(t,e){var i="processId_"+(r+=1);return n[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,r,n){a();var i=s(r,n);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(t,r,n){a();var i=s(r,n);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(t,r,n){a();var i=s(r,n);e.postMessage({type:"complete",animation:t,id:i})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,r){var n="";if(t.e)n=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),n=e+i}else n=r,n+=t.u?t.u:"",n+=t.p;return n}function i(t){var e=0,r=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function o(t){var e={assetData:t},r=n(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var n=t.length;for(r=0;r<n;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var r=n(e,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.src=r;var o={img:i,assetData:e};return o},createImageData:function(e){var r=n(e,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:e};return o},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],n=0;n<r.length;n+=1)r[n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,n=this._cbs[t].length;r<n;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,n-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,r=t.split("\r\n"),n={},i=0,o=0;o<r.length;o+=1)2===(e=r[o].split(":")).length&&(n[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return n}return function(e){for(var r=[],n=0;n<e.length;n+=1){var i=e[n],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(e[n].cm)}catch(r){try{o.payload=t(e[n].cm)}catch(t){o.payload={name:e[n].cm}}}r.push(o)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},n=t.attributes;r.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",r.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:"canvas";var i=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;r.autoplay="false"!==o,r.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,n=this.animationData.layers,i=n.length,o=t.layers,a=o.length;for(r=0;r<a;r+=1)for(e=0;e<i;){if(n[e].id===o[r].id){n[e]=o[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r="number"==typeof t?t:void 0,n="number"==typeof e?e:void 0;this.renderer.updateContainerSize(r,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var n=Number(t);if(isNaN(n)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(n,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,n=t.length;for(r=0;r<n;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,n=0,i=0,o=!0,a=!1;function s(t){for(var r=0,i=t.target;r<n;)e[r].animation===i&&(e.splice(r,1),r-=1,n-=1,i.isPaused||u()),r+=1}function c(t,r){if(!t)return null;for(var i=0;i<n;){if(e[i].elem===t&&null!==e[i].elem)return e[i].animation;i+=1}var o=new AnimationItem;return d(o,t),o.setData(t,r),o}function l(){i+=1,f()}function u(){i-=1}function d(t,r){t.addEventListener("destroy",s),t.addEventListener("_active",l),t.addEventListener("_idle",u),e.push({elem:r,animation:t}),n+=1}function h(t){var s,c=t-r;for(s=0;s<n;s+=1)e[s].animation.advanceTime(c);r=t,i&&!a?window.requestAnimationFrame(h):o=!0}function p(t){r=t,window.requestAnimationFrame(h)}function f(){!a&&i&&o&&(window.requestAnimationFrame(p),o=!1)}return t.registerAnimation=c,t.loadAnimation=function(t){var e=new AnimationItem;return d(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setSpeed(t,r)},t.setDirection=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var n,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(n=0;n<o;n+=1)r&&i[n].setAttribute("data-bm-type",r),c(i[n],t);if(e&&0===o){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),c(s,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,i){var o;for(o=0;o<n;o+=1)e[o].animation.goToAndStop(t,r,i)},t.destroy=function(t){var r;for(r=n-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,f()},t.setVolume=function(t,r){var i;for(i=0;i<n;i+=1)e[i].animation.setVolume(t,r)},t.mute=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.mute(t)},t.unmute=function(t){var r;for(r=0;r<n;r+=1)e[r].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,r=e.length,n=[];for(t=0;t<r;t+=1)n.push(e[t].animation);return n},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,r,n,i,o){var a=o||("bez_"+t+"_"+r+"_"+n+"_"+i).replace(/\./g,"p");if(e[a])return e[a];var s=new l([t,r,n,i]);return e[a]=s,s}},e={},r=.1,n="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function o(t,e){return 3*e-6*t}function a(t){return 3*t}function s(t,e,r){return((i(e,r)*t+o(e,r))*t+a(e))*t}function c(t,e,r){return 3*i(e,r)*t*t+2*o(e,r)*t+a(e)}function l(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(t){var e=this._p[0],r=this._p[1],n=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===r&&n===i?t:0===t?0:1===t?1:s(this._getTForX(t),r,i)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&r===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=s(n*r,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],i=this._mSampleValues,o=0,a=1;10!==a&&i[a]<=t;++a)o+=r;var l=o+(t-i[--a])/(i[a+1]-i[a])*r,u=c(l,e,n);return u>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=c(e,r,n);if(0===o)return e;e-=(s(e,r,n)-t)/o}return e}(t,l,e,n):0===u?l:function(t,e,r,n,i){var o,a,c=0;do{(o=s(a=e+(r-e)/2,n,i)-t)>0?r=a:e=a}while(Math.abs(o)>1e-7&&++c<10);return a}(t,o,o+r,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var n=0,i=t,o=createSizedArray(i);return{newElement:function(){return n?o[n-=1]:e()},release:function(t){n===i&&(o=pooling.double(o),i*=2),r&&r(t),o[n]=t,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,r,n,i,o){var a=t*n+e*i+r*o-i*n-o*t-r*e;return a>-.001&&a<.001}var r=function(t,e,r,n){var i,o,a,s,c,l,u=getDefaultCurveSegments(),d=0,h=[],p=[],f=bezierLengthPool.newElement();for(a=r.length,i=0;i<u;i+=1){for(c=i/(u-1),l=0,o=0;o<a;o+=1)s=bmPow(1-c,3)*t[o]+3*bmPow(1-c,2)*c*r[o]+3*(1-c)*bmPow(c,2)*n[o]+bmPow(c,3)*e[o],h[o]=s,null!==p[o]&&(l+=bmPow(h[o]-p[o],2)),p[o]=h[o];l&&(d+=l=bmSqrt(l)),f.percents[i]=c,f.lengths[i]=d}return f.addedLength=d,f};function n(t){this.segmentLength=0,this.points=new Array(t)}function i(t,e){this.partialLength=t,this.point=e}var o,a=(o={},function(t,r,a,s){var c=(t[0]+"_"+t[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[c]){var l,u,d,h,p,f,m,g=getDefaultCurveSegments(),v=0,y=null;2===t.length&&(t[0]!==r[0]||t[1]!==r[1])&&e(t[0],t[1],r[0],r[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(g=2);var b=new n(g);for(d=a.length,l=0;l<g;l+=1){for(m=createSizedArray(d),p=l/(g-1),f=0,u=0;u<d;u+=1)h=bmPow(1-p,3)*t[u]+3*bmPow(1-p,2)*p*(t[u]+a[u])+3*(1-p)*bmPow(p,2)*(r[u]+s[u])+bmPow(p,3)*r[u],m[u]=h,null!==y&&(f+=bmPow(m[u]-y[u],2));v+=f=bmSqrt(f),b.points[l]=new i(f,m),y=m}b.segmentLength=v,o[c]=b}return o[c]});function s(t,e){var r=e.percents,n=e.lengths,i=r.length,o=bmFloor((i-1)*t),a=t*e.addedLength,s=0;if(o===i-1||0===o||a===n[o])return r[o];for(var c=n[o]>a?-1:1,l=!0;l;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),l=!1):o+=c,o<0||o>=i-1){if(o===i-1)return r[o];l=!1}return r[o]+(r[o+1]-r[o])*s}var c=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,n=segmentsLengthPool.newElement(),i=t.c,o=t.v,a=t.o,s=t.i,c=t._length,l=n.lengths,u=0;for(e=0;e<c-1;e+=1)l[e]=r(o[e],o[e+1],a[e],s[e+1]),u+=l[e].addedLength;return i&&c&&(l[e]=r(o[e],o[0],a[e],s[0]),u+=l[e].addedLength),n.totalLength=u,n},getNewSegment:function(e,r,n,i,o,a,l){o<0?o=0:o>1&&(o=1);var u,d=s(o,l),h=s(a=a>1?1:a,l),p=e.length,f=1-d,m=1-h,g=f*f*f,v=d*f*f*3,y=d*d*f*3,b=d*d*d,w=f*f*m,_=d*f*m+f*d*m+f*f*h,E=d*d*m+f*d*h+d*f*h,x=d*d*h,A=f*m*m,C=d*m*m+f*h*m+f*m*h,S=d*h*m+f*h*h+d*m*h,D=d*h*h,O=m*m*m,P=h*m*m+m*h*m+m*m*h,I=h*h*m+m*h*h+h*m*h,k=h*h*h;for(u=0;u<p;u+=1)c[4*u]=t.round(1e3*(g*e[u]+v*n[u]+y*i[u]+b*r[u]))/1e3,c[4*u+1]=t.round(1e3*(w*e[u]+_*n[u]+E*i[u]+x*r[u]))/1e3,c[4*u+2]=t.round(1e3*(A*e[u]+C*n[u]+S*i[u]+D*r[u]))/1e3,c[4*u+3]=t.round(1e3*(O*e[u]+P*n[u]+I*i[u]+k*r[u]))/1e3;return c},getPointInSegment:function(e,r,n,i,o,a){var c=s(o,a),l=1-c;return[t.round(1e3*(l*l*l*e[0]+(c*l*l+l*c*l+l*l*c)*n[0]+(c*c*l+l*c*c+c*l*c)*i[0]+c*c*c*r[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(c*l*l+l*c*l+l*l*c)*n[1]+(c*c*l+l*c*c+c*l*c)*i[1]+c*c*c*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(r,n,i,o,a,s,c,l,u){if(0===i&&0===s&&0===u)return e(r,n,o,a,c,l);var d,h=t.sqrt(t.pow(o-r,2)+t.pow(a-n,2)+t.pow(s-i,2)),p=t.sqrt(t.pow(c-r,2)+t.pow(l-n,2)+t.pow(u-i,2)),f=t.sqrt(t.pow(c-o,2)+t.pow(l-a,2)+t.pow(u-s,2));return(d=h>p?h>f?h-p-f:f-p-h:f>p?f-p-h:p-h-f)>-1e-4&&d<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var o,a,s,c,l,u,d,h,p,f=e.lastIndex,m=f,g=this.keyframes.length-1,v=!0;v;){if(o=this.keyframes[m],a=this.keyframes[m+1],m===g-1&&t>=a.t-i){o.h&&(o=a),f=0;break}if(a.t-i>t){f=m;break}m<g-1?m+=1:(f=0,v=!1)}s=this.keyframesMetadata[m]||{};var y,b,w,_,E,x,A,C,S,D,O=a.t-i,P=o.t-i;if(o.to){s.bezierData||(s.bezierData=bez.buildBezierData(o.s,a.s||o.e,o.to,o.ti));var I=s.bezierData;if(t>=O||t<P){var k=t>=O?I.points.length-1:0;for(l=I.points[k].point.length,c=0;c<l;c+=1)r[c]=I.points[k].point[c]}else{s.__fnct?p=s.__fnct:(p=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,s.__fnct=p),u=p((t-P)/(O-P));var T,R=I.segmentLength*u,F=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(h=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,v=!0,d=I.points.length;v;){if(F+=I.points[h].partialLength,0===R||0===u||h===I.points.length-1){for(l=I.points[h].point.length,c=0;c<l;c+=1)r[c]=I.points[h].point[c];break}if(R>=F&&R<F+I.points[h+1].partialLength){for(T=(R-F)/I.points[h+1].partialLength,l=I.points[h].point.length,c=0;c<l;c+=1)r[c]=I.points[h].point[c]+(I.points[h+1].point[c]-I.points[h].point[c])*T;break}h<d-1?h+=1:v=!1}e._lastPoint=h,e._lastAddedLength=F-I.points[h].partialLength,e._lastKeyframeIndex=m}}else{var N,M,B,L,j;if(g=o.s.length,y=a.s||o.e,this.sh&&1!==o.h)if(t>=O)r[0]=y[0],r[1]=y[1],r[2]=y[2];else if(t<=P)r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2];else{b=r,w=function(t,e,r){var n,i,o,a,s,c=[],l=t[0],u=t[1],d=t[2],h=t[3],p=e[0],f=e[1],m=e[2],g=e[3];return(i=l*p+u*f+d*m+h*g)<0&&(i=-i,p=-p,f=-f,m=-m,g=-g),1-i>1e-6?(n=Math.acos(i),o=Math.sin(n),a=Math.sin((1-r)*n)/o,s=Math.sin(r*n)/o):(a=1-r,s=r),c[0]=a*l+s*p,c[1]=a*u+s*f,c[2]=a*d+s*m,c[3]=a*h+s*g,c}(n(o.s),n(y),(t-P)/(O-P)),_=w[0],E=w[1],x=w[2],A=w[3],C=Math.atan2(2*E*A-2*_*x,1-2*E*E-2*x*x),S=Math.asin(2*_*E+2*x*A),D=Math.atan2(2*_*A-2*E*x,1-2*_*_-2*x*x),b[0]=C/degToRads,b[1]=S/degToRads,b[2]=D/degToRads}else for(m=0;m<g;m+=1)1!==o.h&&(t>=O?u=1:t<P?u=0:(o.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[m]?p=s.__fnct[m]:(N=void 0===o.o.x[m]?o.o.x[0]:o.o.x[m],M=void 0===o.o.y[m]?o.o.y[0]:o.o.y[m],B=void 0===o.i.x[m]?o.i.x[0]:o.i.x[m],L=void 0===o.i.y[m]?o.i.y[0]:o.i.y[m],p=BezierFactory.getBezierEasing(N,M,B,L).get,s.__fnct[m]=p)):s.__fnct?p=s.__fnct:(N=o.o.x,M=o.o.y,B=o.i.x,L=o.i.y,p=BezierFactory.getBezierEasing(N,M,B,L).get,o.keyframeMetadata=p),u=p((t-P)/(O-P)))),y=a.s||o.e,j=1===o.h?o.s[m]:o.s[m]+(y[m]-o.s[m])*u,"multidimensional"===this.propType?r[m]=j:r=j}return e.lastIndex=f,r}function n(t){var e=t[0]*degToRads,r=t[1]*degToRads,n=t[2]*degToRads,i=Math.cos(e/2),o=Math.cos(r/2),a=Math.cos(n/2),s=Math.sin(e/2),c=Math.sin(r/2),l=Math.sin(n/2);return[s*c*a+i*o*l,s*o*a+i*c*l,i*c*a-s*o*l,i*o*a-s*c*l]}function i(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function o(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)r=t[n]*this.mult,e(this.v[n]-r)>1e-5&&(this.v[n]=r,this._mdf=!0),n+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(t,e,r,n){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=o,this.addEffect=s}function l(t,e,r,n){var i;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var c=e.k.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),this.vel=createTypedArray("float32",c),i=0;i<c;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=o,this.addEffect=s}function u(e,n,c,l){this.propType="unidimensional",this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=c||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=a,this.setVValue=o,this.interpolateValue=r,this.effectsSequence=[i.bind(this)],this.addEffect=s}function d(e,n,c,l){var u;this.propType="multidimensional";var d,h,p,f,m=n.k.length;for(u=0;u<m-1;u+=1)n.k[u].to&&n.k[u].s&&n.k[u+1]&&n.k[u+1].s&&(d=n.k[u].s,h=n.k[u+1].s,p=n.k[u].to,f=n.k[u].ti,(2===d.length&&(d[0]!==h[0]||d[1]!==h[1])&&bez.pointOnLine2D(d[0],d[1],h[0],h[1],d[0]+p[0],d[1]+p[1])&&bez.pointOnLine2D(d[0],d[1],h[0],h[1],h[0]+f[0],h[1]+f[1])||3===d.length&&(d[0]!==h[0]||d[1]!==h[1]||d[2]!==h[2])&&bez.pointOnLine3D(d[0],d[1],d[2],h[0],h[1],h[2],d[0]+p[0],d[1]+p[1],d[2]+p[2])&&bez.pointOnLine3D(d[0],d[1],d[2],h[0],h[1],h[2],h[0]+f[0],h[1]+f[1],h[2]+f[2]))&&(n.k[u].to=null,n.k[u].ti=null),d[0]===h[0]&&d[1]===h[1]&&0===p[0]&&0===p[1]&&0===f[0]&&0===f[1]&&(2===d.length||d[2]===h[2]&&0===p[2]&&0===f[2])&&(n.k[u].to=null,n.k[u].ti=null));this.effectsSequence=[i.bind(this)],this.data=n,this.keyframes=n.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=c||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=a,this.setVValue=o,this.interpolateValue=r,this.frameId=-1;var g=n.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),u=0;u<g;u+=1)this.v[u]=t,this.pv[u]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=s}return{getProp:function(t,e,r,n,i){var o;if(e.k.length)if("number"==typeof e.k[0])o=new l(t,e,n,i);else switch(r){case 0:o=new u(t,e,n,i);break;case 1:o=new d(t,e,n,i)}else o=new c(t,e,n,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,r,n,i){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!i)&&(o[n]=pointPool.newElement()),o[n][0]=t,o[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,n,i,o,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(r,n,"o",a,s),this.setXYAt(i,o,"i",a,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,n=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),i=1);var o,a=this._length-1,s=this._length;for(o=i;o<s;o+=1)t.setTripleAt(e[a][0],e[a][1],n[a][0],n[a][1],r[a][0],r[a][1],o,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,r=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(r.setLength(n),r.c=t.c,e=0;e<n;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var n,i,o,a,s,c,l,u,d,h=r.lastIndex,p=this.keyframes;if(t<p[0].t-this.offsetTime)n=p[0].s[0],o=!0,h=0;else if(t>=p[p.length-1].t-this.offsetTime)n=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],o=!0;else{for(var f,m,g,v=h,y=p.length-1,b=!0;b&&(f=p[v],!((m=p[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},h=v,!(o=1===f.h)){if(t>=m.t-this.offsetTime)u=1;else if(t<f.t-this.offsetTime)u=0;else{var w;g.__fnct?w=g.__fnct:(w=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=w),u=w((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(c=e._length,l=n.i[0].length,r.lastIndex=h,a=0;a<c;a+=1)for(s=0;s<l;s+=1)d=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*u,e.i[a][s]=d,d=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*u,e.o[a][s]=d,d=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*u,e.v[a][s]=d}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<r&&e<r||i>n&&e>n)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function i(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,n=t._length;for(r=0;r<n;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(e=0;e<r;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?e.pt.k:e.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(e,i,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=o,a.prototype.setVValue=i,a.prototype.addEffect=s,c.prototype.getValue=o,c.prototype.interpolateShape=e,c.prototype.setVValue=i,c.prototype.addEffect=s;var l=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=r-i,a.v[1][0]=o?e+n:e-n,a.v[1][1]=r,a.v[2][0]=e,a.v[2][1]=r+i,a.v[3][0]=o?e-n:e+n,a.v[3][1]=r,a.i[0][0]=o?e-n*t:e+n*t,a.i[0][1]=r-i,a.i[1][0]=o?e+n:e-n,a.i[1][1]=r-i*t,a.i[2][0]=o?e+n*t:e-n*t,a.i[2][1]=r+i,a.i[3][0]=o?e-n:e+n,a.i[3][1]=r+i*t,a.o[0][0]=o?e+n*t:e-n*t,a.o[0][1]=r-i,a.o[1][0]=o?e+n:e-n,a.o[1][1]=r+i*t,a.o[2][0]=o?e-n*t:e+n*t,a.o[2][1]=r+i,a.o[3][0]=o?e-n:e+n,a.o[3][1]=r-i*t}},extendPrototype([DynamicPropertyContainer],e),e}(),u=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,n,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,a=!0,s=this.or.v,c=this.ir.v,l=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*i),h=2*Math.PI*c/(2*i),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){r=a?l:u,n=a?d:h;var m=(e=a?s:c)*Math.cos(p),g=e*Math.sin(p),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*n*r*f,g-y*n*r*f,m+v*n*r*f,g+y*n*r*f,t,!0),a=!a,p+=o*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,n=this.or.v,i=this.os.v,o=2*Math.PI*n/(4*e),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var c=n*Math.cos(a),l=n*Math.sin(a),u=0===c&&0===l?0:l/Math.sqrt(c*c+l*l),d=0===c&&0===l?0:-c/Math.sqrt(c*c+l*l);c+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(c,l,c-u*o*i*s,l-d*o*i*s,c+u*o*i*s,l+d*o*i*s,t,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,i=bmMin(r,n,this.r.v),o=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+i,t+r,e-n+o,0,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-o,t+r,e+n-i,1,!0),0!==i?(this.v.setTripleAt(t+r-i,e+n,t+r-i,e+n,t+r-o,e+n,2,!0),this.v.setTripleAt(t-r+i,e+n,t-r+o,e+n,t-r+i,e+n,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-i,t-r,e+n-o,4,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+o,t-r,e-n+i,5,!0),this.v.setTripleAt(t-r+i,e-n,t-r+i,e-n,t-r+o,e-n,6,!0),this.v.setTripleAt(t+r-i,e-n,t+r-o,e-n,t+r-i,e-n,7,!0)):(this.v.setTripleAt(t-r,e+n,t-r+o,e+n,t-r,e+n,2),this.v.setTripleAt(t-r,e-n,t-r,e-n+o,t-r,e-n,3))):(this.v.setTripleAt(t+r,e-n+i,t+r,e-n+o,t+r,e-n+i,0,!0),0!==i?(this.v.setTripleAt(t+r-i,e-n,t+r-i,e-n,t+r-o,e-n,1,!0),this.v.setTripleAt(t-r+i,e-n,t-r+o,e-n,t-r+i,e-n,2,!0),this.v.setTripleAt(t-r,e-n+i,t-r,e-n+i,t-r,e-n+o,3,!0),this.v.setTripleAt(t-r,e+n-i,t-r,e+n-o,t-r,e+n-i,4,!0),this.v.setTripleAt(t-r+i,e+n,t-r+i,e+n,t-r+o,e+n,5,!0),this.v.setTripleAt(t+r-i,e+n,t+r-o,e+n,t+r-i,e+n,6,!0),this.v.setTripleAt(t+r,e+n-i,t+r,e+n-i,t+r,e+n-o,7,!0)):(this.v.setTripleAt(t-r,e-n,t-r+o,e-n,t-r,e-n,1,!0),this.v.setTripleAt(t-r,e+n,t-r,e+n-o,t-r,e+n,2,!0),this.v.setTripleAt(t+r,e+n,t+r-o,e+n,t+r,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}();return{getShapeProp:function(t,e,r){var n;return 3===r||4===r?n=(3===r?e.pt:e.ks).k.length?new c(t,e,r):new a(t,e,r):5===r?n=new d(t,e):6===r?n=new l(t,e):7===r&&(n=new u(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return c}}}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,n=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1)}function s(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1)}function c(r){if(0===r)return this;var n=t(r),i=e(r);return this._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function u(t,e){return this.shear(r(t),r(e))}function d(n,i){var o=t(i),a=e(i);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function h(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function p(t,e,r,n,i,o,a,s,c,l,u,d,h,p,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=n,this.props[4]=i,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=c,this.props[9]=l,this.props[10]=u,this.props[11]=d,this.props[12]=h,this.props[13]=p,this.props[14]=f,this.props[15]=m,this}function f(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function m(t,e,r,n,i,o,a,s,c,l,u,d,h,p,f,m){var g=this.props;if(1===t&&0===e&&0===r&&0===n&&0===i&&1===o&&0===a&&0===s&&0===c&&0===l&&1===u&&0===d)return g[12]=g[12]*t+g[15]*h,g[13]=g[13]*o+g[15]*p,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],w=g[3],_=g[4],E=g[5],x=g[6],A=g[7],C=g[8],S=g[9],D=g[10],O=g[11],P=g[12],I=g[13],k=g[14],T=g[15];return g[0]=v*t+y*i+b*c+w*h,g[1]=v*e+y*o+b*l+w*p,g[2]=v*r+y*a+b*u+w*f,g[3]=v*n+y*s+b*d+w*m,g[4]=_*t+E*i+x*c+A*h,g[5]=_*e+E*o+x*l+A*p,g[6]=_*r+E*a+x*u+A*f,g[7]=_*n+E*s+x*d+A*m,g[8]=C*t+S*i+D*c+O*h,g[9]=C*e+S*o+D*l+O*p,g[10]=C*r+S*a+D*u+O*f,g[11]=C*n+S*s+D*d+O*m,g[12]=P*t+I*i+k*c+T*h,g[13]=P*e+I*o+k*l+T*p,g[14]=P*r+I*a+k*u+T*f,g[15]=P*n+I*s+k*d+T*m,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function y(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function _(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function E(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function x(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function A(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,n=-this.props[4]/t,i=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new Matrix;return s.props[0]=e,s.props[1]=r,s.props[4]=n,s.props[5]=i,s.props[12]=o,s.props[13]=a,s}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function S(t){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n[e]=C(t[e]);return n}function D(t,e,r){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=r[0],n[5]=r[1];else{var i=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],c=this.props[12],l=this.props[13];n[0]=t[0]*i+t[1]*a+c,n[1]=t[0]*o+t[1]*s+l,n[2]=e[0]*i+e[1]*a+c,n[3]=e[0]*o+e[1]*s+l,n[4]=r[0]*i+r[1]*a+c,n[5]=r[0]*o+r[1]*s+l}return n}function O(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function P(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function I(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=n(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function k(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function T(){var t=this.props;return"matrix("+k(t[0])+","+k(t[1])+","+k(t[4])+","+k(t[5])+","+k(t[12])+","+k(t[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=c,this.skew=u,this.skewFromAxis=d,this.shear=l,this.scale=h,this.setTransform=p,this.translate=f,this.transform=m,this.applyToPoint=w,this.applyToX=_,this.applyToY=E,this.applyToZ=x,this.applyToPointArray=O,this.applyToTriplePoints=D,this.applyToPointStringified=P,this.toCSS=I,this.to2dCSS=T,this.clone=y,this.cloneFromProps=b,this.equals=v,this.inversePoints=S,this.inversePoint=C,this.getInverseMatrix=A,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var n=e[r].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.10.1";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,n){return new e[t](r,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,n,i){var o=[];e<=1?o.push({s:t,e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var a,s,c=[],l=o.length;for(a=0;a<l;a+=1){var u,d;(s=o[a]).e*i<n||s.s*i>n+r||(u=s.s*i<=n?0:(s.s*i-n)/r,d=s.e*i>=n+r?1:(s.e*i-n)/r,c.push([u,d]))}return c.length||c.push([0,0]),c},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,n,i;if(this._mdf||t){var o=this.o.v%360/360;if(o<0&&(o+=1),(e=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(r=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var s,c,l,u,d,h=this.shapes.length,p=0;if(r===e)for(i=0;i<h;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(i=0;i<h;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<h;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(c=(n=f.shape.paths)._length,d=0,!f.shape._mdf&&f.pathsData.length)d=f.totalShapeLength;else{for(l=this.releasePathsData(f.pathsData),s=0;s<c;s+=1)u=bez.getSegmentsLength(n.shapes[s]),l.push(u),d+=u.totalLength;f.totalShapeLength=d,f.pathsData=l}p+=d,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=e,b=r,w=0;for(i=h-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&h>1?(v=this.calculateShapeEdges(e,r,f.totalShapeLength,w,p),w+=f.totalShapeLength):v=[[y,b]],c=v.length,s=0;s<c;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var E=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],E)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,n,i,o,a){i.setXYAt(e[0],e[1],"o",o),i.setXYAt(r[0],r[1],"i",o+1),a&&i.setXYAt(t[0],t[1],"v",o),i.setXYAt(n[0],n[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,n){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),n&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var n,i,o,a,s,c,l,u,d=t.pathsData,h=t.shape.paths.shapes,p=t.shape.paths._length,f=0,m=[],g=!0;for(r?(s=r._length,u=r._length):(r=shapePool.newElement(),s=0,u=0),m.push(r),n=0;n<p;n+=1){for(c=d[n].lengths,r.c=h[n].c,o=h[n].c?c.length:c.length+1,i=1;i<o;i+=1)if(f+(a=c[i-1]).addedLength<e.s)f+=a.addedLength,r.c=!1;else{if(f>e.e){r.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(h[n].v[i-1],h[n].o[i-1],h[n].i[i],h[n].v[i],r,s,g),g=!1):(l=bez.getNewSegment(h[n].v[i-1],h[n].v[i],h[n].o[i-1],h[n].i[i],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1),f+=a.addedLength,s+=1}if(h[n].c&&c.length){if(a=c[i-1],f<=e.e){var v=c[i-1].addedLength;e.s<=f&&e.e>=f+v?(this.addSegment(h[n].v[i-1],h[n].o[i-1],h[n].i[0],h[n].v[0],r,s,g),g=!1):(l=bez.getNewSegment(h[n].v[i-1],h[n].v[0],h[n].o[i-1],h[n].i[0],(e.s-f)/v,(e.e-f)/v,c[i-1]),this.addSegmentFromArray(l,r,s,g),g=!1,r.c=!1)}else r.c=!1;f+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[u][0],r.v[u][1],"i",u),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),f>e.e)break;n<p-1&&(r=shapePool.newElement(),g=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,n=[0,0],i=t._length,o=0;for(o=0;o<i;o+=1)n[0]+=t.v[o][0],n[1]+=t.v[o][1];n[0]/=i,n[1]/=i;var a,s,c,l,u,d,h=shapePool.newElement();for(h.c=t.c,o=0;o<i;o+=1)a=t.v[o][0]+(n[0]-t.v[o][0])*r,s=t.v[o][1]+(n[1]-t.v[o][1])*r,c=t.o[o][0]+(n[0]-t.o[o][0])*-r,l=t.o[o][1]+(n[1]-t.o[o][1])*-r,u=t.i[o][0]+(n[0]-t.i[o][0])*-r,d=t.i[o][1]+(n[1]-t.i[o][1])*-r,h.setTripleAt(a,s,c,l,u,d,o);return h},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,c=this.amount.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,i=e.or.k.length;for(n=0;n<i;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(n=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],i=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[0]=o.getValueAtTime(o.keyframes[0].t/r,0),i[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(n=[o.pv,a.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),i[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else n=i=t;this.v.rotate(-Math.atan2(n[1]-i[1],n[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,n){return new e(t,r,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(0===t)return[];var n=e*e-4*t*r;if(n<0)return[];var i=-e/(2*t);if(0===n)return[i];var o=Math.sqrt(n)/(2*t);return[i-o,i+o]}function polynomialCoefficients(t,e,r,n){return[3*e-t-3*r+n,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,n,i){i&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),i&&pointEqual(r,n)&&(r=lerpPoint(t,n,2/3));var o=polynomialCoefficients(t[0],e[0],r[0],n[0]),a=polynomialCoefficients(t[1],e[1],r[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[t,e,r,n]}function extrema(t,e){var r=t.points[0][e],n=t.points[t.points.length-1][e];if(r>n){var i=n;n=r,r=i}for(var o=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=t.point(o[a])[e];s<r?r=s:s>n&&(n=s)}return{min:r,max:n}}function intersectData(t,e,r){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,n,i,o){if(boxIntersect(t,e))if(r>=o||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n)i.push([t.t,e.t]);else{var a=splitData(t),s=splitData(e);intersectsImpl(a[0],s[0],r+1,n,i,o),intersectsImpl(a[0],s[1],r+1,n,i,o),intersectsImpl(a[1],s[0],r+1,n,i,o),intersectsImpl(a[1],s[1],r+1,n,i,o)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,n){var i=[t[0],t[1],1],o=[e[0],e[1],1],a=[r[0],r[1],1],s=[n[0],n[1],1],c=crossProduct(crossProduct(i,o),crossProduct(a,s));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,n,i,o,a){var s=r-Math.PI/2,c=r+Math.PI/2,l=e[0]+Math.cos(r)*n*i,u=e[1]-Math.sin(r)*n*i;t.setTripleAt(l,u,l+Math.cos(s)*o,u-Math.sin(s)*o,l+Math.cos(c)*a,u-Math.sin(c)*a,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],n=.5*-Math.PI;return[Math.cos(n)*r[0]-Math.sin(n)*r[1],Math.sin(n)*r[0]+Math.cos(n)*r[1]]}function getProjectingAngle(t,e){var r=0===e?t.length()-1:e-1,n=(e+1)%t.length(),i=getPerpendicularVector(t.v[r],t.v[n]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(t,e,r,n,i,o,a){var s=getProjectingAngle(e,r),c=e.v[r%e._length],l=e.v[0===r?e._length-1:r-1],u=e.v[(r+1)%e._length],d=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0,h=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0;setPoint(t,e.v[r%e._length],s,a,n,h/(2*(i+1)),d/(2*(i+1)),o)}function zigZagSegment(t,e,r,n,i,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),c=2===i?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(s);setPoint(t,e.point(s),l,o,r,c/(2*(n+1)),c/(2*(n+1)),i),o=-o}return o}function linearOffset(t,e,r){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,r),polarOffset(e,n,r)]}function offsetSegment(t,e){var r,n,i,o,a,s,c;r=(c=linearOffset(t.points[0],t.points[1],e))[0],n=c[1],i=(c=linearOffset(t.points[1],t.points[2],e))[0],o=c[1],a=(c=linearOffset(t.points[2],t.points[3],e))[0],s=c[1];var l=lineIntersection(r,n,i,o);null===l&&(l=n);var u=lineIntersection(a,s,i,o);return null===u&&(u=a),new PolynomialBezier(r,l,u,s)}function joinLines(t,e,r,n,i){var o=e.points[3],a=r.points[0];if(3===n)return o;if(pointEqual(o,a))return o;if(2===n){var s=-e.tangentAngle(1),c=-r.tangentAngle(0)+Math.PI,l=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=l?pointDistance(l,o):pointDistance(o,a)/2,d=polarOffset(o,s,2*u*roundCorner);return t.setXYAt(d[0],d[1],"o",t.length()-1),d=polarOffset(a,c,2*u*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],t.length()),a}var h=lineIntersection(pointEqual(o,e.points[2])?e.points[0]:e.points[2],o,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return h&&pointDistance(h,o)<i?(t.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],t.length()),h):o}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),n=e.slice(),i=getIntersection(t[t.length-1],e[0]);return i&&(r[t.length-1]=t[t.length-1].split(i[0])[0],n[0]=e[0].split(i[1])[1]),t.length>1&&e.length>1&&(i=getIntersection(t[0],e[e.length-1]))?[[t[0].split(i[0])[0]],[e[e.length-1].split(i[1])[1]]]:[r,n]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,n,i,o,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return r=(i=t.split(a[0]))[0],n=i[1],[offsetSegment(r,e),offsetSegment(n,e)];r=(i=t.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(i=i[1].split(s))[0],n=i[1],[offsetSegment(r,e),offsetSegment(o,e),offsetSegment(n,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",n="normal",i=e.length,o=0;o<i;o+=1)switch(e[o].toLowerCase()){case"italic":n="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:n,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,r,n,i,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-i),c=n.s.v[1]+(1-n.s.v[1])*(1-i);t.translate(n.p.v[0]*a*i,n.p.v[1]*a*i,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*i),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),r.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),r.scale(o?1/s:s,o?1/c:c),r.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,n){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,n,i,o,a=!1;if(this._mdf||t){var s,c=Math.ceil(this.c.v);if(this._groups.length<c){for(;this._groups.length<c;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<c,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var u=this.elemsData[n].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}o+=1}this._currentCopies=c;var h=this.o.v,p=h%1,f=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,w=0;if(h>0){for(;w<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),w+=p)}else if(h<0){for(;w>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),w-=p)}for(n=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(r=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==w){for((0!==n&&1===i||n!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)r[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)r[y]=this.matrix.props[y];w+=1,o-=1,n+=i}}else for(o=this._currentCopies,n=0,i=1;o;)r=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,n+=i;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,n=shapePool.newElement();n.c=t.c;var i,o,a,s,c,l,u,d,h,p,f,m,g=t._length,v=0;for(r=0;r<g;r+=1)i=t.v[r],a=t.o[r],o=t.i[r],i[0]===a[0]&&i[1]===a[1]&&i[0]===o[0]&&i[1]===o[1]?0!==r&&r!==g-1||t.c?(s=0===r?t.v[g-1]:t.v[r-1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,e)/c:0,u=f=i[0]+(s[0]-i[0])*l,d=m=i[1]-(i[1]-s[1])*l,h=u-(u-i[0])*roundCorner,p=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,h,p,f,m,v),v+=1,s=r===g-1?t.v[0]:t.v[r+1],l=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,e)/c:0,u=h=i[0]+(s[0]-i[0])*l,d=p=i[1]+(s[1]-i[1])*l,f=u-(u-i[0])*roundCorner,m=d-(d-i[1])*roundCorner,n.setTripleAt(u,d,h,p,f,m,v),v+=1):(n.setTripleAt(i[0],i[1],a[0],a[1],o[0],o[1],v),v+=1):(n.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],v),v+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,c=this.rd.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var n=Math.sqrt(r);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),i=lerpPoint(e,r,t),o=lerpPoint(r,n,t),a=lerpPoint(i,o,t);return[new PolynomialBezier(this.points[0],e,i,a,!0),new PolynomialBezier(a,o,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){void 0===e&&(e=2),void 0===r&&(r=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,r),n},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,r,n){var i=t._length,o=shapePool.newElement();if(o.c=t.c,t.c||(i-=1),0===i)return o;var a=-1,s=PolynomialBezier.shapeSegment(t,0);zigZagCorner(o,t,0,e,r,n,a);for(var c=0;c<i;c+=1)a=zigZagSegment(o,s,e,r,n,-a),s=c!==i-1||t.c?PolynomialBezier.shapeSegment(t,(c+1)%i):null,zigZagCorner(o,t,c+1,e,r,n,a);return o},ZigZagModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,c=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],c,l,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,r,n){var i=shapePool.newElement();i.c=t.c;var o,a,s,c=t.length();t.c||(c-=1);var l=[];for(o=0;o<c;o+=1)s=PolynomialBezier.shapeSegment(t,o),l.push(offsetSegmentSplit(s,e));if(!t.c)for(o=c-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(t,o),l.push(offsetSegmentSplit(s,e));l=pruneIntersections(l);var u=null,d=null;for(o=0;o<l.length;o+=1){var h=l[o];for(d&&(u=joinLines(i,d,h[0],r,n)),d=h[h.length-1],a=0;a<h.length;a+=1)s=h[a],u&&pointEqual(s.points[0],u)?i.setXYAt(s.points[1][0],s.points[1][1],"o",i.length()-1):i.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],i.length()),i.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],i.length()),u=s.points[3]}return l.length&&joinLines(i,d,l[0][0],r,n),i},OffsetPathModifier.prototype.processShapes=function(t){var e,r,n,i,o,a,s=this.shapes.length,c=this.amount.v,l=this.miterLimit.v,u=this.lineJoin;if(0!==c)for(r=0;r<s;r+=1){if(a=(o=this.shapes[r]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,n=0;n<i;n+=1)a.addShape(this.processPath(e[n],c,u,l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],n=[65039,8205];function i(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var n=createTag("span");n.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(n),document.body.appendChild(r);var i=n.offsetWidth;return n.style.fontFamily=function(t){var e,r=t.split(","),n=r.length,i=[];for(e=0;e<n;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&i.push(r[e]);return i.join(",")}(t)+", "+e,{node:n,w:i,parent:r}}function o(t,e){var r,n=document.body&&e?"svg":"canvas",i=getFontProperties(t);if("svg"===n){var o=createNS("text");o.style.fontSize="100px",o.setAttribute("font-family",t.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",t.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",t.fClass)):o.style.fontFamily=t.fFamily,e.appendChild(o),r=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=i.style+" "+i.weight+" 100px "+t.fFamily,r=a}return{measureText:function(t){return"svg"===n?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}var a=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};a.isModifier=function(t,e){var n=t.toString(16)+e.toString(16);return-1!==r.indexOf(n)},a.isZeroWidthJoiner=function(t,e){return e?t===n[0]&&e===n[1]:t===n[1]},a.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var s={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var r,n,i=t.length,o=this.chars.length;for(e=0;e<i;e+=1){for(r=0,n=!1;r<o;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(n=!0),r+=1;n||(this.chars.push(t[e]),o+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=o(t),t.cache={}})),void(this.fonts=t.list);var r,n=t.list,a=n.length,s=a;for(r=0;r<a;r+=1){var c,l,u=!0;if(n[r].loaded=!1,n[r].monoCase=i(n[r].fFamily,"monospace"),n[r].sansCase=i(n[r].fFamily,"sans-serif"),n[r].fPath){if("p"===n[r].fOrigin||3===n[r].origin){if((c=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[r].fFamily+'"], style[f-origin="3"][f-family="'+n[r].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",n[r].fOrigin),d.setAttribute("f-origin",n[r].origin),d.setAttribute("f-family",n[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",e.appendChild(d)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<c.length;l+=1)-1!==c[l].href.indexOf(n[r].fPath)&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.type="text/css",h.rel="stylesheet",h.href=n[r].fPath,document.body.appendChild(h)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<c.length;l+=1)n[r].fPath===c[l].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",n[r].fPath),e.appendChild(p)}}}else n[r].loaded=!0,s-=1;n[r].helper=o(n[r],e),n[r].cache={},this.fonts.push(n[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,n){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===e&&this.chars[i].style===r&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,r,n)),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var n=this.getFontByName(e),i=t.charCodeAt(0);if(!n.cache[i+1]){var o=n.helper;if(" "===t){var a=o.measureText("|"+t+"|"),s=o.measureText("||");n.cache[i+1]=(a-s)/100}else n.cache[i+1]=o.measureText(t)/100}return n.cache[i+1]*r},checkLoadedFonts:function(){var t,e,r,n=this.fonts.length,i=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?i-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(i-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(i-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return a.prototype=s,a}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,n=t.ef||[];this.effectElements=[];var i,o=n.length;for(r=0;r<o;r+=1)i=new GroupEffect(n[r],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,i,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,c,l,u,d,h,p=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(n=0;n<a;n+=1)if(("a"!==p[n].mode&&"n"!==p[n].mode||p[n].inv||100!==p[n].o.k||p[n].o.x)&&(v="mask",y="mask"),"s"!==p[n].mode&&"i"!==p[n].mode||0!==f?l=null:((l=createNS("rect")).setAttribute("fill","#ffffff"),l.setAttribute("width",this.element.comp.data.w||0),l.setAttribute("height",this.element.comp.data.h||0),m.push(l)),i=createNS("path"),"n"===p[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(f+=1,i.setAttribute("fill","s"===p[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==p[n].x.k?(v="mask",y="mask",h=PropertyFactory.getProp(this.element,p[n].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),o.appendChild(u),i.setAttribute("stroke","s"===p[n].mode?"#000000":"#ffffff")):(d=null,h=null),this.storedData[n]={elem:i,x:h,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[n].mode){c=m.length;var w=createNS("g");for(s=0;s<c;s+=1)w.appendChild(m[s]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",g+"_"+f),_.appendChild(i),o.appendChild(_),w.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(w)}else m.push(i);p[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),invRect:l},this.viewData[n].prop.k||this.drawPath(p[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(v),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,i=this.data.ef.length,o=this.data.ef;for(r=0;r<i;r+=1){switch(n=null,o[r].ty){case 0:n=new SliderEffect(o[r],e,this);break;case 1:n=new AngleEffect(o[r],e,this);break;case 2:n=new ColorEffect(o[r],e,this);break;case 3:n=new PointEffect(o[r],e,this);break;case 4:case 7:n=new CheckboxEffect(o[r],e,this);break;case 10:n=new LayerIndexEffect(o[r],e,this);break;case 11:n=new MaskIndexEffect(o[r],e,this);break;case 5:n=new EffectsManager(o[r],e,this);break;default:n=new NoValueEffect(o[r],e,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),n=t("shape"),i=t("text"),o=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var r,n=this.dynamicProperties.length;for(r=0;r<n;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,r,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,n=t.length,i=this.layers.length;for(e=0;e<n;e+=1)for(r=0;r<i;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var n=this.elements,i=this.layers,o=0,a=i.length;o<a;)i[o].ind==e&&(n[o]&&!0!==n[o]?(r.push(n[o]),n[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(t,i[o].parent,r):t.setHierarchy(r)):(this.buildItem(o),this.addPendingElement(t))),o+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if("number"==typeof r)e=this.elements[r];else{var n,i=this.elements.length;for(n=0;n<i;n+=1)if(this.elements[n].data.nm===r){e=this.elements[n];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,r=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<n;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<n;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):n=!1;var o,a=e.length;for(r=0;r<a;r+=1)o=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var i=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),i.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var n,i,o=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,n=1;n<i;n+=1)o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&i>1&&(o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==o){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+o:o),r.elem.setAttribute("d",a)),r.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(t,e){var r=createNS("filter");return r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}},featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,n="SourceGraphic",i=t.data.ef?t.data.ef.length:0,o=createElementID(),a=filtersFactory.createFilter(o,!0),s=0;for(this.filters=[],e=0;e<i;e+=1){r=null;var c=t.data.ef[e].ty;registeredEffects[c]&&(r=new(0,registeredEffects[c].effect)(a,t.effectsManager.effectElements[e],t,idPrefix+s,n),n=idPrefix+s,registeredEffects[c].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=createElementID();if(r.setAttribute("id",i),r.appendChild(n),this.globalData.defs.appendChild(r),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},getMatte:function(t){if(!this.matteMasks[t]){var e,r,n,i,o=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",o),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(i=createNS("g")).appendChild(n),a.appendChild(i),i.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var s=createNS("mask");s.setAttribute("id",o),s.setAttribute("mask-type","alpha");var c=createNS("g");s.appendChild(c),e=createElementID(),r=filtersFactory.createFilter(e);var l=createNS("feComponentTransfer");l.setAttribute("in","SourceGraphic"),r.appendChild(l);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),l.appendChild(u),this.globalData.defs.appendChild(r);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),c.appendChild(d),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(n),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),i=createNS("g"),c.appendChild(d),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(s)}this.matteMasks[t]=o}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,n=e.length;r<n;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,n=r.length;n;)if(r[n-=1].elem===t)return void(r[n].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var n=0,i=t.length;n<i;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,n){var i;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var o,a=e.length||0;for(i=0;i<a;i+=1)o=PropertyFactory.getProp(t,e[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:e[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,n=this.o.length/2;r<n;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,n,i=4*this.data.p;for(e=0;e<i;e+=1)r=e%4==0?100:255,n=Math.round(this.prop.v[e]*r),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)r=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),n=createNS(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",r),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var i,o,a,s=[];for(a=4*e.g.p,o=0;o<a;o+=4)i=createNS("stop"),n.appendChild(i),s.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=n,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,n,i,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),c=createElementID();o.setAttribute("id",c);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",s),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(n=4*t.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),u.push(r);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=l,this.ms=o,this.ost=u,this.maskId=c,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,n){if(0===e)return"";var i,o=t.o,a=t.i,s=t.v,c=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<e;i+=1)c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[i][0],a[i][1])+" "+n.applyToPointStringified(s[i][0],s[i][1]);return r&&e&&(c+=" C"+n.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),c+="z"),c},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function i(r,n,i){var o,a,s,c,l,u,d,h,p,f,m,g=n.styles.length,v=n.lvl;for(u=0;u<g;u+=1){if(c=n.sh._mdf||i,n.styles[u].lvl<v){for(h=e.reset(),f=v-n.styles[u].lvl,m=n.transformers.length-1;!c&&f>0;)c=n.transformers[m].mProps._mdf||c,f-=1,m-=1;if(c)for(f=v-n.styles[u].lvl,m=n.transformers.length-1;f>0;)p=n.transformers[m].mProps.v.props,h.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),f-=1,m-=1}else h=t;if(a=(d=n.sh.paths)._length,c){for(s="",o=0;o<a;o+=1)(l=d.shapes[o])&&l._length&&(s+=buildShapeString(l,l._length,l.c,h));n.caches[u]=s}else s=n.caches[u];n.styles[u].d+=!0===r.hd?"":s,n.styles[u]._mdf=c||n.styles[u]._mdf}}function o(t,e,r){var n=e.style;(e.c._mdf||r)&&n.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,r){s(t,e,r),c(0,e,r)}function s(t,e,r){var n,i,o,a,s,c=e.gf,l=e.g._hasOpacity,u=e.s.v,d=e.e.v;if(e.o._mdf||r){var h="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(h,e.o.v)}if(e.s._mdf||r){var p=1===t.t?"x1":"cx",f="x1"===p?"y1":"cy";c.setAttribute(p,u[0]),c.setAttribute(f,u[1]),l&&!e.g._collapsable&&(e.of.setAttribute(p,u[0]),e.of.setAttribute(f,u[1]))}if(e.g._cmdf||r){n=e.cst;var m=e.g.c;for(o=n.length,i=0;i<o;i+=1)(a=n[i]).setAttribute("offset",m[4*i]+"%"),a.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(l&&(e.g._omdf||r)){var g=e.g.o;for(o=(n=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)a=n[i],e.g._collapsable||a.setAttribute("offset",g[2*i]+"%"),a.setAttribute("stop-opacity",g[2*i+1])}if(1===t.t)(e.e._mdf||r)&&(c.setAttribute("x2",d[0]),c.setAttribute("y2",d[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",d[0]),e.of.setAttribute("y2",d[1])));else if((e.s._mdf||e.e._mdf||r)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)),c.setAttribute("r",s),l&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||r){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var v=Math.atan2(d[1]-u[1],d[0]-u[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,w=Math.cos(v+e.a.v)*b+u[0],_=Math.sin(v+e.a.v)*b+u[1];c.setAttribute("fx",w),c.setAttribute("fy",_),l&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",_))}}function c(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||r)&&i.dashStr&&(n.pElem.setAttribute("stroke-dasharray",i.dashStr),n.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||r)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return n;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,n,i,o){this.o=t,this.sw=e,this.sc=r,this.fc=n,this.m=i,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!n,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,r,n,i=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(r=0;r<o;r+=1){for(n=this.stylesList[r],s=!1,a.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(a.push(e),s=e._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,n=new SVGStyleData(t,e),i=n.pElem;return"st"===t.ty?r=new SVGStrokeStyleData(this,t,n):"fl"===t.ty?r=new SVGFillStyleData(this,t,n):"gf"===t.ty||"gs"===t.ty?(r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,n),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===t.ty&&(r=new SVGNoStyleData(this,t,n)),"st"!==t.ty&&"gs"!==t.ty||(i.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),i.setAttribute("fill-opacity","0"),1===t.lj&&i.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var i=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,n,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,n=this.animatedContents.length;r<n;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,n,i,o,a){var s,c,l,u,d,h,p=[].concat(o),f=t.length-1,m=[],g=[];for(s=f;s>=0;s-=1){if((h=this.searchProcessedElement(t[s]))?e[s]=r[h-1]:t[s]._render=a,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)h?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],i),t[s]._render&&e[s].style.pElem.parentNode!==n&&n.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"===t[s].ty){if(h)for(l=e[s].it.length,c=0;c<l;c+=1)e[s].prevViewData[c]=e[s].it[c];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,i+1,p,a),t[s]._render&&e[s].gr.parentNode!==n&&n.appendChild(e[s].gr)}else"tr"===t[s].ty?(h||(e[s]=this.createTransformElement(t[s],n)),u=e[s].transform,p.push(u)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(h||(e[s]=this.createShapeElement(t[s],p,i)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(h?(d=e[s]).closed=!1:((d=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===t[s].ty&&(h?(d=e[s]).closed=!0:(d=ShapeModifiers.getModifier(t[s].ty),e[s]=d,d.init(this,t,s,e),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(t[s],s+1)}for(f=m.length,s=0;s<f;s+=1)m[s].closed=!0;for(f=g.length,s=0;s<f;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,n,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(n=0;n<i;n+=1)o=r!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,n=t.length;r<=n-1&&!(r===n-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,n=[],i=0,o=t.length,a=!1;i<o;)e=t.charCodeAt(i),FontManager.isCombinedCharacter(e)?n[n.length-1]+=t.charAt(i):e>=55296&&e<=56319?(r=t.charCodeAt(i+1))>=56320&&r<=57343?(a||FontManager.isModifier(e,r)?(n[n.length-1]+=t.substr(i,2),a=!1):n.push(t.substr(i,2)),i+=1):n.push(t.charAt(i)):e>56319?(r=t.charCodeAt(i+1),FontManager.isZeroWidthJoiner(e,r)?(a=!0,n[n.length-1]+=t.substr(i,2),i+=1):n.push(t.charAt(i))):FontManager.isZeroWidthJoiner(e)?(n[n.length-1]+=t.charAt(i),a=!0):n.push(t.charAt(i)),i+=1;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,n,i,o,a,s,c=this.elem.globalData.fontManager,l=this.data,u=[],d=0,h=l.m.g,p=0,f=0,m=0,g=[],v=0,y=0,b=c.getFontByName(t.f),w=0,_=getFontProperties(b);t.fWeight=_.weight,t.fStyle=_.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var E,x=t.tr/1e3*t.finalSize;if(t.sz)for(var A,C,S=!0,D=t.sz[0],O=t.sz[1];S;){A=0,v=0,r=(C=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var P=-1;for(e=0;e<r;e+=1)E=C[e].charCodeAt(0),n=!1," "===C[e]?P=e:13!==E&&3!==E||(v=0,n=!0,A+=t.finalLineHeight||1.2*t.finalSize),c.chars?(s=c.getCharData(C[e],b.fStyle,b.fFamily),w=n?0:s.w*t.finalSize/100):w=c.measureText(C[e],t.f,t.finalSize),v+w>D&&" "!==C[e]?(-1===P?r+=1:e=P,A+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,P===e?1:0,"\r"),P=-1,v=0):(v+=w,v+=x);A+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&O<A?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,r=t.finalText.length,S=!1)}v=-x,w=0;var I,k=0;for(e=0;e<r;e+=1)if(n=!1,13===(E=(I=t.finalText[e]).charCodeAt(0))||3===E?(k=0,g.push(v),y=v>y?v:y,v=-2*x,i="",n=!0,m+=1):i=I,c.chars?(s=c.getCharData(I,b.fStyle,c.getFontByName(t.f).fFamily),w=n?0:s.w*t.finalSize/100):w=c.measureText(i,t.f,t.finalSize)," "===I?k+=w+x:(v+=w+x+k,k=0),u.push({l:w,an:w,add:p,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==h){if(p+=w,""===i||" "===i||e===r-1){for(""!==i&&" "!==i||(p-=w);f<=e;)u[f].an=p,u[f].ind=d,u[f].extra=w,f+=1;d+=1,p=0}}else if(3==h){if(p+=w,""===i||e===r-1){for(""===i&&(p-=w);f<=e;)u[f].an=p,u[f].ind=d,u[f].extra=w,f+=1;p=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(t.l=u,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var T,R,F,N,M=l.a;a=M.length;var B=[];for(o=0;o<a;o+=1){for((T=M[o]).a.sc&&(t.strokeColorAnim=!0),T.a.sw&&(t.strokeWidthAnim=!0),(T.a.fc||T.a.fh||T.a.fs||T.a.fb)&&(t.fillColorAnim=!0),N=0,F=T.s.b,e=0;e<r;e+=1)(R=u[e]).anIndexes[o]=N,(1==F&&""!==R.val||2==F&&""!==R.val&&" "!==R.val||3==F&&(R.n||" "==R.val||e==r-1)||4==F&&(R.n||e==r-1))&&(1===T.s.rn&&B.push(N),N+=1);l.a[o].s.totalChars=N;var L,j=-1;if(1===T.s.rn)for(e=0;e<r;e+=1)j!=(R=u[e]).anIndexes[o]&&(j=R.anIndexes[o],L=B.splice(Math.floor(Math.random()*B.length),1)[0]),R.anIndexes[o]=L}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,a=1,s=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var c=BezierFactory.getBezierEasing(i,o,a,s).get,l=0,u=this.finalS,d=this.finalE,h=this.data.sh;if(2===h)l=c(l=d===u?n>=d?1:0:t(0,e(.5/(d-u)+(n-u)/(d-u),1)));else if(3===h)l=c(l=d===u?n>=d?0:1:1-t(0,e(.5/(d-u)+(n-u)/(d-u),1)));else if(4===h)d===u?l=0:(l=t(0,e(.5/(d-u)+(n-u)/(d-u),1)))<.5?l*=2:l=1-2*(l-.5),l=c(l);else if(5===h){if(d===u)l=0;else{var p=d-u,f=-p/2+(n=e(t(0,n+.5-u),d-u)),m=p/2;l=Math.sqrt(1-f*f/(m*m))}l=c(l)}else 6===h?(d===u?l=0:(n=e(t(0,n+.5-u),d-u),l=(1+Math.cos(Math.PI+2*Math.PI*n/(d-u)))/2),l=c(l)):(n>=r(u)&&(l=t(0,e(n-u<0?e(d,1)-(u-n):d-n,1))),l=c(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;l<v?l=0:(l=(l-v)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,n=this.s.v/e+r,i=this.e.v/e+r;if(n>i){var o=n;n=i,i=o}this.finalS=n,this.finalE=i}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,e,r){return new n(t,e,r)}}}();function TextAnimatorDataProperty(t,e,r){var n={propType:!1},i=PropertyFactory.getProp,o=e.a;this.a={r:o.r?i(t,o.r,0,degToRads,r):n,rx:o.rx?i(t,o.rx,0,degToRads,r):n,ry:o.ry?i(t,o.ry,0,degToRads,r):n,sk:o.sk?i(t,o.sk,0,degToRads,r):n,sa:o.sa?i(t,o.sa,0,degToRads,r):n,s:o.s?i(t,o.s,1,.01,r):n,a:o.a?i(t,o.a,1,0,r):n,o:o.o?i(t,o.o,0,.01,r):n,p:o.p?i(t,o.p,1,0,r):n,sw:o.sw?i(t,o.sw,0,0,r):n,sc:o.sc?i(t,o.sc,1,0,r):n,fc:o.fc?i(t,o.fc,1,0,r):n,fh:o.fh?i(t,o.fh,0,0,r):n,fs:o.fs?i(t,o.fs,0,.01,r):n,fb:o.fb?i(t,o.fb,0,.01,r):n,t:o.t?i(t,o.t,0,0,r):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,n=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,n,i,o,a,s,c,l,u,d,h,p,f,m,g,v,y,b,w,_=this._moreOptions.alignment.v,E=this._animatorsData,x=this._textData,A=this.mHelper,C=this._renderType,S=this.renderedLetters.length,D=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var O,P=w.v;for(this._pathData.r.v&&(P=P.reverse()),a={tLength:0,segments:[]},o=P._length-1,v=0,i=0;i<o;i+=1)O=bez.buildBezierData(P.v[i],P.v[i+1],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[i+1][0]-P.v[i+1][0],P.i[i+1][1]-P.v[i+1][1]]),a.tLength+=O.segmentLength,a.segments.push(O),v+=O.segmentLength;i=o,w.v.c&&(O=bez.buildBezierData(P.v[i],P.v[0],[P.o[i][0]-P.v[i][0],P.o[i][1]-P.v[i][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),a.tLength+=O.segmentLength,a.segments.push(O),v+=O.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,h=0,d=1,l=0,u=!0,m=a.segments,s<0&&w.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(f=m[h=m.length-1].points).length-1;s<0;)s+=f[d].partialLength,(d-=1)<0&&(d=(f=m[h-=1].points).length-1);p=(f=m[h].points)[d-1],g=(c=f[d]).partialLength}o=D.length,r=0,n=0;var I,k,T,R,F,N=1.2*t.finalSize*.714,M=!0;T=E.length;var B,L,j,V,z,U,H,G,q,W,Y,X,$=-1,Q=s,K=h,Z=d,J=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,nt=0,it=2===t.j?-.5:-1,ot=0,at=!0;for(i=0;i<o;i+=1)if(D[i].n){for(rt&&(rt+=nt);ot<i;)D[ot].animatorJustifyOffset=rt,ot+=1;rt=0,at=!0}else{for(k=0;k<T;k+=1)(I=E[k].a).t.propType&&(at&&2===t.j&&(nt+=I.t.v*it),(F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars)).length?rt+=I.t.v*F[0]*it:rt+=I.t.v*F*it);at=!1}for(rt&&(rt+=nt);ot<i;)D[ot].animatorJustifyOffset=rt,ot+=1}for(i=0;i<o;i+=1){if(A.reset(),V=1,D[i].n)r=0,n+=t.yOffset,n+=M?1:0,s=Q,M=!1,this._hasMaskedPath&&(d=Z,p=(f=m[h=K].points)[d-1],g=(c=f[d]).partialLength,l=0),tt="",Y="",q="",X="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==D[i].line){switch(t.j){case 1:s+=v-t.lineWidths[D[i].line];break;case 2:s+=(v-t.lineWidths[D[i].line])/2}J=D[i].line}$!==D[i].ind&&(D[$]&&(s+=D[$].extra),s+=D[i].an/2,$=D[i].ind),s+=_[0]*D[i].an*.005;var st=0;for(k=0;k<T;k+=1)(I=E[k].a).p.propType&&((F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars)).length?st+=I.p.v[0]*F[0]:st+=I.p.v[0]*F),I.a.propType&&((F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars)).length?st+=I.a.v[0]*F[0]:st+=I.a.v[0]*F);for(u=!0,this._pathData.a.v&&(s=.5*D[0].an+(v-this._pathData.f.v-.5*D[0].an-.5*D[D.length-1].an)*$/(o-1),s+=this._pathData.f.v);u;)l+g>=s+st||!f?(y=(s+st-l)/c.partialLength,L=p.point[0]+(c.point[0]-p.point[0])*y,j=p.point[1]+(c.point[1]-p.point[1])*y,A.translate(-_[0]*D[i].an*.005,-_[1]*N*.01),u=!1):f&&(l+=c.partialLength,(d+=1)>=f.length&&(d=0,m[h+=1]?f=m[h].points:w.v.c?(d=0,f=m[h=0].points):(l-=c.partialLength,f=null)),f&&(p=c,g=(c=f[d]).partialLength));B=D[i].an/2-D[i].add,A.translate(-B,0,0)}else B=D[i].an/2-D[i].add,A.translate(-B,0,0),A.translate(-_[0]*D[i].an*.005,-_[1]*N*.01,0);for(k=0;k<T;k+=1)(I=E[k].a).t.propType&&(F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?F.length?s+=I.t.v*F[0]:s+=I.t.v*F:F.length?r+=I.t.v*F[0]:r+=I.t.v*F));for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(z=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),k=0;k<T;k+=1)(I=E[k].a).a.propType&&((F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars)).length?A.translate(-I.a.v[0]*F[0],-I.a.v[1]*F[1],I.a.v[2]*F[2]):A.translate(-I.a.v[0]*F,-I.a.v[1]*F,I.a.v[2]*F));for(k=0;k<T;k+=1)(I=E[k].a).s.propType&&((F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars)).length?A.scale(1+(I.s.v[0]-1)*F[0],1+(I.s.v[1]-1)*F[1],1):A.scale(1+(I.s.v[0]-1)*F,1+(I.s.v[1]-1)*F,1));for(k=0;k<T;k+=1){if(I=E[k].a,F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars),I.sk.propType&&(F.length?A.skewFromAxis(-I.sk.v*F[0],I.sa.v*F[1]):A.skewFromAxis(-I.sk.v*F,I.sa.v*F)),I.r.propType&&(F.length?A.rotateZ(-I.r.v*F[2]):A.rotateZ(-I.r.v*F)),I.ry.propType&&(F.length?A.rotateY(I.ry.v*F[1]):A.rotateY(I.ry.v*F)),I.rx.propType&&(F.length?A.rotateX(I.rx.v*F[0]):A.rotateX(I.rx.v*F)),I.o.propType&&(F.length?V+=(I.o.v*F[0]-V)*F[0]:V+=(I.o.v*F-V)*F),t.strokeWidthAnim&&I.sw.propType&&(F.length?U+=I.sw.v*F[0]:U+=I.sw.v*F),t.strokeColorAnim&&I.sc.propType)for(G=0;G<3;G+=1)F.length?z[G]+=(I.sc.v[G]-z[G])*F[0]:z[G]+=(I.sc.v[G]-z[G])*F;if(t.fillColorAnim&&t.fc){if(I.fc.propType)for(G=0;G<3;G+=1)F.length?H[G]+=(I.fc.v[G]-H[G])*F[0]:H[G]+=(I.fc.v[G]-H[G])*F;I.fh.propType&&(H=F.length?addHueToRGB(H,I.fh.v*F[0]):addHueToRGB(H,I.fh.v*F)),I.fs.propType&&(H=F.length?addSaturationToRGB(H,I.fs.v*F[0]):addSaturationToRGB(H,I.fs.v*F)),I.fb.propType&&(H=F.length?addBrightnessToRGB(H,I.fb.v*F[0]):addBrightnessToRGB(H,I.fb.v*F))}}for(k=0;k<T;k+=1)(I=E[k].a).p.propType&&(F=E[k].s.getMult(D[i].anIndexes[k],x.a[k].s.totalChars),this._hasMaskedPath?F.length?A.translate(0,I.p.v[1]*F[0],-I.p.v[2]*F[1]):A.translate(0,I.p.v[1]*F,-I.p.v[2]*F):F.length?A.translate(I.p.v[0]*F[0],I.p.v[1]*F[1],-I.p.v[2]*F[2]):A.translate(I.p.v[0]*F,I.p.v[1]*F,-I.p.v[2]*F));if(t.strokeWidthAnim&&(q=U<0?0:U),t.strokeColorAnim&&(W="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(A.translate(0,-t.ls),A.translate(0,_[1]*N*.01+n,0),this._pathData.p.v){b=(c.point[1]-p.point[1])/(c.point[0]-p.point[0]);var ct=180*Math.atan(b)/Math.PI;c.point[0]<p.point[0]&&(ct+=180),A.rotate(-ct*Math.PI/180)}A.translate(L,j,0),s-=_[0]*D[i].an*.005,D[i+1]&&$!==D[i+1].ind&&(s+=D[i].an/2,s+=.001*t.tr*t.finalSize)}else{switch(A.translate(r,n,0),t.ps&&A.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:A.translate(D[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[i].line]),0,0);break;case 2:A.translate(D[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[i].line])/2,0,0)}A.translate(0,-t.ls),A.translate(B,0,0),A.translate(_[0]*D[i].an*.005,_[1]*N*.01,0),r+=D[i].l+.001*t.tr*t.finalSize}"html"===C?tt=A.toCSS():"svg"===C?tt=A.to2dCSS():et=[A.props[0],A.props[1],A.props[2],A.props[3],A.props[4],A.props[5],A.props[6],A.props[7],A.props[8],A.props[9],A.props[10],A.props[11],A.props[12],A.props[13],A.props[14],A.props[15]],X=V}S<=i?(R=new LetterProps(X,q,W,Y,tt,et),this.renderedLetters.push(R),S+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[i],this.lettersChangedFlag=R.update(X,q,W,Y,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,n,i=e.length,o="";for(r=0;r<i;r+=1)"sh"===e[r].ty&&(n=e[r].ks.k,o+=buildShapeString(n,n.i.length,!0,t));return o},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,n,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(n,i,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var n=createNS("title"),i=createElementID();n.setAttribute("id",i),n.textContent=e.title,this.svgElement.appendChild(n),r+=i}if(e&&e.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=e.description,this.svgElement.appendChild(o),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,i=!1;for(r=0;r<n;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,r,n){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,o=4;"rc"===e.ty?o=5:"el"===e.ty?o=6:"sr"===e.ty&&(o=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,o,t);var a,s=r.length;for(i=0;i<s;i+=1)r[i].closed||(a={transforms:n.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(a),r[i].elements.push(a))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var n=PropertyFactory.getProp;if(this.pe=n(this,t.pe,0,0,this),t.ks.p.s?(this.px=n(this,t.ks.p.x,1,0,this),this.py=n(this,t.ks.p.y,1,0,this),this.pz=n(this,t.ks.p.z,1,0,this)):this.p=n(this,t.ks.p,1,0,this),t.ks.a&&(this.a=n(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var i,o=t.ks.or.k.length;for(i=0;i<o;i+=1)t.ks.or.k[i].to=null,t.ks.or.k[i].ti=null}this.or=n(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=n(this,t.ks.rx,0,degToRads,this),this.ry=n(this,t.ks.ry,0,degToRads,this),this.rz=n(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,r=t.length,n=[],i="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(i),i=""):i+=t[e],e+=1;return n.push(i),n},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var n=r.it[r.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var n=this.globalData.fontManager.getFontByName(r.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var i=r.fWeight,o=r.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],c=!!this.globalData.fontManager.chars;e=s.length;var l=this.mHelper,u=this.data.singleShape,d=0,h=0,p=!0,f=.001*r.tr*r.finalSize;if(!u||c||r.sz){var m,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!c||!u||0===t){if(a=g>t?this.textSpans[t].span:createNS(c?"g":"text"),g<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,c){var v=createNS("g");a.appendChild(v),this.textSpans[t].childSpan=v}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(l.reset(),u&&(s[t].n&&(d=-f,h+=r.yOffset,h+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,l,s[t].line,d,h),d+=s[t].l||0,d+=f),c){var y;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,r.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var w=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[t].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[t].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else u&&a.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&a&&a.setAttribute("d","")}else{var _=this.textContainer,E="start";switch(r.j){case 1:E="end";break;case 2:E="middle";break;default:E="start"}_.setAttribute("text-anchor",E),_.setAttribute("letter-spacing",f);var x=this.buildTextContents(r.finalText);for(e=x.length,h=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=x[t],a.setAttribute("x",0),a.setAttribute("y",h),a.style.display="inherit",_.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,h+=r.finalLineHeight;this.layerElement.appendChild(_)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,n,i,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(r=o[t],n=this.textSpans[t].span,(i=this.textSpans[t].glyph)&&i.renderFrame(),r._mdf.m&&n.setAttribute("transform",r.m),r._mdf.o&&n.setAttribute("opacity",r.o),r._mdf.sw&&n.setAttribute("stroke-width",r.sw),r._mdf.sc&&n.setAttribute("stroke",r.sc),r._mdf.fc&&n.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var i=e[n].getMatte(this.layers[t].tt);r.setMatte(i)}else this.buildItem(n),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[n].getMatte(this.layers[e].tt);t.setMatte(i);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var n,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,n="_";for(e=0;e<r;e+=1)n+=t[e].transform.key+"_";var i=this.sequences[n];return i||(i={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=i,this.sequenceList.push(i)),i},processSequence:function(t,e){for(var r,n=0,i=t.transforms.length,o=e;n<i&&!e;){if(t.transforms[n].transform.mProps._mdf){o=!0;break}n+=1}if(o)for(t.finalTransform.reset(),n=i-1;n>=0;n-=1)r=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=o},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,n,i=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),t=0;t<a;t+=1)if("n"!==this.masksProperties[t].mode){var s;this.masksProperties[t].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),n=this.viewData[t].v,e=i.applyToPointArray(n.v[0][0],n.v[0][1],0),o.moveTo(e[0],e[1]);var c=n._length;for(s=1;s<c;s+=1)r=i.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},n={};if("fl"===t.ty||"st"===t.ty?(n.c=PropertyFactory.getProp(this,t.c,1,255,this),n.c.k||(r.co="rgb("+bmFloor(n.c.v[0])+","+bmFloor(n.c.v[1])+","+bmFloor(n.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(n.s=PropertyFactory.getProp(this,t.s,1,null,this),n.e=PropertyFactory.getProp(this,t.e,1,null,this),n.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),n.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),n.g=new GradientProperty(this,t.g,this)),n.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],1==t.lj&&(r.ml=t.ml),n.w=PropertyFactory.getProp(this,t.w,0,null,this),n.w.k||(r.wi=n.w.v),t.d){var i=new DashProperty(this,t.d,"canvas",this);n.d=i,n.d.k||(r.da=n.d.dashArray,r.do=n.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),n.style=r,n},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,n,i){var o,a,s,c,l,u,d=t.length-1,h=[],p=[],f=[].concat(i);for(o=d;o>=0;o-=1){if((c=this.searchProcessedElement(t[o]))?e[o]=r[c-1]:t[o]._shouldRender=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty)c?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],f),h.push(e[o].style);else if("gr"===t[o].ty){if(c)for(s=e[o].it.length,a=0;a<s;a+=1)e[o].prevViewData[a]=e[o].it[a];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,n,f)}else"tr"===t[o].ty?(c||(u=this.createTransformElement(t[o]),e[o]=u),f.push(e[o]),this.addTransformToStyleList(e[o])):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?c||(e[o]=this.createShapeElement(t[o])):"tm"===t[o].ty||"rd"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(c?(l=e[o]).closed=!1:((l=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=l,this.shapeModifiers.push(l)),p.push(l)):"rp"===t[o].ty&&(c?(l=e[o]).closed=!0:(l=ShapeModifiers.getModifier(t[o].ty),e[o]=l,l.init(this,t,o,e),this.shapeModifiers.push(l),n=!1),p.push(l));this.addProcessedElement(t[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(h),d=p.length,o=0;o<d;o+=1)p[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,n,i,o,a,s,c,l=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(("st"!==(s=(c=this.stylesList[t]).type)&&"gs"!==s||0!==c.wi)&&c.data._shouldRender&&0!==c.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=c.elements,"st"===s||"gs"===s?(d.strokeStyle="st"===s?c.co:c.grd,d.lineWidth=c.wi,d.lineCap=c.lc,d.lineJoin=c.lj,d.miterLimit=c.ml||0):d.fillStyle="fl"===s?c.co:c.grd,u.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(c.preTransforms.finalTransform.props),r=o.length,e=0;e<r;e+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),c.da&&(d.setLineDash(c.da),d.lineDashOffset=c.do)),i=(a=o[e].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?d.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?d.bezierCurveTo(a[n].pts[0],a[n].pts[1],a[n].pts[2],a[n].pts[3],a[n].pts[4],a[n].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(d.stroke(),c.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&d.fill(c.r),u.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,n){var i,o;for(o=t,i=e.length-1;i>=0;i-=1)"tr"===e[i].ty?(o=r[i].transform,this.renderShapeTransform(t,o)):"sh"===e[i].ty||"el"===e[i].ty||"rc"===e[i].ty||"sr"===e[i].ty?this.renderPath(e[i],r[i]):"fl"===e[i].ty?this.renderFill(e[i],r[i],o):"st"===e[i].ty?this.renderStroke(e[i],r[i],o):"gf"===e[i].ty||"gs"===e[i].ty?this.renderGradientFill(e[i],r[i],o):"gr"===e[i].ty?this.renderShape(o,e[i].it,r[i].it):e[i].ty;n&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,n,i,o=t.trNodes,a=e.paths,s=a._length;o.length=0;var c=t.transforms.finalTransform;for(i=0;i<s;i+=1){var l=a.shapes[i];if(l&&l.v){for(n=l._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===n&&o.push({t:"m",p:c.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&n&&(o.push({t:"c",pts:c.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),o.push({t:"z"}))}}t.trNodes=o}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,n=e.styledShapes.length;for(r=0;r<n;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var n=e.style;(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var n,i=e.style;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var o,a=this.globalData.canvasContext,s=e.s.v,c=e.e.v;if(1===t.t)n=a.createLinearGradient(s[0],s[1],c[0],c[1]);else{var l=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),u=Math.atan2(c[1]-s[1],c[0]-s[0]),d=e.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var h=l*d,p=Math.cos(u+e.a.v)*h+s[0],f=Math.sin(u+e.a.v)*h+s[1];n=a.createRadialGradient(p,f,0,s[0],s[1],l)}var m=t.g.p,g=e.g.c,v=1;for(o=0;o<m;o+=1)e.g._hasOpacity&&e.g._collapsable&&(v=e.g.o[2*o+1]),n.addColorStop(g[4*o]/100,"rgba("+g[4*o+1]+","+g[4*o+2]+","+g[4*o+3]+","+v+")");i.grd=n}i.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var n=e.style,i=e.d;i&&(i._mdf||this._isFirstFrame)&&(n.da=i.dashArray,n.do=i.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(n.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(n.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(n.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var n,i,o,a,s,c,l,u,d,h,p,f,m=this.globalData.fontManager.getFontByName(t.f),g=t.l,v=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,i=t.finalText.length;var y=this.data.singleShape,b=.001*t.tr*t.finalSize,w=0,_=0,E=!0,x=0;for(n=0;n<i;n+=1){a=(o=this.globalData.fontManager.getCharData(t.finalText[n],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&o.data||{},v.reset(),y&&g[n].n&&(w=-b,_+=t.yOffset,_+=E?1:0,E=!1),d=(l=a.shapes?a.shapes[0].it:[]).length,v.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,v,g[n].line,w,_),p=createSizedArray(d-1);var A=0;for(u=0;u<d;u+=1)if("sh"===l[u].ty){for(c=l[u].ks.k.i.length,h=l[u].ks.k,f=[],s=1;s<c;s+=1)1===s&&f.push(v.applyToX(h.v[0][0],h.v[0][1],0),v.applyToY(h.v[0][0],h.v[0][1],0)),f.push(v.applyToX(h.o[s-1][0],h.o[s-1][1],0),v.applyToY(h.o[s-1][0],h.o[s-1][1],0),v.applyToX(h.i[s][0],h.i[s][1],0),v.applyToY(h.i[s][0],h.i[s][1],0),v.applyToX(h.v[s][0],h.v[s][1],0),v.applyToY(h.v[s][0],h.v[s][1],0));f.push(v.applyToX(h.o[s-1][0],h.o[s-1][1],0),v.applyToY(h.o[s-1][0],h.o[s-1][1],0),v.applyToX(h.i[0][0],h.i[0][1],0),v.applyToY(h.i[0][0],h.i[0][1],0),v.applyToX(h.v[0][0],h.v[0][1],0),v.applyToY(h.v[0][0],h.v[0][1],0)),p[A]=f,A+=1}y&&(w+=g[n].l,w+=b),this.textSpans[x]?this.textSpans[x].elem=p:this.textSpans[x]={elem:p},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,n,i,o,a=this.canvasContext;a.font=this.values.fValue,a.lineCap="butt",a.lineJoin="miter",a.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var u,d,h=null,p=null,f=null;for(t=0;t<e;t+=1)if(!l[t].n){if((s=c[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?h!==s.fc&&(h=s.fc,a.fillStyle=s.fc):h!==this.values.fill&&(h=this.values.fill,a.fillStyle=this.values.fill),n=(u=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(d=u[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?f!==s.sw&&(f=s.sw,a.lineWidth=s.sw):f!==this.values.sWidth&&(f=this.values.sWidth,a.lineWidth=this.values.sWidth),s&&s.sc?p!==s.sc&&(p=s.sc,a.strokeStyle=s.sc):p!==this.values.stroke&&(p=this.values.stroke,a.strokeStyle=this.values.stroke),n=(u=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(d=u[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,n=t.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,s=this.assetData.w/this.assetData.h,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===c||a<s&&"xMidYMid slice"!==c?e=(r=o)*s:r=(e=i)/s,n.drawImage(this.img,(i-e)/2,(o-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var n=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)n[e]=r[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],n=this.contextData.cTr.props;for(e=0;e<16;e+=1)n[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,n,i,o;if(this.reset(),t?(r=t,n=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=n):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,n=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=n*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",c=a[0]||"xMidYMid",l=c.substr(0,4),u=c.substr(4);i=r/n,(o=this.transformCanvas.w/this.transformCanvas.h)>i&&"meet"===s||o<i&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===l&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<n;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=n-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,n,i,o,a,s=t.sh.v,c=t.transformers,l=s._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[r+1]),a=this.getTransformedPoint(c,s.v[r+1]),this.checkBounds(n,i,o,a,e);s.c&&(n=this.getTransformedPoint(c,s.v[r]),i=this.getTransformedPoint(c,s.o[r]),o=this.getTransformedPoint(c,s.i[0]),a=this.getTransformedPoint(c,s.v[0]),this.checkBounds(n,i,o,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,n,i){this.getBoundsOfCurve(t,e,r,n);var o=this.shapeBoundingBox;i.x=bmMin(o.left,i.x),i.xMax=bmMax(o.right,i.xMax),i.y=bmMin(o.top,i.y),i.yMax=bmMax(o.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,r,n){for(var i,o,a,s,c,l,u,d=[[t[0],n[0]],[t[1],n[1]]],h=0;h<2;++h)o=6*t[h]-12*e[h]+6*r[h],i=-3*t[h]+9*e[h]-9*r[h]+3*n[h],a=3*e[h]-3*t[h],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&d[h].push(this.calculateF(s,t,e,r,n,h)):(c=o*o-4*a*i)>=0&&((l=(-o+bmSqrt(c))/(2*i))>0&&l<1&&d[h].push(this.calculateF(l,t,e,r,n,h)),(u=(-o-bmSqrt(c))/(2*i))>0&&u<1&&d[h].push(this.calculateF(u,t,e,r,n,h))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(t,e,r,n,i,o){return bmPow(1-t,3)*e[o]+3*bmPow(1-t,2)*t*r[o]+3*(1-t)*bmPow(t,2)*n[o]+bmPow(t,3)*i[o]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,n=t.length;for(r=0;r<n;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var n=0;n<t.keyframes.length;n+=1){var i=t.keyframes[n].s;i>r&&(r=i)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var n=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";n.transform=i,n.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n,i,o=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{e.fontFamily=o.fFamily;var a=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=a}var c,l,u,d=t.l;i=d.length;var h,p=this.mHelper,f="",m=0;for(n=0;n<i;n+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?c=this.textPaths[m]:((c=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?u=(l=this.textSpans[m]).children[0]:((l=createTag("div")).style.lineHeight=0,(u=createNS("svg")).appendChild(c),styleDiv(l)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(l=this.textSpans[m],c=this.textPaths[m]):(styleDiv(l=createTag("span")),styleDiv(c=createTag("span")),l.appendChild(c)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(t.finalText[n],o.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=v?v.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(h=g.shapes[0].it,p.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(p,h),c.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(l),g&&g.shapes){document.body.appendChild(u);var y=u.getBBox();u.setAttribute("width",y.width+2),u.setAttribute("height",y.height+2),u.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=u.style,w="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=w,b.webkitTransform=w,d[n].yOffset=y.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);l.appendChild(u)}}else if(c.textContent=d[n].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(l);var _=c.style,E="translate3d(0,"+-t.finalSize/1.2+"px,0)";_.transform=E,_.webkitTransform=E}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=l,this.textSpans[m].style.display="block",this.textPaths[m]=c,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,n,i,o,a,s=0,c=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(n=l.length,r=0;r<n;r+=1)l[r].n?s+=1:(o=this.textSpans[r],a=this.textPaths[r],i=c[s],s+=1,i._mdf.m&&(this.isMasked?o.setAttribute("transform",i.m):(o.style.webkitTransform=i.m,o.style.transform=i.m)),o.style.opacity=i.o,i.sw&&i._mdf.sw&&a.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&a.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(a.setAttribute("fill",i.fc),a.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();if(this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height)),this.currentBBox.w!==u.width+2||this.currentBBox.h!==u.height+2||this.currentBBox.x!==u.x-1||this.currentBBox.y!==u.y-1){this.currentBBox.w=u.width+2,this.currentBBox.h=u.height+2,this.currentBBox.x=u.x-1,this.currentBBox.y=u.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=d,t.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,n,i=this.comp.threeDElements.length;for(t=0;t<i;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){r=e.perspectiveElem.style,n=e.container.style;var o=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=o,r.webkitPerspective=o,n.transformOrigin=a,n.mozTransformOrigin=a,n.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(t=e=this.hierarchy.length-1;t>=0;t-=1){var n=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-n.p.v[0],-n.p.v[1],n.p.v[2]),this.mat.rotateX(-n.or.v[0]).rotateY(-n.or.v[1]).rotateZ(n.or.v[2]),this.mat.rotateX(-n.rx.v).rotateY(-n.ry.v).rotateZ(n.rz.v),this.mat.scale(1/n.s.v[0],1/n.s.v[1],1/n.s.v[2]),this.mat.translate(n.a.v[0],n.a.v[1],n.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),a=[i[0]/o,i[1]/o,i[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),c=Math.atan2(a[1],s),l=Math.atan2(a[0],-a[2]);this.mat.rotateY(l).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){var d,h,p;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(d=this.comp.threeDElements[t]).type){if(u){var f=this.mat.toCSS();(p=d.container.style).transform=f,p.webkitTransform=f}this.pe._mdf&&((h=d.perspectiveElem.style).perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var n=this.layers[e];if(n.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var i,o,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a],i=(this.layers[a].ddd?this.getThreeDContainerByPos(a):o.getBaseElement())||i),a+=1;i?n.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):n.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,n,i=createTag("div");styleDiv(i);var o=createTag("div");if(styleDiv(o),"3d"===e){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(n=o.style).transform=s,n.webkitTransform=s}i.appendChild(o);var c={container:o,perspectiveElem:i,startPos:t,endPos:t,type:e};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,n="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==n&&(n="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==n&&(n="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,n=this.threeDElements.length;r<n;){if(e<=this.threeDElements[r].endPos){for(var i,o=this.threeDElements[r].startPos;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(i=this.elements[o].getBaseElement()),o+=1;i?this.threeDElements[r].container.insertBefore(t,i):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,n=e.style;n.width=t.w+"px",n.height=t.h+"px",this.resizerElem=e,styleDiv(e),n.transformStyle="flat",n.mozTransformStyle="flat",n.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),n.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var o=createNS("defs");i.appendChild(o),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=o,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,n,i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=i/o;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=i/this.globalData.compSize.w,e=i/this.globalData.compSize.w,r=0,n=(o-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(t=o/this.globalData.compSize.h,e=o/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,n=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+n+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,n=this.threeDElements.length;for(t=0;t<n;t+=1){var i=this.threeDElements[t].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,n=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e],n,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var r,n=0;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(e){for(var r=0,n=t.layers.length;r<n;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions={initExpressions:function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}}},MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,n=createSizedArray(e.viewData.length),i=e.viewData.length;for(r=0;r<i;r+=1)n[r]=new t(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<i;){if(e.masksProperties[r].nm===t)return n[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(!t.numKeys)return 0;var i;i="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var o="unidimensional"===r?new Number(i):Object.assign({},i);return o.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,o.value="unidimensional"===r?i[0]:i,o},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(i){return i?"unidimensional"===i.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,i=e.pv*n,o=new Number(i);return o.value=i,r(o,e,"unidimensional"),function(){return e.k&&e.getValue(),i=e.v*n,o.value!==i&&((o=new Number(i)).value=i,r(o,e,"unidimensional")),o}}(i):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,i=t.data&&t.data.l||t.pv.length,o=createTypedArray("float32",i),a=createTypedArray("float32",i);return o.value=a,r(o,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<i;e+=1)a[e]=t.v[e]*n,o[e]=a[e];return o}}(i):n}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,n,i,o;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?o=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(i=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?o():[r(),n(),i?i():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function n(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,t)}function i(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function o(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function s(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,n=this._elem.hierarchy.length;for(r=0;r<n;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function c(){return[1,1,1,1]}return function(l){var u;function d(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=t,d.invertPoint=a,d.applyPoint=o,d.toWorld=r,d.toWorldVec=e,d.fromWorld=i,d.fromWorldVec=n,d.toComp=r,d.fromComp=s,d.sampleImage=c,d.sourceRectAtTime=l.sourceRectAtTime.bind(l),d._elem=l;var h=getDescriptor(u=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:h,anchor_point:h,transform:{get:function(){return u}},active:{get:function(){return l.isInRange}}}),d.startTime=l.data.st,d.index=l.data.ind,d.source=l.data.refId,d.height=0===l.data.ty?l.data.h:100,d.width=0===l.data.ty?l.data.w:100,d.inPoint=l.data.ip/l.comp.globalData.frameRate,d.outPoint=l.data.op/l.comp.globalData.frameRate,d._name=l.data.nm,d.registerMaskInterface=function(t){d.mask=new MaskManagerInterface(t,l)},d.registerEffectsInterface=function(t){d.effect=t},d}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}},EffectsExpressionInterface=function(){function t(r,n,i,o){function a(t){for(var e=r.ef,n=0,i=e.length;n<i;){if(t===e[n].nm||t===e[n].mn||t===e[n].ix)return 5===e[n].ty?l[n]:l[n]();n+=1}throw new Error}var s,c=propertyGroupFactory(a,i),l=[],u=r.ef.length;for(s=0;s<u;s+=1)5===r.ef[s].ty?l.push(t(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):l.push(e(n.effectElements[s],r.ef[s].ty,o,c));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return l[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:c}}),a.enabled=0!==r.en,a.active=a.enabled,a}function e(t,e,r,n){var i=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===e?r.comp.compInterface(t.p.v):i()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var n,i=[],o=e.data.ef,a=e.effectsManager.effectElements.length;for(n=0;n<a;n+=1)i.push(t(o[n],e.effectsManager.effectElements[n],r,e));var s=e.data.ef||[],c=function(t){for(n=0,a=s.length;n<a;){if(t===s[n].nm||t===s[n].mn||t===s[n].ix)return i[n];n+=1}return null};return Object.defineProperty(c,"numProperties",{get:function(){return s.length}}),c}return null}}}(),ShapePathInterface=function(t,e,r){var n=e.sh;function i(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?i.path:null}var o=propertyGroupFactory(i,r);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(i,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function t(t,a,h){var p,f=[],m=t?t.length:0;for(p=0;p<m;p+=1)"gr"===t[p].ty?f.push(e(t[p],a[p],h)):"fl"===t[p].ty?f.push(r(t[p],a[p],h)):"st"===t[p].ty?f.push(i(t[p],a[p],h)):"tm"===t[p].ty?f.push(o(t[p],a[p],h)):"tr"===t[p].ty||("el"===t[p].ty?f.push(s(t[p],a[p],h)):"sr"===t[p].ty?f.push(c(t[p],a[p],h)):"sh"===t[p].ty?f.push(ShapePathInterface(t[p],a[p],h)):"rc"===t[p].ty?f.push(l(t[p],a[p],h)):"rd"===t[p].ty?f.push(u(t[p],a[p],h)):"rp"===t[p].ty?f.push(d(t[p],a[p],h)):"gf"===t[p].ty?f.push(n(t[p],a[p],h)):f.push((t[p],a[p],function(){return null})));return f}function e(e,r,n){var i=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,n);var o=function(e,r,n){var i,o=function(t){for(var e=0,r=i.length;e<r;){if(i[e]._name===t||i[e].mn===t||i[e].propertyIndex===t||i[e].ix===t||i[e].ind===t)return i[e];e+=1}return"number"==typeof t?i[t-1]:null};o.propertyGroup=propertyGroupFactory(o,n),i=t(e.it,r.it,o.propertyGroup),o.numProperties=i.length;var s=a(e.it[e.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.transform=s,o.propertyIndex=e.cix,o._name=e.nm,o}(e,r,i.propertyGroup),s=a(e.it[e.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=o,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return e.nm}}),i.numProperties=e.np,i.propertyIndex=e.ix,i.nm=e.nm,i.mn=e.mn,i}function r(t,e,r){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function n(t,e,r){function n(t){return"Start Point"===t||"start point"===t?n.startPoint:"End Point"===t||"end point"===t?n.endPoint:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",r)),e.e.setGroupProperty(PropertyInterface("End Point",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),n}function i(t,e,r){var n,i=propertyGroupFactory(l,r),o=propertyGroupFactory(c,i);function a(r){Object.defineProperty(c,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var s=t.d?t.d.length:0,c={};for(n=0;n<s;n+=1)a(n),e.d.dataProps[n].p.setGroupProperty(o);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return c}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),e.w.setGroupProperty(PropertyInterface("Stroke Width",i)),l}function o(t,e,r){function n(e){return e===t.e.ix||"End"===e||"end"===e?n.end:e===t.s.ix?n.start:e===t.o.ix?n.offset:null}var i=propertyGroupFactory(n,r);return n.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",i)),e.e.setGroupProperty(PropertyInterface("End",i)),e.o.setGroupProperty(PropertyInterface("Offset",i)),n.propertyIndex=t.ix,n.propertyGroup=r,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),n.mn=t.mn,n}function a(t,e,r){function n(e){return t.a.ix===e||"Anchor Point"===e?n.anchorPoint:t.o.ix===e||"Opacity"===e?n.opacity:t.p.ix===e||"Position"===e?n.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?n.rotation:t.s.ix===e||"Scale"===e?n.scale:t.sk&&t.sk.ix===e||"Skew"===e?n.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?n.skewAxis:null}var i=propertyGroupFactory(n,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),n.ty="tr",n.mn=t.mn,n.propertyGroup=r,n}function s(t,e,r){function n(e){return t.p.ix===e?n.position:t.s.ix===e?n.size:null}var i=propertyGroupFactory(n,r);n.propertyIndex=t.ix;var o="tm"===e.sh.ty?e.sh.prop:e.sh;return o.s.setGroupProperty(PropertyInterface("Size",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:t.nm}}),n.mn=t.mn,n}function c(t,e,r){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.rotation:t.pt.ix===e?n.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?n.outerRadius:t.os.ix===e?n.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?n.innerRoundness:null:n.innerRadius}var i=propertyGroupFactory(n,r),o="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,o.or.setGroupProperty(PropertyInterface("Outer Radius",i)),o.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),o.pt.setGroupProperty(PropertyInterface("Points",i)),o.p.setGroupProperty(PropertyInterface("Position",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),t.ir&&(o.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),o.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:t.nm}}),n.mn=t.mn,n}function l(t,e,r){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?n.size:null}var i=propertyGroupFactory(n,r),o="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,o.p.setGroupProperty(PropertyInterface("Position",i)),o.s.setGroupProperty(PropertyInterface("Size",i)),o.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:t.nm}}),n.mn=t.mn,n}function u(t,e,r){function n(e){return t.r.ix===e||"Round Corners 1"===e?n.radius:null}var i=propertyGroupFactory(n,r),o=e;return n.propertyIndex=t.ix,o.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:t.nm}}),n.mn=t.mn,n}function d(t,e,r){function n(e){return t.c.ix===e||"Copies"===e?n.copies:t.o.ix===e||"Offset"===e?n.offset:null}var i=propertyGroupFactory(n,r),o=e;return n.propertyIndex=t.ix,o.c.setGroupProperty(PropertyInterface("Copies",i)),o.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:t.nm}}),n.mn=t.mn,n}return function(e,r,n){var i;function o(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?n:i[t-1];for(var e=0,r=i.length;e<r;){if(i[e]._name===t)return i[e];e+=1}return null}return o.propertyGroup=propertyGroupFactory(o,(function(){return n})),i=t(e,r,o.propertyGroup),o.numProperties=i.length,o._name="Contents",o}}(),TextExpressionInterface=function(t){var e,r;function n(t){return"ADBE Text Document"===t?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){t.textProperty.getValue();var n=t.textProperty.currentData.t;return n!==e&&(t.textProperty.currentData.t=e,(r=new String(n)).value=n||new String(n)),r}}),n};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function n(t){if(r[t])return e=t,"object"===_typeof$2(r=r[t])?n:r;var i=t.indexOf(e);if(-1!==i){var o=parseInt(t.substr(i+e.length),10);return"object"===_typeof$2(r=r[o])?n:r}return""}return function(){return e="",r=t.getFootageData(),n}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}function seedRandom(t,e){var r=this,n=256,i="random",o=e.pow(n,6),a=e.pow(2,52),s=2*a,c=255;function l(t){var e,r=t.length,i=this,o=0,a=i.i=i.j=0,s=i.S=[];for(r||(t=[r++]);o<n;)s[o]=o++;for(o=0;o<n;o++)s[o]=s[a=c&a+t[o%r]+(e=s[o])],s[a]=e;i.g=function(t){for(var e,r=0,o=i.i,a=i.j,s=i.S;t--;)e=s[o=c&o+1],r=r*n+s[c&(s[o]=s[a=c&a+e])+(s[a]=e)];return i.i=o,i.j=a,r}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function d(t,e){var r,n=[],i=_typeof$1(t);if(e&&"object"==i)for(r in t)try{n.push(d(t[r],e-1))}catch(t){}return n.length?n:"string"==i?t:t+"\0"}function h(t,e){for(var r,n=t+"",i=0;i<n.length;)e[c&i]=c&(r^=19*e[c&i])+n.charCodeAt(i++);return p(e)}function p(t){return String.fromCharCode.apply(0,t)}e["seed"+i]=function(c,f,m){var g=[],v=h(d((f=!0===f?{entropy:!0}:f||{}).entropy?[c,p(t)]:null===c?function(){try{var e=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(e),p(e)}catch(e){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,p(t)]}}():c,3),g),y=new l(g),b=function(){for(var t=y.g(6),e=o,r=0;t<a;)t=(t+r)*n,e*=n,r=y.g(1);for(;t>=s;)t/=2,e/=2,r>>>=1;return(t+r)/e};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,h(p(y.S),t),(f.pass||m||function(t,r,n,o){return o&&(o.S&&u(o,y),t.state=function(){return u(y,{})}),n?(e[i]=t,r):t})(b,v,"global"in f?f.global:this==e,f.state)},h(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,n=t.length,i=[];for(r=0;r<n;r+=1)i[r]=-t[r];return i}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var r=_typeof(t),n=_typeof(e);if("string"===r||"string"===n)return t+e;if(isNumerable(r,t)&&isNumerable(n,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,a=e.length,s=[];i<o||i<a;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?s[i]=t[i]+e[i]:s[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return s}return 0}var add=sum;function sub(t,e){var r=_typeof(t),n=_typeof(e);if(isNumerable(r,t)&&isNumerable(n,e))return"string"===r&&(t=parseInt(t,10)),"string"===n&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var i=0,o=t.length,a=e.length,s=[];i<o||i<a;)("number"==typeof t[i]||t[i]instanceof Number)&&("number"==typeof e[i]||e[i]instanceof Number)?s[i]=t[i]-e[i]:s[i]=void 0===e[i]?t[i]:t[i]||e[i],i+=1;return s}return 0}function mul(t,e){var r,n,i,o=_typeof(t),a=_typeof(e);if(isNumerable(o,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]*e;return r}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t*e[n];return r}return 0}function div(t,e){var r,n,i,o=_typeof(t),a=_typeof(e);if(isNumerable(o,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(i=t.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t[n]/e;return r}if(isNumerable(o,t)&&$bm_isInstanceOfArray(e)){for(i=e.length,r=createTypedArray("float32",i),n=0;n<i;n+=1)r[n]=t/e[n];return r}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var n=r;r=e,e=n}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var n=Math.min(t.length,e.length),i=0;for(r=0;r<n;r+=1)i+=Math.pow(e[r]-t[r],2);return Math.sqrt(i)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,n=t[0],i=t[1],o=t[2],a=Math.max(n,i,o),s=Math.min(n,i,o),c=(a+s)/2;if(a===s)e=0,r=0;else{var l=a-s;switch(r=c>.5?l/(2-a-s):l/(a+s),a){case n:e=(i-o)/l+(i<o?6:0);break;case i:e=(o-n)/l+2;break;case o:e=(n-i)/l+4}e/=6}return[e,r,c,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,n,i=t[0],o=t[1],a=t[2];if(0===o)e=a,n=a,r=a;else{var s=a<.5?a*(1+o):a+o-a*o,c=2*a-s;e=hue2rgb(c,s,i+1/3),r=hue2rgb(c,s,i),n=hue2rgb(c,s,i-1/3)}return[e,r,n,t[3]]}function linear(t,e,r,n,i){if(void 0!==n&&void 0!==i||(n=e,i=r,e=0,r=1),r<e){var o=r;r=e,e=o}if(t<=e)return n;if(t>=r)return i;var a,s=r===e?0:(t-e)/(r-e);if(!n.length)return n+(i-n)*s;var c=n.length,l=createTypedArray("float32",c);for(a=0;a<c;a+=1)l[a]=n[a]+(i[a]-n[a])*s;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,n=e.length;t||(t=createTypedArray("float32",n));var i=createTypedArray("float32",n),o=BMMath.random();for(r=0;r<n;r+=1)i[r]=t[r]+o*(e[r]-t[r]);return i}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,n){var i,o=t.length,a=shapePool.newElement();a.setPathData(!!n,o);var s,c,l=[0,0];for(i=0;i<o;i+=1)s=e&&e[i]?e[i]:l,c=r&&r[i]?r[i]:l,a.setTripleAt(t[i][0],t[i][1],c[0]+t[i][0],c[1]+t[i][1],s[0]+t[i][0],s[1]+t[i][1],i,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var r,n,i=this.pv.length?this.pv.length:1,o=createTypedArray("float32",i),a=Math.floor(5*time);for(r=0,n=0;r<a;){for(n=0;n<i;n+=1)o[n]+=-e+2*e*BMMath.random();r+=1}var s=5*time,c=s-Math.floor(s),l=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)l[n]=this.pv[n]+o[n]+(-e+2*e*BMMath.random())*c;return l}return this.pv+o[0]+(-e+2*e*BMMath.random())*c}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,n,0]}function easeOut(t,e,r,n,i){return applyEase(easeOutBez,t,e,r,n,i)}function easeIn(t,e,r,n,i){return applyEase(easeInBez,t,e,r,n,i)}function ease(t,e,r,n,i){return applyEase(easeInOutBez,t,e,r,n,i)}function applyEase(t,e,r,n,i,o){void 0===i?(i=r,o=n):e=(e-r)/(n-r),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(i)){var s,c=i.length,l=createTypedArray("float32",c);for(s=0;s<c;s+=1)l[s]=(o[s]-i[s])*a+i[s];return l}return(o-i)*a+i}function nearestKey(t){var e,r,n,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,n=data.k[0].t;else{for(e=0;e<i-1;e+=1){if(t===data.k[e].t){r=e+1,n=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,n=data.k[e+1].t):(r=e+1,n=data.k[e].t);break}}-1===r&&(r=e+1,n=data.k[e].t)}else r=0,n=0;var o={};return o.index=r,o.time=n/elem.comp.globalData.frameRate,o}function key(t){var e,r,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=i.length,r=0;r<n;r+=1)e[r]=i[r],e.value[r]=i[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),n=0;if(e.length){var i;for(i=0;i<e.length;i+=1)n+=Math.pow(r[i]-e[i],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,n=-.001,i=this.getValueAtTime(t),o=this.getValueAtTime(t+n);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(o[r]-i[r])/n;else e=(o-i)/n;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[l.length-1].t;if(c<=u)return this.pv;if(r?i=u-(n=e?Math.abs(u-this.elem.comp.globalData.frameRate*e):Math.max(0,u-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),n=u-(i=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((c-i)/n)%2!=0)return this.getValueAtTime((n-(c-i)%n+i)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0),f=Math.floor((c-i)/n);if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=(h[o]-d[o])*f+p[o];return s}return(h-d)*f+p}if("continue"===t){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*((c-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-u)/.001*(m-g)}}return this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,i,o,a,s,c=this.comp.renderedFrame,l=this.keyframes,u=l[0].t;if(c>=u)return this.pv;if(r?i=u+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-u)):((!e||e>l.length-1)&&(e=l.length-1),n=(i=l[e].t)-u),"pingpong"===t){if(Math.floor((u-c)/n)%2==0)return this.getValueAtTime(((u-c)%n+u)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime((n-(u-c)%n+u)/this.comp.globalData.frameRate,0),f=Math.floor((u-c)/n)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,o=0;o<a;o+=1)s[o]=p[o]-(h[o]-d[o])*f;return s}return p-(h-d)*f}if("continue"===t){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,o=0;o<a;o+=1)s[o]=m[o]+(m[o]-g[o])*(u-c)/.001;return s}return m+(m-g)*(u-c)/.001}}return this.getValueAtTime((n-((u-c)%n+u))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,o=i-t,a=e>1?(i+t-o)/(e-1):1,s=0,c=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<e;){if(n=this.getValueAtTime(o+s*a),this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]+=n[c];else r+=n;s+=1}if(this.pv.length)for(c=0;c<this.pv.length;c+=1)r[c]/=e;else r/=e;return r}function n(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(t);e.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(t),o=this.sa.getValueAtTime(t);e.skewFromAxis(-i*this.sk.mult,o*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(t),c=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),u=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(t),h=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);e.translate(d*this.px.mult,h*this.py.mult,-p*this.pz.mult)}else e.translate(d*this.px.mult,h*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return e}function i(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var a=o(t,e,r);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=i.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,i,o,s,c){var l=a(n,i,o,s,c);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===i.a?i.k.length:0,l.propertyIndex=i.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(n,i,l),l.k&&c.addDynamicProperty(l),l};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(t,e){this.k&&this.getValue();var r,n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0));var i=n._length,o=n[t],a=n.v,s=createSizedArray(i);for(r=0;r<i;r+=1)s[r]="i"===t||"o"===t?[o[r][0]-a[r][0],o[r][1]-a[r][1]]:[o[r][0],o[r][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n,i=this._segmentsLength,o=i.lengths,a=i.totalLength*t,s=0,c=o.length,l=0;s<c;){if(l+o[s].addedLength>a){var u=s,d=r.c&&s===c-1?0:s+1,h=(a-l)/o[s].addedLength;n=bez.getPointInSegment(r.v[u],r.v[d],r.o[u],r.i[d],h,o[s]);break}l+=o[s].addedLength,s+=1}return n||(n=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),n},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var n=this.pointOnPath(t,e),i=this.pointOnPath(t+.001,e),o=i[0]-n[0],a=i[1]-n[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],s),extendPrototype([l],c),c.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},c.prototype.initiateExpression=ExpressionManager.initiateExpression;var u=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,n,i){var o=u(t,e,r,n,i);return o.propertyIndex=e.ix,o.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,o):4===r&&expressionHelpers.searchExpressions(t,e.ks,o),o.k&&t.addDynamicProperty(o),o}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var n={};return this.copyData(n,t),n.t=r.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(t,e,r,n,i){this.filterManager=e;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_1"),t.appendChild(o),(o=createNS("feColorMatrix")).setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",n+"_tint_2"),t.appendChild(o),this.matrixFilter=o;var a=this.createMergeNode(n,[i,n+"_tint_1",n+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",n),t.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,n){this.filterManager=e;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(i);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),this.matrixFilter=o;var a=createNS("feFuncR");a.setAttribute("type","table"),o.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),o.appendChild(s),this.feFuncG=s;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,t.appendChild(o)}function SVGProLevelsFilter(t,e,r,n){this.filterManager=e;var i=this.filterManager.effectElements,o=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(o)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((o=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",n),t.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}function SVGDropShadowEffect(t,e,r,n,i){var o=e.container.globalData.renderConfig.filterSize,a=e.data.fs||o;t.setAttribute("x",a.x||o.x),t.setAttribute("y",a.y||o.y),t.setAttribute("width",a.width||o.width),t.setAttribute("height",a.height||o.height),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",n+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",n+"_drop_shadow_1"),c.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=c,t.appendChild(c);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=l,t.appendChild(l);var u=createNS("feComposite");u.setAttribute("in",n+"_drop_shadow_3"),u.setAttribute("in2",n+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(u);var d=this.createMergeNode(n,[n+"_drop_shadow_4",i]);t.appendChild(d)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,n,i=createNS("feMerge");for(i.setAttribute("result",t),n=0;n<e.length;n+=1)(r=createNS("feMergeNode")).setAttribute("in",e[n]),i.appendChild(r),i.appendChild(r);return i}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,n,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,r=0):n=1+(r=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<n;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(e),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=o,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,n,i=this.paths.length;for(e=0;e<i;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),c=n.getTotalLength();o="0 0 0 "+c*a+" ";var l,u=c*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,h=Math.floor(u/d);for(l=0;l<h;l+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+10*c+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",o)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,i=n[0]+" "+r[0]+" "+e[0],o=n[1]+" "+r[1]+" "+e[1],a=n[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,n,i){for(var o,a,s=0,c=Math.min(t,e),l=Math.max(t,e),u=Array.call(null,{length:256}),d=0,h=i-n,p=e-t;s<=256;)a=(o=s/256)<=c?p<0?i:n:o>=l?p<0?n:i:n+h*Math.pow((o-t)/p,1/r),u[d]=a,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(n),o=r*Math.sin(n);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,n){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var i=createNS("feGaussianBlur");i.setAttribute("result",n),t.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var n,i=r.children,o=0,a=i.length;o<a&&i[o]!==t.layerElement;)o+=1;o<=a-2&&(n=i[o+1]);var s=createNS("use");s.setAttribute("href","#"+e),n?r.insertBefore(s,n):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var i=t.globalData.defs;i.appendChild(n);var o=createNS("symbol");o.setAttribute("id",r),this.replaceInParent(e,r),o.appendChild(e.layerElement),i.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+r),n.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,n=e.length;r<n;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,n=3==r?0:e,i=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+i);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())},78655:(t,e,r)=>{"use strict";var n=r(51266),i=r(24104),o=r(87040),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=l,e.h2=50;var s=2147483647;function c(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|g(t,e),n=c(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Q(t,Uint8Array)){var e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return f(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return l.from(n,e,r);var i=function(t){if(l.isBuffer(t)){var e=0|m(t.length),r=c(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||K(t.length)?c(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return d(t),c(t<0?0:0|m(t))}function p(t){for(var e=t.length<0?0:0|m(t.length),r=c(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,l.prototype),n}function m(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:Y(t).length;e=(""+e).toLowerCase(),i=!0}}function v(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,r);case"utf8":case"utf-8":return D(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){var o,a=1,s=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,r/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=r;o<s;o++)if(l(t,o)===l(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var d=!0,h=0;h<c;h++)if(l(t,o+h)!==l(e,h)){d=!1;break}if(d)return o}return-1}function _(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o,a=e.length;for(n>a/2&&(n=a/2),o=0;o<n;++o){var s=parseInt(e.substr(2*o,2),16);if(K(s))return o;t[r+o]=s}return o}function E(t,e,r,n){return $(Y(e,t.length-r),t,r,n)}function x(t,e,r,n){return $(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return $(X(e),t,r,n)}function C(t,e,r,n){return $(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function S(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function D(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var c=void 0,l=void 0,u=void 0,d=void 0;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(c=t[i+1]))&&(d=(31&o)<<6|63&c)>127&&(a=d);break;case 3:c=t[i+1],l=t[i+2],128==(192&c)&&128==(192&l)&&(d=(15&o)<<12|(63&c)<<6|63&l)>2047&&(d<55296||d>57343)&&(a=d);break;case 4:c=t[i+1],l=t[i+2],u=t[i+3],128==(192&c)&&128==(192&l)&&128==(192&u)&&(d=(15&o)<<18|(63&c)<<12|(63&l)<<6|63&u)>65535&&d<1114112&&(a=d)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=O));return r}(n)}l.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.TYPED_ARRAY_SUPPORT||void 0===n||"function"!=typeof n.error||n.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,r){return function(t,e,r){return d(t),t<=0?c(t):void 0!==e?"string"==typeof r?c(t).fill(e,r):c(t).fill(e):c(t)}(t,e,r)},l.allocUnsafe=function(t){return h(t)},l.allocUnsafeSlow=function(t){return h(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=l.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(Q(o,Uint8Array))i+o.length>n.length?(l.isBuffer(o)||(o=l.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else{if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},l.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?D(this,0,t):v.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(t,e,r,n,i){if(Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),u=t.slice(e,r),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},l.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return _(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return x(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function P(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function k(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Z[t[o]];return i}function T(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function N(t,e,r,n,i){H(e,n,i,t,r,7);var o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;var a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function M(t,e,r,n,i){H(e,n,i,t,r,7);var o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;var a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function B(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,i){return e=+e,r>>>=0,i||B(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,i){return e=+e,r>>>=0,i||B(t,0,r,8),o.write(t,e,r,n,52,8),r+8}l.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=J((function(t){G(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);var n=e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24),i=this[++t]+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(t){G(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);var n=e*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t],i=this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=J((function(t){G(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);var n=this[t+4]+this[t+5]*Math.pow(2,8)+this[t+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+this[++t]*Math.pow(2,8)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,24))})),l.prototype.readBigInt64BE=J((function(t){G(t>>>=0,"offset");var e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);var n=(e<<24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*Math.pow(2,24)+this[++t]*Math.pow(2,16)+this[++t]*Math.pow(2,8)+r)})),l.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return N(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigInt64LE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return N(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,n){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},l.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=l.isBuffer(t)?t:l.from(t,n),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var V={};function z(t,e,r){V[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(t,"]"),this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return"".concat(this.name," [").concat(t,"]: ").concat(this.message)}}}function U(t){for(var e="",r=t.length,n="-"===t[0]?1:0;r>=n+4;r-=3)e="_".concat(t.slice(r-3,r)).concat(e);return"".concat(t.slice(0,r)).concat(e)}function H(t,e,r,n,i,o){if(t>r||t<e){var a,s="bigint"==typeof e?"n":"";throw a=o>3?0===e||e===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(o+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(o+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(s):">= ".concat(e).concat(s," and <= ").concat(r).concat(s),new V.ERR_OUT_OF_RANGE("value",a,t)}!function(t,e,r){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||q(e,t.length-(r+1))}(n,i,o)}function G(t,e){if("number"!=typeof t)throw new V.ERR_INVALID_ARG_TYPE(e,"number",t)}function q(t,e,r){if(Math.floor(t)!==t)throw G(t,r),new V.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new V.ERR_BUFFER_OUT_OF_BOUNDS;throw new V.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(e),t)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(typeof e)}),TypeError),z("ERR_OUT_OF_RANGE",(function(t,e,r){var n='The value of "'.concat(t,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?i=U(String(r)):"bigint"==typeof r&&(i=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(i=U(i)),i+="n"),n+" It must be ".concat(e,". Received ").concat(i)}),RangeError);var W=/[^+/0-9A-Za-z-_]/g;function Y(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function X(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,e,r,n){var i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}var Z=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}();function J(t){return"undefined"==typeof BigInt?tt:t}function tt(){throw new Error("BigInt not supported")}},5675:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},95518:(t,e,r)=>{"use strict";var n=r(27741),i=r(47426),o=r(5675),a=r(73991),s=r(36554),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),t.exports=c},73991:(t,e,r)=>{"use strict";var n=r(5675);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},36554:(t,e,r)=>{"use strict";var n=r(73991),i=r(27741);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},94541:(t,e,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(84489),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=a(t),s=e&&"[object String]"===o.call(t),h=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=l&&r;if(s&&t.length>0&&!i.call(t,0))for(var m=0;m<t.length;++m)h.push(String(m));if(n&&t.length>0)for(var g=0;g<t.length;++g)h.push(String(g));else for(var v in t)f&&"prototype"===v||!i.call(t,v)||h.push(String(v));if(c)for(var y=function(t){if("undefined"==typeof window||!p)return d(t);try{return d(t)}catch(t){return!1}}(t),b=0;b<u.length;++b)y&&"constructor"===u[b]||!i.call(t,u[b])||h.push(u[b]);return h}}t.exports=n},76927:(t,e,r)=>{"use strict";var n=Array.prototype.slice,i=r(84489),o=Object.keys,a=o?function(t){return o(t)}:r(94541),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},84489:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},92013:(t,e,r)=>{"use strict";r.d(e,{dP:()=>O,re:()=>k});var n=r(63471),i=r(36974);function o(){}var a,s=function(){function t(t,e){void 0===t&&(t=1/0),void 0===e&&(e=o),this.max=t,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(t){return this.map.has(t)},t.prototype.get=function(t){var e=this.getNode(t);return e&&e.value},t.prototype.getNode=function(t){var e=this.map.get(t);if(e&&e!==this.newest){var r=e.older,n=e.newer;n&&(n.older=r),r&&(r.newer=n),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=n)}return e},t.prototype.set=function(t,e){var r=this.getNode(t);return r?r.value=e:(r={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(t){var e=this.map.get(t);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(t),this.dispose(e.value,t),!0)},t}(),c=new i.g7,l=Object.prototype.hasOwnProperty,u=void 0===(a=Array.from)?function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e}:a;function d(t){var e=t.unsubscribe;"function"==typeof e&&(t.unsubscribe=void 0,e())}var h=[];function p(t,e){if(!t)throw new Error(e||"assertion failure")}function f(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var m=function(){function t(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}return t.prototype.peek=function(){if(1===this.value.length&&!y(this))return g(this),this.value[0]},t.prototype.recompute=function(t){return p(!this.recomputing,"already recomputing"),g(this),y(this)?function(t,e){return C(t),c.withValue(t,v,[t,e]),function(t,e){if("function"==typeof t.subscribe)try{d(t),t.unsubscribe=t.subscribe.apply(null,e)}catch(e){return t.setDirty(),!1}return!0}(t,e)&&function(t){t.dirty=!1,y(t)||w(t)}(t),f(t.value)}(this,t):f(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this),d(this))},t.prototype.dispose=function(){var t=this;this.setDirty(),C(this),_(this,(function(e,r){e.setDirty(),S(e,t)}))},t.prototype.forget=function(){this.dispose()},t.prototype.dependOn=function(t){t.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add(t)},t.prototype.forgetDeps=function(){var t=this;this.deps&&(u(this.deps).forEach((function(e){return e.delete(t)})),this.deps.clear(),h.push(this.deps),this.deps=null)},t.count=0,t}();function g(t){var e=c.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),y(t)?E(e,t):x(e,t),e}function v(t,e){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,e)}catch(e){t.value[1]=e}t.recomputing=!1}function y(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function b(t){_(t,E)}function w(t){_(t,x)}function _(t,e){var r=t.parents.size;if(r)for(var n=u(t.parents),i=0;i<r;++i)e(n[i],t)}function E(t,e){p(t.childValues.has(e)),p(y(e));var r=!y(t);if(t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=h.pop()||new Set;t.dirtyChildren.add(e),r&&b(t)}function x(t,e){p(t.childValues.has(e)),p(!y(e));var r,n,i,o=t.childValues.get(e);0===o.length?t.childValues.set(e,e.value.slice(0)):(r=o,n=e.value,(i=r.length)>0&&i===n.length&&r[i-1]===n[i-1]||t.setDirty()),A(t,e),y(t)||w(t)}function A(t,e){var r=t.dirtyChildren;r&&(r.delete(e),0===r.size&&(h.length<100&&h.push(r),t.dirtyChildren=null))}function C(t){t.childValues.size>0&&t.childValues.forEach((function(e,r){S(t,r)})),t.forgetDeps(),p(null===t.dirtyChildren)}function S(t,e){e.parents.delete(t),t.childValues.delete(e),A(t,e)}var D={setDirty:!0,dispose:!0,forget:!0};function O(t){var e=new Map,r=t&&t.subscribe;function n(t){var n=c.getValue();if(n){var i=e.get(t);i||e.set(t,i=new Set),n.dependOn(i),"function"==typeof r&&(d(i),i.unsubscribe=r(t))}}return n.dirty=function(t,r){var n=e.get(t);if(n){var i=r&&l.call(D,r)?r:"setDirty";u(n).forEach((function(t){return t[i]()})),e.delete(t),d(n)}},n}function P(){var t=new n.B("function"==typeof WeakMap);return function(){return t.lookupArray(arguments)}}P();var I=new Set;function k(t,e){void 0===e&&(e=Object.create(null));var r=new s(e.max||Math.pow(2,16),(function(t){return t.dispose()})),n=e.keyArgs,i=e.makeCacheKey||P(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return t.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new m(t)),a.subscribe=e.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),I.add(r),c.hasValue()||(I.forEach((function(t){return t.clean()})),I.clear()),s};function a(t){var e=r.get(t);e&&e.setDirty()}function l(t){var e=r.get(t);if(e)return e.peek()}function u(t){return r.delete(t)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=l,o.peek=function(){return l(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},6591:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&h())}function h(){if(!l){var t=a(d);l=!0;for(var e=c.length;e;){for(s=c,c=[];++u<e;)s&&s[u].run();u=-1,e=c.length}s=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new p(t,e)),1!==c.length||l||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},171:(t,e,r)=>{"use strict";r.d(e,{Jh:()=>u,XA:()=>d,ZT:()=>i,_T:()=>a,ev:()=>h,gn:()=>s,mG:()=>l,pi:()=>o,w6:()=>c});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function s(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))}function u(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}Object.create,Object.create},66008:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},85193:(t,e,r)=>{"use strict";var n=r(81582),i=r(72654),o=r(86967),a=r(11438);function s(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var f=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function v(t){return"[object Map]"===u(t)}function y(t){return"[object Set]"===u(t)}function b(t){return"[object WeakMap]"===u(t)}function w(t){return"[object WeakSet]"===u(t)}function _(t){return"[object ArrayBuffer]"===u(t)}function E(t){return"undefined"!=typeof ArrayBuffer&&(_.working?_(t):t instanceof ArrayBuffer)}function x(t){return"[object DataView]"===u(t)}function A(t){return"undefined"!=typeof DataView&&(x.working?x(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||A(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},v.working="undefined"!=typeof Map&&v(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(v.working?v(t):t instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(y.working?y(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),e.isArrayBuffer=E,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=A;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===u(t)}function D(t){return void 0!==C&&(void 0===S.working&&(S.working=S(new C)),S.working?S(t):t instanceof C)}function O(t){return g(t,d)}function P(t){return g(t,h)}function I(t){return g(t,p)}function k(t){return c&&g(t,f)}function T(t){return l&&g(t,m)}e.isSharedArrayBuffer=D,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=O,e.isStringObject=P,e.isBooleanObject=I,e.isBigIntObject=k,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return O(t)||P(t)||I(t)||k(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(E(t)||D(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},17396:(t,e,r)=>{var n=r(6591),i=r(51266),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(a,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<i;s=n[++r])y(s)||!x(s)?o+=" "+s:o+=" "+u(s);return o},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?i.trace(r):i.error(r),o=!0}return t.apply(this,arguments)}};var s={},c=/^$/;if({"NODE-ENV":"production","SHELL-VERSION":"6.0.0-zeta.30","SHELL-LICENSE":void 0,"APP-VERSION":"6.0.0-zeta.31","APP-LICENSE":void 0,"APP-NAME":"@things-factory/reference-app","APP-DESCRIPTION":"Applications that can be referenced for development","APP-TAGLINE":void 0}.NODE_DEBUG){var l={"NODE-ENV":"production","SHELL-VERSION":"6.0.0-zeta.30","SHELL-LICENSE":void 0,"APP-VERSION":"6.0.0-zeta.31","APP-LICENSE":void 0,"APP-NAME":"@things-factory/reference-app","APP-DESCRIPTION":"Applications that can be referenced for development","APP-TAGLINE":void 0}.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+l+"$","i")}function u(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&e._extend(n,r),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=d),p(n,t,n.depth)}function d(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return w(i)||(i=p(t,i,n)),i}var o=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return b(e)?t.stylize(""+e,"number"):v(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),C(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(S(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(A(r))return t.stylize(Date.prototype.toString.call(r),"date");if(C(r))return f(r)}var l,u="",d=!1,h=["{","}"];return g(r)&&(d=!0,h=["[","]"]),S(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(u=" "+RegExp.prototype.toString.call(r)),A(r)&&(u=" "+Date.prototype.toUTCString.call(r)),C(r)&&(u=" "+f(r)),0!==a.length||d&&0!=r.length?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=d?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)k(e,String(a))?o.push(m(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(m(t,e,r,n,i,!0))})),o}(t,r,n,s,a):a.map((function(e){return m(t,r,n,s,e,d)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(l,u,h)):h[0]+u+h[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function m(t,e,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(s=t.stylize("[Setter]","special")),k(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(c.value)<0?(s=y(r)?p(t,c.value,null):p(t,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function g(t){return Array.isArray(t)}function v(t){return"boolean"==typeof t}function y(t){return null===t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function _(t){return void 0===t}function E(t){return x(t)&&"[object RegExp]"===D(t)}function x(t){return"object"==typeof t&&null!==t}function A(t){return x(t)&&"[object Date]"===D(t)}function C(t){return x(t)&&("[object Error]"===D(t)||t instanceof Error)}function S(t){return"function"==typeof t}function D(t){return Object.prototype.toString.call(t)}function O(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(c.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);i.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(85193),e.isArray=g,e.isBoolean=v,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=E,e.types.isRegExp=E,e.isObject=x,e.isDate=A,e.types.isDate=A,e.isError=C,e.types.isNativeError=C,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(66008);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),P[t.getMonth()],e].join(" ")}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){i.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=r(23128),e._extend=function(t,e){if(!e||!x(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,o(t))},e.promisify.custom=T,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(R.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,o(t)),e}},86967:(t,e,r)=>{"use strict";var n=r(13366),i=r(52697),o=r(62453),a=r(31606),s=o("Object.prototype.toString"),c=r(44308)(),l="undefined"==typeof globalThis?r.g:globalThis,u=i(),d=o("String.prototype.slice"),h={},p=Object.getPrototypeOf;c&&a&&p&&n(u,(function(t){if("function"==typeof l[t]){var e=new l[t];if(Symbol.toStringTag in e){var r=p(e),n=a(r,Symbol.toStringTag);if(!n){var i=p(r);n=a(i,Symbol.toStringTag)}h[t]=n.get}}}));var f=r(11438);t.exports=function(t){return!!f(t)&&(c&&Symbol.toStringTag in t?function(t){var e=!1;return n(h,(function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}})),e}(t):d(s(t),8,-1))}},10847:(t,e,r)=>{"use strict";r.d(e,{__:()=>u});var n=r(61886),i=r(3325);const o=/\r\n|[\n\r]/g;function a(t,e){let r=0,n=1;for(const a of t.body.matchAll(o)){if("number"==typeof a.index||(0,i.k)(!1),a.index>=e)break;r=a.index+a[0].length,n+=1}return{line:n,column:e+1-r}}function s(t){return c(t.source,a(t.source,t.start))}function c(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,i=e.line-1,o=t.locationOffset.line-1,a=e.line+o,s=1===e.line?r:0,c=e.column+s,u=`${t.name}:${a}:${c}\n`,d=n.split(/\r\n|[\n\r]/g),h=d[i];if(h.length>120){const t=Math.floor(c/80),e=c%80,r=[];for(let t=0;t<h.length;t+=80)r.push(h.slice(t,t+80));return u+l([[`${a} |`,r[0]],...r.slice(1,t+1).map((t=>["|",t])),["|","^".padStart(e)],["|",r[t+1]]])}return u+l([[a-1+" |",d[i-1]],[`${a} |`,h],["|","^".padStart(c)],[`${a+1} |`,d[i+1]]])}function l(t){const e=t.filter((([t,e])=>void 0!==e)),r=Math.max(...e.map((([t])=>t.length)));return e.map((([t,e])=>t.padStart(r)+(e?" "+e:""))).join("\n")}class u extends Error{constructor(t,...e){var r,i,o;const{nodes:s,source:c,positions:l,path:h,originalError:p,extensions:f}=function(t){const e=t[0];return null==e||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}(e);super(t),this.name="GraphQLError",this.path=null!=h?h:void 0,this.originalError=null!=p?p:void 0,this.nodes=d(Array.isArray(s)?s:s?[s]:void 0);const m=d(null===(r=this.nodes)||void 0===r?void 0:r.map((t=>t.loc)).filter((t=>null!=t)));this.source=null!=c?c:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=l?l:null==m?void 0:m.map((t=>t.start)),this.locations=l&&c?l.map((t=>a(c,t))):null==m?void 0:m.map((t=>a(t.source,t.start)));const g=(0,n.y)(null==p?void 0:p.extensions)?null==p?void 0:p.extensions:void 0;this.extensions=null!==(o=null!=f?f:g)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(t+="\n\n"+s(e.loc));else if(this.source&&this.locations)for(const e of this.locations)t+="\n\n"+c(this.source,e);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function d(t){return void 0===t||0===t.length?void 0:t}},37431:(t,e,r)=>{"use strict";function n(t,e){if(!Boolean(t))throw new Error(e)}r.d(e,{a:()=>n})},23846:(t,e,r)=>{"use strict";function n(t){return i(t,[])}function i(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:i(e,r)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const r=Math.min(10,t.length),n=t.length-r,o=[];for(let n=0;n<r;++n)o.push(i(t[n],e));return 1===n?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}(t,r);return function(t,e){const r=Object.entries(t);if(0===r.length)return"{}";if(e.length>2)return"["+function(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return e}(t)+"]";const n=r.map((([t,r])=>t+": "+i(r,e)));return"{ "+n.join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}r.d(e,{X:()=>n})},51327:(t,e,r)=>{"use strict";r.d(e,{n:()=>n});const n=function(t,e){return t instanceof e}},3325:(t,e,r)=>{"use strict";function n(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}r.d(e,{k:()=>n})},61886:(t,e,r)=>{"use strict";function n(t){return"object"==typeof t&&null!==t}r.d(e,{y:()=>n})},75132:(t,e,r)=>{"use strict";r.d(e,{UG:()=>s,WU:()=>i,Ye:()=>n,h8:()=>o,ku:()=>c});class n{constructor(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(t,e,r,n,i,o){this.kind=t,this.start=e,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&a.has(e)}var c;!function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(c||(c={}))},60930:(t,e,r)=>{"use strict";r.d(e,{LZ:()=>a,wv:()=>i});var n=r(31820);function i(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let e=0;e<t.length;++e){var a;const s=t[e],c=o(s);c!==s.length&&(n=null!==(a=n)&&void 0!==a?a:e,i=e,0!==e&&c<r&&(r=c))}return t.map(((t,e)=>0===e?t:t.slice(r))).slice(null!==(e=n)&&void 0!==e?e:0,i+1)}function o(t){let e=0;for(;e<t.length&&(0,n.FD)(t.charCodeAt(e));)++e;return e}function a(t,e){const r=t.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every((t=>0===t.length||(0,n.FD)(t.charCodeAt(0)))),s=r.endsWith('\\"""'),c=t.endsWith('"')&&!s,l=t.endsWith("\\"),u=c||l,d=!(null!=e&&e.minimize)&&(!o||t.length>70||u||a||s);let h="";const p=o&&(0,n.FD)(t.charCodeAt(0));return(d&&!p||a)&&(h+="\n"),h+=r,(d||u)&&(h+="\n"),'"""'+h+'"""'}},31820:(t,e,r)=>{"use strict";function n(t){return 9===t||32===t}function i(t){return t>=48&&t<=57}function o(t){return t>=97&&t<=122||t>=65&&t<=90}function a(t){return o(t)||95===t}function s(t){return o(t)||i(t)||95===t}r.d(e,{FD:()=>n,HQ:()=>s,LQ:()=>a,X1:()=>i})},45932:(t,e,r)=>{"use strict";var n;r.d(e,{B:()=>n}),function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(n={}))},34627:(t,e,r)=>{"use strict";var n;r.d(e,{h:()=>n}),function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},54509:(t,e,r)=>{"use strict";r.d(e,{Qc:()=>T});var n=r(10847);function i(t,e,r){return new n.__(`Syntax Error: ${r}`,{source:t,positions:[e]})}var o,a,s=r(75132),c=r(45932),l=r(34627),u=r(60930),d=r(31820);(a=o||(o={})).SOF="<SOF>",a.EOF="<EOF>",a.BANG="!",a.DOLLAR="$",a.AMP="&",a.PAREN_L="(",a.PAREN_R=")",a.SPREAD="...",a.COLON=":",a.EQUALS="=",a.AT="@",a.BRACKET_L="[",a.BRACKET_R="]",a.BRACE_L="{",a.PIPE="|",a.BRACE_R="}",a.NAME="Name",a.INT="Int",a.FLOAT="Float",a.STRING="String",a.BLOCK_STRING="BlockString",a.COMMENT="Comment";class h{constructor(t){const e=new s.WU(o.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==o.EOF)do{if(t.next)t=t.next;else{const e=b(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===o.COMMENT);return t}}function p(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function f(t,e){return m(t.charCodeAt(e))&&g(t.charCodeAt(e+1))}function m(t){return t>=55296&&t<=56319}function g(t){return t>=56320&&t<=57343}function v(t,e){const r=t.source.body.codePointAt(e);if(void 0===r)return o.EOF;if(r>=32&&r<=126){const t=String.fromCodePoint(r);return'"'===t?"'\"'":`"${t}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function y(t,e,r,n,i){const o=t.line,a=1+r-t.lineStart;return new s.WU(e,r,n,o,a,i)}function b(t,e){const r=t.source.body,n=r.length;let a=e;for(;a<n;){const e=r.charCodeAt(a);switch(e){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++t.line,t.lineStart=a;continue;case 13:10===r.charCodeAt(a+1)?a+=2:++a,++t.line,t.lineStart=a;continue;case 35:return w(t,a);case 33:return y(t,o.BANG,a,a+1);case 36:return y(t,o.DOLLAR,a,a+1);case 38:return y(t,o.AMP,a,a+1);case 40:return y(t,o.PAREN_L,a,a+1);case 41:return y(t,o.PAREN_R,a,a+1);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return y(t,o.SPREAD,a,a+3);break;case 58:return y(t,o.COLON,a,a+1);case 61:return y(t,o.EQUALS,a,a+1);case 64:return y(t,o.AT,a,a+1);case 91:return y(t,o.BRACKET_L,a,a+1);case 93:return y(t,o.BRACKET_R,a,a+1);case 123:return y(t,o.BRACE_L,a,a+1);case 124:return y(t,o.PIPE,a,a+1);case 125:return y(t,o.BRACE_R,a,a+1);case 34:return 34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)?P(t,a):x(t,a)}if((0,d.X1)(e)||45===e)return _(t,a,e);if((0,d.LQ)(e))return I(t,a);throw i(t.source,a,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":p(e)||f(r,a)?`Unexpected character: ${v(t,a)}.`:`Invalid character: ${v(t,a)}.`)}return y(t,o.EOF,n,n)}function w(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n;){const t=r.charCodeAt(i);if(10===t||13===t)break;if(p(t))++i;else{if(!f(r,i))break;i+=2}}return y(t,o.COMMENT,e,i,r.slice(e+1,i))}function _(t,e,r){const n=t.source.body;let a=e,s=r,c=!1;if(45===s&&(s=n.charCodeAt(++a)),48===s){if(s=n.charCodeAt(++a),(0,d.X1)(s))throw i(t.source,a,`Invalid number, unexpected digit after 0: ${v(t,a)}.`)}else a=E(t,a,s),s=n.charCodeAt(a);if(46===s&&(c=!0,s=n.charCodeAt(++a),a=E(t,a,s),s=n.charCodeAt(a)),69!==s&&101!==s||(c=!0,s=n.charCodeAt(++a),43!==s&&45!==s||(s=n.charCodeAt(++a)),a=E(t,a,s),s=n.charCodeAt(a)),46===s||(0,d.LQ)(s))throw i(t.source,a,`Invalid number, expected digit but got: ${v(t,a)}.`);return y(t,c?o.FLOAT:o.INT,e,a,n.slice(e,a))}function E(t,e,r){if(!(0,d.X1)(r))throw i(t.source,e,`Invalid number, expected digit but got: ${v(t,e)}.`);const n=t.source.body;let o=e+1;for(;(0,d.X1)(n.charCodeAt(o));)++o;return o}function x(t,e){const r=t.source.body,n=r.length;let a=e+1,s=a,c="";for(;a<n;){const n=r.charCodeAt(a);if(34===n)return c+=r.slice(s,a),y(t,o.STRING,e,a+1,c);if(92!==n){if(10===n||13===n)break;if(p(n))++a;else{if(!f(r,a))throw i(t.source,a,`Invalid character within String: ${v(t,a)}.`);a+=2}}else{c+=r.slice(s,a);const e=117===r.charCodeAt(a+1)?123===r.charCodeAt(a+2)?A(t,a):C(t,a):O(t,a);c+=e.value,a+=e.size,s=a}}throw i(t.source,a,"Unterminated string.")}function A(t,e){const r=t.source.body;let n=0,o=3;for(;o<12;){const t=r.charCodeAt(e+o++);if(125===t){if(o<5||!p(n))break;return{value:String.fromCodePoint(n),size:o}}if(n=n<<4|D(t),n<0)break}throw i(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+o)}".`)}function C(t,e){const r=t.source.body,n=S(r,e+2);if(p(n))return{value:String.fromCodePoint(n),size:6};if(m(n)&&92===r.charCodeAt(e+6)&&117===r.charCodeAt(e+7)){const t=S(r,e+8);if(g(t))return{value:String.fromCodePoint(n,t),size:12}}throw i(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+6)}".`)}function S(t,e){return D(t.charCodeAt(e))<<12|D(t.charCodeAt(e+1))<<8|D(t.charCodeAt(e+2))<<4|D(t.charCodeAt(e+3))}function D(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function O(t,e){const r=t.source.body;switch(r.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw i(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function P(t,e){const r=t.source.body,n=r.length;let a=t.lineStart,s=e+3,c=s,l="";const d=[];for(;s<n;){const n=r.charCodeAt(s);if(34===n&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)){l+=r.slice(c,s),d.push(l);const n=y(t,o.BLOCK_STRING,e,s+3,(0,u.wv)(d).join("\n"));return t.line+=d.length-1,t.lineStart=a,n}if(92!==n||34!==r.charCodeAt(s+1)||34!==r.charCodeAt(s+2)||34!==r.charCodeAt(s+3))if(10!==n&&13!==n)if(p(n))++s;else{if(!f(r,s))throw i(t.source,s,`Invalid character within String: ${v(t,s)}.`);s+=2}else l+=r.slice(c,s),d.push(l),13===n&&10===r.charCodeAt(s+1)?s+=2:++s,l="",c=s,a=s;else l+=r.slice(c,s),c=s+1,s+=4}throw i(t.source,s,"Unterminated string.")}function I(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n;){const t=r.charCodeAt(i);if(!(0,d.HQ)(t))break;++i}return y(t,o.NAME,e,i,r.slice(e,i))}var k=r(16333);function T(t,e){return new R(t,e).parseDocument()}class R{constructor(t,e={}){const r=(0,k.T)(t)?t:new k.H(t);this._lexer=new h(r),this._options=e,this._tokenCounter=0}parseName(){const t=this.expectToken(o.NAME);return this.node(t,{kind:l.h.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:l.h.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===o.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw i(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:l.h.OPERATION_DEFINITION,operation:s.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(t,{kind:l.h.OPERATION_DEFINITION,operation:e,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(o.NAME);switch(t.value){case"query":return s.ku.QUERY;case"mutation":return s.ku.MUTATION;case"subscription":return s.ku.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:l.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:l.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:l.h.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,n;return this.expectOptionalToken(o.COLON)?(r=e,n=this.parseName()):n=e,this.node(t,{kind:l.h.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,e,o.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(e,{kind:l.h.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(o.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(o.NAME)?this.node(t,{kind:l.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:l.h.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(t,{kind:l.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:l.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(e,{kind:l.h.INT,value:e.value});case o.FLOAT:return this.advanceLexer(),this.node(e,{kind:l.h.FLOAT,value:e.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:l.h.BOOLEAN,value:!0});case"false":return this.node(e,{kind:l.h.BOOLEAN,value:!1});case"null":return this.node(e,{kind:l.h.NULL});default:return this.node(e,{kind:l.h.ENUM,value:e.value})}case o.DOLLAR:if(t){if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){const t=this._lexer.token.value;throw i(this._lexer.source,e.start,`Unexpected variable "$${t}" in constant value.`)}throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:l.h.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:l.h.LIST,values:this.any(o.BRACKET_L,(()=>this.parseValueLiteral(t)),o.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:l.h.OBJECT,fields:this.any(o.BRACE_L,(()=>this.parseObjectField(t)),o.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(o.COLON),this.node(e,{kind:l.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(o.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(o.AT),this.node(e,{kind:l.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(o.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(o.BRACKET_R),e=this.node(t,{kind:l.h.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:l.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:l.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:l.h.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(o.COLON);const r=this.parseNamedType();return this.node(t,{kind:l.h.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:l.h.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:l.h.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(o.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:l.h.FIELD_DEFINITION,description:e,name:r,arguments:n,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(o.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(o.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:l.h.INPUT_VALUE_DEFINITION,description:e,name:r,type:n,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:l.h.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:l.h.UNION_TYPE_DEFINITION,description:e,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:l.h.ENUM_TYPE_DEFINITION,description:e,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:l.h.ENUM_VALUE_DEFINITION,description:e,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw i(this._lexer.source,this._lexer.token.start,`${F(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:l.h.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:l.h.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:l.h.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:l.h.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:l.h.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:l.h.UNION_TYPE_EXTENSION,name:e,directives:r,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:l.h.ENUM_TYPE_EXTENSION,name:e,directives:r,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:l.h.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:n})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:l.h.DIRECTIVE_DEFINITION,description:e,name:r,arguments:n,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(c.B,e.value))return e;throw this.unexpected(t)}node(t,e){return!0!==this._options.noLocation&&(e.loc=new s.Ye(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw i(this._lexer.source,e.start,`Expected ${N(t)}, found ${F(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==o.NAME||e.value!==t)throw i(this._lexer.source,e.start,`Expected "${t}", found ${F(e)}.`);this.advanceLexer()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===o.NAME&&e.value===t&&(this.advanceLexer(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return i(this._lexer.source,e.start,`Unexpected ${F(e)}.`)}any(t,e,r){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(r);)n.push(e.call(this));return n}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(r));return t}return[]}many(t,e,r){this.expectToken(t);const n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do{r.push(e.call(this))}while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(void 0!==t&&e.kind!==o.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw i(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function F(t){const e=t.value;return N(t.kind)+(null!=e?` "${e}"`:"")}function N(t){return function(t){return t===o.BANG||t===o.DOLLAR||t===o.AMP||t===o.PAREN_L||t===o.PAREN_R||t===o.SPREAD||t===o.COLON||t===o.EQUALS||t===o.AT||t===o.BRACKET_L||t===o.BRACKET_R||t===o.BRACE_L||t===o.PIPE||t===o.BRACE_R}(t)?`"${t}"`:t}},54585:(t,e,r)=>{"use strict";r.d(e,{S:()=>c});var n=r(60930);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(t){return a[t.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=r(9485);function c(t){return(0,s.Vn)(t,l)}const l={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>u(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=h("(",u(t.variableDefinitions,", "),")"),r=u([t.operation,u([t.name,e]),u(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+h(" = ",r)+h(" ",u(n," "))},SelectionSet:{leave:({selections:t})=>d(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const o=h("",t,": ")+e;let a=o+h("(",u(r,", "),")");return a.length>80&&(a=o+h("(\n",p(u(r,"\n")),"\n)")),u([a,u(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+h(" ",u(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>u(["...",h("on ",t),u(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${h("(",u(r,", "),")")} on ${e} ${h("",u(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?(0,n.LZ)(t):`"${t.replace(i,o)}"`},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+u(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+u(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+h("(",u(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>h("",t,"\n")+u(["schema",u(e," "),d(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>h("",t,"\n")+u(["scalar",e,u(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>h("",t,"\n")+u(["type",e,h("implements ",u(r," & ")),u(n," "),d(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>h("",t,"\n")+e+(f(r)?h("(\n",p(u(r,"\n")),"\n)"):h("(",u(r,", "),")"))+": "+n+h(" ",u(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>h("",t,"\n")+u([e+": "+r,h("= ",n),u(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>h("",t,"\n")+u(["interface",e,h("implements ",u(r," & ")),u(n," "),d(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>h("",t,"\n")+u(["union",e,u(r," "),h("= ",u(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>h("",t,"\n")+u(["enum",e,u(r," "),d(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>h("",t,"\n")+u([e,u(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>h("",t,"\n")+u(["input",e,u(r," "),d(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>h("",t,"\n")+"directive @"+e+(f(r)?h("(\n",p(u(r,"\n")),"\n)"):h("(",u(r,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>u(["extend schema",u(t," "),d(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>u(["extend scalar",t,u(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>u(["extend type",t,h("implements ",u(e," & ")),u(r," "),d(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>u(["extend interface",t,h("implements ",u(e," & ")),u(r," "),d(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>u(["extend union",t,u(e," "),h("= ",u(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>u(["extend enum",t,u(e," "),d(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>u(["extend input",t,u(e," "),d(r)]," ")}};function u(t,e=""){var r;return null!==(r=null==t?void 0:t.filter((t=>t)).join(e))&&void 0!==r?r:""}function d(t){return h("{\n",p(u(t,"\n")),"\n}")}function h(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function p(t){return h(" ",t.replace(/\n/g,"\n "))}function f(t){var e;return null!==(e=null==t?void 0:t.some((t=>t.includes("\n"))))&&void 0!==e&&e}},16333:(t,e,r)=>{"use strict";r.d(e,{H:()=>a,T:()=>s});var n=r(37431),i=r(23846),o=r(51327);class a{constructor(t,e="GraphQL request",r={line:1,column:1}){"string"==typeof t||(0,n.a)(!1,`Body must be a string. Received: ${(0,i.X)(t)}.`),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||(0,n.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(t){return(0,o.n)(t,a)}},9485:(t,e,r)=>{"use strict";r.d(e,{$_:()=>s,Vn:()=>c});var n=r(37431),i=r(23846),o=r(75132),a=r(34627);const s=Object.freeze({});function c(t,e,r=o.h8){const c=new Map;for(const t of Object.values(a.h))c.set(t,l(e,t));let u,d,h,p=Array.isArray(t),f=[t],m=-1,g=[],v=t;const y=[],b=[];do{m++;const t=m===f.length,a=t&&0!==g.length;if(t){if(d=0===b.length?void 0:y[y.length-1],v=h,h=b.pop(),a)if(p){v=v.slice();let t=0;for(const[e,r]of g){const n=e-t;null===r?(v.splice(n,1),t++):v[n]=r}}else{v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[t,e]of g)v[t]=e}m=u.index,f=u.keys,g=u.edits,p=u.inArray,u=u.prev}else if(h){if(d=p?m:f[m],v=h[d],null==v)continue;y.push(d)}let l;if(!Array.isArray(v)){var w,_;(0,o.UG)(v)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(v)}.`);const r=t?null===(w=c.get(v.kind))||void 0===w?void 0:w.leave:null===(_=c.get(v.kind))||void 0===_?void 0:_.enter;if(l=null==r?void 0:r.call(e,v,d,h,y,b),l===s)break;if(!1===l){if(!t){y.pop();continue}}else if(void 0!==l&&(g.push([d,l]),!t)){if(!(0,o.UG)(l)){y.pop();continue}v=l}}var E;void 0===l&&a&&g.push([d,v]),t?y.pop():(u={inArray:p,index:m,keys:f,edits:g,prev:u},p=Array.isArray(v),f=p?v:null!==(E=r[v.kind])&&void 0!==E?E:[],m=-1,g=[],h&&b.push(h),h=v)}while(void 0!==u);return 0!==g.length?g[g.length-1][1]:t}function l(t,e){const r=t[e];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}},17699:(t,e,r)=>{"use strict";t.exports=r.p+"ed4ff0096ff238659d69.png"},63155:(t,e,r)=>{"use strict";t.exports=r.p+"ed4ff0096ff238659d69.png"},52697:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},67938:(t,e,r)=>{"use strict";r.d(e,{R:()=>a});var n=r(171),i=r(92013),o=r(74483),a=function(){function t(){this.getFragmentDoc=(0,i.re)(o.Yk)}return t.prototype.batch=function(t){var e,r=this,n="string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0;return this.performTransaction((function(){return e=t.update(r)}),n),e},t.prototype.recordOptimisticTransaction=function(t,e){this.performTransaction(t,e)},t.prototype.transformDocument=function(t){return t},t.prototype.transformForLink=function(t){return t},t.prototype.identify=function(t){},t.prototype.gc=function(){return[]},t.prototype.modify=function(t){return!1},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!!t.optimistic),this.read((0,n.pi)((0,n.pi)({},t),{rootId:t.id||"ROOT_QUERY",optimistic:e}))},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!!t.optimistic),this.read((0,n.pi)((0,n.pi)({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:e}))},t.prototype.writeQuery=function(t){var e=t.id,r=t.data,i=(0,n._T)(t,["id","data"]);return this.write(Object.assign(i,{dataId:e||"ROOT_QUERY",result:r}))},t.prototype.writeFragment=function(t){var e=t.id,r=t.data,i=t.fragment,o=t.fragmentName,a=(0,n._T)(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:e,result:r}))},t.prototype.updateQuery=function(t,e){return this.batch({update:function(r){var i=r.readQuery(t),o=e(i);return null==o?i:(r.writeQuery((0,n.pi)((0,n.pi)({},t),{data:o})),o)}})},t.prototype.updateFragment=function(t,e){return this.batch({update:function(r){var i=r.readFragment(t),o=e(i);return null==o?i:(r.writeFragment((0,n.pi)((0,n.pi)({},t),{data:o})),o)}})},t}()},48185:(t,e,r)=>{"use strict";r.d(e,{y:()=>i});var n=r(171),i=function(t){function e(r,n,i,o){var a,s=t.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=e.prototype,s}return(0,n.ZT)(e,t),e}(Error)},65110:(t,e,r)=>{"use strict";r.d(e,{$O:()=>y,E_:()=>b,Is:()=>x,RC:()=>w,RI:()=>u,ig:()=>E,j:()=>_,jS:()=>m,jp:()=>v,kJ:()=>h,lg:()=>g,uG:()=>p});var n=r(41100),i=r(84319),o=r(32345),a=r(37304),s=r(85098),c=r(74483),l=r(7122),u=Object.prototype.hasOwnProperty;function d(t){return null==t}var h=Array.isArray;function p(t,e){var r=t.__typename,n=t.id,i=t._id;if("string"==typeof r&&(e&&(e.keyObject=d(n)?d(i)?void 0:{_id:i}:{id:n}),d(n)&&!d(i)&&(n=i),!d(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var f={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(t){return(0,n.o)(f,t)}function g(t){var e=t.canonizeResults;return void 0===e?f.canonizeResults:e}function v(t,e){return(0,i.Yk)(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var y=/^[_a-z][_0-9a-z]*/i;function b(t){var e=t.match(y);return e?e[0]:t}function w(t,e,r){return!!(0,o.s)(e)&&(h(e)?e.every((function(e){return w(t,e,r)})):t.selections.every((function(t){if((0,i.My)(t)&&(0,a.LZ)(t,r)){var n=(0,i.u2)(t);return u.call(e,n)&&(!t.selectionSet||w(t.selectionSet,e[n],r))}return!0})))}function _(t){return(0,o.s)(t)&&!(0,i.Yk)(t)&&!h(t)}function E(){return new s.w0}function x(t,e){var r=(0,c.F)((0,l.kU)(t));return{fragmentMap:r,lookupFragment:function(t){var n=r[t];return!n&&e&&(n=e.lookup(t)),n||null}}}},36232:(t,e,r)=>{"use strict";r.d(e,{h:()=>pt});var n=r(171),i=r(85979),o=r(92013),a=r(64579),s=r(67938),c=r(48185),l=r(84319),u=r(45117),d=r(34627),h=r(42860),p=r(41100),f=r(7122),m=r(85098),g=r(37304),v=r(74483),y=r(32345);function b(t){return __DEV__&&(e=t,(r=new Set([e])).forEach((function(t){(0,y.s)(t)&&function(t){if(__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(t){if(t instanceof TypeError)return null;throw t}return t}(t)===t&&Object.getOwnPropertyNames(t).forEach((function(e){(0,y.s)(t[e])&&r.add(t[e])}))}))),t;var e,r}var w=r(63471),_=r(65110),E=Object.create(null),x=function(){return E},A=Object.create(null),C=function(){function t(t,e){var r=this;this.policies=t,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(t,e){return b((0,l.Yk)(t)?r.get(t.__ref,e):t&&t[e])},this.canRead=function(t){return(0,l.Yk)(t)?r.has(t.__ref):"object"==typeof t},this.toReference=function(t,e){if("string"==typeof t)return(0,l.kQ)(t);if((0,l.Yk)(t))return t;var n=r.policies.identify(t)[0];if(n){var i=(0,l.kQ)(n);return e&&r.merge(n,t),i}}}return t.prototype.toObject=function(){return(0,n.pi)({},this.data)},t.prototype.has=function(t){return void 0!==this.lookup(t,!0)},t.prototype.get=function(t,e){if(this.group.depend(t,e),_.RI.call(this.data,t)){var r=this.data[t];if(r&&_.RI.call(r,e))return r[e]}return"__typename"===e&&_.RI.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof P?this.parent.get(t,e):void 0},t.prototype.lookup=function(t,e){return e&&this.group.depend(t,"__exists"),_.RI.call(this.data,t)?this.data[t]:this instanceof P?this.parent.lookup(t,e):this.policies.rootTypenamesById[t]?Object.create(null):void 0},t.prototype.merge=function(t,e){var r,n=this;(0,l.Yk)(t)&&(t=t.__ref),(0,l.Yk)(e)&&(e=e.__ref);var o="string"==typeof t?this.lookup(r=t):t,a="string"==typeof e?this.lookup(r=e):e;if(a){__DEV__?(0,i.kG)("string"==typeof r,"store.merge expects a string ID"):(0,i.kG)("string"==typeof r,1);var s=new m.w0(k).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(a).forEach((function(t){if(!o||o[t]!==s[t]){c[t]=1;var e=(0,_.E_)(t);e===t||n.policies.hasKeyArgs(s.__typename,e)||(c[e]=1),void 0!==s[t]||n instanceof P||delete s[t]}})),!c.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete c.__typename,Object.keys(c).forEach((function(t){return n.group.dirty(r,t)}))}}},t.prototype.modify=function(t,e){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),a=!1,s=!0,c={DELETE:E,INVALIDATE:A,isReference:l.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(e,n){return r.policies.readField("string"==typeof e?{fieldName:e,from:n||(0,l.kQ)(t)}:e,{store:r})}};if(Object.keys(i).forEach((function(l){var u=(0,_.E_)(l),d=i[l];if(void 0!==d){var h="function"==typeof e?e:e[l]||e[u];if(h){var p=h===x?E:h(b(d),(0,n.pi)((0,n.pi)({},c),{fieldName:u,storeFieldName:l,storage:r.getStorage(t,l)}));p===A?r.group.dirty(t,l):(p===E&&(p=void 0),p!==d&&(o[l]=p,a=!0,d=p))}void 0!==d&&(s=!1)}})),a)return this.merge(t,o),s&&(this instanceof P?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},t.prototype.delete=function(t,e,r){var n,i=this.lookup(t);if(i){var o=this.getFieldValue(i,"__typename"),a=e&&r?this.policies.getStoreFieldName({typename:o,fieldName:e,args:r}):e;return this.modify(t,a?((n={})[a]=x,n):x)}return!1},t.prototype.evict=function(t,e){var r=!1;return t.id&&(_.RI.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof P&&this!==e&&(r=this.parent.evict(t,e)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var t=this,e=this.toObject(),r=[];return this.getRootIdSet().forEach((function(e){_.RI.call(t.policies.rootTypenamesById,e)||r.push(e)})),r.length&&(e.__META={extraRootIds:r.sort()}),e},t.prototype.replace=function(t){var e=this;if(Object.keys(this.data).forEach((function(r){t&&_.RI.call(t,r)||e.delete(r)})),t){var r=t.__META,i=(0,n._T)(t,["__META"]);Object.keys(i).forEach((function(t){e.merge(t,i[t])})),r&&r.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},t.prototype.release=function(t){if(this.rootIds[t]>0){var e=--this.rootIds[t];return e||delete this.rootIds[t],e}return 0},t.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof P?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},t.prototype.gc=function(){var t=this,e=this.getRootIdSet(),r=this.toObject();e.forEach((function(n){_.RI.call(r,n)&&(Object.keys(t.findChildRefIds(n)).forEach(e.add,e),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof P;)i=i.parent;n.forEach((function(t){return i.delete(t)}))}return n},t.prototype.findChildRefIds=function(t){if(!_.RI.call(this.refs,t)){var e=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return e;var n=new Set([r]);n.forEach((function(t){(0,l.Yk)(t)&&(e[t.__ref]=!0),(0,y.s)(t)&&Object.keys(t).forEach((function(e){var r=t[e];(0,y.s)(r)&&n.add(r)}))}))}return this.refs[t]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),S=function(){function t(t,e){void 0===e&&(e=null),this.caching=t,this.parent=e,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new w.B(h.mr)},t.prototype.depend=function(t,e){if(this.d){this.d(D(t,e));var r=(0,_.E_)(e);r!==e&&this.d(D(t,r)),this.parent&&this.parent.depend(t,e)}},t.prototype.dirty=function(t,e){this.d&&this.d.dirty(D(t,e),"__exists"===e?"forget":"setDirty")},t}();function D(t,e){return e+"#"+t}function O(t,e){T(t)&&t.group.depend(e,"__exists")}!function(t){var e=function(t){function e(e){var r=e.policies,n=e.resultCaching,i=void 0===n||n,o=e.seed,a=t.call(this,r,new S(i))||this;return a.stump=new I(a),a.storageTrie=new w.B(h.mr),o&&a.replace(o),a}return(0,n.ZT)(e,t),e.prototype.addLayer=function(t,e){return this.stump.addLayer(t,e)},e.prototype.removeLayer=function(){return this},e.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},e}(t);t.Root=e}(C||(C={}));var P=function(t){function e(e,r,n,i){var o=t.call(this,r.policies,i)||this;return o.id=e,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.ZT)(e,t),e.prototype.addLayer=function(t,r){return new e(t,this,r,this.group)},e.prototype.removeLayer=function(t){var e=this,r=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(t){var n=e.data[t],i=r.lookup(t);i?n?n!==i&&Object.keys(n).forEach((function(r){(0,a.D)(n[r],i[r])||e.group.dirty(t,r)})):(e.group.dirty(t,"__exists"),Object.keys(i).forEach((function(r){e.group.dirty(t,r)}))):e.delete(t)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return(0,n.pi)((0,n.pi)({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(e){var r=this.parent.findChildRefIds(e);return _.RI.call(this.data,e)?(0,n.pi)((0,n.pi)({},r),t.prototype.findChildRefIds.call(this,e)):r},e.prototype.getStorage=function(){for(var t=this.parent;t.parent;)t=t.parent;return t.getStorage.apply(t,arguments)},e}(C),I=function(t){function e(e){return t.call(this,"EntityStore.Stump",e,(function(){}),new S(e.group.caching,e.group))||this}return(0,n.ZT)(e,t),e.prototype.removeLayer=function(){return this},e.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},e}(P);function k(t,e,r){var n=t[r],i=e[r];return(0,a.D)(n,i)?n:i}function T(t){return!!(t instanceof C&&t.group.caching)}var R=r(85068);function F(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var N=function(){function t(t){var e=this;this.knownResults=new(h.mr?WeakMap:Map),this.config=(0,p.o)(t,{addTypename:!1!==t.addTypename,canonizeResults:(0,_.lg)(t)}),this.canon=t.canon||new R.h,this.executeSelectionSet=(0,o.re)((function(t){var r,i=t.context.canonizeResults,o=F(t);o[3]=!i;var a=(r=e.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.pi)((0,n.pi)({},a),{result:e.canon.admit(a.result)}):a:(O(t.context.store,t.enclosingRef.__ref),e.execSelectionSetImpl(t))}),{max:this.config.resultCacheMaxSize,keyArgs:F,makeCacheKey:function(t,e,r,n){if(T(r.store))return r.store.makeCacheKey(t,(0,l.Yk)(e)?e.__ref:e,r.varString,n)}}),this.executeSubSelectedArray=(0,o.re)((function(t){return O(t.context.store,t.enclosingRef.__ref),e.execSubSelectedArrayImpl(t)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(t){var e=t.field,r=t.array,n=t.context;if(T(n.store))return n.store.makeCacheKey(e,r,n.varString)}})}return t.prototype.resetCanon=function(){this.canon=new R.h},t.prototype.diffQueryAgainstStore=function(t){var e=t.store,r=t.query,i=t.rootId,o=void 0===i?"ROOT_QUERY":i,a=t.variables,s=t.returnPartialData,u=void 0===s||s,d=t.canonizeResults,h=void 0===d?this.config.canonizeResults:d,p=this.config.cache.policies;a=(0,n.pi)((0,n.pi)({},(0,f.O4)((0,f.iW)(r))),a);var m,g=(0,l.kQ)(o),v=this.executeSelectionSet({selectionSet:(0,f.p$)(r).selectionSet,objectOrReference:g,enclosingRef:g,context:(0,n.pi)({store:e,query:r,policies:p,variables:a,varString:(0,R.B)(a),canonizeResults:h},(0,_.Is)(r,this.config.fragments))});if(v.missing&&(m=[new c.y(M(v.missing),v.missing,r,a)],!u))throw m[0];return{result:v.result,complete:!m,missing:m}},t.prototype.isFresh=function(t,e,r,n){if(T(n.store)&&this.knownResults.get(t)===r){var i=this.executeSelectionSet.peek(r,e,n,this.canon.isKnown(t));if(i&&t===i.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(t){var e=this,r=t.selectionSet,n=t.objectOrReference,o=t.enclosingRef,a=t.context;if((0,l.Yk)(n)&&!a.policies.rootTypenamesById[n.__ref]&&!a.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var s,c=a.variables,h=a.policies,p=a.store.getFieldValue(n,"__typename"),f=[],y=new m.w0;function w(t,e){var r;return t.missing&&(s=y.merge(s,((r={})[e]=t.missing,r))),t.result}this.config.addTypename&&"string"==typeof p&&!h.rootIdsByTypename[p]&&f.push({__typename:p});var E=new Set(r.selections);E.forEach((function(t){var r,m;if((0,g.LZ)(t,c))if((0,l.My)(t)){var b=h.readField({fieldName:t.name.value,field:t,variables:a.variables,from:n},a),x=(0,l.u2)(t);void 0===b?u.Gw.added(t)||(s=y.merge(s,((r={})[x]="Can't find field '".concat(t.name.value,"' on ").concat((0,l.Yk)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,_.kJ)(b)?b=w(e.executeSubSelectedArray({field:t,array:b,enclosingRef:o,context:a}),x):t.selectionSet?null!=b&&(b=w(e.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:b,enclosingRef:(0,l.Yk)(b)?b:o,context:a}),x)):a.canonizeResults&&(b=e.canon.pass(b)),void 0!==b&&f.push(((m={})[x]=b,m))}else{var A=(0,v.hi)(t,a.lookupFragment);if(!A&&t.kind===d.h.FRAGMENT_SPREAD)throw __DEV__?new i.ej("No fragment named ".concat(t.name.value)):new i.ej(5);A&&h.fragmentMatches(A,p)&&A.selectionSet.selections.forEach(E.add,E)}}));var x={result:(0,m.bw)(f),missing:s},A=a.canonizeResults?this.canon.admit(x):b(x);return A.result&&this.knownResults.set(A.result,r),A},t.prototype.execSubSelectedArrayImpl=function(t){var e,r=this,n=t.field,o=t.array,a=t.enclosingRef,s=t.context,c=new m.w0;function u(t,r){var n;return t.missing&&(e=c.merge(e,((n={})[r]=t.missing,n))),t.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map((function(t,e){return null===t?null:(0,_.kJ)(t)?u(r.executeSubSelectedArray({field:n,array:t,enclosingRef:a,context:s}),e):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:t,enclosingRef:(0,l.Yk)(t)?t:a,context:s}),e):(__DEV__&&function(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,y.s)(r)&&(__DEV__?(0,i.kG)(!(0,l.Yk)(r),"Missing selection set for object of type ".concat((0,_.jp)(t,r)," returned for query field ").concat(e.name.value)):(0,i.kG)(!(0,l.Yk)(r),6),Object.values(r).forEach(n.add,n))}))}}(s.store,n,t),t)})),{result:s.canonizeResults?this.canon.admit(o):o,missing:e}},t}();function M(t){try{JSON.stringify(t,(function(t,e){if("string"==typeof e)throw e;return e}))}catch(t){return t}}var B=r(16022),L=r(41809),j=r(61029),V=r(47204),z=Object.create(null);function U(t){var e=JSON.stringify(t);return z[e]||(z[e]=Object.create(null))}function H(t){var e=U(t);return e.keyFieldsFn||(e.keyFieldsFn=function(e,r){var n=function(t,e){return r.readField(e,t)},o=r.keyObject=q(t,(function(t){var o=X(r.storeObject,t,n);return void 0===o&&e!==r.storeObject&&_.RI.call(e,t[0])&&(o=X(e,t,Y)),__DEV__?(0,i.kG)(void 0!==o,"Missing field '".concat(t.join("."),"' while extracting keyFields from ").concat(JSON.stringify(e))):(0,i.kG)(void 0!==o,2),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function G(t){var e=U(t);return e.keyArgsFn||(e.keyArgsFn=function(e,r){var n=r.field,i=r.variables,o=r.fieldName,a=q(t,(function(t){var r=t[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(e)return X(e,t)}else{var a=r.slice(1);if(i&&_.RI.call(i,a)){var s=t.slice(0);return s[0]=a,X(i,s)}}else if(n&&(0,L.O)(n.directives)){var c=r.slice(1),u=n.directives.find((function(t){return t.name.value===c})),d=u&&(0,l.NC)(u,i);return d&&X(d,t.slice(1))}})),s=JSON.stringify(a);return(e||"{}"!==s)&&(o+=":"+s),o})}function q(t,e){var r=new m.w0;return W(t).reduce((function(t,n){var i,o=e(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;t=r.merge(t,o)}return t}),Object.create(null))}function W(t){var e=U(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach((function(e,i){(0,_.kJ)(e)?(W(e).forEach((function(t){return r.push(n.concat(t))})),n.length=0):(n.push(e),(0,_.kJ)(t[i+1])||(r.push(n.slice(0)),n.length=0))}))}return e.paths}function Y(t,e){return t[e]}function X(t,e,r){return r=r||Y,$(e.reduce((function t(e,n){return(0,_.kJ)(e)?e.map((function(e){return t(e,n)})):e&&r(e,n)}),t))}function $(t){return(0,y.s)(t)?(0,_.kJ)(t)?t.map($):q(Object.keys(t).sort(),(function(e){return X(t,e)})):t}function Q(t){return void 0!==t.args?t.args:t.field?(0,l.NC)(t.field,t.variables):null}l.PT.setStringify(R.B);var K=function(){},Z=function(t,e){return e.fieldName},J=function(t,e,r){return(0,r.mergeObjects)(t,e)},tt=function(t,e){return e},et=function(){function t(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.pi)({dataIdFromObject:_.uG},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return t.prototype.identify=function(t,e){var r,i=this,o=e&&(e.typename||(null===(r=e.storeObject)||void 0===r?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=e&&e.storeObject||t,c=(0,n.pi)((0,n.pi)({},e),{typename:o,storeObject:s,readField:e&&e.readField||function(){var t=nt(arguments,s);return i.readField(t,{store:i.cache.data,variables:t.variables})}}),l=o&&this.getTypePolicy(o),u=l&&l.keyFn||this.config.dataIdFromObject;u;){var d=u(t,c);if(!(0,_.kJ)(d)){a=d;break}u=H(d)}return a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},t.prototype.addTypePolicies=function(t){var e=this;Object.keys(t).forEach((function(r){var i=t[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,c=(0,n._T)(i,["queryType","mutationType","subscriptionType"]);o&&e.setRootTypename("Query",r),a&&e.setRootTypename("Mutation",r),s&&e.setRootTypename("Subscription",r),_.RI.call(e.toBeAdded,r)?e.toBeAdded[r].push(c):e.toBeAdded[r]=[c]}))},t.prototype.updateTypePolicy=function(t,e){var r=this,n=this.getTypePolicy(t),i=e.keyFields,o=e.fields;function a(t,e){t.merge="function"==typeof e?e:!0===e?J:!1===e?tt:t.merge}a(n,e.merge),n.keyFn=!1===i?K:(0,_.kJ)(i)?H(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(e){var n=r.getFieldPolicy(t,e,!0),i=o[e];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;n.keyFn=!1===s?Z:(0,_.kJ)(s)?G(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),a(n,l)}n.read&&n.merge&&(n.keyFn=n.keyFn||Z)}))},t.prototype.setRootTypename=function(t,e){void 0===e&&(e=t);var r="ROOT_"+t.toUpperCase(),n=this.rootTypenamesById[r];e!==n&&(__DEV__?(0,i.kG)(!n||n===t,"Cannot change root ".concat(t," __typename more than once")):(0,i.kG)(!n||n===t,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[e]=r,this.rootTypenamesById[r]=e)},t.prototype.addPossibleTypes=function(t){var e=this;this.usingPossibleTypes=!0,Object.keys(t).forEach((function(r){e.getSupertypeSet(r,!0),t[r].forEach((function(t){e.getSupertypeSet(t,!0).add(r);var n=t.match(_.$O);n&&n[0]===t||e.fuzzySubtypes.set(t,new RegExp(t))}))}))},t.prototype.getTypePolicy=function(t){var e=this;if(!_.RI.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);i&&i.size&&i.forEach((function(t){var i=e.getTypePolicy(t),o=i.fields,a=(0,n._T)(i,["fields"]);Object.assign(r,a),Object.assign(r.fields,o)}))}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach((function(r){e.updateTypePolicy(t,r)})),this.typePolicies[t]},t.prototype.getFieldPolicy=function(t,e,r){if(t){var n=this.getTypePolicy(t).fields;return n[e]||r&&(n[e]=Object.create(null))}},t.prototype.getSupertypeSet=function(t,e){var r=this.supertypeMap.get(t);return!r&&e&&this.supertypeMap.set(t,r=new Set),r},t.prototype.fragmentMatches=function(t,e,r,n){var o=this;if(!t.typeCondition)return!0;if(!e)return!1;var a=t.typeCondition.name.value;if(e===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(e,!0),c=[s],l=function(t){var e=o.getSupertypeSet(t,!1);e&&e.size&&c.indexOf(e)<0&&c.push(e)},u=!(!r||!this.fuzzySubtypes.size),d=!1,h=0;h<c.length;++h){var p=c[h];if(p.has(a))return s.has(a)||(d&&__DEV__&&i.kG.warn("Inferring subtype ".concat(e," of supertype ").concat(a)),s.add(a)),!0;p.forEach(l),u&&h===c.length-1&&(0,_.RC)(t.selectionSet,r,n)&&(u=!1,d=!0,this.fuzzySubtypes.forEach((function(t,r){var n=e.match(t);n&&n[0]===e&&l(r)})))}return!1},t.prototype.hasKeyArgs=function(t,e){var r=this.getFieldPolicy(t,e,!1);return!(!r||!r.keyFn)},t.prototype.getStoreFieldName=function(t){var e,r=t.typename,n=t.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:t.field||null,variables:t.variables},s=Q(t);o;){var c=o(s,a);if(!(0,_.kJ)(c)){e=c||n;break}o=G(c)}return void 0===e&&(e=t.field?(0,l.vf)(t.field,t.variables):(0,l.PT)(n,Q(t))),!1===e?n:n===(0,_.E_)(e)?e:n+":"+e},t.prototype.readField=function(t,e){var r=t.from;if(r&&(t.field||t.fieldName)){if(void 0===t.typename){var n=e.store.getFieldValue(r,"__typename");n&&(t.typename=n)}var i=this.getStoreFieldName(t),o=(0,_.E_)(i),a=e.store.getFieldValue(r,i),s=this.getFieldPolicy(t.typename,o,!1),c=s&&s.read;if(c){var u=rt(this,r,t,e,e.store.getStorage((0,l.Yk)(r)?r.__ref:r,i));return V.ab.withValue(this.cache,c,[a,u])}return a}},t.prototype.getReadFunction=function(t,e){var r=this.getFieldPolicy(t,e,!1);return r&&r.read},t.prototype.getMergeFunction=function(t,e,r){var n=this.getFieldPolicy(t,e,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},t.prototype.runMergeFunction=function(t,e,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===J?it(n.store)(t,e):s===tt?e:(n.overwrite&&(t=void 0),s(t,e,rt(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},t}();function rt(t,e,r,n,i){var o=t.getStoreFieldName(r),a=(0,_.E_)(o),s=r.variables||n.variables,c=n.store,u=c.toReference,d=c.canRead;return{args:Q(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:l.Yk,toReference:u,storage:i,cache:t.cache,canRead:d,readField:function(){return t.readField(nt(arguments,e,s),n)},mergeObjects:it(n.store)}}function nt(t,e,r){var o,a,s,c=t[0],l=t[1],u=t.length;return"string"==typeof c?o={fieldName:c,from:u>1?l:e}:(o=(0,n.pi)({},c),_.RI.call(o,"from")||(o.from=e)),__DEV__&&void 0===o.from&&__DEV__&&i.kG.warn("Undefined 'from' passed to readField with arguments ".concat((a=Array.from(t),s=(0,j.X)("stringifyForDisplay"),JSON.stringify(a,(function(t,e){return void 0===e?s:e})).split(JSON.stringify(s)).join("<undefined>")))),void 0===o.variables&&(o.variables=r),o}function it(t){return function(e,r){if((0,_.kJ)(e)||(0,_.kJ)(r))throw __DEV__?new i.ej("Cannot automatically merge arrays"):new i.ej(4);if((0,y.s)(e)&&(0,y.s)(r)){var o=t.getFieldValue(e,"__typename"),a=t.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if((0,l.Yk)(e)&&(0,_.j)(r))return t.merge(e.__ref,r),e;if((0,_.j)(e)&&(0,l.Yk)(r))return t.merge(e,r.__ref),r;if((0,_.j)(e)&&(0,_.j)(r))return(0,n.pi)((0,n.pi)({},e),r)}return r}}function ot(t,e,r){var i="".concat(e).concat(r),o=t.flavors.get(i);return o||t.flavors.set(i,o=t.clientOnly===e&&t.deferred===r?t:(0,n.pi)((0,n.pi)({},t),{clientOnly:e,deferred:r})),o}var at=function(){function t(t,e,r){this.cache=t,this.reader=e,this.fragments=r}return t.prototype.writeToStore=function(t,e){var r=this,o=e.query,s=e.result,c=e.dataId,u=e.variables,d=e.overwrite,h=(0,f.$H)(o),p=(0,_.ig)();u=(0,n.pi)((0,n.pi)({},(0,f.O4)(h)),u);var m=(0,n.pi)((0,n.pi)({store:t,written:Object.create(null),merge:function(t,e){return p.merge(t,e)},variables:u,varString:(0,R.B)(u)},(0,_.Is)(o,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),g=this.processSelectionSet({result:s||Object.create(null),dataId:c,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:m});if(!(0,l.Yk)(g))throw __DEV__?new i.ej("Could not identify object ".concat(JSON.stringify(s))):new i.ej(7);return m.incomingById.forEach((function(e,n){var o=e.storeObject,s=e.mergeTree,c=e.fieldNodeSet,u=(0,l.kQ)(n);if(s&&s.map.size){var d=r.applyMerges(s,u,o,m);if((0,l.Yk)(d))return;o=d}if(__DEV__&&!m.overwrite){var h=Object.create(null);c.forEach((function(t){t.selectionSet&&(h[t.name.value]=!0)})),Object.keys(o).forEach((function(t){(function(t){return!0===h[(0,_.E_)(t)]})(t)&&!function(t){var e=s&&s.map.get(t);return Boolean(e&&e.info&&e.info.merge)}(t)&&function(t,e,r,n){var o=function(t){var e=n.getFieldValue(t,r);return"object"==typeof e&&e},s=o(t);if(s){var c=o(e);if(c&&!(0,l.Yk)(s)&&!(0,a.D)(s,c)&&!Object.keys(s).every((function(t){return void 0!==n.getFieldValue(c,t)}))){var u=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),d=(0,_.E_)(r),h="".concat(u,".").concat(d);if(!ht.has(h)){ht.add(h);var p=[];(0,_.kJ)(s)||(0,_.kJ)(c)||[s,c].forEach((function(t){var e=n.getFieldValue(t,"__typename");"string"!=typeof e||p.includes(e)||p.push(e)})),__DEV__&&i.kG.warn("Cache data may be lost when replacing the ".concat(d," field of a ").concat(u," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(h," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(s).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(c).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(u,o,t,m.store)}))}t.merge(n,o)})),t.retain(g.__ref),g},t.prototype.processSelectionSet=function(t){var e=this,r=t.dataId,o=t.result,a=t.selectionSet,s=t.context,c=t.mergeTree,d=this.cache.policies,h=Object.create(null),p=r&&d.rootTypenamesById[r]||(0,l.qw)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof p&&(h.__typename=p);var f=function(){var t=nt(arguments,h,s.variables);if((0,l.Yk)(t.from)){var e=s.incomingById.get(t.from.__ref);if(e){var r=d.readField((0,n.pi)((0,n.pi)({},t),{from:e.storeObject}),s);if(void 0!==r)return r}}return d.readField(t,s)},m=new Set;this.flattenFields(a,o,s,p).forEach((function(t,r){var n,a=(0,l.u2)(r),s=o[a];if(m.add(r),void 0!==s){var g=d.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:t.variables}),v=ct(c,g),y=e.processFieldValue(s,r,r.selectionSet?ot(t,!1,!1):t,v),b=void 0;r.selectionSet&&((0,l.Yk)(y)||(0,_.j)(y))&&(b=f("__typename",y));var w=d.getMergeFunction(p,r.name.value,b);w?v.info={field:r,typename:p,merge:w}:dt(c,g),h=t.merge(h,((n={})[g]=y,n))}else!__DEV__||t.clientOnly||t.deferred||u.Gw.added(r)||d.getReadFunction(p,r.name.value)||__DEV__&&i.kG.error("Missing field '".concat((0,l.u2)(r),"' while writing result ").concat(JSON.stringify(o,null,2)).substring(0,1e3))}));try{var g=d.identify(o,{typename:p,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:h,readField:f}),v=g[0],y=g[1];r=r||v,y&&(h=s.merge(h,y))}catch(t){if(!r)throw t}if("string"==typeof r){var b=(0,l.kQ)(r),w=s.written[r]||(s.written[r]=[]);if(w.indexOf(a)>=0)return b;if(w.push(a),this.reader&&this.reader.isFresh(o,b,a,s))return b;var E=s.incomingById.get(r);return E?(E.storeObject=s.merge(E.storeObject,h),E.mergeTree=lt(E.mergeTree,c),m.forEach((function(t){return E.fieldNodeSet.add(t)}))):s.incomingById.set(r,{storeObject:h,mergeTree:ut(c)?void 0:c,fieldNodeSet:m}),b}return h},t.prototype.processFieldValue=function(t,e,r,n){var i=this;return e.selectionSet&&null!==t?(0,_.kJ)(t)?t.map((function(t,o){var a=i.processFieldValue(t,e,r,ct(n,o));return dt(n,o),a})):this.processSelectionSet({result:t,selectionSet:e.selectionSet,context:r,mergeTree:n}):__DEV__?(0,B.X)(t):t},t.prototype.flattenFields=function(t,e,r,n){void 0===n&&(n=(0,l.qw)(e,t,r.fragmentMap));var o=new Map,a=this.cache.policies,s=new w.B(!1);return function t(c,u){var h=s.lookup(c,u.clientOnly,u.deferred);h.visited||(h.visited=!0,c.selections.forEach((function(s){if((0,g.LZ)(s,r.variables)){var c=u.clientOnly,h=u.deferred;if(c&&h||!(0,L.O)(s.directives)||s.directives.forEach((function(t){var e=t.name.value;if("client"===e&&(c=!0),"defer"===e){var n=(0,l.NC)(t,r.variables);n&&!1===n.if||(h=!0)}})),(0,l.My)(s)){var p=o.get(s);p&&(c=c&&p.clientOnly,h=h&&p.deferred),o.set(s,ot(r,c,h))}else{var f=(0,v.hi)(s,r.lookupFragment);if(!f&&s.kind===d.h.FRAGMENT_SPREAD)throw __DEV__?new i.ej("No fragment named ".concat(s.name.value)):new i.ej(8);f&&a.fragmentMatches(f,n,e,r.variables)&&t(f.selectionSet,ot(r,c,h))}}})))}(t,r),o},t.prototype.applyMerges=function(t,e,r,o,a){var s,c=this;if(t.map.size&&!(0,l.Yk)(r)){var u,d=(0,_.kJ)(r)||!(0,l.Yk)(e)&&!(0,_.j)(e)?void 0:e,h=r;d&&!a&&(a=[(0,l.Yk)(d)?d.__ref:d]);var p=function(t,e){return(0,_.kJ)(t)?"number"==typeof e?t[e]:void 0:o.store.getFieldValue(t,String(e))};t.map.forEach((function(t,e){var r=p(d,e),n=p(h,e);if(void 0!==n){a&&a.push(e);var s=c.applyMerges(t,r,n,o,a);s!==n&&(u=u||new Map).set(e,s),a&&(0,i.kG)(a.pop()===e)}})),u&&(r=(0,_.kJ)(h)?h.slice(0):(0,n.pi)({},h),u.forEach((function(t,e){r[e]=t})))}return t.info?this.cache.policies.runMergeFunction(e,r,t.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},t}(),st=[];function ct(t,e){var r=t.map;return r.has(e)||r.set(e,st.pop()||{map:new Map}),r.get(e)}function lt(t,e){if(t===e||!e||ut(e))return t;if(!t||ut(t))return e;var r=t.info&&e.info?(0,n.pi)((0,n.pi)({},t.info),e.info):t.info||e.info,i=t.map.size&&e.map.size,o={info:r,map:i?new Map:t.map.size?t.map:e.map};if(i){var a=new Set(e.map.keys());t.map.forEach((function(t,r){o.map.set(r,lt(t,e.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,lt(e.map.get(r),t.map.get(r)))}))}return o}function ut(t){return!t||!(t.info||t.map.size)}function dt(t,e){var r=t.map,n=r.get(e);n&&ut(n)&&(st.push(n),r.delete(e))}var ht=new Set,pt=function(t){function e(e){void 0===e&&(e={});var r=t.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=V.QS,r.txCount=0,r.config=(0,_.jS)(e),r.addTypename=!!r.config.addTypename,r.policies=new et({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.ZT)(e,t),e.prototype.init=function(){var t=this.data=new C.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=t.stump,this.resetResultCache()},e.prototype.resetResultCache=function(t){var e=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new at(this,this.storeReader=new N({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,_.lg)(this.config),canon:t?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.re)((function(t,r){return e.broadcastWatch(t,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(t){var r=t.optimistic?e.optimisticData:e.data;if(T(r)){var n=t.optimistic,i=t.id,o=t.variables;return r.makeCacheKey(t.query,t.callback,(0,R.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(t){return t.resetCaching()}))},e.prototype.restore=function(t){return this.init(),t&&this.data.replace(t),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).extract()},e.prototype.read=function(t){var e=t.returnPartialData,r=void 0!==e&&e;try{return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},t),{store:t.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(t){if(t instanceof c.y)return null;throw t}},e.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore(this.data,t)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.modify=function(t){if(_.RI.call(t,"id")&&!t.id)return!1;var e=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(t.id||"ROOT_QUERY",t.fields)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},t),{store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(t){var e=this;return this.watches.size||(0,V._v)(this),this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){e.watches.delete(t)&&!e.watches.size&&(0,V.li)(e),e.maybeBroadcastWatch.forget(t)}},e.prototype.gc=function(t){R.B.reset();var e=this.optimisticData.gc();return t&&!this.txCount&&(t.resetResultCache?this.resetResultCache(t.resetResultIdentities):t.resetResultIdentities&&this.storeReader.resetCanon()),e},e.prototype.retain=function(t,e){return(e?this.optimisticData:this.data).retain(t)},e.prototype.release=function(t,e){return(e?this.optimisticData:this.data).release(t)},e.prototype.identify=function(t){if((0,l.Yk)(t))return t.__ref;try{return this.policies.identify(t)[0]}catch(t){__DEV__&&i.kG.warn(t)}},e.prototype.evict=function(t){if(!t.id){if(_.RI.call(t,"id"))return!1;t=(0,n.pi)((0,n.pi)({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t,this.data)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.reset=function(t){var e=this;return this.init(),R.B.reset(),t&&t.discardWatches?(this.watches.forEach((function(t){return e.maybeBroadcastWatch.forget(t)})),this.watches.clear(),(0,V.li)(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){var e=this.optimisticData.removeLayer(t);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())},e.prototype.batch=function(t){var e,r=this,i=t.update,o=t.optimistic,a=void 0===o||o,s=t.removeOptimistic,c=t.onWatchUpdated,l=function(t){var n=r,o=n.data,a=n.optimisticData;++r.txCount,t&&(r.data=r.optimisticData=t);try{return e=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},u=new Set;return c&&!this.txCount&&this.broadcastWatches((0,n.pi)((0,n.pi)({},t),{onWatchUpdated:function(t){return u.add(t),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&u.size?(this.broadcastWatches((0,n.pi)((0,n.pi)({},t),{onWatchUpdated:function(t,e){var r=c.call(this,t,e);return!1!==r&&u.delete(t),r}})),u.size&&u.forEach((function(t){return r.maybeBroadcastWatch.dirty(t)}))):this.broadcastWatches(t),e},e.prototype.performTransaction=function(t,e){return this.batch({update:t,optimistic:e||null!==e})},e.prototype.transformDocument=function(t){if(this.addTypename){var e=this.typenameDocumentCache.get(t);return e||(e=(0,u.Gw)(t),this.typenameDocumentCache.set(t,e),this.typenameDocumentCache.set(e,e)),e}return t},e.prototype.transformForLink=function(t){var e=this.config.fragments;return e?e.transform(t):t},e.prototype.broadcastWatches=function(t){var e=this;this.txCount||this.watches.forEach((function(r){return e.maybeBroadcastWatch(r,t)}))},e.prototype.broadcastWatch=function(t,e){var r=t.lastDiff,n=this.diff(t);e&&(t.optimistic&&"string"==typeof e.optimistic&&(n.fromOptimisticTransaction=!0),e.onWatchUpdated&&!1===e.onWatchUpdated.call(this,t,n,r))||r&&(0,a.D)(r.result,n.result)||t.callback(t.lastDiff=n,r)},e}(s.R)},85068:(t,e,r)=>{"use strict";r.d(e,{B:()=>d,h:()=>u});var n,i,o=r(171),a=(r(85979),r(63471)),s=r(32345),c=r(42860),l=r(65110),u=function(){function t(){this.known=new(c.sy?WeakSet:Set),this.pool=new a.B(c.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(t){return(0,s.s)(t)&&this.known.has(t)},t.prototype.pass=function(t){if((0,s.s)(t)){var e=function(t){return(0,s.s)(t)?(0,l.kJ)(t)?t.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(t)},t):t}(t);return this.passes.set(e,t),e}return t},t.prototype.admit=function(t){var e=this;if((0,s.s)(t)){var r=this.passes.get(t);if(r)return r;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var n=t.map(this.admit,this);return(c=this.pool.lookupArray(n)).array||(this.known.add(c.array=n),__DEV__&&Object.freeze(n)),c.array;case null:case Object.prototype:if(this.known.has(t))return t;var i=Object.getPrototypeOf(t),o=[i],a=this.sortedKeys(t);o.push(a.json);var c,l=o.length;if(a.sorted.forEach((function(r){o.push(e.admit(t[r]))})),!(c=this.pool.lookupArray(o)).object){var u=c.object=Object.create(i);this.known.add(u),a.sorted.forEach((function(t,e){u[t]=o[l+e]})),__DEV__&&Object.freeze(u)}return c.object}}return t},t.prototype.sortedKeys=function(t){var e=Object.keys(t),r=this.pool.lookupArray(e);if(!r.keys){e.sort();var n=JSON.stringify(e);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:e,json:n})}return r.keys},t}(),d=Object.assign((function(t){if((0,s.s)(t)){void 0===n&&h();var e=n.admit(t),r=i.get(e);return void 0===r&&i.set(e,r=JSON.stringify(e)),r}return JSON.stringify(t)}),{reset:h});function h(){n=new u,i=new(c.mr?WeakMap:Map)}},47204:(t,e,r)=>{"use strict";r.d(e,{QS:()=>l,_v:()=>c,ab:()=>i,li:()=>s});var n=r(92013),i=new(r(36974).g7),o=new WeakMap;function a(t){var e=o.get(t);return e||o.set(t,e={vars:new Set,dep:(0,n.dP)()}),e}function s(t){a(t).vars.forEach((function(e){return e.forgetCache(t)}))}function c(t){a(t).vars.forEach((function(e){return e.attachCache(t)}))}function l(t){var e=new Set,r=new Set,n=function(s){if(arguments.length>0){if(t!==s){t=s,e.forEach((function(t){a(t).dep.dirty(n),u(t)}));var c=Array.from(r);r.clear(),c.forEach((function(e){return e(t)}))}}else{var l=i.getValue();l&&(o(l),a(l).dep(n))}return t};n.onNextChange=function(t){return r.add(t),function(){r.delete(t)}};var o=n.attachCache=function(t){return e.add(t),a(t).vars.add(n),n};return n.forgetCache=function(t){return e.delete(t)},n}function u(t){t.broadcastWatches&&t.broadcastWatches()}},56344:(t,e,r)=>{"use strict";r.d(e,{f:()=>q});var n=r(171),i=r(85979),o=r(64638),a=r(95107),s=r(41822),c=r(64579),l=r(41809),u=r(85098);function d(t){return"incremental"in t}function h(t,e){var r=t,n=new u.w0;return d(e)&&(0,l.O)(e.incremental)&&e.incremental.forEach((function(t){for(var e=t.data,i=t.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=e,e=s}r=n.merge(r,e)})),r}var p=r(85068),f=r(42860),m=r(64059);function g(t,e,r){return new m.y((function(n){var i=n.next,o=n.error,a=n.complete,s=0,c=!1,l={then:function(t){return new Promise((function(e){return e(t())}))}};function u(t,e){return t?function(e){++s;var r=function(){return t(e)};l=l.then(r,r).then((function(t){--s,i&&i.call(n,t),c&&d.complete()}),(function(t){throw--s,t})).catch((function(t){o&&o.call(n,t)}))}:function(t){return e&&e.call(n,t)}}var d={next:u(e,i),error:u(r,o),complete:function(){c=!0,s||a&&a.call(n)}},h=t.subscribe(d);return function(){return h.unsubscribe()}}))}function v(t){var e=y(t);return(0,l.O)(e)}function y(t){var e=(0,l.O)(t.errors)?t.errors.slice(0):[];return d(t)&&(0,l.O)(t.incremental)&&t.incremental.forEach((function(t){t.errors&&e.push.apply(e,t.errors)})),e}var b=r(7122),w=r(45117),_=r(37304),E=r(84319),x=r(32345),A=r(61029),C=r(88249),S=r(3243);function D(t){return t&&"function"==typeof t.then}var O=function(t){function e(e){var r=t.call(this,(function(t){return r.addObserver(t),function(){return r.removeObserver(t)}}))||this;return r.observers=new Set,r.promise=new Promise((function(t,e){r.resolve=t,r.reject=e})),r.handlers={next:function(t){null!==r.sub&&(r.latest=["next",t],r.notify("next",t),(0,C.p)(r.observers,"next",t))},error:function(t){var e=r.sub;null!==e&&(e&&setTimeout((function(){return e.unsubscribe()})),r.sub=null,r.latest=["error",t],r.reject(t),r.notify("error",t),(0,C.p)(r.observers,"error",t))},complete:function(){var t=r.sub;if(null!==t){var e=r.sources.shift();e?D(e)?e.then((function(t){return r.sub=t.subscribe(r.handlers)})):r.sub=e.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,C.p)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(t){r.reject(t),r.sources=[],r.handlers.complete()},r.promise.catch((function(t){})),"function"==typeof e&&(e=[new m.y(e)]),D(e)?e.then((function(t){return r.start(t)}),r.handlers.error):r.start(e),r}return(0,n.ZT)(e,t),e.prototype.start=function(t){void 0===this.sub&&(this.sources=Array.from(t),this.handlers.complete())},e.prototype.deliverLastMessage=function(t){if(this.latest){var e=this.latest[0],r=t[e];r&&r.call(t,this.latest[1]),null===this.sub&&"next"===e&&t.complete&&t.complete()}},e.prototype.addObserver=function(t){this.observers.has(t)||(this.deliverLastMessage(t),this.observers.add(t))},e.prototype.removeObserver=function(t){this.observers.delete(t)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(t,e){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(t,e)})))},e.prototype.beforeNext=function(t){var e=!1;this.nextResultListeners.add((function(r,n){e||(e=!0,t(r,n))}))},e}(m.y);(0,S.D)(O);var P=r(93869),I=r(44865),k=r(14),T=r(9485),R=r(74483),F=r(47204),N=function(){function t(t){var e=t.cache,r=t.client,n=t.resolvers,i=t.fragmentMatcher;this.cache=e,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=(0,u.Ee)(e.resolvers,t)})):this.resolvers=(0,u.Ee)(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){var e=t.document,r=t.remoteResult,i=t.context,o=t.variables,a=t.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(t){return e?[2,this.resolveDocument(e,r.data,i,o,this.fragmentMatcher,s).then((function(t){return(0,n.pi)((0,n.pi)({},r),{data:t.result})}))]:[2,r]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return(0,_.FS)(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return(0,w.ob)(t)},t.prototype.prepareContext=function(t){var e=this.cache;return(0,n.pi)((0,n.pi)({},t),{cache:e,getCacheKey:function(t){return e.identify(t)}})},t.prototype.addExportedVariables=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(r),e).then((function(t){return(0,n.pi)((0,n.pi)({},e),t.exportedVariables)}))]:[2,(0,n.pi)({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return(0,T.Vn)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value}))))return T.$_}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:(0,w.aL)(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.mG)(this,void 0,void 0,(function(){var s,c,l,u,d,h,p,f,m;return(0,n.Jh)(this,(function(g){return s=(0,b.p$)(t),c=(0,b.kU)(t),l=(0,R.F)(c),u=s.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",p=(h=this).cache,f=h.client,m={fragmentMap:l,context:(0,n.pi)((0,n.pi)({},r),{cache:p,client:f}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,e,m).then((function(t){return{result:t,exportedVariables:m.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,r){return(0,n.mG)(this,void 0,void 0,(function(){var o,a,s,c,l,d=this;return(0,n.Jh)(this,(function(h){return o=r.fragmentMap,a=r.context,s=r.variables,c=[e],l=function(t){return(0,n.mG)(d,void 0,void 0,(function(){var l,u;return(0,n.Jh)(this,(function(n){return(0,_.LZ)(t,s)?(0,E.My)(t)?[2,this.resolveField(t,e,r).then((function(e){var r;void 0!==e&&c.push(((r={})[(0,E.u2)(t)]=e,r))}))]:((0,E.Ao)(t)?l=t:(l=o[t.name.value],__DEV__?(0,i.kG)(l,"No fragment named ".concat(t.name.value)):(0,i.kG)(l,11)),l&&l.typeCondition&&(u=l.typeCondition.name.value,r.fragmentMatcher(e,u,a))?[2,this.resolveSelectionSet(l.selectionSet,e,r).then((function(t){c.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(l)).then((function(){return(0,u.bw)(c)}))]}))}))},t.prototype.resolveField=function(t,e,r){return(0,n.mG)(this,void 0,void 0,(function(){var i,o,a,s,c,l,u,d,h,p=this;return(0,n.Jh)(this,(function(n){return i=r.variables,o=t.name.value,a=(0,E.u2)(t),s=o!==a,c=e[a]||e[o],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(u=e.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[u])&&(h=d[s?o:a])&&(l=Promise.resolve(F.ab.withValue(this.cache,h,[e,(0,E.NC)(t,i),r.context,{field:t,fragmentMap:r.fragmentMap}])))),[2,l.then((function(e){return void 0===e&&(e=c),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(r.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?p.resolveSubSelectedArray(t,e,r):t.selectionSet?p.resolveSelectionSet(t.selectionSet,e,r):void 0:e}))]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,r){var n=this;return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?n.resolveSubSelectedArray(t,e,r):t.selectionSet?n.resolveSelectionSet(t.selectionSet,e,r):void 0})))},t}(),M=new(f.mr?WeakMap:Map);function B(t,e){var r=t[e];"function"==typeof r&&(t[e]=function(){return M.set(t,(M.get(t)+1)%1e15),r.apply(this,arguments)})}function L(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var j=function(){function t(t,e){void 0===e&&(e=t.generateQueryId()),this.queryId=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;M.has(r)||(M.set(r,0),B(r,"evict"),B(r,"modify"),B(r,"reset"))}return t.prototype.init=function(t){var e=t.networkStatus||k.I.loading;return this.variables&&this.networkStatus!==k.I.loading&&!(0,c.D)(this.variables,t.variables)&&(e=k.I.setVariables),(0,c.D)(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:e}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},t.prototype.reset=function(){L(this),this.dirty=!1},t.prototype.getDiff=function(t){void 0===t&&(t=this.variables);var e=this.getDiffOptions(t);if(this.lastDiff&&(0,c.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(t,e){this.lastDiff=t?{diff:t,options:e||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(t){var e;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(e=this.observableQuery)||void 0===e?void 0:e.options.canonizeResults}},t.prototype.setDiff=function(t){var e=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),this.dirty||(0,c.D)(r&&r.result,t&&t.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return e.notify()}),0)))},t.prototype.setObservableQuery=function(t){var e=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){e.getDiff().fromOptimisticTransaction?t.observe():(0,I.vj)(t)})):delete this.oqListener)},t.prototype.notify=function(){var t=this;L(this),this.shouldNotify()&&this.listeners.forEach((function(e){return e(t)})),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,k.O)(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel,this.subscriptions.forEach((function(t){return t.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(t){var e=this;void 0===t&&(t=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(t)),{watcher:this,callback:function(t){return e.setDiff(t)}});this.lastWatch&&(0,c.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(t,e){var r=this.lastWrite;return!(r&&r.dmCount===M.get(this.cache)&&(0,c.D)(e,r.variables)&&(0,c.D)(t.data,r.result.data))},t.prototype.markResult=function(t,e,r,n){var i=this,o=new u.w0,a=(0,l.O)(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&(0,l.O)(t.incremental)){var s=h(this.getDiff().result,t);t.data=s}else if("hasNext"in t&&t.hasNext){var c=this.getDiff();t.data=o.merge(c.result,t.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(V(t,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(t,r.variables))o.writeQuery({query:e,data:t.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:t,variables:r.variables,dmCount:M.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(t.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(t.data=s.result)})):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=k.I.ready},t.prototype.markError=function(t){return this.networkStatus=k.I.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},t}();function V(t,e){void 0===e&&(e="none");var r="ignore"===e||"all"===e,n=!v(t);return!n&&r&&t.data&&(n=!0),n}var z=Object.prototype.hasOwnProperty,U=function(){function t(t){var e=t.cache,r=t.link,n=t.defaultOptions,i=t.queryDeduplication,o=void 0!==i&&i,a=t.onBroadcast,s=t.ssrMode,c=void 0!==s&&s,l=t.clientAwareness,u=void 0===l?{}:l,d=t.localState,h=t.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(f.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=e,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=o,this.clientAwareness=u,this.localState=d||new N({cache:e}),this.ssrMode=c,this.assumeImmutableResults=!!h,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var t=this;this.queries.forEach((function(e,r){t.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(13))},t.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach((function(e){return e(t)})),this.fetchCancelFns.clear()},t.prototype.mutate=function(t){var e,r,o=t.mutation,a=t.variables,s=t.optimisticResponse,c=t.updateQueries,l=t.refetchQueries,u=void 0===l?[]:l,d=t.awaitRefetchQueries,h=void 0!==d&&d,p=t.update,f=t.onQueryUpdated,m=t.fetchPolicy,b=void 0===m?(null===(e=this.defaultOptions.mutate)||void 0===e?void 0:e.fetchPolicy)||"network-only":m,w=t.errorPolicy,_=void 0===w?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":w,E=t.keepRootFields,x=t.context;return(0,n.mG)(this,void 0,void 0,(function(){var t,e,r,l,d,m;return(0,n.Jh)(this,(function(w){switch(w.label){case 0:return __DEV__?(0,i.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(o,14),__DEV__?(0,i.kG)("network-only"===b||"no-cache"===b,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.kG)("network-only"===b||"no-cache"===b,15),t=this.generateMutationId(),e=this.transform(o),r=e.document,l=e.hasClientExports,o=this.cache.transformForLink(r),a=this.getVariables(o,a),l?[4,this.localState.addExportedVariables(o,a,x)]:[3,2];case 1:a=w.sent(),w.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[t]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:t,document:o,variables:a,fetchPolicy:b,errorPolicy:_,context:x,updateQueries:c,update:p,keepRootFields:E}),this.broadcastQueries(),m=this,[2,new Promise((function(e,r){return g(m.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},x),{optimisticResponse:s}),a,!1),(function(e){if(v(e)&&"none"===_)throw new P.c({graphQLErrors:y(e)});d&&(d.loading=!1,d.error=null);var r=(0,n.pi)({},e);return"function"==typeof u&&(u=u(r)),"ignore"===_&&v(r)&&delete r.errors,m.markMutationResult({mutationId:t,result:r,document:o,variables:a,fetchPolicy:b,errorPolicy:_,context:x,update:p,updateQueries:c,awaitRefetchQueries:h,refetchQueries:u,removeOptimistic:s?t:void 0,onQueryUpdated:f,keepRootFields:E})})).subscribe({next:function(t){m.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){d&&(d.loading=!1,d.error=e),s&&m.cache.removeOptimistic(t),m.broadcastQueries(),r(e instanceof P.c?e:new P.c({networkError:e}))}})}))]}}))}))},t.prototype.markMutationResult=function(t,e){var r=this;void 0===e&&(e=this.cache);var i=t.result,o=[],a="no-cache"===t.fetchPolicy;if(!a&&V(i,t.errorPolicy)){if(d(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),d(i)&&(0,l.O)(i.incremental)){var s=h(e.diff({id:"ROOT_MUTATION",query:this.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,i);void 0!==s&&(i.data=s,o.push({result:s,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var c=t.updateQueries;c&&this.queries.forEach((function(t,n){var a=t.observableQuery,s=a&&a.queryName;if(s&&z.call(c,s)){var l=c[s],u=r.queries.get(n),d=u.document,h=u.variables,p=e.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),f=p.result;if(p.complete&&f){var m=l(f,{mutationResult:i,queryName:d&&(0,b.rY)(d)||void 0,queryVariables:h});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:h})}}}))}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(e){a||o.forEach((function(t){return e.write(t)}));var s,c=t.update,l=!(d(s=i)||function(t){return"hasNext"in t&&"data"in t}(s))||d(i)&&!i.hasNext;if(c){if(!a){var u=e.diff({id:"ROOT_MUTATION",query:r.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:u.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}l&&c(e,i,{context:t.context,variables:t.variables})}a||t.keepRootFields||!l||e.modify({id:"ROOT_MUTATION",fields:function(t,e){var r=e.fieldName,n=e.DELETE;return"__typename"===r?t:n}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach((function(t){return u.push(t)})),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(u).then((function(){return i}))}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(t,e){var r=this,o="function"==typeof t?t(e.variables):t;return this.cache.recordOptimisticTransaction((function(t){try{r.markMutationResult((0,n.pi)((0,n.pi)({},e),{result:{data:o}}),t)}catch(t){__DEV__&&i.kG.error(t)}}),e.mutationId)},t.prototype.fetchQuery=function(t,e,r){return this.fetchQueryObservable(t,e,r).promise},t.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach((function(e,r){t[r]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}})),t},t.prototype.resetErrors=function(t){var e=this.queries.get(t);e&&(e.networkError=void 0,e.graphQLErrors=[])},t.prototype.transform=function(t){var e=this.transformCache;if(!e.has(t)){var r=this.cache.transformDocument(t),i=(0,w.Fo)(r),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:(0,_.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,b.O4)((0,b.$H)(r)),asQuery:(0,n.pi)((0,n.pi)({},r),{definitions:r.definitions.map((function(t){return"OperationDefinition"===t.kind&&"query"!==t.operation?(0,n.pi)((0,n.pi)({},t),{operation:"query"}):t}))})},c=function(t){t&&!e.has(t)&&e.set(t,s)};c(t),c(r),c(o),c(a)}return e.get(t)},t.prototype.getVariables=function(t,e){return(0,n.pi)((0,n.pi)({},this.transform(t).defaultVars),e)},t.prototype.watchQuery=function(t){void 0===(t=(0,n.pi)((0,n.pi)({},t),{variables:this.getVariables(t.query,t.variables)})).notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var e=new j(this),r=new I.ue({queryManager:this,queryInfo:e,options:t});return this.queries.set(r.queryId,e),e.init({document:r.query,observableQuery:r,variables:r.variables}),r},t.prototype.query=function(t,e){var r=this;return void 0===e&&(e=this.generateQueryId()),__DEV__?(0,i.kG)(t.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.kG)(t.query,16),__DEV__?(0,i.kG)("Document"===t.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.kG)("Document"===t.query.kind,17),__DEV__?(0,i.kG)(!t.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!t.returnPartialData,18),__DEV__?(0,i.kG)(!t.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!t.pollInterval,19),this.fetchQuery(e,t).finally((function(){return r.stopQuery(e)}))},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){var e=this.queries.get(t);e&&e.stop()},t.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.ej("Store reset while query was in flight (not completed in link chain)"):new i.ej(20)),this.queries.forEach((function(t){t.observableQuery?t.networkStatus=k.I.loading:t.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},t.prototype.getObservableQueries=function(t){var e=this;void 0===t&&(t="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(t)&&t.forEach((function(t){"string"==typeof t?o.set(t,!1):(0,E.JW)(t)?o.set(e.transform(t).document,!1):(0,x.s)(t)&&t.query&&a.add(t)})),this.queries.forEach((function(e,n){var i=e.observableQuery,a=e.document;if(i){if("all"===t)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===t&&!i.hasObservers())return;("active"===t||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(t){var o=(0,A.X)("legacyOneTimeQuery"),a=e.getQuery(o).init({document:t.query,variables:t.variables}),s=new I.ue({queryManager:e,queryInfo:a,options:(0,n.pi)((0,n.pi)({},t),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)})),__DEV__&&o.size&&o.forEach((function(t,e){t||__DEV__&&i.kG.warn("Unknown query ".concat("string"==typeof e?"named ":"").concat(JSON.stringify(e,null,2)," requested in refetchQueries options.include array"))})),r},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach((function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(t||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),e.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},t.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},t.prototype.startGraphQLSubscription=function(t){var e=this,r=t.query,n=t.fetchPolicy,i=t.errorPolicy,o=t.variables,a=t.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var c=function(t){return e.getObservableFromLink(r,s,t).map((function(o){if("no-cache"!==n&&(V(o,i)&&e.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:t}),e.broadcastQueries()),v(o))throw new P.c({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var l=this.localState.addExportedVariables(r,o,s).then(c);return new m.y((function(t){var e=null;return l.then((function(r){return e=r.subscribe(t)}),t.error),function(){return e&&e.unsubscribe()}}))}return c(o)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(t){return t.notify()}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,r,i){var o,s,c=this;void 0===i&&(i=null!==(o=null==e?void 0:e.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var l=this.transform(t).serverQuery;if(l){var u=this.inFlightLinkObservables,d=this.link,h={query:l,variables:r,operationName:(0,b.rY)(l)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},e),{forceFetch:!i}))};if(e=h.context,i){var f=u.get(l)||new Map;u.set(l,f);var v=(0,p.B)(r);if(!(s=f.get(v))){var y=new O([(0,a.h)(d,h)]);f.set(v,s=y),y.beforeNext((function(){f.delete(v)&&f.size<1&&u.delete(l)}))}}else s=new O([(0,a.h)(d,h)])}else s=new O([m.y.of({data:{}})]),e=this.prepareContext(e);var w=this.transform(t).clientQuery;return w&&(s=g(s,(function(t){return c.localState.runResolvers({document:w,remoteResult:t,context:e,variables:r})}))),s},t.prototype.getResultsFromLink=function(t,e,r){var n=t.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(t.document).document);return g(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=y(o),s=a.length>0;if(n>=t.lastRequestId){if(s&&"none"===r.errorPolicy)throw t.markError(new P.c({graphQLErrors:a}));t.markResult(o,i,r,e),t.markReady()}var c={data:o.data,loading:!1,networkStatus:k.I.ready};return s&&"ignore"!==r.errorPolicy&&(c.errors=a,c.networkStatus=k.I.error),c}),(function(e){var r=(0,P.M)(e)?e:new P.c({networkError:e});throw n>=t.lastRequestId&&t.markError(r),r}))},t.prototype.fetchQueryObservable=function(t,e,r){var n=this;void 0===r&&(r=k.I.loading);var i=this.transform(e.query).document,o=this.getVariables(i,e.variables),a=this.getQuery(t),s=this.defaultOptions.watchQuery,c=e.fetchPolicy,l=void 0===c?s&&s.fetchPolicy||"cache-first":c,u=e.errorPolicy,d=void 0===u?s&&s.errorPolicy||"none":u,h=e.returnPartialData,p=void 0!==h&&h,f=e.notifyOnNetworkStatusChange,m=void 0!==f&&f,g=e.context,v=void 0===g?{}:g,y=Object.assign({},e,{query:i,variables:o,fetchPolicy:l,errorPolicy:d,returnPartialData:p,notifyOnNetworkStatusChange:m,context:v}),b=function(t){y.variables=t;var i=n.fetchQueryByPolicy(a,y,r);return"standby"!==y.fetchPolicy&&i.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",e),i},w=function(){return n.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,(function(t){w(),setTimeout((function(){return _.cancel(t)}))}));var _=new O(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(b):b(y.variables));return _.promise.then(w,w),_},t.prototype.refetchQueries=function(t){var e=this,r=t.updateCache,n=t.include,i=t.optimistic,o=void 0!==i&&i,a=t.removeOptimistic,s=void 0===a?o?(0,A.X)("refetchQueries"):void 0:a,c=t.onQueryUpdated,l=new Map;n&&this.getObservableQueries(n).forEach((function(t,r){l.set(r,{oq:t,lastDiff:e.getQuery(r).getDiff()})}));var u=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(t,e,r){var n=t.watcher instanceof j&&t.watcher.observableQuery;if(n){if(c){l.delete(n.queryId);var i=c(n,e,r);return!0===i&&(i=n.refetch()),!1!==i&&u.set(n,i),i}null!==c&&l.set(n.queryId,{oq:n,lastDiff:r,diff:e})}}}),l.size&&l.forEach((function(t,r){var n,i=t.oq,o=t.lastDiff,a=t.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&u.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&e.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),u},t.prototype.fetchQueryByPolicy=function(t,e,r){var i=this,o=e.query,a=e.variables,s=e.fetchPolicy,l=e.refetchWritePolicy,u=e.errorPolicy,d=e.returnPartialData,h=e.context,p=e.notifyOnNetworkStatusChange,f=t.networkStatus;t.init({document:this.transform(o).document,variables:a,networkStatus:r});var g=function(){return t.getDiff(a)},v=function(e,r){void 0===r&&(r=t.networkStatus||k.I.loading);var s=e.result;!__DEV__||d||(0,c.D)(s,{})||(0,I.DC)(e.missing);var l=function(t){return m.y.of((0,n.pi)({data:t,loading:(0,k.O)(r),networkStatus:r},e.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then((function(t){return l(t.data||void 0)})):l(s)},y="no-cache"===s?0:r===k.I.refetch&&"merge"!==l?1:2,b=function(){return i.getResultsFromLink(t,y,{variables:a,context:h,fetchPolicy:s,errorPolicy:u})},w=p&&"number"==typeof f&&f!==r&&(0,k.O)(r);switch(s){default:case"cache-first":return(_=g()).complete?[v(_,t.markReady())]:d||w?[v(_),b()]:[b()];case"cache-and-network":var _;return(_=g()).complete||d||w?[v(_),b()]:[b()];case"cache-only":return[v(g(),t.markReady())];case"network-only":return w?[v(g()),b()]:[b()];case"no-cache":return w?[v(t.getDiff()),b()]:[b()];case"standby":return[]}},t.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new j(this,t)),this.queries.get(t)},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return(0,n.pi)((0,n.pi)({},e),{clientAwareness:this.clientAwareness})},t}(),H=r(19611),G=!1,q=function(){function t(t){var e=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.uri,n=t.credentials,a=t.headers,c=t.cache,l=t.ssrMode,u=void 0!==l&&l,d=t.ssrForceFetchDelay,h=void 0===d?0:d,p=t.connectToDevTools,f=void 0===p?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:p,m=t.queryDeduplication,g=void 0===m||m,v=t.defaultOptions,y=t.assumeImmutableResults,b=void 0!==y&&y,w=t.resolvers,_=t.typeDefs,E=t.fragmentMatcher,x=t.name,A=t.version,C=t.link;if(C||(C=r?new s.u({uri:r,credentials:n,headers:a}):o.i.empty()),!c)throw __DEV__?new i.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.ej(9);if(this.link=C,this.cache=c,this.disableNetworkFetches=u||h>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=_,h&&setTimeout((function(){return e.disableNetworkFetches=!1}),h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!G&&f&&__DEV__&&(G=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,D=S&&S.userAgent,O=void 0;"string"==typeof D&&(D.indexOf("Chrome/")>-1?O="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":D.indexOf("Firefox/")>-1&&(O="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),O&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+O)}this.version="3.7.4",this.localState=new N({cache:c,client:this,resolvers:w,fragmentMatcher:E}),this.queryManager=new U({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:u,clientAwareness:{name:x,version:A},localState:this.localState,assumeImmutableResults:b,onBroadcast:f?function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.getQueryStore(),mutations:e.queryManager.mutationStore||{}},dataWithOptimisticResults:e.cache.extract(!0)})}:void 0})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=(0,H.J)(this.defaultOptions.watchQuery,t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=(0,n.pi)((0,n.pi)({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=(0,H.J)(this.defaultOptions.query,t)),__DEV__?(0,i.kG)("cache-and-network"!==t.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.kG)("cache-and-network"!==t.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=(0,n.pi)((0,n.pi)({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=(0,H.J)(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){this.cache.writeQuery(t),this.queryManager.broadcastQueries()},t.prototype.writeFragment=function(t){this.cache.writeFragment(t),this.queryManager.broadcastQueries()},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return(0,a.h)(this.link,t)},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.refetchQueries=function(t){var e=this.queryManager.refetchQueries(t),r=[],n=[];e.forEach((function(t,e){r.push(e),n.push(t)}));var o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(t){__DEV__&&i.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(t))})),o},t.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t.prototype.setLink=function(t){this.link=this.queryManager.link=t},t}()},44865:(t,e,r)=>{"use strict";r.d(e,{DC:()=>b,ue:()=>g,vj:()=>v});var n=r(171),i=r(85979),o=r(64579),a=r(14),s=r(7122),c=r(16022),l=r(41809),u=r(41100),d=r(88249),h=r(64059),p=r(3243),f=Object.assign,m=Object.hasOwnProperty,g=function(t){function e(e){var r=e.queryManager,i=e.queryInfo,o=e.options,a=t.call(this,(function(t){try{var e=t._subscription._observer;e&&!e.error&&(e.error=y)}catch(t){}var r=!a.observers.size;a.observers.add(t);var n=a.last;return n&&n.error?t.error&&t.error(n.error):n&&n.result&&t.next&&t.next(n.result),r&&a.reobserve().catch((function(){})),function(){a.observers.delete(t)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.isTornDown=!1;var c=r.defaultOptions.watchQuery,l=(void 0===c?{}:c).fetchPolicy,u=void 0===l?"cache-first":l,d=o.fetchPolicy,h=void 0===d?u:d,p=o.initialFetchPolicy,f=void 0===p?"standby"===h?u:h:p;a.options=(0,n.pi)((0,n.pi)({},o),{initialFetchPolicy:f,fetchPolicy:h}),a.queryId=i.queryId||r.generateQueryId();var m=(0,s.$H)(a.query);return a.queryName=m&&m.name&&m.name.value,a}return(0,n.ZT)(e,t),Object.defineProperty(e.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var t=this;return new Promise((function(e,r){var n={next:function(r){e(r),t.observers.delete(n),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=t.subscribe(n)}))},e.prototype.getCurrentResult=function(t){void 0===t&&(t=!0);var e=this.getLastResult(!0),r=this.queryInfo.networkStatus||e&&e.networkStatus||a.I.ready,i=(0,n.pi)((0,n.pi)({},e),{loading:(0,a.O)(r),networkStatus:r}),s=this.options.fetchPolicy,c=void 0===s?"cache-first":s;if("network-only"===c||"no-cache"===c||"standby"===c||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var l=this.queryInfo.getDiff();(l.complete||this.options.returnPartialData)&&(i.data=l.result),(0,o.D)(i.data,{})&&(i.data=void 0),l.complete?(delete i.partial,!l.complete||i.networkStatus!==a.I.loading||"cache-first"!==c&&"cache-only"!==c||(i.networkStatus=a.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||l.complete||this.options.partialRefetch||i.loading||i.data||i.error||b(l.missing)}return t&&this.updateLastResult(i),i},e.prototype.isDifferentFromLastResult=function(t,e){return!this.last||!(0,o.D)(this.last.result,t)||e&&!(0,o.D)(this.last.variables,e)},e.prototype.getLast=function(t,e){var r=this.last;if(r&&r[t]&&(!e||(0,o.D)(r.variables,this.variables)))return r[t]},e.prototype.getLastResult=function(t){return this.getLast("result",t)},e.prototype.getLastError=function(t){return this.getLast("error",t)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(t){var e,r={pollInterval:0},c=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===c?c:"no-cache"===c?"no-cache":"network-only",__DEV__&&t&&m.call(t,"variables")){var l=(0,s.iW)(this.query),u=l.variableDefinitions;u&&u.some((function(t){return"variables"===t.variable.name.value}))||__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(t),") for query ").concat((null===(e=l.name)||void 0===e?void 0:e.value)||JSON.stringify(l),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return t&&!(0,o.D)(this.options.variables,t)&&(r.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),t)),this.queryInfo.resetLastWrite(),this.reobserve(r,a.I.refetch)},e.prototype.fetchMore=function(t){var e=this,r=(0,n.pi)((0,n.pi)({},t.query?t:(0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},this.options),{query:this.query}),t),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),t.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,s=o.networkStatus;o.networkStatus=a.I.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(i,r,a.I.fetchMore).then((function(n){return e.queryManager.removeQuery(i),o.networkStatus===a.I.fetchMore&&(o.networkStatus=s),e.queryManager.cache.batch({update:function(i){var o=t.updateQuery;o?i.updateQuery({query:e.query,variables:e.variables,returnPartialData:!0,optimistic:!1},(function(t){return o(t,{fetchMoreResult:n.data,variables:r.variables})})):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(t){c.add(t.query)}}),n})).finally((function(){c.has(e.query)||v(e)}))},e.prototype.subscribeToMore=function(t){var e=this,r=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(r){var n=t.updateQuery;n&&e.updateQuery((function(t,e){var i=e.variables;return n(t,{subscriptionData:r,variables:i})}))},error:function(e){t.onError?t.onError(e):__DEV__&&i.kG.error("Unhandled GraphQL subscription error",e)}});return this.subscriptions.add(r),function(){e.subscriptions.delete(r)&&r.unsubscribe()}},e.prototype.setOptions=function(t){return this.reobserve(t)},e.prototype.setVariables=function(t){return(0,o.D)(this.variables,t)?this.observers.size?this.result():Promise.resolve():(this.options.variables=t,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:t},a.I.setVariables):Promise.resolve())},e.prototype.updateQuery=function(t){var e=this.queryManager,r=t(e.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(e.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),e.broadcastQueries())},e.prototype.startPolling=function(t){this.options.pollInterval=t,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(t,e){if(e.nextFetchPolicy){var r=e.fetchPolicy,n=void 0===r?"cache-first":r,i=e.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof e.nextFetchPolicy?e.fetchPolicy=e.nextFetchPolicy(n,{reason:t,options:e,observable:this,initialFetchPolicy:o}):e.fetchPolicy="variables-changed"===t?o:e.nextFetchPolicy)}return e.fetchPolicy},e.prototype.fetch=function(t,e){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,t,e)},e.prototype.updatePolling=function(){var t=this;if(!this.queryManager.ssrMode){var e=this.pollingInfo,r=this.options.pollInterval;if(r){if(!e||e.interval!==r){__DEV__?(0,i.kG)(r,"Attempted to start a polling query without a polling interval."):(0,i.kG)(r,12),(e||(this.pollingInfo={})).interval=r;var n=function(){t.pollingInfo&&((0,a.O)(t.queryInfo.networkStatus)?o():t.reobserve({fetchPolicy:"no-cache"===t.options.initialFetchPolicy?"no-cache":"network-only"},a.I.poll).then(o,o))},o=function(){var e=t.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};o()}}else e&&(clearTimeout(e.timeout),delete this.pollingInfo)}},e.prototype.updateLastResult=function(t,e){return void 0===e&&(e=this.variables),this.last=(0,n.pi)((0,n.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?t:(0,c.X)(t),variables:e}),(0,l.O)(t.errors)||delete this.last.error,this.last},e.prototype.reobserve=function(t,e){var r=this;this.isTornDown=!1;var i=e===a.I.refetch||e===a.I.fetchMore||e===a.I.poll,s=this.options.variables,c=this.options.fetchPolicy,l=(0,u.o)(this.options,t||{}),d=i?l:f(this.options,l);i||(this.updatePolling(),t&&t.variables&&!(0,o.D)(t.variables,s)&&"standby"!==d.fetchPolicy&&d.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",d),void 0===e&&(e=a.I.setVariables)));var h=d.variables&&(0,n.pi)({},d.variables),p=this.fetch(d,e),m={next:function(t){r.reportResult(t,h)},error:function(t){r.reportError(t,h)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=m),p.addObserver(m),p.promise},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(t,e){var r=this.getLastError();(r||this.isDifferentFromLastResult(t,e))&&((r||!t.partial||this.options.returnPartialData)&&this.updateLastResult(t,e),(0,d.p)(this.observers,"next",t))},e.prototype.reportError=function(t,e){var r=(0,n.pi)((0,n.pi)({},this.getLastResult()),{error:t,errors:t.graphQLErrors,networkStatus:a.I.error,loading:!1});this.updateLastResult(r,e),(0,d.p)(this.observers,"error",this.last.error=t)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e}(h.y);function v(t){var e=t.options,r=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):r}}):t.reobserve()}function y(t){__DEV__&&i.kG.error("Unhandled error",t.message,t.stack)}function b(t){__DEV__&&t&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(t)),t)}(0,p.D)(g)},21604:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ApolloCache:()=>u.R,ApolloClient:()=>o.f,ApolloError:()=>l.c,ApolloLink:()=>m.i,Cache:()=>n,HttpLink:()=>_.HttpLink,InMemoryCache:()=>d.h,MissingFieldError:()=>h.y,NetworkStatus:()=>c.I,Observable:()=>x.y,ObservableQuery:()=>s.ue,checkFetcher:()=>_.checkFetcher,concat:()=>b,createHttpLink:()=>_.createHttpLink,createSignalIfSupported:()=>_.createSignalIfSupported,defaultDataIdFromObject:()=>p.uG,defaultPrinter:()=>_.defaultPrinter,disableExperimentalFragmentVariables:()=>P.J9,disableFragmentWarnings:()=>P._t,empty:()=>g,enableExperimentalFragmentVariables:()=>P.wO,execute:()=>w.h,fallbackHttpConfig:()=>_.fallbackHttpConfig,from:()=>v.D,fromError:()=>C.Q,fromPromise:()=>A,gql:()=>P.Ps,isApolloError:()=>l.M,isReference:()=>D.Yk,makeReference:()=>D.kQ,makeVar:()=>f.QS,mergeOptions:()=>a.J,parseAndCheckHttpResponse:()=>_.parseAndCheckHttpResponse,resetCaches:()=>P.HW,rewriteURIForGET:()=>_.rewriteURIForGET,selectHttpOptionsAndBody:()=>_.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>_.selectHttpOptionsAndBodyInternal,selectURI:()=>_.selectURI,serializeFetchParameter:()=>_.serializeFetchParameter,setLogVerbosity:()=>O.U6,split:()=>y.V,throwServerError:()=>S.P,toPromise:()=>E});var n,i=r(85979),o=r(56344),a=r(19611),s=r(44865),c=r(14),l=r(93869);n||(n={});var u=r(67938),d=r(36232),h=r(48185),p=r(65110),f=r(47204),m=r(64638),g=m.i.empty,v=r(49657),y=r(71996),b=m.i.concat,w=r(95107),_=r(59555);function E(t){var e=!1;return new Promise((function(r,n){t.subscribe({next:function(t){e?__DEV__&&i.kG.warn("Promise Wrapper does not support multiple results from Observable"):(e=!0,r(t))},error:n})}))}var x=r(64059);function A(t){return new x.y((function(e){t.then((function(t){e.next(t),e.complete()})).catch(e.error.bind(e))}))}var C=r(38194),S=r(27041),D=r(84319),O=r(65385),P=r(16682);(0,O.U6)(i.Rk?"log":"silent")},14:(t,e,r)=>{"use strict";var n;function i(t){return!!t&&t<7}r.d(e,{I:()=>n,O:()=>i}),function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"}(n||(n={}))},93869:(t,e,r)=>{"use strict";r.d(e,{M:()=>o,c:()=>a});var n=r(171),i=(r(85979),r(41809));function o(t){return t.hasOwnProperty("graphQLErrors")}var a=function(t){function e(r){var n,o,a=r.graphQLErrors,s=r.clientErrors,c=r.networkError,l=r.errorMessage,u=r.extraInfo,d=t.call(this,l)||this;return d.name="ApolloError",d.graphQLErrors=a||[],d.clientErrors=s||[],d.networkError=c||null,d.message=l||(n=d,o="",((0,i.O)(n.graphQLErrors)||(0,i.O)(n.clientErrors))&&(n.graphQLErrors||[]).concat(n.clientErrors||[]).forEach((function(t){var e=t?t.message:"Error message not found.";o+="".concat(e,"\n")})),n.networkError&&(o+="".concat(n.networkError.message,"\n")),o=o.replace(/\n$/,"")),d.extraInfo=u,d.__proto__=e.prototype,d}return(0,n.ZT)(e,t),e}(Error)},64638:(t,e,r)=>{"use strict";r.d(e,{i:()=>d});var n=r(171),i=r(85979),o=r(64059),a=r(7122);function s(t,e){return e?e(t):o.y.of()}function c(t){return"function"==typeof t?new d(t):t}function l(t){return t.request.length<=1}var u=function(t){function e(e,r){var n=t.call(this,e)||this;return n.link=r,n}return(0,n.ZT)(e,t),e}(Error),d=function(){function t(t){t&&(this.request=t)}return t.empty=function(){return new t((function(){return o.y.of()}))},t.from=function(e){return 0===e.length?t.empty():e.map(c).reduce((function(t,e){return t.concat(e)}))},t.split=function(e,r,n){var i=c(r),a=c(n||new t(s));return l(i)&&l(a)?new t((function(t){return e(t)?i.request(t)||o.y.of():a.request(t)||o.y.of()})):new t((function(t,r){return e(t)?i.request(t,r)||o.y.of():a.request(t,r)||o.y.of()}))},t.execute=function(t,e){return t.request(function(t,e){var r=(0,n.pi)({},t);return Object.defineProperty(e,"setContext",{enumerable:!1,value:function(t){r="function"==typeof t?(0,n.pi)((0,n.pi)({},r),t(r)):(0,n.pi)((0,n.pi)({},r),t)}}),Object.defineProperty(e,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},r)}}),e}(e.context,function(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName="string"!=typeof e.query?(0,a.rY)(e.query)||void 0:""),e}(function(t){for(var e=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];if(e.indexOf(o)<0)throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(26)}return t}(e))))||o.y.of()},t.concat=function(e,r){var n=c(e);if(l(n))return __DEV__&&i.kG.warn(new u("You are calling concat on a terminating link, which will have no effect",n)),n;var a=c(r);return l(a)?new t((function(t){return n.request(t,(function(t){return a.request(t)||o.y.of()}))||o.y.of()})):new t((function(t,e){return n.request(t,(function(t){return a.request(t,e)||o.y.of()}))||o.y.of()}))},t.prototype.split=function(e,r,n){return this.concat(t.split(e,r,n||new t(s)))},t.prototype.concat=function(e){return t.concat(this,e)},t.prototype.request=function(t,e){throw __DEV__?new i.ej("request is not implemented"):new i.ej(21)},t.prototype.onError=function(t,e){if(e&&e.error)return e.error(t),!1;throw t},t.prototype.setOnError=function(t){return this.onError=t,this},t}()},95107:(t,e,r)=>{"use strict";r.d(e,{h:()=>n});var n=r(64638).i.execute},49657:(t,e,r)=>{"use strict";r.d(e,{D:()=>n});var n=r(64638).i.from},71996:(t,e,r)=>{"use strict";r.d(e,{V:()=>n});var n=r(64638).i.split},41822:(t,e,r)=>{"use strict";r.d(e,{u:()=>a});var n=r(171),i=r(64638),o=r(58175),a=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,(0,o.L)(e).request)||this;return r.options=e,r}return(0,n.ZT)(e,t),e}(i.i)},68494:(t,e,r)=>{"use strict";r.d(e,{U:()=>i});var n=r(85979),i=function(t){if(!t&&"undefined"==typeof fetch)throw __DEV__?new n.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new n.ej(22)}},58175:(t,e,r)=>{"use strict";r.d(e,{L:()=>y});var n=r(171),i=r(85979),o=r(9485),a=r(64638),s=r(37304),c=r(64059),l=r(81302),u=r(5820),d=r(2193),h=r(68494),p=r(88890),f=r(56146),m=r(70919),g=r(38194),v=(0,i.wY)((function(){return fetch})),y=function(t){void 0===t&&(t={});var e=t.uri,r=void 0===e?"/graphql":e,y=t.fetch,b=t.print,w=void 0===b?p.sb:b,_=t.includeExtensions,E=t.preserveHeaderCase,x=t.useGETForQueries,A=t.includeUnusedVariables,C=void 0!==A&&A,S=(0,n._T)(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&(0,h.U)(y||v);var D={http:{includeExtensions:_,preserveHeaderCase:E},options:S.fetchOptions,credentials:S.credentials,headers:S.headers};return new a.i((function(t){var e=(0,u.r)(t,r),a=t.getContext(),h={};if(a.clientAwareness){var b=a.clientAwareness,_=b.name,E=b.version;_&&(h["apollographql-client-name"]=_),E&&(h["apollographql-client-version"]=E)}var A,S=(0,n.pi)((0,n.pi)({},h),a.headers),O={http:a.http,options:a.fetchOptions,credentials:a.credentials,headers:S},P=(0,p.ve)(t,w,p.SC,D,O),I=P.options,k=P.body;if(k.variables&&!C){var T=new Set(Object.keys(k.variables));(0,o.Vn)(t.query,{Variable:function(t,e,r){r&&"VariableDefinition"!==r.kind&&T.delete(t.name.value)}}),T.size&&(k.variables=(0,n.pi)({},k.variables),T.forEach((function(t){delete k.variables[t]})))}if(!I.signal){var R=(0,f.$)(),F=R.controller,N=R.signal;(A=F)&&(I.signal=N)}if(x&&!t.query.definitions.some((function(t){return"OperationDefinition"===t.kind&&"mutation"===t.operation}))&&(I.method="GET"),(0,s.FS)(["defer"],t.query)&&(I.headers.accept="multipart/mixed; deferSpec=20220824, application/json"),"GET"===I.method){var M=(0,m.H)(e,k),B=M.newURI,L=M.parseError;if(L)return(0,g.Q)(L);e=B}else try{I.body=(0,l.g)(k,"Payload")}catch(L){return(0,g.Q)(L)}return new c.y((function(r){return(y||(0,i.wY)((function(){return fetch}))||v)(e,I).then((function(e){var n;t.setContext({response:e});var i=null===(n=e.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,d.TF)(e,r):(0,d.Wm)(e,t,r)})).catch((function(t){return(0,d.S3)(t,r)})),function(){A&&A.abort()}}))}))}},56146:(t,e,r)=>{"use strict";r.d(e,{$:()=>n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var t=new AbortController;return{controller:t,signal:t.signal}}},59555:(t,e,r)=>{"use strict";r.r(e),r.d(e,{HttpLink:()=>u.u,checkFetcher:()=>a.U,createHttpLink:()=>l.L,createSignalIfSupported:()=>s.$,defaultPrinter:()=>o.sb,fallbackHttpConfig:()=>o.SC,parseAndCheckHttpResponse:()=>n.dO,rewriteURIForGET:()=>d.H,selectHttpOptionsAndBody:()=>o.E4,selectHttpOptionsAndBodyInternal:()=>o.ve,selectURI:()=>c.r,serializeFetchParameter:()=>i.g}),r(85979);var n=r(2193),i=r(81302),o=r(88890),a=r(68494),s=r(56146),c=r(5820),l=r(58175),u=r(41822),d=r(70919)},2193:(t,e,r)=>{"use strict";r.d(e,{S3:()=>h,dO:()=>f,Wm:()=>p,TF:()=>l});var n=r(171),i=r(42860);function o(t){var e={next:function(){return t.read()}};return i.DN&&(e[Symbol.asyncIterator]=function(){return this}),e}function a(t){var e,r,n,a=t;if(t.body&&(a=t.body),n=a,i.DN&&n[Symbol.asyncIterator])return r=a[Symbol.asyncIterator](),(e={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},e;if(function(t){return!!t.getReader}(a))return o(a.getReader());if(function(t){return!!t.stream}(a))return o(a.stream().getReader());if(function(t){return!!t.arrayBuffer}(a))return function(t){var e=!1,r={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise((function(e,r){t.then((function(t){e({value:t,done:!1})})).catch(r)})))}};return i.DN&&(r[Symbol.asyncIterator]=function(){return this}),r}(a.arrayBuffer());if(function(t){return!!t.pipe}(a))return function(t){var e=null,r=null,n=!1,o=[],a=[];function s(t){if(!r){if(a.length){var e=a.shift();if(Array.isArray(e)&&e[0])return e[0]({value:t,done:!1})}o.push(t)}}function c(t){r=t,a.slice().forEach((function(e){e[1](t)})),!e||e()}function l(){n=!0,a.slice().forEach((function(t){t[0]({value:void 0,done:!0})})),!e||e()}e=function(){e=null,t.removeListener("data",s),t.removeListener("error",c),t.removeListener("end",l),t.removeListener("finish",l),t.removeListener("close",l)},t.on("data",s),t.on("error",c),t.on("end",l),t.on("finish",l),t.on("close",l);var u={next:function(){return new Promise((function(t,e){return r?e(r):o.length?t({value:o.shift(),done:!1}):n?t({value:void 0,done:!0}):void a.push([t,e])}))}};return i.DN&&(u[Symbol.asyncIterator]=function(){return this}),u}(a);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var s=r(27041),c=Object.prototype.hasOwnProperty;function l(t,e){var r,i,o;return(0,n.mG)(this,void 0,void 0,(function(){var s,c,l,p,f,m,g,v,y,b,w,_,E,x,A,C,S,D,O,P;return(0,n.Jh)(this,(function(n){switch(n.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");s=new TextDecoder("utf-8"),c=null===(r=t.headers)||void 0===r?void 0:r.get("content-type"),l="boundary=",p=(null==c?void 0:c.includes(l))?null==c?void 0:c.substring((null==c?void 0:c.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",f="--".concat(p),m="",g=a(t),v=!0,n.label=1;case 1:return v?[4,g.next()]:[3,3];case 2:for(y=n.sent(),b=y.value,w=y.done,_="string"==typeof b?b:s.decode(b),v=!w,E=(m+=_).indexOf(f);E>-1;){if(x=void 0,P=[m.slice(0,E),m.slice(E+f.length)],m=P[1],(x=P[0]).trim()){if(A=x.indexOf("\r\n\r\n"),C=u(x.slice(0,A)),(S=C["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");D=x.slice(A);try{O=d(t,D.replace("\r\n","")),(Object.keys(O).length>1||"data"in O||"incremental"in O||"errors"in O)&&(null===(i=e.next)||void 0===i||i.call(e,O))}catch(t){h(t,e)}}E=m.indexOf(f)}return[3,1];case 3:return null===(o=e.complete)||void 0===o||o.call(e),[2]}}))}))}function u(t){var e={};return t.split("\n").forEach((function(t){var r=t.indexOf(":");if(r>-1){var n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();e[n]=i}})),e}function d(t,e){t.status>=300&&(0,s.P)(t,function(){try{return JSON.parse(e)}catch(t){return e}}(),"Response not successful: Received status code ".concat(t.status));try{return JSON.parse(e)}catch(n){var r=n;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,r}}function h(t,e){var r,n;"AbortError"!==t.name&&(t.result&&t.result.errors&&t.result.data&&(null===(r=e.next)||void 0===r||r.call(e,t.result)),null===(n=e.error)||void 0===n||n.call(e,t))}function p(t,e,r){f(e)(t).then((function(t){var e,n;null===(e=r.next)||void 0===e||e.call(r,t),null===(n=r.complete)||void 0===n||n.call(r)})).catch((function(t){return h(t,r)}))}function f(t){return function(e){return e.text().then((function(t){return d(e,t)})).then((function(r){return e.status>=300&&(0,s.P)(e,r,"Response not successful: Received status code ".concat(e.status)),Array.isArray(r)||c.call(r,"data")||c.call(r,"errors")||(0,s.P)(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map((function(t){return t.operationName})):t.operationName,"'.")),r}))}}},70919:(t,e,r)=>{"use strict";r.d(e,{H:()=>i});var n=r(81302);function i(t,e){var r=[],i=function(t,e){r.push("".concat(t,"=").concat(encodeURIComponent(e)))};if("query"in e&&i("query",e.query),e.operationName&&i("operationName",e.operationName),e.variables){var o=void 0;try{o=(0,n.g)(e.variables,"Variables map")}catch(t){return{parseError:t}}i("variables",o)}if(e.extensions){var a=void 0;try{a=(0,n.g)(e.extensions,"Extensions map")}catch(t){return{parseError:t}}i("extensions",a)}var s="",c=t,l=t.indexOf("#");-1!==l&&(s=t.substr(l),c=t.substr(0,l));var u=-1===c.indexOf("?")?"?":"&";return{newURI:c+u+r.join("&")+s}}},88890:(t,e,r)=>{"use strict";r.d(e,{E4:()=>s,SC:()=>o,sb:()=>a,ve:()=>c});var n=r(171),i=r(54585),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(t,e){return e(t)};function s(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return r.unshift(e),c.apply(void 0,(0,n.ev)([t,a],r,!1))}function c(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a={},s={};r.forEach((function(t){a=(0,n.pi)((0,n.pi)((0,n.pi)({},a),t.options),{headers:(0,n.pi)((0,n.pi)({},a.headers),t.headers)}),t.credentials&&(a.credentials=t.credentials),s=(0,n.pi)((0,n.pi)({},s),t.http)})),a.headers=l(a.headers,s.preserveHeaderCase);var c=t.operationName,u=t.extensions,d=t.variables,h=t.query,p={operationName:c,variables:d};return s.includeExtensions&&(p.extensions=u),s.includeQuery&&(p.query=e(h,i.S)),{options:a,body:p}}function l(t,e){if(!e){var r=Object.create(null);return Object.keys(Object(t)).forEach((function(e){r[e.toLowerCase()]=t[e]})),r}var n=Object.create(null);Object.keys(Object(t)).forEach((function(e){n[e.toLowerCase()]={originalName:e,value:t[e]}}));var i=Object.create(null);return Object.keys(n).forEach((function(t){i[n[t].originalName]=n[t].value})),i}},5820:(t,e,r)=>{"use strict";r.d(e,{r:()=>n});var n=function(t,e){return t.getContext().uri||("function"==typeof e?e(t):e||"/graphql")}},81302:(t,e,r)=>{"use strict";r.d(e,{g:()=>i});var n=r(85979),i=function(t,e){var r;try{r=JSON.stringify(t)}catch(t){var i=__DEV__?new n.ej("Network request failed. ".concat(e," is not serializable: ").concat(t.message)):new n.ej(23);throw i.parseError=t,i}return r}},38194:(t,e,r)=>{"use strict";r.d(e,{Q:()=>i});var n=r(64059);function i(t){return new n.y((function(e){e.error(t)}))}},27041:(t,e,r)=>{"use strict";r.d(e,{P:()=>n});var n=function(t,e,r){var n=new Error(r);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n}},41809:(t,e,r)=>{"use strict";function n(t){return Array.isArray(t)&&t.length>0}r.d(e,{O:()=>n})},42860:(t,e,r)=>{"use strict";r.d(e,{DN:()=>s,aS:()=>a,mr:()=>i,sy:()=>o});var n=r(85979),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)((function(){return navigator.product})),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator;(0,n.wY)((function(){return window.document.createElement})),(0,n.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))},16022:(t,e,r)=>{"use strict";r.d(e,{X:()=>i});var n=Object.prototype.toString;function i(t){return o(t)}function o(t,e){switch(n.call(t)){case"[object Array]":if((e=e||new Map).has(t))return e.get(t);var r=t.slice(0);return e.set(t,r),r.forEach((function(t,n){r[n]=o(t,e)})),r;case"[object Object]":if((e=e||new Map).has(t))return e.get(t);var i=Object.create(Object.getPrototypeOf(t));return e.set(t,i),Object.keys(t).forEach((function(r){i[r]=o(t[r],e)})),i;default:return t}}},41100:(t,e,r)=>{"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach((function(t){t&&Object.keys(t).forEach((function(e){var n=t[e];void 0!==n&&(r[e]=n)}))})),r}r.d(e,{o:()=>n})},61029:(t,e,r)=>{"use strict";r.d(e,{X:()=>i});var n=new Map;function i(t){var e=n.get(t)||1;return n.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}},85098:(t,e,r)=>{"use strict";r.d(e,{Ee:()=>a,bw:()=>s,w0:()=>l});var n=r(171),i=r(32345),o=Object.prototype.hasOwnProperty;function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s(t)}function s(t){var e=t[0]||{},r=t.length;if(r>1)for(var n=new l,i=1;i<r;++i)e=n.merge(e,t[i]);return e}var c=function(t,e,r){return this.merge(t[r],e[r])},l=function(){function t(t){void 0===t&&(t=c),this.reconciler=t,this.isObject=i.s,this.pastCopies=new Set}return t.prototype.merge=function(t,e){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(e)&&(0,i.s)(t)?(Object.keys(e).forEach((function(i){if(o.call(t,i)){var s=t[i];if(e[i]!==s){var c=r.reconciler.apply(r,(0,n.ev)([t,e,i],a,!1));c!==s&&((t=r.shallowCopyForMerge(t))[i]=c)}}else(t=r.shallowCopyForMerge(t))[i]=e[i]})),t):e},t.prototype.shallowCopyForMerge=function(t){return(0,i.s)(t)&&(this.pastCopies.has(t)||(t=Array.isArray(t)?t.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},t}()},19611:(t,e,r)=>{"use strict";r.d(e,{J:()=>o});var n=r(171),i=r(41100);function o(t,e){return(0,i.o)(t,e,e.variables&&{variables:(0,n.pi)((0,n.pi)({},t&&t.variables),e.variables)})}},32345:(t,e,r)=>{"use strict";function n(t){return null!==t&&"object"==typeof t}r.d(e,{s:()=>n})},85979:(t,e,r)=>{"use strict";r.d(e,{Rk:()=>c,ej:()=>n.ej,kG:()=>n.kG,wY:()=>i});var n=r(65385);function i(t){try{return t()}catch(t){}}const o=i((function(){return globalThis}))||i((function(){return window}))||i((function(){return self}))||i((function(){return global}))||i((function(){return i.constructor("return this")()}));var a="__",s=[a,a].join("DEV");const c=function(){try{return Boolean(__DEV__)}catch(t){return Object.defineProperty(o,s,{value:"production"!==i((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),o[s]}}();var l=r(6591);function u(t){try{return t()}catch(t){}}var d=u((function(){return globalThis}))||u((function(){return window}))||u((function(){return self}))||u((function(){return global}))||u((function(){return u.constructor("return this")()})),h=!1;!d||u((function(){return"production"}))||u((function(){return l}))||(Object.defineProperty(d,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),h=!0),r(16333).H,h&&(delete d.process,h=!1),__DEV__?(0,n.kG)("boolean"==typeof c,c):(0,n.kG)("boolean"==typeof c,38)},37304:(t,e,r)=>{"use strict";r.d(e,{FS:()=>a,LZ:()=>o,mj:()=>s});var n=r(85979),i=r(9485);function o(t,e){var r=t.directives;return!r||!r.length||function(t){var e=[];return t&&t.length&&t.forEach((function(t){if(function(t){var e=t.name.value;return"skip"===e||"include"===e}(t)){var r=t.arguments,i=t.name.value;__DEV__?(0,n.kG)(r&&1===r.length,"Incorrect number of arguments for the @".concat(i," directive.")):(0,n.kG)(r&&1===r.length,40);var o=r[0];__DEV__?(0,n.kG)(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):(0,n.kG)(o.name&&"if"===o.name.value,41);var a=o.value;__DEV__?(0,n.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):(0,n.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),42),e.push({directive:t,ifArgument:o})}})),e}(r).every((function(t){var r=t.directive,i=t.ifArgument,o=!1;return"Variable"===i.value.kind?(o=e&&e[i.value.name.value],__DEV__?(0,n.kG)(void 0!==o,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,n.kG)(void 0!==o,39)):o=i.value.value,"skip"===r.name.value?!o:o}))}function a(t,e,r){var n=new Set(t),o=n.size;return(0,i.Vn)(e,{Directive:function(t){if(n.delete(t.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function s(t){return t&&a(["client","export"],t,!0)}},74483:(t,e,r)=>{"use strict";r.d(e,{F:()=>a,Yk:()=>o,hi:()=>s});var n=r(171),i=r(85979);function o(t,e){var r=e,o=[];return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw __DEV__?new i.ej("Found a ".concat(t.operation," operation").concat(t.name?" named '".concat(t.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(43);"FragmentDefinition"===t.kind&&o.push(t)})),void 0===r&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,44),r=o[0].name.value),(0,n.pi)((0,n.pi)({},t),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)})}function a(t){void 0===t&&(t=[]);var e={};return t.forEach((function(t){e[t.name.value]=t})),e}function s(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":var r=t.name.value;if("function"==typeof e)return e(r);var n=e&&e[r];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(r)):(0,i.kG)(n,45),n||null;default:return null}}},7122:(t,e,r)=>{"use strict";r.d(e,{$H:()=>a,A$:()=>o,O4:()=>h,iW:()=>l,kU:()=>c,p$:()=>d,pD:()=>u,rY:()=>s});var n=r(85979),i=r(84319);function o(t){__DEV__?(0,n.kG)(t&&"Document"===t.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)(t&&"Document"===t.kind,46);var e=t.definitions.filter((function(t){return"FragmentDefinition"!==t.kind})).map((function(t){if("OperationDefinition"!==t.kind)throw __DEV__?new n.ej('Schema type definitions not allowed in queries. Found: "'.concat(t.kind,'"')):new n.ej(47);return t}));return __DEV__?(0,n.kG)(e.length<=1,"Ambiguous GraphQL document: contains ".concat(e.length," operations")):(0,n.kG)(e.length<=1,48),t}function a(t){return o(t),t.definitions.filter((function(t){return"OperationDefinition"===t.kind}))[0]}function s(t){return t.definitions.filter((function(t){return"OperationDefinition"===t.kind&&t.name})).map((function(t){return t.name.value}))[0]||null}function c(t){return t.definitions.filter((function(t){return"FragmentDefinition"===t.kind}))}function l(t){var e=a(t);return __DEV__?(0,n.kG)(e&&"query"===e.operation,"Must contain a query definition."):(0,n.kG)(e&&"query"===e.operation,49),e}function u(t){__DEV__?(0,n.kG)("Document"===t.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)("Document"===t.kind,50),__DEV__?(0,n.kG)(t.definitions.length<=1,"Fragment must have exactly one definition."):(0,n.kG)(t.definitions.length<=1,51);var e=t.definitions[0];return __DEV__?(0,n.kG)("FragmentDefinition"===e.kind,"Must be a fragment definition."):(0,n.kG)("FragmentDefinition"===e.kind,52),e}function d(t){var e;o(t);for(var r=0,i=t.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||e||(e=a)}if(e)return e;throw __DEV__?new n.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n.ej(53)}function h(t){var e=Object.create(null),r=t&&t.variableDefinitions;return r&&r.length&&r.forEach((function(t){t.defaultValue&&(0,i.vb)(e,t.variable.name,t.defaultValue)})),e}},84319:(t,e,r)=>{"use strict";r.d(e,{Ao:()=>b,JW:()=>c,My:()=>y,NC:()=>m,PT:()=>h,Yk:()=>s,kQ:()=>a,qw:()=>v,u2:()=>g,vb:()=>l,vf:()=>u});var n=r(85979),i=r(32345),o=r(74483);function a(t){return{__ref:String(t)}}function s(t){return Boolean(t&&"object"==typeof t&&"string"==typeof t.__ref)}function c(t){return(0,i.s)(t)&&"Document"===t.kind&&Array.isArray(t.definitions)}function l(t,e,r,i){if(function(t){return"IntValue"===t.kind}(r)||function(t){return"FloatValue"===t.kind}(r))t[e.value]=Number(r.value);else if(function(t){return"BooleanValue"===t.kind}(r)||function(t){return"StringValue"===t.kind}(r))t[e.value]=r.value;else if(function(t){return"ObjectValue"===t.kind}(r)){var o={};r.fields.map((function(t){return l(o,t.name,t.value,i)})),t[e.value]=o}else if(function(t){return"Variable"===t.kind}(r)){var a=(i||{})[r.name.value];t[e.value]=a}else if(function(t){return"ListValue"===t.kind}(r))t[e.value]=r.values.map((function(t){var r={};return l(r,e,t,i),r[e.value]}));else if(function(t){return"EnumValue"===t.kind}(r))t[e.value]=r.value;else{if(!function(t){return"NullValue"===t.kind}(r))throw __DEV__?new n.ej('The inline argument "'.concat(e.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n.ej(54);t[e.value]=null}}function u(t,e){var r=null;t.directives&&(r={},t.directives.forEach((function(t){r[t.name.value]={},t.arguments&&t.arguments.forEach((function(n){var i=n.name,o=n.value;return l(r[t.name.value],i,o,e)}))})));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach((function(t){var r=t.name,i=t.value;return l(n,r,i,e)}))),h(t.name.value,n,r)}var d=["connection","include","skip","client","rest","export"],h=Object.assign((function(t,e,r){if(e&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(t){i[t]=e[t]})),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=t;if(e){var a=p(e);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(t){-1===d.indexOf(t)&&(r[t]&&Object.keys(r[t]).length?o+="@".concat(t,"(").concat(p(r[t]),")"):o+="@".concat(t))})),o}),{setStringify:function(t){var e=p;return p=t,e}}),p=function(t){return JSON.stringify(t,f)};function f(t,e){return(0,i.s)(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce((function(t,r){return t[r]=e[r],t}),{})),e}function m(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach((function(t){var n=t.name,i=t.value;return l(r,n,i,e)})),r}return null}function g(t){return t.alias?t.alias.value:t.name.value}function v(t,e,r){if("string"==typeof t.__typename)return t.__typename;for(var n=0,i=e.selections;n<i.length;n++){var a=i[n];if(y(a)){if("__typename"===a.name.value)return t[g(a)]}else{var s=v(t,(0,o.hi)(a,r).selectionSet,r);if("string"==typeof s)return s}}}function y(t){return"Field"===t.kind}function b(t){return"InlineFragment"===t.kind}},45117:(t,e,r)=>{"use strict";r.d(e,{Gw:()=>m,aL:()=>b,ob:()=>w,Fo:()=>v});var n=r(171),i=r(85979),o=r(9485),a=r(7122);function s(t,e,r){var n=0;return t.forEach((function(r,i){e.call(this,r,i,t)&&(t[n++]=r)}),r),t.length=n,t}var c=r(84319),l=r(74483),u={kind:"Field",name:{kind:"Name",value:"__typename"}};function d(t,e){return!t||t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&d(e[t.name.value],e)}))}function h(t){return d((0,a.$H)(t)||(0,a.pD)(t),(0,l.F)((0,a.kU)(t)))?null:t}function p(t){return function(e){return t.some((function(t){return t.name&&t.name===e.name.value||t.test&&t.test(e)}))}}function f(t,e){var r=Object.create(null),i=[],a=Object.create(null),c=[],l=h((0,o.Vn)(e,{Variable:{enter:function(t,e,n){"VariableDefinition"!==n.kind&&(r[t.name.value]=!0)}},Field:{enter:function(e){if(t&&e.directives&&t.some((function(t){return t.remove}))&&e.directives&&e.directives.some(p(t)))return e.arguments&&e.arguments.forEach((function(t){"Variable"===t.value.kind&&i.push({name:t.value.name.value})})),e.selectionSet&&y(e.selectionSet).forEach((function(t){c.push({name:t.name.value})})),null}},FragmentSpread:{enter:function(t){a[t.name.value]=!0}},Directive:{enter:function(e){if(p(t)(e))return null}}}));return l&&s(i,(function(t){return!!t.name&&!r[t.name]})).length&&(l=function(t,e){var r=function(t){return function(e){return t.some((function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))}))}}(t);return h((0,o.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter((function(e){return!t.some((function(t){return t.name===e.variable.name.value}))})):[]})}},Field:{enter:function(e){if(t.some((function(t){return t.remove}))){var n=0;if(e.arguments&&e.arguments.forEach((function(t){r(t)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(t){if(r(t))return null}}}))}(i,l)),l&&s(c,(function(t){return!!t.name&&!a[t.name]})).length&&(l=function(t,e){function r(e){if(t.some((function(t){return t.name===e.name.value})))return null}return h((0,o.Vn)(e,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(c,l)),l}var m=Object.assign((function(t){return(0,o.Vn)(t,{SelectionSet:{enter:function(t,e,r){if(!r||"OperationDefinition"!==r.kind){var i=t.selections;if(i&&!i.some((function(t){return(0,c.My)(t)&&("__typename"===t.name.value||0===t.name.value.lastIndexOf("__",0))}))){var o=r;if(!((0,c.My)(o)&&o.directives&&o.directives.some((function(t){return"export"===t.name.value}))))return(0,n.pi)((0,n.pi)({},t),{selections:(0,n.ev)((0,n.ev)([],i,!0),[u],!1)})}}}}})}),{added:function(t){return t===u}}),g={test:function(t){var e="connection"===t.name.value;return e&&(t.arguments&&t.arguments.some((function(t){return"key"===t.name.value}))||__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),e}};function v(t){return f([g],(0,a.A$)(t))}function y(t){var e=[];return t.selections.forEach((function(t){((0,c.My)(t)||(0,c.Ao)(t))&&t.selectionSet?y(t.selectionSet).forEach((function(t){return e.push(t)})):"FragmentSpread"===t.kind&&e.push(t)})),e}function b(t){return"query"===(0,a.p$)(t).operation?t:(0,o.Vn)(t,{OperationDefinition:{enter:function(t){return(0,n.pi)((0,n.pi)({},t),{operation:"query"})}}})}function w(t){(0,a.A$)(t);var e=f([{test:function(t){return"client"===t.name.value},remove:!0}],t);return e&&(e=(0,o.Vn)(e,{FragmentDefinition:{enter:function(t){if(t.selectionSet&&t.selectionSet.selections.every((function(t){return(0,c.My)(t)&&"__typename"===t.name.value})))return null}}})),e}},88249:(t,e,r)=>{"use strict";function n(t,e,r){var n=[];t.forEach((function(t){return t[e]&&n.push(t)})),n.forEach((function(t){return t[e](r)}))}r.d(e,{p:()=>n})},3243:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(64059),i=r(42860);function o(t){function e(e){Object.defineProperty(t,e,{value:n.y})}return i.aS&&Symbol.species&&e(Symbol.species),e("@@species"),t}},65385:(t,e,r)=>{"use strict";r.d(e,{U6:()=>p,ej:()=>c,kG:()=>l});var n=r(171),i=r(51266),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(t,e){return t.__proto__=e,t}:a,c=function(t){function e(r){void 0===r&&(r=o);var n=t.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,s(n,e.prototype),n}return(0,n.ZT)(e,t),e}(Error);function l(t,e){if(!t)throw new c(e)}var u=["debug","log","warn","error","silent"],d=u.indexOf("log");function h(t){return function(){if(u.indexOf(t)>=d){var e=i[t]||i.log;return e.apply(i,arguments)}}}function p(t){var e=u[d];return d=Math.max(0,u.indexOf(t)),e}!function(t){t.debug=h("debug"),t.log=h("log"),t.warn=h("warn"),t.error=h("error")}(l||(l={}))},64059:(t,e,r)=>{"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}r.d(e,{y:()=>x});var a=function(){return"function"==typeof Symbol},s=function(t){return a()&&Boolean(Symbol[t])},c=function(t){return s(t)?Symbol[t]:"@@"+t};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var l=c("iterator"),u=c("observable"),d=c("species");function h(t,e){var r=t[e];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function p(t){var e=t.constructor;return void 0!==e&&null===(e=e[d])&&(e=void 0),void 0!==e?e:x}function f(t){return t instanceof x}function m(t){m.log?m.log(t):setTimeout((function(){throw t}))}function g(t){Promise.resolve().then((function(){try{t()}catch(t){m(t)}}))}function v(t){var e=t._cleanup;if(void 0!==e&&(t._cleanup=void 0,e))try{if("function"==typeof e)e();else{var r=h(e,"unsubscribe");r&&r.call(e)}}catch(t){m(t)}}function y(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function b(t,e,r){t._state="running";var n=t._observer;try{var i=h(n,e);switch(e){case"next":i&&i.call(n,r);break;case"error":if(y(t),!i)throw r;i.call(n,r);break;case"complete":y(t),i&&i.call(n)}}catch(t){m(t)}"closed"===t._state?v(t):"running"===t._state&&(t._state="ready")}function w(t,e,r){if("closed"!==t._state){if("buffering"!==t._state)return"ready"!==t._state?(t._state="buffering",t._queue=[{type:e,value:r}],void g((function(){return function(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var r=0;r<e.length&&(b(t,e[r].type,e[r].value),"closed"!==t._state);++r);}}(t)}))):void b(t,e,r);t._queue.push({type:e,value:r})}}var _=function(){function t(t,e){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var r=new E(this);try{this._cleanup=e.call(void 0,r)}catch(t){r.error(t)}"initializing"===this._state&&(this._state="ready")}return t.prototype.unsubscribe=function(){"closed"!==this._state&&(y(this),v(this))},o(t,[{key:"closed",get:function(){return"closed"===this._state}}]),t}(),E=function(){function t(t){this._subscription=t}var e=t.prototype;return e.next=function(t){w(this._subscription,"next",t)},e.error=function(t){w(this._subscription,"error",t)},e.complete=function(){w(this._subscription,"complete")},o(t,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),x=function(){function t(e){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}var e=t.prototype;return e.subscribe=function(t){return"object"==typeof t&&null!==t||(t={next:t,error:arguments[1],complete:arguments[2]}),new _(t,this._subscriber)},e.forEach=function(t){var e=this;return new Promise((function(r,n){if("function"==typeof t)var i=e.subscribe({next:function(e){try{t(e,o)}catch(t){n(t),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(t+" is not a function"));function o(){i.unsubscribe(),r()}}))},e.map=function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(p(this))((function(r){return e.subscribe({next:function(e){try{e=t(e)}catch(t){return r.error(t)}r.next(e)},error:function(t){r.error(t)},complete:function(){r.complete()}})}))},e.filter=function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new(p(this))((function(r){return e.subscribe({next:function(e){try{if(!t(e))return}catch(t){return r.error(t)}r.next(e)},error:function(t){r.error(t)},complete:function(){r.complete()}})}))},e.reduce=function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var r=p(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r((function(r){return e.subscribe({next:function(e){var o=!i;if(i=!0,!o||n)try{a=t(a,e)}catch(t){return r.error(t)}else a=e},error:function(t){r.error(t)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))},e.concat=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=p(this);return new i((function(e){var n,o=0;return function t(a){n=a.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){o===r.length?(n=void 0,e.complete()):t(i.from(r[o++]))}})}(t),function(){n&&(n.unsubscribe(),n=void 0)}}))},e.flatMap=function(t){var e=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var r=p(this);return new r((function(n){var i=[],o=e.subscribe({next:function(e){if(t)try{e=t(e)}catch(t){return n.error(t)}var o=r.from(e).subscribe({next:function(t){n.next(t)},error:function(t){n.error(t)},complete:function(){var t=i.indexOf(o);t>=0&&i.splice(t,1),a()}});i.push(o)},error:function(t){n.error(t)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(t){return t.unsubscribe()})),o.unsubscribe()}}))},e[u]=function(){return this},t.from=function(e){var r="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var i=h(e,u);if(i){var o=i.call(e);if(Object(o)!==o)throw new TypeError(o+" is not an object");return f(o)&&o.constructor===r?o:new r((function(t){return o.subscribe(t)}))}if(s("iterator")&&(i=h(e,l)))return new r((function(t){g((function(){if(!t.closed){for(var r,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(e));!(r=o()).done;){var a=r.value;if(t.next(a),t.closed)return}t.complete()}}))}));if(Array.isArray(e))return new r((function(t){g((function(){if(!t.closed){for(var r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()}}))}));throw new TypeError(e+" is not observable")},t.of=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i="function"==typeof this?this:t;return new i((function(t){g((function(){if(!t.closed){for(var e=0;e<r.length;++e)if(t.next(r[e]),t.closed)return;t.complete()}}))}))},o(t,null,[{key:d,get:function(){return this}}]),t}();a()&&Object.defineProperty(x,Symbol("extensions"),{value:{symbol:u,hostReportError:m},configurable:!0})}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.p="/",__webpack_require__.b=document.baseURI||self.location.href;var __webpack_exports__={};(()=>{"use strict";var t=__webpack_require__(171),e=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{var{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(e){customElements.define(t,e)}}})(t,e);function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?n(n({},e),{},{finisher(r){r.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function a(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):o(t,e)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t){return a(c(c({},t),{},{state:!0}))}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f,m=t=>{var{finisher:e,descriptor:r}=t;return(t,n)=>{var i;if(void 0===n){var o=null!==(i=t.originalKey)&&void 0!==i?i:t.key,a=null!=r?{kind:"method",placement:"prototype",key:o,descriptor:r(t.key)}:h(h({},t),{},{key:o});return null!=e&&(a.finisher=function(t){e(t,o)}),a}var s=t.constructor;void 0!==r&&Object.defineProperty(t,n,r(n)),null==e||e(s,n)}};function g(t){return m({finisher:(e,r)=>{Object.assign(e.prototype[r],t)}})}function v(t,e){return m({descriptor:r=>{var n={get(){var e,r;return null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(e){var i="symbol"==typeof r?Symbol():"__"+r;n.get=function(){var e,r;return void 0===this[i]&&(this[i]=null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null),this[i]}}return n}})}function y(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function b(t){return m({descriptor:e=>({get(){var e=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){y(o,n,i,a,s,"next",t)}function s(t){y(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){var r;return yield e.updateComplete,null===(r=e.renderRoot)||void 0===r?void 0:r.querySelector(t)}))()},enumerable:!0,configurable:!0})})}null===(f=window.HTMLSlotElement)||void 0===f||f.prototype.assignedElements;var w=window,_=w.ShadowRoot&&(void 0===w.ShadyCSS||w.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,E=Symbol(),x=new WeakMap;class A{constructor(t,e,r){if(this._$cssResult$=!0,r!==E)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){var t=this.o,e=this.t;if(_&&void 0===t){var r=void 0!==e&&1===e.length;r&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&x.set(e,t))}return t}toString(){return this.cssText}}var C,S=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var i=1===t.length?t[0]:r.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new A(i,t,E)},D=_?t=>t:t=>t instanceof CSSStyleSheet?(t=>{var e="";for(var r of t.cssRules)e+=r.cssText;return(t=>new A("string"==typeof t?t:t+"",void 0,E))(e)})(t):t;function O(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}var P,I=window,k=I.trustedTypes,T=k?k.emptyScript:"",R=I.reactiveElementPolyfillSupport,F={toAttribute(t,e){switch(e){case Boolean:t=t?T:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){var r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},N=(t,e)=>e!==t&&(e==e||t==t),M={attribute:!0,type:String,converter:F,reflect:!1,hasChanged:N};class B extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();var t=[];return this.elementProperties.forEach(((e,r)=>{var n=this._$Ep(r,e);void 0!==n&&(this._$Ev.set(n,r),t.push(n))})),t}static createProperty(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var r="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,r,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(n){var i=this[t];this[e]=n,this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||M}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){var e=this.properties,r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(var n of r)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){var e=[];if(Array.isArray(t)){var r=new Set(t.flat(1/0).reverse());for(var n of r)e.unshift(D(n))}else void 0!==t&&e.push(D(t));return e}static _$Ep(t,e){var r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t,e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{_?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{var r=document.createElement("style"),n=w.litNonce;void 0!==n&&r.setAttribute("nonce",n),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,i=this.constructor._$Ep(t,n);if(void 0!==i&&!0===n.reflect){var o=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:F).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var r,n=this.constructor,i=n._$Ev.get(t);if(void 0!==i&&this._$El!==i){var o=n.getPropertyOptions(i),a="function"==typeof o.converter?{fromAttribute:o.converter}:void 0!==(null===(r=o.converter)||void 0===r?void 0:r.fromAttribute)?o.converter:F;this._$El=i,this[i]=a.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,r){var n=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}_$Ej(){var t=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){O(o,n,i,a,s,"next",t)}function s(t){O(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){t.isUpdatePending=!0;try{yield t._$E_}catch(e){Promise.reject(e)}var e=t.scheduleUpdate();return null!=e&&(yield e),!t.isUpdatePending}))()}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(this.isUpdatePending){this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);var e=!1,r=this._$AL;try{(e=this.shouldUpdate(r))?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}B.finalized=!0,B.elementProperties=new Map,B.elementStyles=[],B.shadowRootOptions={mode:"open"},null==R||R({ReactiveElement:B}),(null!==(C=I.reactiveElementVersions)&&void 0!==C?C:I.reactiveElementVersions=[]).push("1.6.1");var L=window,j=L.trustedTypes,V=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="lit$".concat((Math.random()+"").slice(9),"$"),U="?"+z,H="<".concat(U,">"),G=document,q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return G.createComment(t)},W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,X=t=>Y(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,K=/>/g,Z=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),J=/'/g,tt=/"/g,et=/^(?:script|style|textarea|title)$/i,rt=t=>function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return{_$litType$:t,strings:e,values:n}},nt=rt(1),it=(rt(2),Symbol.for("lit-noChange")),ot=Symbol.for("lit-nothing"),at=new WeakMap,st=G.createTreeWalker(G,129,null,!1),ct=(t,e)=>{for(var r,n=t.length-1,i=[],o=2===e?"<svg>":"",a=$,s=0;s<n;s++){for(var c=t[s],l=void 0,u=void 0,d=-1,h=0;h<c.length&&(a.lastIndex=h,null!==(u=a.exec(c)));)h=a.lastIndex,a===$?"!--"===u[1]?a=Q:void 0!==u[1]?a=K:void 0!==u[2]?(et.test(u[2])&&(r=RegExp("</"+u[2],"g")),a=Z):void 0!==u[3]&&(a=Z):a===Z?">"===u[0]?(a=null!=r?r:$,d=-1):void 0===u[1]?d=-2:(d=a.lastIndex-u[2].length,l=u[1],a=void 0===u[3]?Z:'"'===u[3]?tt:J):a===tt||a===J?a=Z:a===Q||a===K?a=$:(a=Z,r=void 0);var p=a===Z&&t[s+1].startsWith("/>")?" ":"";o+=a===$?c+H:d>=0?(i.push(l),c.slice(0,d)+"$lit$"+c.slice(d)+z+p):c+z+(-2===d?(i.push(void 0),s):p)}var f=o+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==V?V.createHTML(f):f,i]};class lt{constructor(t,e){var r,{strings:n,_$litType$:i}=t;this.parts=[];var o=0,a=0,s=n.length-1,c=this.parts,[l,u]=ct(n,i);if(this.el=lt.createElement(l,e),st.currentNode=this.el.content,2===i){var d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;null!==(r=st.nextNode())&&c.length<s;){if(1===r.nodeType){if(r.hasAttributes()){var p=[];for(var f of r.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(z)){var m=u[a++];if(p.push(f),void 0!==m){var g=r.getAttribute(m.toLowerCase()+"$lit$").split(z),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:v[2],strings:g,ctor:"."===v[1]?ft:"?"===v[1]?gt:"@"===v[1]?vt:pt})}else c.push({type:6,index:o})}for(var y of p)r.removeAttribute(y)}if(et.test(r.tagName)){var b=r.textContent.split(z),w=b.length-1;if(w>0){r.textContent=j?j.emptyScript:"";for(var _=0;_<w;_++)r.append(b[_],q()),st.nextNode(),c.push({type:2,index:++o});r.append(b[w],q())}}}else if(8===r.nodeType)if(r.data===U)c.push({type:2,index:o});else for(var E=-1;-1!==(E=r.data.indexOf(z,E+1));)c.push({type:7,index:o}),E+=z.length-1;o++}}static createElement(t,e){var r=G.createElement("template");return r.innerHTML=t,r}}function ut(t,e){var r,n,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,s=arguments.length>3?arguments[3]:void 0;if(e===it)return e;var c=void 0!==s?null===(r=a._$Co)||void 0===r?void 0:r[s]:a._$Cl,l=W(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===l?c=void 0:(c=new l(t))._$AT(t,a,s),void 0!==s?(null!==(i=(o=a)._$Co)&&void 0!==i?i:o._$Co=[])[s]=c:a._$Cl=c),void 0!==c&&(e=ut(t,c._$AS(t,e.values),c,s)),e}class dt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e,{el:{content:r},parts:n}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:G).importNode(r,!0);st.currentNode=i;for(var o=st.nextNode(),a=0,s=0,c=n[0];void 0!==c;){if(a===c.index){var l=void 0;2===c.type?l=new ht(o,o.nextSibling,this,t):1===c.type?l=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(l=new yt(o,this,t)),this.u.push(l),c=n[++s]}a!==(null==c?void 0:c.index)&&(o=st.nextNode(),a++)}return i}p(t){var e=0;for(var r of this.u)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class ht{constructor(t,e,r,n){var i;this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cm=null===(i=null==n?void 0:n.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t){t=ut(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),W(t)?t===ot||null==t||""===t?(this._$AH!==ot&&this._$AR(),this._$AH=ot):t!==this._$AH&&t!==it&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):X(t)?this.k(t):this.g(t)}O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==ot&&W(this._$AH)?this._$AA.nextSibling.data=t:this.T(G.createTextNode(t)),this._$AH=t}$(t){var e,{values:r,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=lt.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.p(r);else{var o=new dt(i,this),a=o.v(this.options);o.p(r),this.T(a),this._$AH=o}}_$AC(t){var e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new lt(t)),e}k(t){Y(this._$AH)||(this._$AH=[],this._$AR());var e,r=this._$AH,n=0;for(var i of t)n===r.length?r.push(e=new ht(this.O(q()),this.O(q()),this,this.options)):e=r[n],e._$AI(i),n++;n<r.length&&(this._$AR(e&&e._$AB.nextSibling,n),r.length=n)}_$AR(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,r=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,r);e&&e!==this._$AB;){var n=e.nextSibling;e.remove(),e=n}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class pt{constructor(t,e,r,n,i){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ot}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=this.strings,o=!1;if(void 0===i)t=ut(this,t,e,0),(o=!W(t)||t!==this._$AH&&t!==it)&&(this._$AH=t);else{var a,s,c=t;for(t=i[0],a=0;a<i.length-1;a++)(s=ut(this,c[r+a],e,a))===it&&(s=this._$AH[a]),o||(o=!W(s)||s!==this._$AH[a]),s===ot?t=ot:t!==ot&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!n&&this.j(t)}j(t){t===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ft extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ot?void 0:t}}var mt=j?j.emptyScript:"";class gt extends pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ot?this.element.setAttribute(this.name,mt):this.element.removeAttribute(this.name)}}class vt extends pt{constructor(t,e,r,n,i){super(t,e,r,n,i),this.type=5}_$AI(t){var e;if((t=null!==(e=ut(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:ot)!==it){var r=this._$AH,n=t===ot&&r!==ot||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==ot&&(r===ot||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class yt{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){ut(this,t)}}var bt={P:"$lit$",A:z,M:U,C:1,L:ct,R:dt,D:X,V:ut,I:ht,H:pt,N:gt,U:vt,B:ft,F:yt},wt=L.litHtmlPolyfillSupport;null==wt||wt(lt,ht),(null!==(P=L.litHtmlVersions)&&void 0!==P?P:L.litHtmlVersions=[]).push("2.6.1");var _t,Et,xt=(t,e,r)=>{var n,i,o=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:e,a=o._$litPart$;if(void 0===a){var s=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:null;o._$litPart$=a=new ht(e.insertBefore(q(),s),s,void 0,null!=r?r:{})}return a._$AI(t),a};class At extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e,r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=xt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return it}}At.finalized=!0,At._$litElement$=!0,null===(_t=globalThis.litElementHydrateSupport)||void 0===_t||_t.call(globalThis,{LitElement:At});var Ct,St=globalThis.litElementPolyfillSupport;null==St||St({LitElement:At}),(null!==(Et=globalThis.litElementVersions)&&void 0!==Et?Et:globalThis.litElementVersions=[]).push("3.2.2");var Dt,Ot=S(Ct||(Ct=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([':host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}']))),Pt=class extends At{render(){return nt(Dt||(Dt=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span><slot></slot></span>"])))}};Pt.styles=[Ot],Pt=(0,t.gn)([e("mwc-icon")],Pt);var It=()=>{},kt={get passive(){return!1}};document.addEventListener("x",It,kt),document.removeEventListener("x",It);class Tt extends At{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}var Rt=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),Ft={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Nt={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Mt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},Bt=["touchstart","pointerdown","mousedown","keydown"],Lt=["touchend","pointerup","mouseup","contextmenu"],jt=[],Vt=function(e){function r(n){var i=e.call(this,(0,t.pi)((0,t.pi)({},r.defaultAdapter),n))||this;return i.activationAnimationHasEnded=!1,i.activationTimer=0,i.fgDeactivationRemovalTimer=0,i.fgScale="0",i.frame={width:0,height:0},i.initialSize=0,i.layoutFrame=0,i.maxRadius=0,i.unboundedCoords={left:0,top:0},i.activationState=i.defaultActivationState(),i.activationTimerCallback=function(){i.activationAnimationHasEnded=!0,i.runDeactivationUXLogicIfReady()},i.activateHandler=function(t){i.activateImpl(t)},i.deactivateHandler=function(){i.deactivateImpl()},i.focusHandler=function(){i.handleFocus()},i.blurHandler=function(){i.handleBlur()},i.resizeHandler=function(){i.layout()},i}return(0,t.ZT)(r,e),Object.defineProperty(r,"cssClasses",{get:function(){return Ft},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return Nt},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return Mt},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var t=this,e=this.supportsPressRipple();if(this.registerRootHandlers(e),e){var n=r.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())}))}},r.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(r.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(r.cssClasses.FG_DEACTIVATION));var e=r.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},r.prototype.activate=function(t){this.activateImpl(t)},r.prototype.deactivate=function(){this.deactivateImpl()},r.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},r.prototype.setUnbounded=function(t){var e=r.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(r.cssClasses.BG_FOCUSED)}))},r.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},r.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},r.prototype.registerRootHandlers=function(e){var r,n;if(e){try{for(var i=(0,t.XA)(Bt),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},r.prototype.registerDeactivationHandlers=function(e){var r,n;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=(0,t.XA)(Lt),o=i.next();!o.done;o=i.next()){var a=o.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},r.prototype.deregisterRootHandlers=function(){var e,r;try{for(var n=(0,t.XA)(Bt),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},r.prototype.deregisterDeactivationHandlers=function(){var e,r;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=(0,t.XA)(Lt),i=n.next();!i.done;i=n.next()){var o=i.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},r.prototype.removeCssVars=function(){var t=this,e=r.strings;Object.keys(e).forEach((function(r){0===r.indexOf("VAR_")&&t.adapter.updateCssVariable(e[r],null)}))},r.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var r=this.activationState;if(!r.isActivated){var n=this.previousActivationEvent;n&&void 0!==t&&n.type!==t.type||(r.isActivated=!0,r.isProgrammatic=void 0===t,r.activationEvent=t,r.wasActivatedByPointer=!r.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&jt.length>0&&jt.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(jt.push(t.target),this.registerDeactivationHandlers(t)),r.wasElementMadeActive=this.checkElementMadeActive(t),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){jt=[],r.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(r.wasElementMadeActive=e.checkElementMadeActive(t),r.wasElementMadeActive&&e.animateActivation()),r.wasElementMadeActive||(e.activationState=e.defaultActivationState())}))))}}},r.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},r.prototype.animateActivation=function(){var t=this,e=r.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,o=r.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,c=r.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",u="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),h=d.startPoint,p=d.endPoint;l=h.x+"px, "+h.y+"px",u=p.x+"px, "+p.y+"px"}this.adapter.updateCssVariable(n,l),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},r.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,r=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,r){if(!t)return{x:0,y:0};var n,i,o=e.x,a=e.y,s=o+r.left,c=a+r.top;if("touchstart"===t.type){var l=t;n=l.changedTouches[0].pageX-s,i=l.changedTouches[0].pageY-c}else{var u=t;n=u.pageX-s,i=u.pageY-c}return{x:n,y:i}}(r,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},r.prototype.runDeactivationUXLogicIfReady=function(){var t=this,e=r.cssClasses.FG_DEACTIVATION,n=this.activationState,i=n.hasDeactivationUXRun,o=n.isActivated;(i||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(e)}),Mt.FG_DEACTIVATION_MS))},r.prototype.rmBoundedActivationClasses=function(){var t=r.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},r.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),r.numbers.TAP_DELAY_MS)},r.prototype.deactivateImpl=function(){var e=this,r=this.activationState;if(r.isActivated){var n=(0,t.pi)({},r);r.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(n)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()})))}},r.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,r=t.wasElementMadeActive;(e||r)&&this.runDeactivationUXLogicIfReady()},r.prototype.layoutInternal=function(){this.frame=this.adapter.computeBoundingRect();var t=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?t:Math.sqrt(Math.pow(this.frame.width,2)+Math.pow(this.frame.height,2))+r.numbers.PADDING;var e=Math.floor(t*r.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&e%2!=0?this.initialSize=e-1:this.initialSize=e,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},r.prototype.updateLayoutCssVars=function(){var t=r.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(n,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords.top+"px"))},r}(Rt);const zt=Vt;var Ut=t=>function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return{_$litDirective$:t,values:r}};class Ht{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}var Gt,qt,Wt=Ut(class extends Ht{constructor(t){var e;if(super(t),1!==t.type||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,e){var r,n,[i]=e;if(void 0===this.nt){for(var o in this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t)))),i)i[o]&&!(null===(r=this.st)||void 0===r?void 0:r.has(o))&&this.nt.add(o);return this.render(i)}var a=t.element.classList;for(var s in this.nt.forEach((t=>{t in i||(a.remove(t),this.nt.delete(t))})),i){var c=!!i[s];c===this.nt.has(s)||(null===(n=this.st)||void 0===n?void 0:n.has(s))||(c?(a.add(s),this.nt.add(s)):(a.remove(s),this.nt.delete(s)))}return it}}),Yt=Ut(class extends Ht{constructor(t){var e;if(super(t),1!==t.type||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{var n=t[r];return null==n?e:e+"".concat(r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(n,";")}),"")}update(t,e){var[r]=e,{style:n}=t.element;if(void 0===this.vt){for(var i in this.vt=new Set,r)this.vt.add(i);return this.render(r)}for(var o in this.vt.forEach((t=>{null==r[t]&&(this.vt.delete(t),t.includes("-")?n.removeProperty(t):n[t]="")})),r){var a=r[o];null!=a&&(this.vt.add(o),o.includes("-")?n.setProperty(o,a):n[o]=a)}return it}});class Xt extends Tt{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=zt}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){var t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),r={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return nt(Gt||(Gt=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n <div class="mdc-ripple-surface mdc-ripple-upgraded ','"\n style="','"></div>'])),Wt(r),Yt({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos}))}}(0,t.gn)([v(".mdc-ripple-surface")],Xt.prototype,"mdcRoot",void 0),(0,t.gn)([a({type:Boolean})],Xt.prototype,"primary",void 0),(0,t.gn)([a({type:Boolean})],Xt.prototype,"accent",void 0),(0,t.gn)([a({type:Boolean})],Xt.prototype,"unbounded",void 0),(0,t.gn)([a({type:Boolean})],Xt.prototype,"disabled",void 0),(0,t.gn)([a({type:Boolean})],Xt.prototype,"activated",void 0),(0,t.gn)([a({type:Boolean})],Xt.prototype,"selected",void 0),(0,t.gn)([a({type:Boolean})],Xt.prototype,"internalUseStateLayerCustomProperties",void 0),(0,t.gn)([u()],Xt.prototype,"hovering",void 0),(0,t.gn)([u()],Xt.prototype,"bgFocused",void 0),(0,t.gn)([u()],Xt.prototype,"fgActivation",void 0),(0,t.gn)([u()],Xt.prototype,"fgDeactivation",void 0),(0,t.gn)([u()],Xt.prototype,"fgScale",void 0),(0,t.gn)([u()],Xt.prototype,"fgSize",void 0),(0,t.gn)([u()],Xt.prototype,"translateStart",void 0),(0,t.gn)([u()],Xt.prototype,"translateEnd",void 0),(0,t.gn)([u()],Xt.prototype,"leftPos",void 0),(0,t.gn)([u()],Xt.prototype,"topPos",void 0);var $t=S(qt||(qt=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}']))),Qt=class extends Xt{};function Kt(t,e,r){if(void 0!==e)return function(t,e,r){var n=t.constructor;if(!r){var i="__".concat(e);if(!(r=n.getPropertyDescriptor(e,i)))throw new Error("@ariaProperty must be used after a @property decorator")}var o=r,a="";if(!o.set)throw new Error("@ariaProperty requires a setter for ".concat(e));if(t.dispatchWizEvent)return r;var s={configurable:!0,enumerable:!0,set(t){if(""===a){var r=n.getPropertyOptions(e);a="string"==typeof r.attribute?r.attribute:e}this.hasAttribute(a)&&this.removeAttribute(a),o.set.call(this,t)}};return o.get&&(s.get=function(){return o.get.call(this)}),s}(t,e,r);throw new Error("@ariaProperty only supports TypeScript Decorators")}Qt.styles=[$t],Qt=(0,t.gn)([e("mwc-ripple")],Qt);class Zt{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var Jt,te,ee,re,ne,ie=t=>null!=t?t:ot;function oe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}class ae extends At{constructor(){super(...arguments),this.raised=!1,this.unelevated=!1,this.outlined=!1,this.dense=!1,this.disabled=!1,this.trailingIcon=!1,this.fullwidth=!1,this.icon="",this.label="",this.expandContent=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new Zt((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderOverlay(){return nt(Jt||(Jt=oe([""])))}renderRipple(){var t=this.raised||this.unelevated;return this.shouldRenderRipple?nt(te||(te=oe(['<mwc-ripple class="ripple" .primary="','" .disabled="','"></mwc-ripple>'])),!t,this.disabled):""}focus(){var t=this.buttonElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){var t=this.buttonElement;t&&(this.rippleHandlers.endFocus(),t.blur())}getRenderClasses(){return{"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}render(){return nt(ee||(ee=oe(['\n <button\n id="button"\n class="mdc-button ','"\n ?disabled="','"\n aria-label="','"\n aria-haspopup="','"\n @focus="','"\n @blur="','"\n @mousedown="','"\n @mouseenter="','"\n @mouseleave="','"\n @touchstart="','"\n @touchend="','"\n @touchcancel="','">\n ',"\n ",'\n <span class="leading-icon">\n <slot name="icon">\n ','\n </slot>\n </span>\n <span class="mdc-button__label">','</span>\n <span class="slot-container ','">\n <slot></slot>\n </span>\n <span class="trailing-icon">\n <slot name="trailingIcon">\n ',"\n </slot>\n </span>\n </button>"])),Wt(this.getRenderClasses()),this.disabled,this.label||this.icon,ie(this.ariaHasPopup),this.handleRippleFocus,this.handleRippleBlur,this.handleRippleActivate,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleActivate,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderOverlay(),this.renderRipple(),this.icon&&!this.trailingIcon?this.renderIcon():"",this.label,Wt({flex:this.expandContent}),this.icon&&this.trailingIcon?this.renderIcon():"")}renderIcon(){return nt(re||(re=oe(['\n <mwc-icon class="mdc-button__icon">\n ',"\n </mwc-icon>"])),this.icon)}handleRippleActivate(t){var e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}ae.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,t.gn)([Kt,a({type:String,attribute:"aria-haspopup"})],ae.prototype,"ariaHasPopup",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ae.prototype,"raised",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ae.prototype,"unelevated",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ae.prototype,"outlined",void 0),(0,t.gn)([a({type:Boolean})],ae.prototype,"dense",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ae.prototype,"disabled",void 0),(0,t.gn)([a({type:Boolean,attribute:"trailingicon"})],ae.prototype,"trailingIcon",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ae.prototype,"fullwidth",void 0),(0,t.gn)([a({type:String})],ae.prototype,"icon",void 0),(0,t.gn)([a({type:String})],ae.prototype,"label",void 0),(0,t.gn)([a({type:Boolean})],ae.prototype,"expandContent",void 0),(0,t.gn)([v("#button")],ae.prototype,"buttonElement",void 0),(0,t.gn)([b("mwc-ripple")],ae.prototype,"ripple",void 0),(0,t.gn)([u()],ae.prototype,"shouldRenderRipple",void 0),(0,t.gn)([g({passive:!0})],ae.prototype,"handleRippleActivate",null);var se=S(ne||(ne=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['.mdc-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform, uppercase)}.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:transparent}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{display:none}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc( 100% + 4px );width:calc( 100% + 4px );display:block}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring::after,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring::after,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring::after{border-color:CanvasText}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:transparent}.mdc-button{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised,.mdc-button--unelevated{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{background-color:rgba(0, 0, 0, 0.12)}.mdc-button--raised:not(:disabled),.mdc-button--unelevated:not(:disabled){color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-button--raised:disabled,.mdc-button--unelevated:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--raised .mdc-button__icon,.mdc-button--unelevated .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--raised .mdc-button__ripple,.mdc-button--unelevated .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined{height:36px;border-radius:4px;border-radius:var(--mdc-shape-small, 4px);padding:0 15px 0 15px;border-width:1px}.mdc-button--outlined:not(:disabled){color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}.mdc-button--outlined:disabled{color:rgba(0, 0, 0, 0.38)}.mdc-button--outlined .mdc-button__icon{font-size:1.125rem;width:1.125rem;height:1.125rem}.mdc-button--outlined .mdc-button__ripple{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined:disabled{border-color:rgba(0, 0, 0, 0.12)}.mdc-button--outlined.mdc-button--icon-trailing{padding:0 11px 0 15px}.mdc-button--outlined.mdc-button--icon-leading{padding:0 15px 0 11px}.mdc-button--outlined .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:1px}.mdc-button--outlined .mdc-button__touch{left:calc(-1 * 1px);width:calc(100% + 2 * 1px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12);transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--raised:hover,.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2),0px 4px 5px 0px rgba(0, 0, 0, 0.14),0px 1px 10px 0px rgba(0,0,0,.12)}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2),0px 8px 10px 1px rgba(0, 0, 0, 0.14),0px 3px 14px 2px rgba(0,0,0,.12)}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2),0px 0px 0px 0px rgba(0, 0, 0, 0.14),0px 0px 0px 0px rgba(0,0,0,.12)}:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:transparent;vertical-align:top}:host([fullwidth]){width:100%}:host([raised]),:host([unelevated]){--mdc-ripple-color:#fff;--mdc-ripple-focus-opacity:0.24;--mdc-ripple-hover-opacity:0.08;--mdc-ripple-press-opacity:0.24}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon,.leading-icon ::slotted(*),.leading-icon .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,[dir=rtl] .leading-icon ::slotted(*),[dir=rtl] .leading-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl],.leading-icon ::slotted(*[dir=rtl]),.leading-icon .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.trailing-icon ::slotted(*),.trailing-icon .mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .trailing-icon ::slotted(*),[dir=rtl] .trailing-icon .mdc-button__icon,.trailing-icon ::slotted(*[dir=rtl]),.trailing-icon .mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}.slot-container{display:inline-flex;align-items:center;justify-content:center}.slot-container.flex{flex:auto}.mdc-button{flex:auto;overflow:hidden;padding-left:8px;padding-left:var(--mdc-button-horizontal-padding, 8px);padding-right:8px;padding-right:var(--mdc-button-horizontal-padding, 8px)}.mdc-button--raised{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:focus{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-focus, var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)))}.mdc-button--raised:hover{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-hover, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised:active{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-active, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mdc-button--raised:disabled{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);box-shadow:var(--mdc-button-raised-box-shadow-disabled, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mdc-button--raised,.mdc-button--unelevated{padding-left:16px;padding-left:var(--mdc-button-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mdc-button-horizontal-padding, 16px)}.mdc-button--outlined{border-width:1px;border-width:var(--mdc-button-outline-width, 1px);padding-left:calc(16px - 1px);padding-left:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px));padding-right:calc(16px - 1px);padding-right:calc(var(--mdc-button-horizontal-padding, 16px) - var(--mdc-button-outline-width, 1px))}.mdc-button--outlined:not(:disabled){border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-outline-color, rgba(0, 0, 0, 0.12))}.mdc-button--outlined .ripple{top:calc(-1 * 1px);top:calc(-1 * var(--mdc-button-outline-width, 1px));left:calc(-1 * 1px);left:calc(-1 * var(--mdc-button-outline-width, 1px));right:initial;right:initial;border-width:1px;border-width:var(--mdc-button-outline-width, 1px);border-style:solid;border-color:transparent}[dir=rtl] .mdc-button--outlined .ripple,.mdc-button--outlined .ripple[dir=rtl]{left:initial;left:initial;right:calc(-1 * 1px);right:calc(-1 * var(--mdc-button-outline-width, 1px))}.mdc-button--dense{height:28px;margin-top:0;margin-bottom:0}.mdc-button--dense .mdc-button__touch{height:100%}:host([disabled]){pointer-events:none}:host([disabled]) .mdc-button{color:rgba(0, 0, 0, 0.38);color:var(--mdc-button-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-button--raised,:host([disabled]) .mdc-button--unelevated{background-color:rgba(0, 0, 0, 0.12);background-color:var(--mdc-button-disabled-fill-color, rgba(0, 0, 0, 0.12))}:host([disabled]) .mdc-button--outlined{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}']))),ce=class extends ae{};ce.styles=[se],ce=(0,t.gn)([e("mwc-button")],ce);var le,ue,de={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},he={NOTCH_ELEMENT_PADDING:8},pe={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},fe=function(e){function r(n){return e.call(this,(0,t.pi)((0,t.pi)({},r.defaultAdapter),n))||this}return(0,t.ZT)(r,e),Object.defineProperty(r,"strings",{get:function(){return de},enumerable:!1,configurable:!0}),Object.defineProperty(r,"cssClasses",{get:function(){return pe},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return he},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),r.prototype.notch=function(t){var e=r.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=he.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(e)},r.prototype.closeNotch=function(){var t=r.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},r}(Rt);class me extends Tt{constructor(){super(...arguments),this.mdcFoundationClass=fe,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:t=>this.mdcRoot.classList.add(t),removeClass:t=>this.mdcRoot.classList.remove(t),setNotchWidthProperty:t=>this.notchElement.style.setProperty("width","".concat(t,"px")),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(t,e){this.mdcFoundation&&(t&&void 0!==e?this.mdcFoundation.notch(e):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);var t=Wt({"mdc-notched-outline--notched":this.open});return nt(le||(le=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n <span class="mdc-notched-outline ','">\n <span class="mdc-notched-outline__leading"></span>\n <span class="mdc-notched-outline__notch">\n <slot></slot>\n </span>\n <span class="mdc-notched-outline__trailing"></span>\n </span>'])),t)}}(0,t.gn)([v(".mdc-notched-outline")],me.prototype,"mdcRoot",void 0),(0,t.gn)([a({type:Number})],me.prototype,"width",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],me.prototype,"open",void 0),(0,t.gn)([v(".mdc-notched-outline__notch")],me.prototype,"notchElement",void 0);var ge,ve,ye=S(ue||(ue=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([".mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}"]))),be=class extends me{};be.styles=[ye],be=(0,t.gn)([e("mwc-notched-outline")],be);var we=null!==(ve=null===(ge=window.ShadyDOM)||void 0===ge?void 0:ge.inUse)&&void 0!==ve&&ve;class _e extends Tt{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||we)return null;var t=this.getRootNode().querySelectorAll("form");for(var e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}_e.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,t.gn)([a({type:Boolean})],_e.prototype,"disabled",void 0);var Ee=t=>(e,r)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){var n=e.constructor._observers;e.constructor._observers=new Map,n.forEach(((t,r)=>e.constructor._observers.set(r,t)))}}else{e.constructor._observers=new Map;var i=e.updated;e.updated=function(t){i.call(this,t),t.forEach(((t,e)=>{var r=this.constructor._observers.get(e);void 0!==r&&r.call(this,this[e],t)}))}}e.constructor._observers.set(r,t)},xe={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},Ae=function(e){function r(n){var i=e.call(this,(0,t.pi)((0,t.pi)({},r.defaultAdapter),n))||this;return i.shakeAnimationEndHandler=function(){i.handleShakeAnimationEnd()},i}return(0,t.ZT)(r,e),Object.defineProperty(r,"cssClasses",{get:function(){return xe},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},r.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},r.prototype.getWidth=function(){return this.adapter.getWidth()},r.prototype.shake=function(t){var e=r.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.float=function(t){var e=r.cssClasses,n=e.LABEL_FLOAT_ABOVE,i=e.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(i))},r.prototype.setRequired=function(t){var e=r.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.handleShakeAnimationEnd=function(){var t=r.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},r}(Rt),Ce=Ut(class extends Ht{constructor(t){switch(super(t),this.foundation=null,this.previousPart=null,t.type){case 1:case 3:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(t,e){var[r]=e;if(t!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=t;var n=t.element;n.classList.add("mdc-floating-label");var i=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),getWidth:()=>t.scrollWidth,registerInteractionHandler:(e,r)=>{t.addEventListener(e,r)},deregisterInteractionHandler:(e,r)=>{t.removeEventListener(e,r)}}))(n);this.foundation=new Ae(i),this.foundation.init()}return this.render(r)}render(t){return this.foundation}}),Se={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},De=function(e){function r(n){var i=e.call(this,(0,t.pi)((0,t.pi)({},r.defaultAdapter),n))||this;return i.transitionEndHandler=function(t){i.handleTransitionEnd(t)},i}return(0,t.ZT)(r,e),Object.defineProperty(r,"cssClasses",{get:function(){return Se},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},r.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},r.prototype.activate=function(){this.adapter.removeClass(Se.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Se.LINE_RIPPLE_ACTIVE)},r.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},r.prototype.deactivate=function(){this.adapter.addClass(Se.LINE_RIPPLE_DEACTIVATING)},r.prototype.handleTransitionEnd=function(t){var e=this.adapter.hasClass(Se.LINE_RIPPLE_DEACTIVATING);"opacity"===t.propertyName&&e&&(this.adapter.removeClass(Se.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Se.LINE_RIPPLE_DEACTIVATING))},r}(Rt),Oe=Ut(class extends Ht{constructor(t){switch(super(t),this.previousPart=null,this.foundation=null,t.type){case 1:case 3:return;default:throw new Error("LineRipple only support attribute and property parts.")}}update(t,e){if(this.previousPart!==t){this.foundation&&this.foundation.destroy(),this.previousPart=t;var r=t.element;r.classList.add("mdc-line-ripple");var n=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),hasClass:e=>t.classList.contains(e),setStyle:(e,r)=>t.style.setProperty(e,r),registerEventHandler:(e,r)=>{t.addEventListener(e,r)},deregisterEventHandler:(e,r)=>{t.removeEventListener(e,r)}}))(r);this.foundation=new De(n),this.foundation.init()}return this.render()}render(){return this.foundation}}),Pe={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},Ie={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},ke={LABEL_SCALE:.75},Te=["pattern","min","max","required","step","minlength","maxlength"],Re=["color","date","datetime-local","month","range","time","week"],Fe=["mousedown","touchstart"],Ne=["click","keydown"],Me=function(e){function r(n,i){void 0===i&&(i={});var o=e.call(this,(0,t.pi)((0,t.pi)({},r.defaultAdapter),n))||this;return o.isFocused=!1,o.receivedUserInput=!1,o.valid=!0,o.useNativeValidation=!0,o.validateOnValueChange=!0,o.helperText=i.helperText,o.characterCounter=i.characterCounter,o.leadingIcon=i.leadingIcon,o.trailingIcon=i.trailingIcon,o.inputFocusHandler=function(){o.activateFocus()},o.inputBlurHandler=function(){o.deactivateFocus()},o.inputInputHandler=function(){o.handleInput()},o.setPointerXOffset=function(t){o.setTransformOrigin(t)},o.textFieldInteractionHandler=function(){o.handleTextFieldInteraction()},o.validationAttributeChangeHandler=function(t){o.handleValidationAttributeChange(t)},o}return(0,t.ZT)(r,e),Object.defineProperty(r,"cssClasses",{get:function(){return Ie},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return Pe},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return ke},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return Re.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver((function(){}))},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),r.prototype.init=function(){var e,r,n,i;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var o=(0,t.XA)(Fe),a=o.next();!a.done;a=o.next()){var s=a.value;this.adapter.registerInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}try{for(var c=(0,t.XA)(Ne),l=c.next();!l.done;l=c.next())s=l.value,this.adapter.registerTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},r.prototype.destroy=function(){var e,r,n,i;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var o=(0,t.XA)(Fe),a=o.next();!a.done;a=o.next()){var s=a.value;this.adapter.deregisterInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}try{for(var c=(0,t.XA)(Ne),l=c.next();!l.done;l=c.next())s=l.value,this.adapter.deregisterTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},r.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},r.prototype.handleValidationAttributeChange=function(t){var e=this;t.some((function(t){return Te.indexOf(t)>-1&&(e.styleValidity(!0),e.adapter.setLabelRequired(e.getNativeInput().required),!0)})),t.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},r.prototype.notchOutline=function(t){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(t){var e=this.adapter.getLabelWidth()*ke.LABEL_SCALE;this.adapter.notchOutline(e)}else this.adapter.closeOutline()},r.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},r.prototype.setTransformOrigin=function(t){if(!this.isDisabled()&&!this.adapter.hasOutline()){var e=t.touches,r=e?e[0]:t,n=r.target.getBoundingClientRect(),i=r.clientX-n.left;this.adapter.setLineRippleTransformOrigin(i)}},r.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},r.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},r.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},r.prototype.getValue=function(){return this.getNativeInput().value},r.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var e=this.isValid();this.styleValidity(e)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},r.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},r.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var e=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(e)},r.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},r.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},r.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},r.prototype.isDisabled=function(){return this.getNativeInput().disabled},r.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},r.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},r.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},r.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},r.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},r.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},r.prototype.setcharacterCounter=function(t){if(this.characterCounter){var e=this.getNativeInput().maxLength;if(-1===e)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,e)}},r.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},r.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},r.prototype.styleValidity=function(t){var e=r.cssClasses.INVALID;if(t?this.adapter.removeClass(e):this.adapter.addClass(e),this.helperText){if(this.helperText.setValidity(t),!this.helperText.isValidation())return;var n=this.helperText.isVisible(),i=this.helperText.getId();n&&i?this.adapter.setInputAttr(Pe.ARIA_DESCRIBEDBY,i):this.adapter.removeInputAttr(Pe.ARIA_DESCRIBEDBY)}},r.prototype.styleFocused=function(t){var e=r.cssClasses.FOCUSED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.styleDisabled=function(t){var e=r.cssClasses,n=e.DISABLED,i=e.INVALID;t?(this.adapter.addClass(n),this.adapter.removeClass(i)):this.adapter.removeClass(n),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},r.prototype.styleFloating=function(t){var e=r.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(e):this.adapter.removeClass(e)},r.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},r}(Rt);const Be=Me;var Le,je,Ve,ze,Ue,He,Ge,qe,We,Ye,{I:Xe}=bt,$e={},Qe=Ut(class extends Ht{constructor(t){if(super(t),3!==t.type&&1!==t.type&&4!==t.type)throw Error("The `live` directive is not allowed on child or event bindings");if(void 0!==t.strings)throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,e){var[r]=e;if(r===it||r===ot)return r;var n=t.element,i=t.name;if(3===t.type){if(r===n[i])return it}else if(4===t.type){if(!!r===n.hasAttribute(i))return it}else if(1===t.type&&n.getAttribute(i)===r+"")return it;return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$e;t._$AH=e}(t),r}});function Ke(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Ze(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ke(o,n,i,a,s,"next",t)}function s(t){Ke(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Je(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var tr,er=["touchstart","touchmove","scroll","mousewheel"],rr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};for(var r in t)e[r]=t[r];return Object.assign({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1},e)};class nr extends _e{constructor(){super(...arguments),this.mdcFoundationClass=Be,this.value="",this.type="text",this.placeholder="",this.label="",this.icon="",this.iconTrailing="",this.disabled=!1,this.required=!1,this.minLength=-1,this.maxLength=-1,this.outlined=!1,this.helper="",this.validateOnInitialRender=!1,this.validationMessage="",this.autoValidate=!1,this.pattern="",this.min="",this.max="",this.step=null,this.size=null,this.helperPersistent=!1,this.charCounter=!1,this.endAligned=!1,this.prefix="",this.suffix="",this.name="",this.readOnly=!1,this.autocapitalize="",this.outlineOpen=!1,this.outlineWidth=0,this.isUiValid=!0,this.focused=!1,this._validity=rr(),this.validityTransform=null}get validity(){return this._checkValidity(this.value),this._validity}get willValidate(){return this.formElement.willValidate}get selectionStart(){return this.formElement.selectionStart}get selectionEnd(){return this.formElement.selectionEnd}focus(){var t=new CustomEvent("focus");this.formElement.dispatchEvent(t),this.formElement.focus()}blur(){var t=new CustomEvent("blur");this.formElement.dispatchEvent(t),this.formElement.blur()}select(){this.formElement.select()}setSelectionRange(t,e,r){this.formElement.setSelectionRange(t,e,r)}update(t){t.has("autoValidate")&&this.mdcFoundation&&this.mdcFoundation.setValidateOnValueChange(this.autoValidate),t.has("value")&&"string"!=typeof this.value&&(this.value="".concat(this.value)),super.update(t)}setFormData(t){this.name&&t.append(this.name,this.value)}render(){var t=this.charCounter&&-1!==this.maxLength,e=!!this.helper||!!this.validationMessage||t,r={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--with-leading-icon":this.icon,"mdc-text-field--with-trailing-icon":this.iconTrailing,"mdc-text-field--end-aligned":this.endAligned};return nt(Le||(Le=Je(['\n <label class="mdc-text-field ','">\n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n </label>\n ","\n "])),Wt(r),this.renderRipple(),this.outlined?this.renderOutline():this.renderLabel(),this.renderLeadingIcon(),this.renderPrefix(),this.renderInput(e),this.renderSuffix(),this.renderTrailingIcon(),this.renderLineRipple(),this.renderHelperText(e,t))}updated(t){t.has("value")&&void 0!==t.get("value")&&(this.mdcFoundation.setValue(this.value),this.autoValidate&&this.reportValidity())}renderRipple(){return this.outlined?"":nt(je||(je=Je(['\n <span class="mdc-text-field__ripple"></span>\n '])))}renderOutline(){return this.outlined?nt(Ve||(Ve=Je(["\n <mwc-notched-outline\n .width=","\n .open=",'\n class="mdc-notched-outline">\n ',"\n </mwc-notched-outline>"])),this.outlineWidth,this.outlineOpen,this.renderLabel()):""}renderLabel(){return this.label?nt(ze||(ze=Je(["\n <span\n .floatingLabelFoundation=",'\n id="label">',"</span>\n "])),Ce(this.label),this.label):""}renderLeadingIcon(){return this.icon?this.renderIcon(this.icon):""}renderTrailingIcon(){return this.iconTrailing?this.renderIcon(this.iconTrailing,!0):""}renderIcon(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={"mdc-text-field__icon--leading":!e,"mdc-text-field__icon--trailing":e};return nt(Ue||(Ue=Je(['<i class="material-icons mdc-text-field__icon ','">',"</i>"])),Wt(r),t)}renderPrefix(){return this.prefix?this.renderAffix(this.prefix):""}renderSuffix(){return this.suffix?this.renderAffix(this.suffix,!0):""}renderAffix(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={"mdc-text-field__affix--prefix":!e,"mdc-text-field__affix--suffix":e};return nt(He||(He=Je(['<span class="mdc-text-field__affix ','">\n ',"</span>"])),Wt(r),t)}renderInput(t){var e=-1===this.minLength?void 0:this.minLength,r=-1===this.maxLength?void 0:this.maxLength,n=this.autocapitalize?this.autocapitalize:void 0,i=this.validationMessage&&!this.isUiValid,o=this.label?"label":void 0,a=t?"helper-text":void 0,s=this.focused||this.helperPersistent||i?"helper-text":void 0;return nt(Ge||(Ge=Je(["\n <input\n aria-labelledby=",'\n aria-controls="','"\n aria-describedby="','"\n class="mdc-text-field__input"\n type="','"\n .value="','"\n ?disabled="','"\n placeholder="','"\n ?required="','"\n ?readonly="','"\n minlength="','"\n maxlength="','"\n pattern="','"\n min="','"\n max="','"\n step="','"\n size="','"\n name="','"\n inputmode="','"\n autocapitalize="','"\n @input="','"\n @focus="','"\n @blur="','">'])),ie(o),ie(a),ie(s),this.type,Qe(this.value),this.disabled,this.placeholder,this.required,this.readOnly,ie(e),ie(r),ie(this.pattern?this.pattern:void 0),ie(""===this.min?void 0:this.min),ie(""===this.max?void 0:this.max),ie(null===this.step?void 0:this.step),ie(null===this.size?void 0:this.size),ie(""===this.name?void 0:this.name),ie(this.inputMode),ie(n),this.handleInputChange,this.onInputFocus,this.onInputBlur)}renderLineRipple(){return this.outlined?"":nt(qe||(qe=Je(["\n <span .lineRippleFoundation=","></span>\n "])),Oe())}renderHelperText(t,e){var r=this.validationMessage&&!this.isUiValid,n={"mdc-text-field-helper-text--persistent":this.helperPersistent,"mdc-text-field-helper-text--validation-msg":r},i=this.focused||this.helperPersistent||r?void 0:"true",o=r?this.validationMessage:this.helper;return t?nt(We||(We=Je(['\n <div class="mdc-text-field-helper-line">\n <div id="helper-text"\n aria-hidden="','"\n class="mdc-text-field-helper-text ','"\n >',"</div>\n ","\n </div>"])),ie(i),Wt(n),o,this.renderCharCounter(e)):""}renderCharCounter(t){var e=Math.min(this.value.length,this.maxLength);return t?nt(Ye||(Ye=Je(['\n <span class="mdc-text-field-character-counter"\n >'," / ","</span>"])),e,this.maxLength):""}onInputFocus(){this.focused=!0}onInputBlur(){this.focused=!1,this.reportValidity()}checkValidity(){var t=this._checkValidity(this.value);if(!t){var e=new Event("invalid",{bubbles:!1,cancelable:!0});this.dispatchEvent(e)}return t}reportValidity(){var t=this.checkValidity();return this.mdcFoundation.setValid(t),this.isUiValid=t,t}_checkValidity(t){var e=this.formElement.validity,r=rr(e);if(this.validityTransform){var n=this.validityTransform(t,r);r=Object.assign(Object.assign({},r),n),this.mdcFoundation.setUseNativeValidation(!1)}else this.mdcFoundation.setUseNativeValidation(!0);return this._validity=r,this._validity.valid}setCustomValidity(t){this.validationMessage=t,this.formElement.setCustomValidity(t)}handleInputChange(){this.value=this.formElement.value}createAdapter(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.getRootAdapterMethods()),this.getInputAdapterMethods()),this.getLabelAdapterMethods()),this.getLineRippleAdapterMethods()),this.getOutlineAdapterMethods())}getRootAdapterMethods(){return Object.assign({registerTextFieldInteractionHandler:(t,e)=>this.addEventListener(t,e),deregisterTextFieldInteractionHandler:(t,e)=>this.removeEventListener(t,e),registerValidationAttributeChangeHandler:t=>{var e=new MutationObserver((e=>{t((t=>t.map((t=>t.attributeName)).filter((t=>t)))(e))}));return e.observe(this.formElement,{attributes:!0}),e},deregisterValidationAttributeChangeHandler:t=>t.disconnect()},(t=this.mdcRoot,{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}));var t}getInputAdapterMethods(){return{getNativeInput:()=>this.formElement,setInputAttr:()=>{},removeInputAttr:()=>{},isFocused:()=>!!this.shadowRoot&&this.shadowRoot.activeElement===this.formElement,registerInputInteractionHandler:(t,e)=>this.formElement.addEventListener(t,e,{passive:t in er}),deregisterInputInteractionHandler:(t,e)=>this.formElement.removeEventListener(t,e)}}getLabelAdapterMethods(){return{floatLabel:t=>this.labelElement&&this.labelElement.floatingLabelFoundation.float(t),getLabelWidth:()=>this.labelElement?this.labelElement.floatingLabelFoundation.getWidth():0,hasLabel:()=>Boolean(this.labelElement),shakeLabel:t=>this.labelElement&&this.labelElement.floatingLabelFoundation.shake(t),setLabelRequired:t=>{this.labelElement&&this.labelElement.floatingLabelFoundation.setRequired(t)}}}getLineRippleAdapterMethods(){return{activateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.activate()},deactivateLineRipple:()=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.deactivate()},setLineRippleTransformOrigin:t=>{this.lineRippleElement&&this.lineRippleElement.lineRippleFoundation.setRippleCenter(t)}}}getUpdateComplete(){var t=()=>super.getUpdateComplete,e=this;return Ze((function*(){var r,n=yield t().call(e);return yield null===(r=e.outlineElement)||void 0===r?void 0:r.updateComplete,n}))()}firstUpdated(){var t;super.firstUpdated(),this.mdcFoundation.setValidateOnValueChange(this.autoValidate),this.validateOnInitialRender&&this.reportValidity(),null===(t=this.outlineElement)||void 0===t||t.updateComplete.then((()=>{var t;this.outlineWidth=(null===(t=this.labelElement)||void 0===t?void 0:t.floatingLabelFoundation.getWidth())||0}))}getOutlineAdapterMethods(){return{closeOutline:()=>this.outlineElement&&(this.outlineOpen=!1),hasOutline:()=>Boolean(this.outlineElement),notchOutline:t=>{this.outlineElement&&!this.outlineOpen&&(this.outlineWidth=t,this.outlineOpen=!0)}}}layout(){var t=this;return Ze((function*(){yield t.updateComplete;var e=t.labelElement;if(e){var r=!!t.label&&!!t.value;if(e.floatingLabelFoundation.float(r),t.outlined){t.outlineOpen=r,yield t.updateComplete;var n=e.floatingLabelFoundation.getWidth();t.outlineOpen&&(t.outlineWidth=n,yield t.updateComplete)}}else t.outlineOpen=!1}))()}}(0,t.gn)([v(".mdc-text-field")],nr.prototype,"mdcRoot",void 0),(0,t.gn)([v("input")],nr.prototype,"formElement",void 0),(0,t.gn)([v(".mdc-floating-label")],nr.prototype,"labelElement",void 0),(0,t.gn)([v(".mdc-line-ripple")],nr.prototype,"lineRippleElement",void 0),(0,t.gn)([v("mwc-notched-outline")],nr.prototype,"outlineElement",void 0),(0,t.gn)([v(".mdc-notched-outline__notch")],nr.prototype,"notchElement",void 0),(0,t.gn)([a({type:String})],nr.prototype,"value",void 0),(0,t.gn)([a({type:String})],nr.prototype,"type",void 0),(0,t.gn)([a({type:String})],nr.prototype,"placeholder",void 0),(0,t.gn)([a({type:String}),Ee((function(t,e){void 0!==e&&this.label!==e&&this.layout()}))],nr.prototype,"label",void 0),(0,t.gn)([a({type:String})],nr.prototype,"icon",void 0),(0,t.gn)([a({type:String})],nr.prototype,"iconTrailing",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],nr.prototype,"disabled",void 0),(0,t.gn)([a({type:Boolean})],nr.prototype,"required",void 0),(0,t.gn)([a({type:Number})],nr.prototype,"minLength",void 0),(0,t.gn)([a({type:Number})],nr.prototype,"maxLength",void 0),(0,t.gn)([a({type:Boolean,reflect:!0}),Ee((function(t,e){void 0!==e&&this.outlined!==e&&this.layout()}))],nr.prototype,"outlined",void 0),(0,t.gn)([a({type:String})],nr.prototype,"helper",void 0),(0,t.gn)([a({type:Boolean})],nr.prototype,"validateOnInitialRender",void 0),(0,t.gn)([a({type:String})],nr.prototype,"validationMessage",void 0),(0,t.gn)([a({type:Boolean})],nr.prototype,"autoValidate",void 0),(0,t.gn)([a({type:String})],nr.prototype,"pattern",void 0),(0,t.gn)([a({type:String})],nr.prototype,"min",void 0),(0,t.gn)([a({type:String})],nr.prototype,"max",void 0),(0,t.gn)([a({type:String})],nr.prototype,"step",void 0),(0,t.gn)([a({type:Number})],nr.prototype,"size",void 0),(0,t.gn)([a({type:Boolean})],nr.prototype,"helperPersistent",void 0),(0,t.gn)([a({type:Boolean})],nr.prototype,"charCounter",void 0),(0,t.gn)([a({type:Boolean})],nr.prototype,"endAligned",void 0),(0,t.gn)([a({type:String})],nr.prototype,"prefix",void 0),(0,t.gn)([a({type:String})],nr.prototype,"suffix",void 0),(0,t.gn)([a({type:String})],nr.prototype,"name",void 0),(0,t.gn)([a({type:String})],nr.prototype,"inputMode",void 0),(0,t.gn)([a({type:Boolean})],nr.prototype,"readOnly",void 0),(0,t.gn)([a({type:String})],nr.prototype,"autocapitalize",void 0),(0,t.gn)([u()],nr.prototype,"outlineOpen",void 0),(0,t.gn)([u()],nr.prototype,"outlineWidth",void 0),(0,t.gn)([u()],nr.prototype,"isUiValid",void 0),(0,t.gn)([u()],nr.prototype,"focused",void 0),(0,t.gn)([g({passive:!0})],nr.prototype,"handleInputChange",null);var ir=S(tr||(tr=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-text-field--filled{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-text-field--filled .mdc-text-field__ripple::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-text-field--filled .mdc-text-field__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-text-field__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0, 0, 0, 0.87)}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.54)}}@media all{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.6)}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);height:28px;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled .mdc-text-field__ripple::before,.mdc-text-field--filled .mdc-text-field__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-text-field--filled:hover .mdc-text-field__ripple::before,.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:whitesmoke}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple::before,.mdc-text-field--outlined .mdc-text-field__ripple::after{background-color:transparent;background-color:var(--mdc-ripple-color, transparent)}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:transparent}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0;transition:none}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px;line-height:1.5rem}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-10.25px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-10.25px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-10.25px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98, 0, 238, 0.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0, 0, 0, 0.38)}@media all{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0, 0, 0, 0.38)}}@media all{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0, 0, 0, 0.38)}}.mdc-text-field--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0, 0, 0, 0.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0, 0, 0, 0.38)}.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-floating-label{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--leading{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--prefix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin:0;opacity:0;will-change:opacity;transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-text-field-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-text-field-helper-text--persistent{transition:none;opacity:1;will-change:initial}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal;margin-left:auto;margin-right:0;padding-left:16px;padding-right:0;white-space:nowrap}.mdc-text-field-character-counter::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-text-field-character-counter,.mdc-text-field-character-counter[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}[dir=rtl] .mdc-text-field__icon--leading,.mdc-text-field__icon--leading[dir=rtl]{margin-left:8px;margin-right:16px}.mdc-text-field__icon--trailing{padding:12px;margin-left:0px;margin-right:0px}[dir=rtl] .mdc-text-field__icon--trailing,.mdc-text-field__icon--trailing[dir=rtl]{margin-left:0px;margin-right:0px}.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}:host{display:inline-flex;flex-direction:column;outline:none}.mdc-text-field{width:100%}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42);border-bottom-color:var(--mdc-text-field-idle-line-color, rgba(0, 0, 0, 0.42))}.mdc-text-field:not(.mdc-text-field--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87);border-bottom-color:var(--mdc-text-field-hover-line-color, rgba(0, 0, 0, 0.87))}.mdc-text-field.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06);border-bottom-color:var(--mdc-text-field-disabled-line-color, rgba(0, 0, 0, 0.06))}.mdc-text-field.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-text-field__input{direction:inherit}mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-idle-border-color, rgba(0, 0, 0, 0.38) )}:host(:not([disabled]):hover) :not(.mdc-text-field--invalid):not(.mdc-text-field--focused) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-hover-border-color, rgba(0, 0, 0, 0.87) )}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-fill-color, whitesmoke)}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-error-color, var(--mdc-theme-error, #b00020) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-character-counter,:host(:not([disabled])) .mdc-text-field.mdc-text-field--invalid .mdc-text-field__icon{color:var(--mdc-text-field-error-color, var(--mdc-theme-error, #b00020))}:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host(:not([disabled])) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused mwc-notched-outline{--mdc-notched-outline-stroke-width: 2px}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-focused-label-color, var(--mdc-theme-primary, rgba(98, 0, 238, 0.87)) )}:host(:not([disabled])) .mdc-text-field.mdc-text-field--focused:not(.mdc-text-field--invalid) .mdc-floating-label{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input{color:var(--mdc-text-field-ink-color, rgba(0, 0, 0, 0.87))}:host(:not([disabled])) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host(:not([disabled])) .mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg),:host(:not([disabled])) .mdc-text-field-helper-line:not(.mdc-text-field--invalid) .mdc-text-field-character-counter{color:var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6))}:host([disabled]) .mdc-text-field:not(.mdc-text-field--outlined){background-color:var(--mdc-text-field-disabled-fill-color, #fafafa)}:host([disabled]) .mdc-text-field.mdc-text-field--outlined mwc-notched-outline{--mdc-notched-outline-border-color: var( --mdc-text-field-outlined-disabled-border-color, rgba(0, 0, 0, 0.06) )}:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label,:host([disabled]) .mdc-text-field:not(.mdc-text-field--invalid):not(.mdc-text-field--focused) .mdc-floating-label::after{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field .mdc-text-field__input,:host([disabled]) .mdc-text-field .mdc-text-field__input::placeholder{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-helper-text,:host([disabled]) .mdc-text-field-helper-line .mdc-text-field-character-counter{color:var(--mdc-text-field-disabled-ink-color, rgba(0, 0, 0, 0.38))}']))),or=class extends nr{};or.styles=[ir],or=(0,t.gn)([e("mwc-textfield")],or);var ar,sr=__webpack_require__(26924);const cr=S(ar||(ar=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n * {\n box-sizing: border-box;\n }\n\n :host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: transparent;\n --lottie-player-toolbar-icon-color: #999;\n --lottie-player-toolbar-icon-hover-color: #222;\n --lottie-player-toolbar-icon-active-color: #555;\n --lottie-player-seeker-track-color: #ccc;\n --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n }\n .animation.controls {\n height: calc(100% - 35px);\n }\n\n .toolbar {\n display: flex;\n align-items: center;\n justify-items: center;\n background-color: var(--lottie-player-toolbar-background-color);\n margin: 0 5px;\n height: 35px;\n }\n\n .toolbar button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n display: flex;\n background: none;\n border: 0;\n padding: 0;\n outline: none;\n height: 100%;\n }\n\n .toolbar button:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button.active {\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button svg {\n }\n\n .toolbar button.disabled svg {\n display: none;\n }\n\n .seeker {\n -webkit-appearance: none;\n width: 95%;\n outline: none;\n background-color: var(--lottie-player-toolbar-background-color);\n }\n\n .seeker::-webkit-slider-runnable-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-appearance: none;\n margin-top: -5px;\n }\n .seeker:focus::-webkit-slider-runnable-track {\n background: #999;\n }\n .seeker::-moz-range-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n .seeker::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker:focus::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n }\n .seeker:focus::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n\n .error {\n display: flex;\n justify-content: center;\n height: 100%;\n align-items: center;\n }\n"])));var lr,ur,dr,hr,pr,fr,mr,gr;function vr(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function yr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function br(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yr(Object(r),!0).forEach((function(e){wr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _r(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Er(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_r(o,n,i,a,s,"next",t)}function s(t){_r(o,n,i,a,s,"throw",t)}a(void 0)}))}}function xr(){return(xr=Er((function*(t){if("string"!=typeof t)throw new Error("The url value must be a string");var e;try{var r=new URL(t),n=yield fetch(r.toString());e=yield n.json()}catch(t){throw new Error("An error occurred while trying to load the Lottie file from URL")}return e}))).apply(this,arguments)}!function(t){t.Destroyed="destroyed",t.Error="error",t.Frozen="frozen",t.Loading="loading",t.Paused="paused",t.Playing="playing",t.Stopped="stopped"}(fr||(fr={})),function(t){t.Bounce="bounce",t.Normal="normal"}(mr||(mr={})),function(t){t.Complete="complete",t.Destroyed="destroyed",t.Error="error",t.Frame="frame",t.Freeze="freeze",t.Load="load",t.Loop="loop",t.Pause="pause",t.Play="play",t.Ready="ready",t.Rendered="rendered",t.Stop="stop"}(gr||(gr={}));var Ar=class extends At{constructor(){super(...arguments),this.autoplay=!1,this.background="transparent",this.controls=!1,this.currentState=fr.Loading,this.description="Lottie animation",this.direction=1,this.hover=!1,this.intermission=1,this.loop=!1,this.mode=mr.Normal,this.preserveAspectRatio="xMidYMid meet",this.renderer="svg",this.speed=1,this._io=void 0,this._counter=1}load(t){var e=this;return Er((function*(){if(e.renderRoot){var r,n={container:e.container,loop:!1,autoplay:!1,renderer:e.renderer,rendererSettings:{preserveAspectRatio:e.preserveAspectRatio,clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{var i=function(t){if("object"==typeof t)return t;try{return JSON.parse(t)}catch(e){return new URL(t,window.location.href).toString()}}(t),o={},a="string"==typeof i?"path":"animationData";e._lottie&&e._lottie.destroy(),e.webworkers&&sr.useWebWorker(!0),e._lottie=sr.loadAnimation(br(br({},n),{},{[a]:i})),e._attachEventListeners(),"path"===a?(o=yield function(t){return xr.apply(this,arguments)}(i),a="animationData"):o=i,r=o,["v","ip","op","layers","fr","w","h"].every((t=>Object.prototype.hasOwnProperty.call(r,t)))||(e.currentState=fr.Error,e.dispatchEvent(new CustomEvent(gr.Error)))}catch(t){e.currentState=fr.Error,e.dispatchEvent(new CustomEvent(gr.Error))}}}))()}getLottie(){return this._lottie}play(){this._lottie&&(this._lottie.play(),this.currentState=fr.Playing,this.dispatchEvent(new CustomEvent(gr.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=fr.Paused,this.dispatchEvent(new CustomEvent(gr.Pause)))}stop(){this._lottie&&(this._counter=1,this._lottie.stop(),this.currentState=fr.Stopped,this.dispatchEvent(new CustomEvent(gr.Stop)))}destroy(){this._lottie&&(this._lottie.destroy(),this.currentState=fr.Destroyed,this.dispatchEvent(new CustomEvent(gr.Destroyed)),this.remove())}seek(t){if(this._lottie){var e=/^(\d+)(%?)$/.exec(t.toString());if(e){var r="%"===e[2]?this._lottie.totalFrames*Number(e[1])/100:Number(e[1]);this.seeker=r,this.currentState===fr.Playing?this._lottie.goToAndPlay(r,!0):(this._lottie.goToAndStop(r,!0),this._lottie.pause())}}}snapshot(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.renderRoot){var e=this.renderRoot.querySelector(".animation svg"),r=(new XMLSerializer).serializeToString(e);if(t){var n=document.createElement("a");n.href="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(r)),n.download="download_".concat(this.seeker,".svg"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}return r}}setSpeed(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this._lottie&&this._lottie.setSpeed(t)}setDirection(t){this._lottie&&this._lottie.setDirection(t)}setLooping(t){this._lottie&&(this.loop=t,this._lottie.loop=t)}togglePlay(){return this.currentState===fr.Playing?this.pause():this.play()}toggleLooping(){this.setLooping(!this.loop)}resize(){this._lottie&&this._lottie.resize()}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),document.removeEventListener("visibilitychange",(()=>this._onVisibilityChange())),this.destroy()}render(){var t=this.controls?"main controls":"main",e=this.controls?"animation controls":"animation";return nt(lr||(lr=vr([' <div id="animation-container" class='," aria-label=",'>\n <div id="animation" class=',' style="background:',';">\n ',"\n </div>\n ","\n </div>"])),t,this.description,e,this.background,this.currentState===fr.Error?nt(ur||(ur=vr(['<div class="error">⚠️</div>']))):void 0,this.controls?this.renderControls():void 0)}firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver((t=>{t[0].isIntersecting?this.currentState===fr.Frozen&&this.play():this.currentState===fr.Playing&&this.freeze()})),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",(()=>this._onVisibilityChange())),this.src&&this.load(this.src),this.dispatchEvent(new CustomEvent(gr.Rendered))}renderControls(){var t=this.currentState===fr.Playing,e=this.currentState===fr.Paused,r=this.currentState===fr.Stopped;return nt(dr||(dr=vr(['\n <div id="lottie-controls" aria-label="lottie-animation-controls" class="toolbar">\n <button\n id="lottie-play-button"\n @click=',"\n class=",'\n style="align-items:center;"\n role="button"\n tabindex="0"\n aria-label="play-pause"\n >\n ','\n </button>\n <button\n id="lottie-stop-button"\n @click=',"\n class=",'\n style="align-items:center;"\n role="button"\n tabindex="1"\n aria-label="stop"\n >\n <svg width="24" height="24"><path d="M6 6h12v12H6V6z" /></svg>\n </button>\n <input\n id="lottie-seeker-input"\n class="seeker"\n type="range"\n min="0"\n step="1"\n max="100"\n .value=',"\n @input=","\n @mousedown=","\n @mouseup=",'\n aria-valuemin="1"\n aria-valuemax="100"\n role="slider"\n aria-valuenow=','\n tabindex="2"\n aria-label="lottie-seek-input"\n />\n <button\n id="lottie-loop-toggle"\n @click=',"\n class=",'\n style="align-items:center;"\n role="button"\n tabindex="3"\n aria-label="loop-toggle"\n >\n <svg width="24" height="24">\n <path\n d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"\n />\n </svg>\n </button>\n </div>\n '])),this.togglePlay,t||e?"active":"",nt(t?hr||(hr=vr(['<svg width="24" height="24">\n <path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z" />\n </svg>'])):pr||(pr=vr(['<svg width="24" height="24">\n <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />\n </svg>']))),this.stop,r?"active":"",this.seeker,this._handleSeekChange,(()=>{this._prevState=this.currentState,this.freeze()}),(()=>{this._prevState===fr.Playing&&this.play()}),this.seeker,this.toggleLooping,this.loop?"active":"")}_onVisibilityChange(){!0===document.hidden&&this.currentState===fr.Playing?this.freeze():this.currentState===fr.Frozen&&this.play()}_handleSeekChange(t){if(this._lottie&&!isNaN(t.target.value)){var e=t.target.value/100*this._lottie.totalFrames;this.seek(e)}}_attachEventListeners(){this._lottie.addEventListener("enterFrame",(()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(gr.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))})),this._lottie.addEventListener("complete",(()=>{this.currentState===fr.Playing?!this.loop||this.count&&this._counter>=this.count?this.dispatchEvent(new CustomEvent(gr.Complete)):this.mode===mr.Bounce?(this.count&&(this._counter+=.5),setTimeout((()=>{this.dispatchEvent(new CustomEvent(gr.Loop)),this.currentState===fr.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())}),this.intermission)):(this.count&&(this._counter+=1),window.setTimeout((()=>{this.dispatchEvent(new CustomEvent(gr.Loop)),this.currentState===fr.Playing&&(this._lottie.stop(),this._lottie.play())}),this.intermission)):this.dispatchEvent(new CustomEvent(gr.Complete))})),this._lottie.addEventListener("DOMLoaded",(()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play(),this.dispatchEvent(new CustomEvent(gr.Ready))})),this._lottie.addEventListener("data_ready",(()=>{this.dispatchEvent(new CustomEvent(gr.Load))})),this._lottie.addEventListener("data_failed",(()=>{this.currentState=fr.Error,this.dispatchEvent(new CustomEvent(gr.Error))})),this.container.addEventListener("mouseenter",(()=>{this.hover&&this.currentState!==fr.Playing&&this.play()})),this.container.addEventListener("mouseleave",(()=>{this.hover&&this.currentState===fr.Playing&&this.stop()}))}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=fr.Frozen,this.dispatchEvent(new CustomEvent(gr.Freeze)))}};function Cr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cr(Object(r),!0).forEach((function(e){Dr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Dr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Ar.styles=cr,(0,t.gn)([a({type:Boolean})],Ar.prototype,"autoplay",void 0),(0,t.gn)([a({type:String,reflect:!0})],Ar.prototype,"background",void 0),(0,t.gn)([a({type:Boolean})],Ar.prototype,"controls",void 0),(0,t.gn)([a({type:Number})],Ar.prototype,"count",void 0),(0,t.gn)([a({type:String})],Ar.prototype,"currentState",void 0),(0,t.gn)([a({type:String})],Ar.prototype,"description",void 0),(0,t.gn)([a({type:Number})],Ar.prototype,"direction",void 0),(0,t.gn)([a({type:Boolean})],Ar.prototype,"hover",void 0),(0,t.gn)([a()],Ar.prototype,"intermission",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],Ar.prototype,"loop",void 0),(0,t.gn)([a()],Ar.prototype,"mode",void 0),(0,t.gn)([a({type:String})],Ar.prototype,"preserveAspectRatio",void 0),(0,t.gn)([a({type:String})],Ar.prototype,"renderer",void 0),(0,t.gn)([a()],Ar.prototype,"seeker",void 0),(0,t.gn)([a({type:Number})],Ar.prototype,"speed",void 0),(0,t.gn)([a({type:String})],Ar.prototype,"src",void 0),(0,t.gn)([a({type:Boolean})],Ar.prototype,"webworkers",void 0),(0,t.gn)([v(".animation")],Ar.prototype,"container",void 0),Ar=(0,t.gn)([e("lottie-player")],Ar);var Or=(t,e,r,n)=>("function"==typeof r&&(n=r,r=void 0),((t,e,r,n)=>{t.queryStringParams&&(e=((t,e)=>{if(e&&"object"==typeof e){var r="";for(var n in e)r+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]);if(!r)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+r.slice(1)}return t})(e,t.queryStringParams));var i="function"==typeof t.customHeaders?t.customHeaders():t.customHeaders;r&&(i["Content-Type"]="application/json"),fetch(e,Sr(Sr({},"function"==typeof t.requestOptions?t.requestOptions(r):t.requestOptions),{},{method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i})).then((t=>{if(!t.ok)return n(t.statusText||"Error",{status:t.status});t.text().then((e=>{n(null,{status:t.status,data:e})})).catch(n)})).catch(n)})(t,e,r,n||(()=>{})));function Pr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ir(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pr(Object(r),!0).forEach((function(e){kr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kr(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class Tr{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=e,this.allOptions=r,this.type="backend",this.init(t,e,r)}init(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=Ir(Ir(Ir({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,e,r)=>({[e]:r||""}),request:Or,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options),e),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((()=>this.reload()),this.options.reloadInterval)}readMulti(t,e,r){this._readAny(t,t,e,e,r)}read(t,e,r){this._readAny([t],t,[e],e,r)}_readAny(t,e,r,n,i){var o,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(t,r)),(a=function(t){return!!t&&"function"==typeof t.then}(o=a)?o:Promise.resolve(o)).then((o=>{var a=this.services.interpolator.interpolate(o,{lng:t.join("+"),ns:r.join("+")});this.loadUrl(a,i,e,n)}))}loadUrl(t,e,r,n){this.options.request(this.options,t,void 0,((i,o)=>{if(o&&(o.status>=500&&o.status<600||!o.status))return e("failed loading "+t+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return e("failed loading "+t+"; status code: "+o.status,!1);if(!o&&i&&i.message&&i.message.indexOf("Failed to fetch")>-1)return e("failed loading "+t+": "+i.message,!0);if(i)return e(i,!1);var a,s;try{a="string"==typeof o.data?this.options.parse(o.data,r,n):o.data}catch(e){s="failed parsing "+t+" to json"}if(s)return e(s,!1);e(null,a)}))}create(t,e,r,n,i){if(this.options.addPath){"string"==typeof t&&(t=[t]);var o=this.options.parsePayload(e,r,n),a=0,s=[],c=[];t.forEach((r=>{var n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(r,e));var l=this.services.interpolator.interpolate(n,{lng:r,ns:e});this.options.request(this.options,l,o,((e,r)=>{a+=1,s.push(e),c.push(r),a===t.length&&i&&i(s,c)}))}))}}reload(){var{backendConnector:t,languageUtils:e,logger:r}=this.services,n=t.language;if(!n||"cimode"!==n.toLowerCase()){var i=[],o=t=>{e.toResolveHierarchy(t).forEach((t=>{i.indexOf(t)<0&&i.push(t)}))};o(n),this.allOptions.preload&&this.allOptions.preload.forEach((t=>o(t))),i.forEach((e=>{this.allOptions.ns.forEach((n=>{t.read(e,n,"read",null,null,((i,o)=>{i&&r.warn("loading namespace ".concat(n," for language ").concat(e," failed"),i),!i&&o&&r.log("loaded namespace ".concat(n," for language ").concat(e),o),t.loaded("".concat(e,"|").concat(n),i,o)}))}))}))}}}function Rr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fr(t){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(t)}function Nr(t){var e=function(t,e){if("object"!==Fr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Fr(e)?e:String(e)}function Mr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nr(n.key),n)}}function Br(t,e,r){return e&&Mr(t.prototype,e),r&&Mr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}Tr.type="backend";var Lr=[],jr=Lr.forEach,Vr=Lr.slice;function zr(t){return jr.call(Vr.call(arguments,1),(function(e){if(e)for(var r in e)void 0===t[r]&&(t[r]=e[r])})),t}var Ur=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Hr=function(t,e,r){var n=r||{};n.path=n.path||"/";var i=encodeURIComponent(e),o="".concat(t,"=").concat(i);if(n.maxAge>0){var a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(a))}if(n.domain){if(!Ur.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!Ur.test(n.path))throw new TypeError("option path is invalid");o+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},Gr={name:"cookie",lookup:function(t){var e;if(t.lookupCookie&&"undefined"!=typeof document){var r=function(t){for(var e="".concat(t,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null}(t.lookupCookie);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupCookie&&"undefined"!=typeof document&&function(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*r*1e3)),n&&(i.domain=n),document.cookie=Hr(t,encodeURIComponent(e),i)}(e.lookupCookie,t,e.cookieMinutes,e.cookieDomain,e.cookieOptions)}},qr={name:"querystring",lookup:function(t){var e;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=r.substring(1).split("&"),i=0;i<n.length;i++){var o=n[i].indexOf("=");o>0&&n[i].substring(0,o)===t.lookupQuerystring&&(e=n[i].substring(o+1))}}return e}},Wr=null,Yr=function(){if(null!==Wr)return Wr;try{Wr="undefined"!==window&&null!==window.localStorage;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){Wr=!1}return Wr},Xr={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&Yr()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&Yr()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},$r=null,Qr=function(){if(null!==$r)return $r;try{$r="undefined"!==window&&null!==window.sessionStorage;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){$r=!1}return $r},Kr={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&Qr()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&Qr()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},Zr={name:"navigator",lookup:function(t){var e=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)e.push(navigator.languages[r]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return e.length>0?e:void 0}},Jr={name:"htmlTag",lookup:function(t){var e,r=t.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(e=r.getAttribute("lang")),e}},tn={name:"path",lookup:function(t){var e;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof t.lookupFromPathIndex){if("string"!=typeof r[t.lookupFromPathIndex])return;e=r[t.lookupFromPathIndex].replace("/","")}else e=r[0].replace("/","")}return e}},en={name:"subdomain",lookup:function(t){var e="number"==typeof t.lookupFromSubdomainIndex?t.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[e]}},rn=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rr(this,t),this.type="languageDetector",this.detectors={},this.init(e,r)}return Br(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=zr(e,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Gr),this.addDetector(qr),this.addDetector(Xr),this.addDetector(Kr),this.addDetector(Zr),this.addDetector(Jr),this.addDetector(tn),this.addDetector(en)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var r=[];return t.forEach((function(t){if(e.detectors[t]){var n=e.detectors[t].lookup(e.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(t,e){var r=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)})))}}]),t}();function nn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function on(t,e){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},on(t,e)}function an(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&on(t,e)}function sn(t,e){if(e&&("object"===Fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nn(t)}function cn(t){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cn(t)}function ln(t,e,r){return(e=Nr(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function un(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}rn.type="languageDetector";var dn=__webpack_require__(51266);function hn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var fn={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){dn&&dn[t]&&dn[t].apply(dn,e)}},mn=new(function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rr(this,t),this.init(e,r)}return Br(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||fn,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,r,n){return n&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,pn(pn({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),gn=function(){function t(){Rr(this,t),this.observers={}}return Br(t,[{key:"on",value:function(t,e){var r=this;return t.split(" ").forEach((function(t){r.observers[t]=r.observers[t]||[],r.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(t){t.apply(void 0,r)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(e){e.apply(e,[t].concat(r))}))}}}]),t}();function vn(){var t,e,r=new Promise((function(r,n){t=r,e=n}));return r.resolve=t,r.reject=e,r}function yn(t){return null==t?"":""+t}function bn(t,e,r){t.forEach((function(t){e[t]&&(r[t]=e[t])}))}function wn(t,e,r){function n(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var o="string"!=typeof e?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=n(o.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return i()?{}:{obj:t,k:n(o.shift())}}function _n(t,e,r){var n=wn(t,e,Object);n.obj[n.k]=r}function En(t,e){var r=wn(t,e),n=r.obj,i=r.k;if(n)return n[i]}function xn(t,e,r){var n=En(t,r);return void 0!==n?n:En(e,r)}function An(t,e,r){for(var n in e)"__proto__"!==n&&"constructor"!==n&&(n in t?"string"==typeof t[n]||t[n]instanceof String||"string"==typeof e[n]||e[n]instanceof String?r&&(t[n]=e[n]):An(t[n],e[n],r):t[n]=e[n]);return t}function Cn(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Sn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Dn(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return Sn[t]})):t}var On="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Pn=[" ",",","?","!",";"];function In(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?In(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):In(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tn(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),i=t,o=0;o<n.length;++o){if(!i)return;if("string"==typeof i[n[o]]&&o+1<n.length)return;if(void 0===i[n[o]]){for(var a=2,s=n.slice(o,o+a).join(r),c=i[s];void 0===c&&n.length>o+a;)a++,c=i[s=n.slice(o,o+a).join(r)];if(void 0===c)return;if(null===c)return null;if(e.endsWith(s)){if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s]}var l=n.slice(o+a).join(r);return l?Tn(c,l,r):void 0}i=i[n[o]]}return i}}var Rn=function(t){an(i,t);var e,r,n=(e=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=cn(e);if(r){var i=cn(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return sn(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Rr(this,i),e=n.call(this),On&&gn.call(nn(e)),e.data=t||{},e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return Br(i,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,o=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[t,e];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));var s=En(this.data,a);return s||!o||"string"!=typeof r?s:Tn(this.data&&this.data[t]&&this.data[t][e],r,i)}},{key:"addResource",value:function(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[t,e];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(n=e,e=(a=t.split("."))[1]),this.addNamespaces(e),_n(this.data,a,n),i.silent||this.emit("added",t,e,r,n)}},{key:"addResources",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!=typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(t,e,i,r[i],{silent:!0});n.silent||this.emit("added",t,e,r)}},{key:"addResourceBundle",value:function(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf(".")>-1&&(n=r,r=e,e=(a=t.split("."))[1]),this.addNamespaces(e);var s=En(this.data,a)||{};n?An(s,r,i):s=kn(kn({},s),r),_n(this.data,a,s),o.silent||this.emit("added",t,e,r)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?kn(kn({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((function(t){return e[t]&&Object.keys(e[t]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),i}(gn),Fn={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,i){var o=this;return t.forEach((function(t){o.processors[t]&&(e=o.processors[t].process(e,r,n,i))})),e}};function Nn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nn(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Bn={},Ln=function(t){an(i,t);var e,r,n=(e=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=cn(e);if(r){var i=cn(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return sn(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Rr(this,i),e=n.call(this),On&&gn.call(nn(e)),bn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,nn(e)),e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=mn.create("translator"),e}return Br(i,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var r=this.resolve(t,e);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(t,e){var r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,i=e.ns||this.options.defaultNS||[],o=r&&t.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,r){e=e||"",r=r||"";var n=Pn.filter((function(t){return e.indexOf(t)<0&&r.indexOf(t)<0}));if(0===n.length)return!0;var i=new RegExp("(".concat(n.map((function(t){return"?"===t?"\\?":t})).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(r);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}(t,r,n));if(o&&!a){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:i};var c=t.split(r);(r!==n||r===n&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(n)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}}},{key:"translate",value:function(t,e,r){var n=this;if("object"!==Fr(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,a=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],e),c=s.key,l=s.namespaces,u=l[l.length-1],d=e.lng||this.language,h=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var p=e.nsSeparator||this.options.nsSeparator;return o?(f.res="".concat(u).concat(p).concat(c),f):"".concat(u).concat(p).concat(c)}return o?(f.res=c,f):c}var f=this.resolve(t,e),m=f&&f.res,g=f&&f.usedKey||c,v=f&&f.exactUsedKey||c,y=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(_&&m&&E&&b.indexOf(y)<0&&("string"!=typeof w||"[object Array]"!==y)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,Mn(Mn({},e),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(f.res=x,f):x}if(a){var A="[object Array]"===y,C=A?[]:{},S=A?v:g;for(var D in m)if(Object.prototype.hasOwnProperty.call(m,D)){var O="".concat(S).concat(a).concat(D);C[D]=this.translate(O,Mn(Mn({},e),{joinArrays:!1,ns:l})),C[D]===O&&(C[D]=m[D])}m=C}}else if(_&&"string"==typeof w&&"[object Array]"===y)(m=m.join(w))&&(m=this.extendTranslation(m,t,e,r));else{var P=!1,I=!1,k=void 0!==e.count&&"string"!=typeof e.count,T=i.hasDefaultValue(e),R=k?this.pluralResolver.getSuffix(d,e.count,e):"",F=e["defaultValue".concat(R)]||e.defaultValue;!this.isValidLookup(m)&&T&&(P=!0,m=F),this.isValidLookup(m)||(I=!0,m=c);var N=e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,M=N&&I?void 0:m,B=T&&F!==m&&this.options.updateMissing;if(I||P||B){if(this.logger.log(B?"updateKey":"missingKey",d,u,c,B?F:m),a){var L=this.resolve(c,Mn(Mn({},e),{},{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&V&&V[0])for(var z=0;z<V.length;z++)j.push(V[z]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(e.lng||this.language):j.push(e.lng||this.language);var U=function(t,r,i){var o=T&&i!==m?i:M;n.options.missingKeyHandler?n.options.missingKeyHandler(t,u,r,o,B,e):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(t,u,r,o,B,e),n.emit("missingKey",t,u,r,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?j.forEach((function(t){n.pluralResolver.getSuffixes(t,e).forEach((function(r){U([t],c+r,e["defaultValue".concat(r)]||F)}))})):U(j,c,F))}m=this.extendTranslation(m,t,e,f,r),I&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(u,":").concat(c)),(I||P)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(c):c,P?m:void 0):this.options.parseMissingKeyHandler(m))}return o?(f.res=m,f):m}},{key:"extendTranslation",value:function(t,e,r,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,Mn(Mn({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(Mn(Mn({},r),{interpolation:Mn(Mn({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof t&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var c=t.match(this.interpolator.nestingRegexp);a=c&&c.length}var l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l=Mn(Mn({},this.options.interpolation.defaultVariables),l)),t=this.interpolator.interpolate(t,l,r.lng||this.language,r),s){var u=t.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(r.nest=!1)}!1!==r.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return i&&i[0]===n[0]&&!r.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(e[0])),null):o.translate.apply(o,n.concat([e]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,h="string"==typeof d?[d]:d;return null!=t&&h&&h.length&&!1!==r.applyPostProcessor&&(t=Fn.handle(h,t,e,this.options&&this.options.postProcessPassResolved?Mn({i18nResolved:n},r):r,this)),t}},{key:"resolve",value:function(t){var e,r,n,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((function(t){if(!a.isValidLookup(e)){var c=a.extractFromKey(t,s),l=c.key;r=l;var u=c.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,h=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(t){a.isValidLookup(e)||(o=t,!Bn["".concat(f[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Bn["".concat(f[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(r){if(!a.isValidLookup(e)){i=r;var o,c=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,l,r,t,s);else{var u;d&&(u=a.pluralResolver.getSuffix(r,s.count,s));var f="".concat(a.options.pluralSeparator,"zero");if(d&&(c.push(l+u),h&&c.push(l+f)),p){var m="".concat(l).concat(a.options.contextSeparator).concat(s.context);c.push(m),d&&(c.push(m+u),h&&c.push(m+f))}}for(;o=c.pop();)a.isValidLookup(e)||(n=o,e=a.getResource(r,t,o,s))}})))}))}})),{res:e,usedKey:r,exactUsedKey:n,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,r,n):this.resourceStore.getResource(t,e,r,n)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e===r.substring(0,e.length)&&void 0!==t[r])return!0;return!1}}]),i}(gn);function jn(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Vn=function(){function t(e){Rr(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mn.create("languageUtils")}return Br(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(t){return t.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=jn(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=jn(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=jn(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,r=this;return t?(t.forEach((function(t){if(!e){var n=r.formatLanguageCode(t);r.options.supportedLngs&&!r.isSupportedCode(n)||(e=n)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var n=r.getLanguagePartFromCode(t);if(r.isSupportedCode(n))return e=n;e=r.options.supportedLngs.find((function(t){if(0===t.indexOf(n))return t}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,e){var r=this,n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],o=function(t){t&&(r.isSupportedCode(t)?i.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),n.forEach((function(t){i.indexOf(t)<0&&o(r.formatLanguageCode(t))})),i}}]),t}(),zn=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Un={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},Hn=["v1","v2","v3"],Gn={zero:0,one:1,two:2,few:3,many:4,other:5};function qn(){var t={};return zn.forEach((function(e){e.lngs.forEach((function(r){t[r]={numbers:e.nr,plurals:Un[e.fc]}}))})),t}var Wn=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rr(this,t),this.languageUtils=e,this.options=r,this.logger=mn.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=qn()}return Br(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,e);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,r).map((function(t){return"".concat(e).concat(t)}))}},{key:"getSuffixes",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(t,e){return Gn[t]-Gn[e]})).map((function(t){return"".concat(e.options.prepend).concat(t)})):n.numbers.map((function(n){return e.getSuffix(t,n,r)})):[]}},{key:"getSuffix",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(t,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(e)):this.getSuffixRetroCompatible(n,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var r=this,n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),i=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Hn.includes(this.options.compatibilityJSON)}}]),t}();function Yn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yn(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var $n=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Rr(this,t),this.logger=mn.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return Br(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:Dn,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?Cn(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?Cn(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?Cn(e.nestingPrefix):e.nestingPrefixEscaped||Cn("$t("),this.nestingSuffix=e.nestingSuffix?Cn(e.nestingSuffix):e.nestingSuffixEscaped||Cn(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,e,r,n){var i,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(t){return t.replace(/\$/g,"$$$$")}var u=function(t){if(t.indexOf(s.formatSeparator)<0){var i=xn(e,c,t);return s.alwaysFormat?s.format(i,void 0,r,Xn(Xn(Xn({},n),e),{},{interpolationkey:t})):i}var o=t.split(s.formatSeparator),a=o.shift().trim(),l=o.join(s.formatSeparator).trim();return s.format(xn(e,c,a),l,r,Xn(Xn(Xn({},n),e),{},{interpolationkey:a}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,h=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return l(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?l(s.escape(t)):l(t)}}].forEach((function(e){for(a=0;i=e.regex.exec(t);){var r=i[1].trim();if(void 0===(o=u(r)))if("function"==typeof d){var c=d(t,i,n);o="string"==typeof c?c:""}else if(n&&n.hasOwnProperty(r))o="";else{if(h){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(t)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=yn(o));var l=e.safeValue(o);if(t=t.replace(i[0],l),h?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=i[0].length):e.regex.lastIndex=0,++a>=s.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var r,n,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Xn({},o);function s(t,e){var r=this.nestingOptionsSeparator;if(t.indexOf(r)<0)return t;var n=t.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);t=n[0];var o=(i=this.interpolate(i,a)).match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),e&&(a=Xn(Xn({},e),a))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(r).concat(i)}return delete a.defaultValue,t}for(a.applyPostProcessor=!1,delete a.defaultValue;r=this.nestingRegexp.exec(t);){var c=[],l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(t){return t.trim()}));r[1]=u.shift(),c=u,l=!0}if((n=e(s.call(this,r[1].trim(),a),a))&&r[0]===t&&"string"!=typeof n)return n;"string"!=typeof n&&(n=yn(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),n=""),l&&(n=c.reduce((function(t,e){return i.format(t,e,o.lng,Xn(Xn({},o),{},{interpolationkey:r[1].trim()}))}),n.trim())),t=t.replace(r[0],n),this.regexp.lastIndex=0}return t}}]),t}();function Qn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qn(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zn(t){var e={};return function(r,n,i){var o=n+JSON.stringify(i),a=e[o];return a||(a=t(n,i),e[o]=a),a(r)}}var Jn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Rr(this,t),this.logger=mn.create("formatter"),this.options=e,this.formats={number:Zn((function(t,e){var r=new Intl.NumberFormat(t,e);return function(t){return r.format(t)}})),currency:Zn((function(t,e){var r=new Intl.NumberFormat(t,Kn(Kn({},e),{},{style:"currency"}));return function(t){return r.format(t)}})),datetime:Zn((function(t,e){var r=new Intl.DateTimeFormat(t,Kn({},e));return function(t){return r.format(t)}})),relativetime:Zn((function(t,e){var r=new Intl.RelativeTimeFormat(t,Kn({},e));return function(t){return r.format(t,e.range||"day")}})),list:Zn((function(t,e){var r=new Intl.ListFormat(t,Kn({},e));return function(t){return r.format(t)}}))},this.init(e)}return Br(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=e.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=Zn(e)}},{key:"format",value:function(t,e,r,n){var i=this,o=e.split(this.formatSeparator).reduce((function(t,e){var o=function(t){var e=t.toLowerCase().trim(),r={};if(t.indexOf("(")>-1){var n=t.split("(");e=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);"currency"===e&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):"relativetime"===e&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach((function(t){if(t){var e=function(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return un(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?un(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split(":")),n=e[0],i=e.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[n.trim()]||(r[n.trim()]=i),"false"===i&&(r[n.trim()]=!1),"true"===i&&(r[n.trim()]=!0),isNaN(i)||(r[n.trim()]=parseInt(i,10))}}))}return{formatName:e,formatOptions:r}}(e),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var c=t;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},u=l.locale||l.lng||n.locale||n.lng||r;c=i.formats[a](t,u,Kn(Kn(Kn({},s),n),l))}catch(t){i.logger.warn(t)}return c}return i.logger.warn("there was no format function for ".concat(a)),t}),t);return o}}]),t}();function ti(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ei(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ri=function(t){an(i,t);var e,r,n=(e=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=cn(e);if(r){var i=cn(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return sn(this,t)});function i(t,e,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Rr(this,i),o=n.call(this),On&&gn.call(nn(o)),o.backend=t,o.store=e,o.services=r,o.languageUtils=r.languageUtils,o.options=a,o.logger=mn.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,a.backend,a),o}return Br(i,[{key:"queueLoad",value:function(t,e,r,n){var i=this,o={},a={},s={},c={};return t.forEach((function(t){var n=!0;e.forEach((function(e){var s="".concat(t,"|").concat(e);!r.reload&&i.store.hasResourceBundle(t,e)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===c[e]&&(c[e]=!0)))})),n||(s[t]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(t,e,r){var n=t.split("|"),i=n[0],o=n[1];e&&this.emit("failedLoading",i,o,e),r&&this.store.addResourceBundle(i,o,r),this.state[t]=e?-1:2;var a={};this.queue.forEach((function(r){!function(t,e,r,n){var i=wn(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(r)}(r.loaded,[i],o),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(r,t),e&&r.errors.push(e),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(t){a[t]||(a[t]={});var e=r.loaded[t];e.length&&e.forEach((function(e){void 0===a[t][e]&&(a[t][e]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return t.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:t,ns:e,fcName:r,tried:i,wait:o,callback:a}):(this.readingCalls++,this.backend[r](t,e,(function(s,c){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}s&&c&&i<n.maxRetries?setTimeout((function(){n.read.call(n,t,e,r,i+1,2*o,a)}),o):a(s,c)}))):a(null,{})}},{key:"prepareLoading",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var o=this.queueLoad(t,e,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(t){r.loadOne(t)}))}},{key:"load",value:function(t,e,r){this.prepareLoading(t,e,{},r)}},{key:"reload",value:function(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}},{key:"loadOne",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(function(n,a){n&&e.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(i," failed"),n),!n&&a&&e.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(i),a),e.loaded(t,n,a)}))}},{key:"saveMissing",value:function(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(t,e,r,n,null,ei(ei({},o),{},{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,r,n))}}]),i}(gn);function ni(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===Fr(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===Fr(t[2])||"object"===Fr(t[3])){var r=t[3]||t[2];Object.keys(r).forEach((function(t){e[t]=r[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ii(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function oi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ai(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oi(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function si(){}function ci(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}))}var li=function(t){an(i,t);var e,r,n=(e=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=cn(e);if(r){var i=cn(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return sn(this,t)});function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Rr(this,i),t=n.call(this),On&&gn.call(nn(t)),t.options=ii(e),t.services={},t.logger=mn,t.modules={external:[]},ci(nn(t)),r&&!t.isInitialized&&!e.isClone){if(!t.options.initImmediate)return t.init(e,r),sn(t,nn(t));setTimeout((function(){t.init(e,r)}),0)}return t}return Br(i,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(r=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));var n=ni();function i(t){return t?"function"==typeof t?new t:t:null}if(this.options=ai(ai(ai({},n),this.options),ii(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ai(ai({},n.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){var o;this.modules.logger?mn.init(i(this.modules.logger),this.options):mn.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Jn);var a=new Vn(this.options);this.store=new Rn(this.options.resources,this.options);var s=this.services;s.logger=mn,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Wn(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new $n(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ri(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.emit.apply(t,[e].concat(n))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Ln(this.services,this.options),this.translator.on("*",(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t.emit.apply(t,[e].concat(n))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}if(this.format=this.options.interpolation.format,r||(r=si),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var d=vn(),h=function(){var e=function(e,n){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),d.resolve(n),r(e,n)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}},{key:"loadResources",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:si,n=r,i="string"==typeof t?t:this.language;if("function"==typeof t&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return n();var o=[],a=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){o.indexOf(t)<0&&o.push(t)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(t){return a(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return a(t)})),this.services.backendConnector.load(o,this.options.ns,(function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),n(t)}))}else n(null)}},{key:"reloadResources",value:function(t,e,r){var n=vn();return t||(t=this.languages),e||(e=this.options.ns),r||(r=si),this.services.backendConnector.reload(t,e,(function(t){n.resolve(),r(t)})),n}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&Fn.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var r=this.languages[e];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(t,e){var r=this;this.isLanguageChangingTo=t;var n=vn();this.emit("languageChanging",t);var i=function(t){r.language=t,r.languages=r.services.languageUtils.toResolveHierarchy(t),r.resolvedLanguage=void 0,r.setResolvedLanguage(t)},o=function(o){t||o||!r.services.languageDetector||(o=[]);var a="string"==typeof o?o:r.services.languageUtils.getBestMatchFromCodes(o);a&&(r.language||i(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(t){!function(t,o){o?(i(o),r.translator.changeLanguage(o),r.isLanguageChangingTo=void 0,r.emit("languageChanged",o),r.logger.log("languageChanged",o)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),e&&e(t,(function(){return r.t.apply(r,arguments)}))}(t,a)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(t,e,r){var n=this,i=function t(e,i){var o;if("object"!==Fr(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];o=n.options.overloadTranslationOptionHandler([e,i].concat(s))}else o=ai({},i);o.lng=o.lng||t.lng,o.lngs=o.lngs||t.lngs,o.ns=o.ns||t.ns,o.keyPrefix=o.keyPrefix||r||t.keyPrefix;var l=n.options.keySeparator||".",u=o.keyPrefix?"".concat(o.keyPrefix).concat(l).concat(e):e;return n.t(u,o)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=r,i}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(t,r){var n=e.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,t)||i&&!a(o,t)))}},{key:"loadNamespaces",value:function(t,e){var r=this,n=vn();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(t){r.options.ns.indexOf(t)<0&&r.options.ns.push(t)})),this.loadResources((function(t){n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var r=vn();"string"==typeof t&&(t=[t]);var n=this.options.preload||[],i=t.filter((function(t){return n.indexOf(t)<0}));return i.length?(this.options.preload=n.concat(i),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:si,n=ai(ai(ai({},this.options),e),{isClone:!0}),o=new i(n);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));var a=["store","services","language"];return a.forEach((function(e){o[e]=t[e]})),o.services=ai({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Ln(o.services,o.options),o.translator.on("*",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];o.emit.apply(o,[t].concat(r))})),o.init(n,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),i}(gn);ln(li,"createInstance",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new li(t,e)}));var ui=li.createInstance();ui.createInstance=li.createInstance,ui.createInstance,ui.init,ui.loadResources,ui.reloadResources,ui.use,ui.changeLanguage,ui.getFixedT,ui.t,ui.exists,ui.setDefaultNamespace,ui.hasLoadedNamespace,ui.loadNamespaces,ui.loadLanguages;const di=ui;di.use(rn).use(Tr).init({fallbackLng:"en",debug:!0,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{prefix:"{",suffix:"}"},load:"languageOnly",backend:{loadPath:"/{ns}/{lng}.json"},detection:{order:["cookie"],lookupCookie:"i18next",caches:["cookie"],excludeCacheFor:["cimode"],cookieOptions:{path:"/",sameSite:"strict"}}});var hi,pi,fi,mi=di,gi=t=>e=>class extends e{connectedCallback(){var e=()=>{this.languageUpdated&&this.languageUpdated(t),this.requestUpdate()};t.on("initialized",e),t.on("languageChanged",e),t.store.on("added",e),this.__i18next_callback__=e,super.connectedCallback()}disconnectedCallback(){super.connectedCallback(),t.off("initialized",this.__i18next_callback__),t.off("languageChanged",this.__i18next_callback__),t.store.off("added",this.__i18next_callback__)}},vi=class extends(gi(mi)(At)){render(){return nt(hi||(hi=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span>","</span>"])),mi.t(this.msgid))}};function yi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function bi(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:String})],vi.prototype,"msgid",void 0),vi=(0,t.gn)([e("ox-i18n")],vi);var wi=class extends At{constructor(){super(...arguments),this.value=""}render(){return nt(pi||(pi=bi(["\n <select .value="," @change=",'>\n <option value="" ?selected=','></option>\n <option value="ms-MY" ?selected=','>Bahasa Malaysia</option>\n <option value="en-US" ?selected=','>English</option>\n <option value="ko-KR" ?selected=','>한국어</option>\n <option value="zh-CN" ?selected=',">中文</option>\n </select>\n "])),this.value,(t=>this.onLocaleChanged(t.target.value)),!mi.language,"ms-MY"==mi.language,"en-US"==mi.language,"ko-KR"==mi.language,"zh-CN"==mi.language)}onLocaleChanged(t){var e=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){yi(o,n,i,a,s,"next",t)}function s(t){yi(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){t&&(e.value=t,e.dispatchEvent(new CustomEvent("change",{composed:!0,bubbles:!0,detail:t})))}))()}};wi.styles=S(fi||(fi=bi(["\n * {\n box-sizing: border-box;\n }\n *:focus {\n outline: none;\n }\n select {\n border: var(--i18n-selector-field-border, var(--input-field-border));\n border-radius: var(--i18n-selector-field-border-radius, 0);\n background-color: var(--i18n-selector-field-background-color, initial);\n margin: var(--i18n-selector-field-margin, 0);\n padding: var(--i18n-selector-field-padding, 0);\n font: var(--i18n-selector-field-font, var(--input-field-font));\n font-size: var(--i18n-selector-field-font-size, 15px);\n width: var(--i18n-selector-field-width, 100%);\n color: var(--i18n-selector-field-color, initial);\n }\n select:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n ::placeholder {\n font-size: 0.8rem;\n text-transform: capitalize;\n }\n "]))),(0,t.gn)([a({type:String})],wi.prototype,"value",void 0),wi=(0,t.gn)([e("ox-i18n-selector")],wi);var _i=__webpack_require__(51266);function Ei(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function xi(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ei(o,n,i,a,s,"next",t)}function s(t){Ei(o,n,i,a,s,"throw",t)}a(void 0)}))}}var Ai,Ci,Si={"Content-Type":"application/json",Accept:"application/json"},Di=new class{constructor(){this.listeners={profile:[],signout:[],signin:[],presignout:[],passwordchange:[],error:[]},this.authRequiredEventListener=this.onAuthRequired.bind(this),this.activateRequiredEventListener=this.onActivateRequired.bind(this),document.addEventListener("auth-required",this.authRequiredEventListener),document.addEventListener("activate-required",this.activateRequiredEventListener)}on(t,e){var r=this.listeners[t];r?r.push(e):_i.log("unknown event",t)}off(t,e){var r=this.listeners[t];if(r){var n=r.indexOf(e);n>=0&&r.splice(n,1)}else _i.log("unknown event",t)}dispose(){document.removeEventListener("auth-required",this.authRequiredEventListener),document.removeEventListener("activate-required",this.activateRequiredEventListener),this.listeners={profile:[],signin:[],signout:[],presignout:[],passwordchange:[],error:[]}}onProfileFetched(t){var{credential:e,accessToken:r,domains:n,domain:i}=t;this._credential=e,r&&!this.accessToken&&(this.accessToken=r,this.listeners.signin.forEach((t=>t({accessToken:r,domains:n,domain:i})))),r&&(this.accessToken=r),this.listeners.profile.forEach((t=>t({credential:e,domains:n,domain:i})))}onPreSignout(){var t=this;return xi((function*(){for(var e of t.listeners.presignout)yield e()}))()}onAuthError(t){var e;null===(e=this.listeners)||void 0===e||e.error.forEach((e=>e(t)))}onPasswordChanged(t){var e;null===(e=this.listeners)||void 0===e||e.passwordchange.forEach((e=>e(t)))}onAuthRequired(t){_i.warn("authentication required");var e=new URL(window.location.href);e.pathname="/auth/signin",e.searchParams.append("redirect_to",window.location.href),window.location.href=e.href}onActivateRequired(t){_i.warn("activate required");var e=new URLSearchParams;e.append("email",t.email),window.location.replace("/auth/activate?".concat(e))}get credential(){return this._credential}route(t,e){var r=window.location,n=r.origin||r.protocol+"//"+r.host,i="".concat(n).concat(t);r.pathname!==t&&(window.history.pushState({redirected:e},"",i),window.history.pushState({},"",i),window.history.back())}updateProfile(t){return xi((function*(){var e=yield fetch("/auth/update-profile",{method:"POST",credentials:"include",headers:Si,body:JSON.stringify(t)}),r=yield e.text();if(e.ok)return r;throw new Error(r)}))()}changePassword(t){var e=this;return xi((function*(){try{var r=yield fetch("/auth/change-pass",{method:"POST",credentials:"include",headers:Si,body:JSON.stringify(t)}),n=yield r.text();r.ok?e.onPasswordChanged({message:n}):e.onAuthError({message:n})}catch(t){e.onAuthError(t)}}))()}deleteUser(t){return xi((function*(){var e=yield fetch("/auth/delete-user",{method:"POST",credentials:"include",headers:Si,body:JSON.stringify(t)}),r=yield e.text();if(e.ok)return r;throw new Error(r)}))()}profile(){var t=this;return xi((function*(){try{var e=new URLSearchParams(location.search).get("token"),r=JSON.parse(JSON.stringify(Si));e&&(r.authorization="Bearer ".concat(e));var n=yield fetch("/auth/profile",{method:"GET",credentials:"include",headers:r});if(n.ok){if(n.redirected)return void(location.href=n.url);var i=yield n.json();return void t.onProfileFetched({credential:i.user,accessToken:i.token,domains:i.domains,domain:i.domain})}}catch(e){t.onAuthError(e)}}))()}signout(){var t=this;return xi((function*(){yield t.onPreSignout(),window.location.href="/auth/signout"}))()}};function Oi(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Pi(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Ii=class extends(gi(mi)(At)){render(){return nt(Ai||(Ai=Pi(['\n <form>\n <div class="field">\n <input type="password" name="current_pass" placeholder=',' required />\n </div>\n <div class="field">\n <input type="password" name="new_pass" placeholder=',' required />\n </div>\n <div class="field">\n <input type="password" name="confirm_pass" placeholder=',' required />\n </div>\n\n <mwc-button raised label="','" @click=',"></mwc-button>\n </form>\n "])),mi.t("text.current password"),mi.t("text.new password"),mi.t("text.confirm password"),mi.t("text.change password"),this.submit.bind(this))}submit(){var t=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Oi(o,n,i,a,s,"next",t)}function s(t){Oi(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){var e,r=new FormData(t.form),n={};for(var[i,o]of r.entries()){if(!o){var a=null===(e=t.form.querySelector("[name=".concat(i,"]")))||void 0===e?void 0:e.placeholder;return t.showToast(mi.t("error.value is empty",{value:a||i}))}n[i]=o}if(n.new_pass!==n.confirm_pass)return t.showToast(mi.t("error.new_password_and_confirm_password_do_not_match"));Di.changePassword(n),t.form.reset()}))()}showToast(t){document.dispatchEvent(new CustomEvent("notify",{detail:{message:t}}))}};function ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ti(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(r),!0).forEach((function(e){ln(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ri(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Ii.styles=[S(Ci||(Ci=Pi(["\n * {\n box-sizing: border-box;\n }\n *:focus {\n outline: none;\n }\n input {\n border: var(--change-password-field-border);\n border-radius: var(--change-password-field-border-radius);\n margin: var(--change-password-field-margin);\n padding: var(--change-password-field-padding);\n\n font: var(--change-password-field-font);\n width: var(--change-password-field-width);\n }\n input:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n ::placeholder {\n font-size: 0.8rem;\n text-transform: capitalize;\n }\n\n mwc-button {\n margin: var(--margin-narrow) 0 var(--margin-default) 0;\n }\n\n button {\n background-color: var(--secondary-color, #394e64);\n margin: 2px 2px 10px 2px;\n height: var(--button-height, 28px);\n color: var(--button-color, #fff);\n font: var(--button-font);\n border-radius: var(--button-radius, 5px);\n border: var(--button-border, 1px solid transparent);\n line-height: 1.5;\n }\n button:hover,\n button:active {\n background-color: var(--button-active-background-color, #22a6a7);\n border: var(--button-active-border);\n }\n "])))],(0,t.gn)([v("form"),(0,t.w6)("design:type",HTMLFormElement)],Ii.prototype,"form",void 0),Ii=(0,t.gn)([e("change-password")],Ii),__webpack_require__(51266);var Fi="function"==typeof Symbol&&Symbol.observable||"@@observable",Ni=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mi={INIT:"@@redux/INIT"+Ni(),REPLACE:"@@redux/REPLACE"+Ni(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ni()}};function Bi(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Li(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ji(t){return function(e){var r=e.dispatch,n=e.getState;return function(e){return function(i){return"function"==typeof i?i(r,n,t):e(i)}}}}var Vi=ji();Vi.withExtraArgument=ji;const zi=Vi;class Ui{static set(t,e){var r=t=>{e&&!e()||(t.preventDefault(),t.stopPropagation())},n=r=>{e&&!e()||t.classList.add("candrop")},i=r=>{e&&!e()||t.classList.remove("candrop")};["dragenter","dragover","dragleave","drop"].forEach((e=>{t.addEventListener(e,r,!1)})),["dragenter","dragover"].forEach((e=>{t.addEventListener(e,n,!1)})),["dragleave","drop"].forEach((e=>{t.addEventListener(e,i,!1)})),t.addEventListener("drop",(r=>{if(!e||e()){var n=r.dataTransfer.files;t.dispatchEvent(new CustomEvent("file-drop",{detail:[...Array.from(n)]}))}}),!1)}}function Hi(){return!navigator.userAgent.match(/chrome|chromium|crios/i)&&navigator.userAgent.match(/safari/i)}function Gi(t){var e=t.style.overflow;e&&"visible"!==e||(t.style.overflow="hidden");var r=t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight;return t.style.overflow=e,r}__webpack_require__(78655).lW;var qi=__webpack_require__(51266),Wi="[ERROR]",Yi="[WARN]",Xi=function(){for(var t=[],e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach((e=>e&&e.stack&&t.push(e.stack))),qi.warn(Yi,...r,t.join(" "))};class $i{constructor(t,e){this.q=[],this.maxsize=10,this.pos=-1,this._snapshot_taker=null,!(t=Number(t))||t<=0?function(){for(var t=[],e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach((e=>e&&e.stack&&t.push(e.stack))),qi.error(Wi,...r,t.join(" "))}("TimeCapsule maxsize should be greater than 0.",t):this.maxsize=t,this.reset(),e&&this.snapshot(e)}dispose(){this.reset()}snapshot(t){this.q.splice(this.pos+1,this.q.length-(this.pos+1),t),this.q.length>this.maxsize&&this.q.splice(0,this.q.length-this.maxsize),this.pos=this.q.length-1}forward(){if(this.snapshot_taker&&this.snapshot_taker.take(),this.forwardable)return this.q[++this.pos];Xi("Not forwardable.")}backward(){if(this.snapshot_taker&&this.snapshot_taker.take(),this.backwardable)return this.q[--this.pos];Xi("Not backwardable.")}get current(){if(-1!==this.pos)return this.q[this.pos];Xi("Non state has been recorded.")}get length(){return this.q.length}get forwardable(){return this.pos<this.q.length-1}get backwardable(){return this.pos>0}get snapshot_taker(){return this._snapshot_taker}set snapshot_taker(t){this._snapshot_taker=t}reset(){this.q=[],this.pos=-1}}const Qi=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Ki="object"==typeof global&&global&&global.Object===Object&&global;var Zi="object"==typeof self&&self&&self.Object===Object&&self;const Ji=Ki||Zi||Function("return this")(),to=function(){return Ji.Date.now()};var eo=/\s/;var ro=/^\s+/;const no=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&eo.test(t.charAt(e)););return e}(t)+1).replace(ro,""):t},io=Ji.Symbol;var oo=Object.prototype,ao=oo.hasOwnProperty,so=oo.toString,co=io?io.toStringTag:void 0;var lo=Object.prototype.toString;var uo=io?io.toStringTag:void 0;const ho=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":uo&&uo in Object(t)?function(t){var e=ao.call(t,co),r=t[co];try{t[co]=void 0;var n=!0}catch(t){}var i=so.call(t);return n&&(e?t[co]=r:delete t[co]),i}(t):function(t){return lo.call(t)}(t)},po=function(t){return null!=t&&"object"==typeof t},fo=function(t){return"symbol"==typeof t||po(t)&&"[object Symbol]"==ho(t)};var mo=/^[-+]0x[0-9a-f]+$/i,go=/^0b[01]+$/i,vo=/^0o[0-7]+$/i,yo=parseInt;const bo=function(t){if("number"==typeof t)return t;if(fo(t))return NaN;if(Qi(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qi(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=no(t);var r=go.test(t);return r||vo.test(t)?yo(t.slice(2),r?2:8):mo.test(t)?NaN:+t};var wo=Math.max,_o=Math.min;const Eo=function(t,e,r){var n,i,o,a,s,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,o=i;return n=i=void 0,l=e,a=t.apply(o,r)}function f(t){return l=t,s=setTimeout(g,e),u?p(t):a}function m(t){var r=t-c;return void 0===c||r>=e||r<0||d&&t-l>=o}function g(){var t=to();if(m(t))return v(t);s=setTimeout(g,function(t){var r=e-(t-c);return d?_o(r,o-(t-l)):r}(t))}function v(t){return s=void 0,h&&n?p(t):(n=i=void 0,a)}function y(){var t=to(),r=m(t);if(n=arguments,i=this,c=t,r){if(void 0===s)return f(c);if(d)return clearTimeout(s),s=setTimeout(g,e),p(c)}return void 0===s&&(s=setTimeout(g,e)),a}return e=bo(e)||0,Qi(r)&&(u=!!r.leading,o=(d="maxWait"in r)?wo(bo(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,n=c=i=s=void 0},y.flush=function(){return void 0===s?a:v(to())},y};var xo=Eo((t=>{t.brake||t.take()}),1e3,{leading:!0,trailing:!1});function Ao(t){!t.brake&&t.dirty&&xo(t)}class Co{constructor(t,e){this._brake=!1,this.dirty=!1,this.state_holder=t,this.timecapsule=e,this.timecapsule.snapshot_taker=this}dispose(){delete this.state_holder,delete this.timecapsule}touch(){this.dirty=!0,Ao(this)}take(){var t,e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(this.dirty||r)&&(null===(t=this.timecapsule)||void 0===t||t.snapshot(null===(e=this.state_holder)||void 0===e?void 0:e.state),this.dirty=!1)}get brake(){return this._brake}set brake(t){this._brake=!!t,Ao(this)}}var So="UPDATE_MODULES",Do="UPDATE_BASE_URL",Oo="UPDATE_CONTEXT_PATH",Po="SET-DOMAINS";function Io(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ko(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Io(Object(r),!0).forEach((function(e){To(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Io(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function To(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ro,Fo,No,Mo={baseUrl:location.origin,contextPath:(Ro=location.pathname,Fo=new RegExp("(/(".concat("domain|business",")/([^/]+))?(/?.*)")),No=Ro.match(Fo),{contextPath:(null==No?void 0:No[1])||"",prefix:(null==No?void 0:No[2])||"",domain:(null==No?void 0:No[3])||"",path:null==No?void 0:No[4]}).contextPath,domains:[]};const Bo=(Lo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(t){return null==Lo?void 0:Lo[t]});var Lo;const jo=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},Vo=Array.isArray;var zo=io?io.prototype:void 0,Uo=zo?zo.toString:void 0;const Ho=function t(e){if("string"==typeof e)return e;if(Vo(e))return jo(e,t)+"";if(fo(e))return Uo?Uo.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},Go=function(t){return null==t?"":Ho(t)};var qo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wo=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Yo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Xo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var $o="\\ud800-\\udfff",Qo="\\u2700-\\u27bf",Ko="a-z\\xdf-\\xf6\\xf8-\\xff",Zo="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ta="["+Jo+"]",ea="\\d+",ra="["+Qo+"]",na="["+Ko+"]",ia="[^"+$o+Jo+ea+Qo+Ko+Zo+"]",oa="(?:\\ud83c[\\udde6-\\uddff]){2}",aa="[\\ud800-\\udbff][\\udc00-\\udfff]",sa="["+Zo+"]",ca="(?:"+na+"|"+ia+")",la="(?:"+sa+"|"+ia+")",ua="(?:['’](?:d|ll|m|re|s|t|ve))?",da="(?:['’](?:D|LL|M|RE|S|T|VE))?",ha="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",pa="[\\ufe0e\\ufe0f]?",fa=pa+ha+"(?:\\u200d(?:"+["[^"+$o+"]",oa,aa].join("|")+")"+pa+ha+")*",ma="(?:"+[ra,oa,aa].join("|")+")"+fa,ga=RegExp([sa+"?"+na+"+"+ua+"(?="+[ta,sa,"$"].join("|")+")",la+"+"+da+"(?="+[ta,sa+ca,"$"].join("|")+")",sa+"?"+ca+"+"+ua,sa+"+"+da,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ea,ma].join("|"),"g");const va=function(t,e,r){return t=Go(t),void 0===(e=r?void 0:e)?function(t){return Xo.test(t)}(t)?function(t){return t.match(ga)||[]}(t):function(t){return t.match(Yo)||[]}(t):t.match(e)||[]};var ya=RegExp("['’]","g");const ba=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}(t,e,r)};var wa=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const _a=function(t){return wa.test(t)};var Ea="\\ud800-\\udfff",xa="["+Ea+"]",Aa="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ca="\\ud83c[\\udffb-\\udfff]",Sa="[^"+Ea+"]",Da="(?:\\ud83c[\\udde6-\\uddff]){2}",Oa="[\\ud800-\\udbff][\\udc00-\\udfff]",Pa="(?:"+Aa+"|"+Ca+")?",Ia="[\\ufe0e\\ufe0f]?",ka=Ia+Pa+"(?:\\u200d(?:"+[Sa,Da,Oa].join("|")+")"+Ia+Pa+")*",Ta="(?:"+[Sa+Aa+"?",Aa,Da,Oa,xa].join("|")+")",Ra=RegExp(Ca+"(?="+Ca+")|"+Ta+ka,"g");const Fa=function(t){return _a(t)?function(t){return t.match(Ra)||[]}(t):function(t){return t.split("")}(t)},Na=function(t){t=Go(t);var e=_a(t)?Fa(t):void 0,r=e?e[0]:t.charAt(0),n=e?ba(e,1).join(""):t.slice(1);return r.toUpperCase()+n},Ma=(Ba=function(t,e,r){return t+(r?" ":"")+Na(e)},function(t){return function(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}(va(function(t){return(t=Go(t))&&t.replace(qo,Bo).replace(Wo,"")}(t).replace(ya,"")),Ba,"")});var Ba,La=t=>{var{title:e,description:r,url:n,image:i,imageAlt:o}=t;e&&(document.title=e,ja("property","og:title",e)),r&&(ja("name","description",r),ja("property","og:description",r)),i&&ja("property","og:image",i),o&&ja("property","og:image:alt",o),ja("property","og:url",n=n||window.location.href)};function ja(t,e,r){var n=document.head.querySelector("meta[".concat(t,'="').concat(e,'"]'));n||((n=document.createElement("meta")).setAttribute(t,e),document.head.appendChild(n)),n.setAttribute("content",r||"")}var Va="UPDATE_PAGE",za="UPDATE_CONTEXT",Ua="UPDATE_ACTIVE_PAGE",Ha="REGISTER_NAVIGATION_CALLBACK",Ga="UNREGISTER_NAVIGATION_CALLBACK";function qa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qa(Object(r),!0).forEach((function(e){Ya(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ya(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Xa,$a=document.querySelector('meta[name="application-name"]');$a&&(Xa=$a.content);var Qa={page:"",resourceId:"",params:{},activePage:null,context:{},callbacks:[]};var Ka=function t(e,r,n){var i;if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ri(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ri(1));return n(t)(e,r)}if("function"!=typeof e)throw new Error(Ri(2));var o=e,a=r,s=[],c=s,l=!1;function u(){c===s&&(c=s.slice())}function d(){if(l)throw new Error(Ri(3));return a}function h(t){if("function"!=typeof t)throw new Error(Ri(4));if(l)throw new Error(Ri(5));var e=!0;return u(),c.push(t),function(){if(e){if(l)throw new Error(Ri(6));e=!1,u();var r=c.indexOf(t);c.splice(r,1),s=null}}}function p(t){if(!Bi(t))throw new Error(Ri(7));if(void 0===t.type)throw new Error(Ri(8));if(l)throw new Error(Ri(9));try{l=!0,a=o(a,t)}finally{l=!1}for(var e=s=c,r=0;r<e.length;r++)(0,e[r])();return t}function f(t){if("function"!=typeof t)throw new Error(Ri(10));o=t,p({type:Mi.REPLACE})}function m(){var t,e=h;return t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ri(11));function r(){t.next&&t.next(d())}return r(),{unsubscribe:e(r)}}},t[Fi]=function(){return this},t}return p({type:Mi.INIT}),(i={dispatch:p,subscribe:h,getState:d,replaceReducer:f})[Fi]=m,i}((t=>t),(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Li)((t=>(e,r)=>{var n={},i=t(e,r);return Object.assign({},i,{addReducers(t){var e=Object.assign({},n,t);this.replaceReducer(function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];"function"==typeof t[i]&&(r[i]=t[i])}var o,a=Object.keys(r);try{!function(t){Object.keys(t).forEach((function(e){var r=t[e];if(void 0===r(void 0,{type:Mi.INIT}))throw new Error(Ri(12));if(void 0===r(void 0,{type:Mi.PROBE_UNKNOWN_ACTION()}))throw new Error(Ri(13))}))}(r)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,i={},s=0;s<a.length;s++){var c=a[s],l=r[c],u=t[c],d=l(u,e);if(void 0===d)throw e&&e.type,new Error(Ri(14));i[c]=d,n=n||d!==u}return(n=n||a.length!==Object.keys(t).length)?i:t}}(n=e))}})}),function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return function(){var r=t.apply(void 0,arguments),n=function(){throw new Error(Ri(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return n=Li.apply(void 0,o)(r.dispatch),Ti(Ti({},r),{},{dispatch:n})}}}(zi)));Ka.addReducers({app:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mo,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case So:return ko(ko({},t),{},{modules:e.modules});case Do:return ko(ko({},t),{},{baseUrl:e.baseUrl});case Oo:return ko(ko({},t),{},{contextPath:e.contextPath});case Po:return ko(ko({},t),{},{domains:e.domains,domain:e.domain});default:return t}},route:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qa,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Va:return Wa(Wa({},e),{},{page:r.page,resourceId:r.resourceId,params:r.params});case za:var n=null===(t=r.context)||void 0===t?void 0:t.title,i="object"==typeof n?n.text:n;return La({title:Xa+(i?" - ".concat(Ma(i)):"")}),Wa(Wa({},e),{},{context:r.context||e.activePage&&e.activePage.context||{}});case Ua:return Wa(Wa({},e),{},{activePage:r.activePage});case Ha:return Wa(Wa({},e),{},{callbacks:[...e.callbacks,r.callback]});case Ga:return Wa(Wa({},e),{},{callbacks:e.callbacks.filter((t=>t!==r.callback))});default:return e}}});const Za=function(t,e){return t===e||t!=t&&e!=e},Ja=function(t,e){for(var r=t.length;r--;)if(Za(t[r][0],e))return r;return-1};var ts=Array.prototype.splice;function es(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}es.prototype.clear=function(){this.__data__=[],this.size=0},es.prototype.delete=function(t){var e=this.__data__,r=Ja(e,t);return!(r<0||(r==e.length-1?e.pop():ts.call(e,r,1),--this.size,0))},es.prototype.get=function(t){var e=this.__data__,r=Ja(e,t);return r<0?void 0:e[r][1]},es.prototype.has=function(t){return Ja(this.__data__,t)>-1},es.prototype.set=function(t,e){var r=this.__data__,n=Ja(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};const rs=es,ns=function(t){if(!Qi(t))return!1;var e=ho(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},is=Ji["__core-js_shared__"];var os,as=(os=/[^.]+$/.exec(is&&is.keys&&is.keys.IE_PROTO||""))?"Symbol(src)_1."+os:"";var ss=Function.prototype.toString;const cs=function(t){if(null!=t){try{return ss.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var ls=/^\[object .+?Constructor\]$/,us=Function.prototype,ds=Object.prototype,hs=us.toString,ps=ds.hasOwnProperty,fs=RegExp("^"+hs.call(ps).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ms=function(t){return!(!Qi(t)||(e=t,as&&as in e))&&(ns(t)?fs:ls).test(cs(t));var e},gs=function(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ms(r)?r:void 0},vs=gs(Ji,"Map"),ys=gs(Object,"create");var bs=Object.prototype.hasOwnProperty;var ws=Object.prototype.hasOwnProperty;function _s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}_s.prototype.clear=function(){this.__data__=ys?ys(null):{},this.size=0},_s.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_s.prototype.get=function(t){var e=this.__data__;if(ys){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return bs.call(e,t)?e[t]:void 0},_s.prototype.has=function(t){var e=this.__data__;return ys?void 0!==e[t]:ws.call(e,t)},_s.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ys&&void 0===e?"__lodash_hash_undefined__":e,this};const Es=_s,xs=function(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map};function As(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}As.prototype.clear=function(){this.size=0,this.__data__={hash:new Es,map:new(vs||rs),string:new Es}},As.prototype.delete=function(t){var e=xs(this,t).delete(t);return this.size-=e?1:0,e},As.prototype.get=function(t){return xs(this,t).get(t)},As.prototype.has=function(t){return xs(this,t).has(t)},As.prototype.set=function(t,e){var r=xs(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};const Cs=As;function Ss(t){var e=this.__data__=new rs(t);this.size=e.size}Ss.prototype.clear=function(){this.__data__=new rs,this.size=0},Ss.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ss.prototype.get=function(t){return this.__data__.get(t)},Ss.prototype.has=function(t){return this.__data__.has(t)},Ss.prototype.set=function(t,e){var r=this.__data__;if(r instanceof rs){var n=r.__data__;if(!vs||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Cs(n)}return r.set(t,e),this.size=r.size,this};const Ds=Ss;function Os(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Cs;++e<r;)this.add(t[e])}Os.prototype.add=Os.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Os.prototype.has=function(t){return this.__data__.has(t)};const Ps=Os,Is=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1},ks=function(t,e){return t.has(e)},Ts=function(t,e,r,n,i,o){var a=1&r,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(t),u=o.get(e);if(l&&u)return l==e&&u==t;var d=-1,h=!0,p=2&r?new Ps:void 0;for(o.set(t,e),o.set(e,t);++d<s;){var f=t[d],m=e[d];if(n)var g=a?n(m,f,d,e,t,o):n(f,m,d,t,e,o);if(void 0!==g){if(g)continue;h=!1;break}if(p){if(!Is(e,(function(t,e){if(!ks(p,e)&&(f===t||i(f,t,r,n,o)))return p.push(e)}))){h=!1;break}}else if(f!==m&&!i(f,m,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h},Rs=Ji.Uint8Array,Fs=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},Ns=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var Ms=io?io.prototype:void 0,Bs=Ms?Ms.valueOf:void 0;const Ls=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},js=function(t,e,r){var n=e(t);return Vo(t)?n:Ls(n,r(t))},Vs=function(){return[]};var zs=Object.prototype.propertyIsEnumerable,Us=Object.getOwnPropertySymbols;const Hs=Us?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}(Us(t),(function(e){return zs.call(t,e)})))}:Vs,Gs=function(t){return po(t)&&"[object Arguments]"==ho(t)};var qs=Object.prototype,Ws=qs.hasOwnProperty,Ys=qs.propertyIsEnumerable;const Xs=Gs(function(){return arguments}())?Gs:function(t){return po(t)&&Ws.call(t,"callee")&&!Ys.call(t,"callee")};var $s="object"==typeof exports&&exports&&!exports.nodeType&&exports,Qs=$s&&"object"==typeof module&&module&&!module.nodeType&&module,Ks=Qs&&Qs.exports===$s?Ji.Buffer:void 0;const Zs=(Ks?Ks.isBuffer:void 0)||function(){return!1};var Js=/^(?:0|[1-9]\d*)$/;const tc=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Js.test(t))&&t>-1&&t%1==0&&t<e},ec=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var rc={};rc["[object Float32Array]"]=rc["[object Float64Array]"]=rc["[object Int8Array]"]=rc["[object Int16Array]"]=rc["[object Int32Array]"]=rc["[object Uint8Array]"]=rc["[object Uint8ClampedArray]"]=rc["[object Uint16Array]"]=rc["[object Uint32Array]"]=!0,rc["[object Arguments]"]=rc["[object Array]"]=rc["[object ArrayBuffer]"]=rc["[object Boolean]"]=rc["[object DataView]"]=rc["[object Date]"]=rc["[object Error]"]=rc["[object Function]"]=rc["[object Map]"]=rc["[object Number]"]=rc["[object Object]"]=rc["[object RegExp]"]=rc["[object Set]"]=rc["[object String]"]=rc["[object WeakMap]"]=!1;var nc="object"==typeof exports&&exports&&!exports.nodeType&&exports,ic=nc&&"object"==typeof module&&module&&!module.nodeType&&module,oc=ic&&ic.exports===nc&&Ki.process,ac=function(){try{return ic&&ic.require&&ic.require("util").types||oc&&oc.binding&&oc.binding("util")}catch(t){}}(),sc=ac&&ac.isTypedArray;const cc=sc?(lc=sc,function(t){return lc(t)}):function(t){return po(t)&&ec(t.length)&&!!rc[ho(t)]};var lc,uc=Object.prototype.hasOwnProperty;const dc=function(t,e){var r=Vo(t),n=!r&&Xs(t),i=!r&&!n&&Zs(t),o=!r&&!n&&!i&&cc(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=s.length;for(var l in t)!e&&!uc.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||tc(l,c))||s.push(l);return s};var hc=Object.prototype;const pc=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||hc)},fc=function(t,e){return function(r){return t(e(r))}},mc=fc(Object.keys,Object);var gc=Object.prototype.hasOwnProperty;const vc=function(t){if(!pc(t))return mc(t);var e=[];for(var r in Object(t))gc.call(t,r)&&"constructor"!=r&&e.push(r);return e},yc=function(t){return null!=t&&ec(t.length)&&!ns(t)},bc=function(t){return yc(t)?dc(t):vc(t)},wc=function(t){return js(t,bc,Hs)};var _c=Object.prototype.hasOwnProperty;const Ec=gs(Ji,"DataView"),xc=gs(Ji,"Promise"),Ac=gs(Ji,"Set"),Cc=gs(Ji,"WeakMap");var Sc="[object Map]",Dc="[object Promise]",Oc="[object Set]",Pc="[object WeakMap]",Ic="[object DataView]",kc=cs(Ec),Tc=cs(vs),Rc=cs(xc),Fc=cs(Ac),Nc=cs(Cc),Mc=ho;(Ec&&Mc(new Ec(new ArrayBuffer(1)))!=Ic||vs&&Mc(new vs)!=Sc||xc&&Mc(xc.resolve())!=Dc||Ac&&Mc(new Ac)!=Oc||Cc&&Mc(new Cc)!=Pc)&&(Mc=function(t){var e=ho(t),r="[object Object]"==e?t.constructor:void 0,n=r?cs(r):"";if(n)switch(n){case kc:return Ic;case Tc:return Sc;case Rc:return Dc;case Fc:return Oc;case Nc:return Pc}return e});const Bc=Mc;var Lc="[object Arguments]",jc="[object Array]",Vc="[object Object]",zc=Object.prototype.hasOwnProperty;const Uc=function(t,e,r,n,i,o){var a=Vo(t),s=Vo(e),c=a?jc:Bc(t),l=s?jc:Bc(e),u=(c=c==Lc?Vc:c)==Vc,d=(l=l==Lc?Vc:l)==Vc,h=c==l;if(h&&Zs(t)){if(!Zs(e))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Ds),a||cc(t)?Ts(t,e,r,n,i,o):function(t,e,r,n,i,o,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Rs(t),new Rs(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Za(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Fs;case"[object Set]":var c=1&n;if(s||(s=Ns),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var u=Ts(s(t),s(e),n,i,o,a);return a.delete(t),u;case"[object Symbol]":if(Bs)return Bs.call(t)==Bs.call(e)}return!1}(t,e,c,r,n,i,o);if(!(1&r)){var p=u&&zc.call(t,"__wrapped__"),f=d&&zc.call(e,"__wrapped__");if(p||f){var m=p?t.value():t,g=f?e.value():e;return o||(o=new Ds),i(m,g,r,n,o)}}return!!h&&(o||(o=new Ds),function(t,e,r,n,i,o){var a=1&r,s=wc(t),c=s.length;if(c!=wc(e).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in e:_c.call(e,u)))return!1}var d=o.get(t),h=o.get(e);if(d&&h)return d==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var f=a;++l<c;){var m=t[u=s[l]],g=e[u];if(n)var v=a?n(g,m,u,e,t,o):n(m,g,u,t,e,o);if(!(void 0===v?m===g||i(m,g,r,n,o):v)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,r,n,i,o))},Hc=function t(e,r,n,i,o){return e===r||(null==e||null==r||!po(e)&&!po(r)?e!=e&&r!=r:Uc(e,r,n,i,t,o))},Gc=function(t,e){return Hc(t,e)};function qc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qc(Object(r),!0).forEach((function(e){Yc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yc(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xc(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function $c(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Xc(o,n,i,a,s,"next",t)}function s(t){Xc(o,n,i,a,s,"throw",t)}a(void 0)}))}}class Qc extends At{constructor(){super(...arguments),this.active=!1}shouldUpdate(t){var e="true"==String(this.active),{active:r=!1}=this._oldLifecycleInfo$||{};return(e||r)&&this.pageUpdate({active:e}),e}pageUpdate(){var t=arguments,e=this;return $c((function*(){var r=t.length>0&&void 0!==t[0]?t[0]:{},n=t.length>1&&void 0!==t[1]&&t[1],i=e._oldLifecycleInfo$||{},o=Wc(Wc(Wc({},i),e.lifecycle),{},{contextPath:e.contextPath},r);"initialized"in r||!o.active||i.initialized||(o.initialized=!0),n&&(o.updated=Date.now());var a=function(t,e){var r=!1,n={};return Object.getOwnPropertyNames(t).forEach((function(i){var o=e[i],a=t[i];Gc(o,a)||(n[i]=a,r=!0)})),r&&n}(o,i);a&&(e._oldLifecycleInfo$=o,i.initialized&&a.contextPath?yield e.pageReset():(a.initialized&&(yield e.pageInitialized(o)),"initialized"in a?a.initialized?requestAnimationFrame($c((function*(){yield e.pageUpdated(a,o,i),o.active&&e.updateContext()}))):yield e.pageDisposed(o):(yield e.pageUpdated(a,o,i),o.active&&e.updateContext())))}))()}pageReset(){var t=this;return $c((function*(){var{initialized:e}=t._oldLifecycleInfo$||{};e&&(yield t.pageDispose(),yield t.pageUpdate({},!0))}))()}pageDispose(){var t=this;return $c((function*(){yield t.pageUpdate({initialized:!1})}))()}pageInitialized(t){}pageUpdated(t,e,r){}pageDisposed(t){}updateContext(t){Ka.dispatch({type:za,context:t?Wc(Wc({},this.context),t):this.context})}get context(){return{}}}var Kc;(0,t.gn)([a({type:Boolean})],Qc.prototype,"active",void 0),(0,t.gn)([a({type:Object})],Qc.prototype,"lifecycle",void 0),(0,t.gn)([a({type:String,attribute:"context-path"})],Qc.prototype,"contextPath",void 0);var Zc,Jc,tl,el,rl,nl,il,ol=S(Kc||(Kc=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n .headroom {\n will-change: transform;\n transition: transform 200ms linear;\n }\n\n .headroom--pinned {\n transform: translateY(0%);\n }\n\n .headroom--unpinned {\n transform: translateY(-100%);\n }\n"]))),al=S(Zc||(Zc=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n ::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n }\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n ::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar-thumb-color, rgba(0, 0, 0, 0.2));\n }\n ::-webkit-scrollbar-thumb:hover {\n background-color: var(--scrollbar-thumb-hover-color, #aa866a);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n }\n :host::-webkit-scrollbar-track {\n background-color: transparent;\n }\n :host::-webkit-scrollbar-thumb {\n background-color: var(--scrollbar-thumb-color, rgba(0, 0, 0, 0.2));\n }\n :host::-webkit-scrollbar-thumb:hover {\n background-color: var(--scrollbar-thumb-hover-color, #aa866a);\n }\n"]))),sl=S(Jc||(Jc=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n #spinner {\n display: none;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n width: 70px;\n height: 70px;\n margin: 0 auto;\n background: var(--oops-spinner-image) 0 0 no-repeat;\n background-size: 700%;\n animation: spinner steps(6) 2s infinite both;\n }\n\n #spinner[show] {\n display: block;\n }\n\n @keyframes spinner {\n 0% {\n background-position: 0%;\n }\n 100% {\n background-position: 100%;\n }\n }\n"]))),cl=S(tl||(tl=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n /* for tooltip */\n [data-tooltip]:after {\n position: absolute;\n content: attr(data-tooltip);\n color: #fff;\n z-index: 1;\n pointer-events: none;\n display: block;\n\n padding: var(--tooltip-padding);\n background-color: var(--tooltip-background-color, black);\n font: var(--tooltip-font);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n\n left: var(--tooltip-left-positon-left);\n top: var(--tooltip-left-position-top);\n right: var(--tooltip-left-position-right);\n bottom: var(--tooltip-left-position-bottom);\n\n max-width: var(--tooltip-max-width, 300px);\n max-height: var(--tooltip-max-height, 300px);\n width: fit-content;\n word-wrap: break-word;\n white-space: pre-wrap;\n overflow: hidden;\n }\n"])));function ll(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}S(el||(el=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n :host {\n display: flex;\n\n width: 100%;\n }\n\n ox-grist {\n flex: 1;\n overflow-y: auto;\n }\n\n [slot='headroom'] {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: var(--padding-default) var(--padding-wide);\n border-top: 2px solid rgba(0, 0, 0, 0.2);\n background-color: var(--theme-white-color);\n box-shadow: var(--box-shadow);\n\n --mdc-icon-size: 24px;\n }\n #sorters mwc-icon,\n #modes mwc-icon {\n --mdc-icon-size: 18px;\n }\n #sorters {\n margin-left: auto;\n margin-right: var(--margin-default);\n padding-left: var(--padding-narrow);\n border-bottom: var(--border-dark-color);\n position: relative;\n color: var(--secondary-color);\n font-size: var(--fontsize-default);\n user-select: none;\n }\n\n #sorters > * {\n padding: var(--padding-narrow);\n vertical-align: middle;\n }\n\n #modes > * {\n padding: var(--padding-narrow);\n opacity: 0.5;\n color: var(--primary-text-color);\n cursor: pointer;\n }\n\n #modes > mwc-icon[active] {\n border-radius: 9px;\n background-color: rgba(var(--primary-color-rgb), 0.05);\n opacity: 1;\n color: var(--secondary-text-color);\n cursor: default;\n }\n\n #modes > mwc-icon:hover {\n opacity: 1;\n color: var(--secondary-text-color);\n }\n\n #add {\n width: 50px;\n text-align: right;\n }\n\n #add button {\n background-color: var(--status-success-color);\n border: 0;\n border-radius: 50%;\n padding: 5px;\n width: 36px;\n height: 36px;\n cursor: pointer;\n }\n\n #add button:hover {\n background-color: var(--focus-background-color);\n box-shadow: var(--box-shadow);\n }\n\n #add button mwc-icon {\n font-size: 2em;\n color: var(--theme-white-color);\n }\n\n #filters {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n #filters > * {\n margin-right: var(--margin-default);\n }\n\n @media only screen and (max-width: 460px) {\n #filters {\n flex-direction: column;\n }\n\n #modes {\n display: none;\n }\n }\n"]))),S(rl||(rl=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n .button-container {\n display: flex;\n margin-left: auto;\n padding: var(--padding-default);\n }\n\n .button-container mwc-button,\n .button-container button {\n margin-left: var(--margin-default);\n }\n\n mwc-button[danger] {\n --mdc-theme-primary: var(--mdc-danger-button-primary-color);\n --mdc-button-outline-color: var(--mdc-danger-button-outline-color);\n }\n"])));var ul,dl,hl,pl,fl,ml,gl=class extends At{constructor(){super(...arguments),this._onfocusout=function(t){var e=t.relatedTarget;this.contains(e)||!window.POPUP_DEBUG&&this.close()}.bind(this),this._onkeydown=function(t){switch(t.stopPropagation(),t.key){case"Esc":case"Escape":this.close()}}.bind(this),this._onkeyup=function(t){t.stopPropagation()}.bind(this),this._onmouseup=function(t){t.stopPropagation()}.bind(this),this._onmousedown=function(t){t.stopPropagation()}.bind(this),this._oncontext=function(t){t.stopPropagation()}.bind(this),this._onclick=function(t){t.stopPropagation()}.bind(this),this._onclose=function(t){this.close()}.bind(this),this._oncollapse=function(t){t.stopPropagation(),this.close()}.bind(this),this._onwindowblur=function(t){!window.POPUP_DEBUG&&this.close()}.bind(this)}render(){return nt(nl||(nl=ll([" <slot> </slot> "])))}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this._onfocusout),this.addEventListener("keydown",this._onkeydown),this.addEventListener("keyup",this._onkeyup),this.addEventListener("click",this._onclick),this.addEventListener("mouseup",this._onmouseup),this.addEventListener("mousedown",this._onmousedown),this.addEventListener("context",this._oncontext),this.addEventListener("ox-close",this._onclose),this.addEventListener("ox-collapse",this._oncollapse),this.setAttribute("tabindex","0"),this.guaranteeFocus()}static open(t){var{template:e,top:r,left:n,right:i,bottom:o,width:a,height:s,parent:c}=t,l=c||document.body,u=document.createElement("ox-popup");return xt(e,u),u._parent=l,l.appendChild(u),u.open({top:r,left:n,right:i,bottom:o,width:a,height:s}),u}open(t){var{left:e,top:r,right:n,bottom:i,width:o,height:a,silent:s=!1}=t;o&&(this.style.maxWidth=o,this.style.overflowX="auto"),a&&(this.style.maxHeight=a,this.style.overflowY="auto"),void 0===e&&void 0===r&&void 0===n&&void 0===i?(this.style.left="50%",this.style.top="50%",this.style.transform="translateX(-50%) translateY(-50%)"):(void 0!==e&&(this.style.left="".concat(e,"px")),void 0!==r&&(this.style.top="".concat(r,"px")),void 0!==n&&(this.style.right="".concat(n,"px")),void 0!==i&&(this.style.bottom="".concat(i,"px"))),this.setAttribute("active",""),!s&&this.guaranteeFocus(),window.addEventListener("blur",this._onwindowblur)}guaranteeFocus(t){var e=(t||this).querySelector(':scope > button, :scope > [href], :scope > input, :scope > select, :scope > textarea, :scope > [tabindex]:not([tabindex="-1"])');e?e.focus():this.focus()}close(){this.removeAttribute("active"),window.removeEventListener("blur",this._onwindowblur),this._parent&&(this.removeEventListener("focusout",this._onfocusout),this.removeEventListener("keydown",this._onkeydown),this.removeEventListener("keyup",this._onkeyup),this.removeEventListener("click",this._onclick),this.removeEventListener("ox-close",this._onclose),this.removeEventListener("ox-collapse",this._oncollapse),this.removeEventListener("mouseup",this._onmouseup),this.removeEventListener("mousedown",this._onmousedown),this.removeEventListener("context",this._oncontext),this._parent.removeChild(this),delete this._parent)}};function vl(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function yl(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vl(o,n,i,a,s,"next",t)}function s(t){vl(o,n,i,a,s,"throw",t)}a(void 0)}))}}function bl(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}gl.styles=[al,S(il||(il=ll(["\n :host {\n position: absolute;\n display: none;\n background-color: var(--theme-white-color, #fff);\n z-index: 100;\n padding: 0;\n box-shadow: 2px 3px 10px 5px rgba(0, 0, 0, 0.15);\n box-sizing: border-box;\n min-width: fit-content;\n line-height: initial;\n text-align: initial;\n }\n\n :host([active]) {\n display: block;\n }\n\n :host(*:focus) {\n outline: none;\n }\n "])))],(0,t.gn)([u()],gl.prototype,"_parent",void 0),gl=(0,t.gn)([e("ox-popup")],gl);var wl,_l,El=class extends gl{constructor(){super(...arguments),this.multiple=!1,this.nothingToSelect=!1,this._onkeydown=function(t){switch(t.stopPropagation(),t.key){case"Esc":case"Escape":this.close();break;case"Left":case"ArrowLeft":case"Up":case"ArrowUp":this.activeIndex--;break;case"Right":case"ArrowRight":case"Down":case"ArrowDown":this.activeIndex++;break;case"Enter":case" ":case"Spacebar":this.setActive(this.activeIndex,!0),this.select()}}.bind(this),this._onfocusout=function(t){var e=t.relatedTarget;this.contains(e)||!window.POPUP_DEBUG&&this.close()}.bind(this),this._onclick=function(t){var e;t.stopPropagation();var r=null===(e=t.target)||void 0===e?void 0:e.closest("[option]");r&&(this.setActive(r,!0),this.select())}.bind(this)}render(){return nt(ul||(ul=bl(['\n <slot name="header"> </slot>\n\n ',"\n\n <slot\n @change=","\n >\n </slot>\n ","\n "])),this.withSearch?nt(dl||(dl=bl(['\n <label search for="search" @input=','>\n <mwc-icon search-icon>search</mwc-icon>\n <input\n id="search"\n type="text"\n autocomplete="off"\n @keydown=',"\n @change=","\n />\n <mwc-icon\n @click=","\n delete-icon\n >delete</mwc-icon\n >\n </label>\n "])),(t=>this._oninputsearch(t)),(t=>this._onkeydownsearch(t)),(t=>this._onchangesearch(t)),(()=>{this.searchInput.value="",this.searchKeyword=""})):nt(hl||(hl=bl([""]))),(t=>{t.stopPropagation()}),this.nothingToSelect?nt(pl||(pl=bl(["<label nothing>nothing to select</label>"]))):nt(fl||(fl=bl([""]))))}_oninputsearch(t){t.stopPropagation(),t.preventDefault(),this.searchKeyword=t.target.value}_onchangesearch(t){this.searchKeyword=t.target.value}_onkeydownsearch(t){["Esc","Escape","Up","ArrowUp","Down","ArrowDown"].includes(t.key)||t.stopPropagation()}updated(t){if(t.has("activeIndex")&&void 0!==this.activeIndex&&this.setActive(this.activeIndex),t.has("searchKeyword")&&(this.attrSelected,this.querySelectorAll("[option]").forEach((t=>{var e;!this.searchKeyword||(null===(e=t.textContent)||void 0===e?void 0:e.match(new RegExp(this.searchKeyword,"i")))?t.removeAttribute("hidden"):(t.removeAttribute("selected"),t.setAttribute("hidden",""))})),this.nothingToSelect=0===this.querySelectorAll("[option]:not([hidden])").length),t.has("value")){var e=Array.from(this.querySelectorAll(":scope > [option]")),r=this.value;r instanceof Array||(r=[r]),e.forEach((t=>{(null==r?void 0:r.includes(t.getAttribute("value")||""))?t.setAttribute(this.attrSelected||"selected",""):t.removeAttribute(this.attrSelected||"selected")}))}}getSelectedLabels(){var t=Array.from(this.querySelectorAll(":scope > [option]")).filter((t=>t.hasAttribute("value")&&t.hasAttribute(this.attrSelected||"selected"))).map((t=>t.textContent||""));return this.multiple?t:t[0]}select(){var t=this;return yl((function*(){yield t.updateComplete;var e=Array.from(t.querySelectorAll(":scope > [option]")),r=e.filter((e=>e.hasAttribute("value")&&e.hasAttribute(t.attrSelected||"selected"))).map((t=>t.getAttribute("value")));t.dispatchEvent(new CustomEvent("select",{bubbles:!0,composed:!0,detail:t.multiple?r:r[0]})),e[t.activeIndex].hasAttribute("alive-on-select")||t.hasAttribute("multiple")||t.close()}))()}setActive(t,e){var r=this,n=Array.from(this.querySelectorAll("[option]:not([hidden])"));if(this.withSearch&&n.push(this.renderRoot.querySelector("[search]")),t instanceof Element){var i=n.findIndex((e=>e===t));this.setActive(-1===i?0:i,e)}else{var o=this.attrSelected||"selected";n.forEach(function(){var i=yl((function*(i,a){"number"==typeof t&&a===(t+n.length)%n.length?(i.setAttribute("active",""),e&&!r.attrSelected&&(r.multiple?i.toggleAttribute("selected"):i.setAttribute("selected","")),function(t){var e=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(e)e.focus();else{var r=t.closest('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');null==r||r.focus()}}(i),r.activeIndex=a):(i.removeAttribute("active"),!r.multiple&&e&&i.removeAttribute(o))}));return function(t,e){return i.apply(this,arguments)}}())}}open(t){super.open(t),void 0===this.activeIndex?this.activeIndex=0:this.setActive(this.activeIndex)}close(){this.hasAttribute("active")&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})),super.close()}static open(t){var{template:e,top:r,left:n,right:i,bottom:o,parent:a}=t,s=a||document.body,c=document.createElement("ox-popup-list");return xt(e,c),c._parent=s,s.appendChild(c),c.open({top:r,left:n,right:i,bottom:o}),c}};function xl(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Al(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}El.styles=[...gl.styles,S(ml||(ml=bl(["\n :host {\n display: none;\n flex-direction: column;\n align-items: stretch;\n background-color: var(--theme-white-color, #fff);\n z-index: 100;\n box-shadow: 2px 3px 10px 5px rgba(0, 0, 0, 0.15);\n padding: 4px 0;\n color: var(--theme-primary-text-color, #3c3938);\n font: normal 14px 'Roboto', sans-serif;\n }\n\n :host([active]) {\n display: flex;\n }\n\n :host(*:focus) {\n outline: none;\n }\n\n :host([nowrap]) ::slotted([option]) {\n white-space: nowrap;\n }\n\n ::slotted([option]) {\n border-left: 3px solid transparent;\n }\n\n ::slotted(*) {\n padding: 5px 10px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.05);\n cursor: pointer;\n outline: none;\n }\n\n ::slotted(*:focus) {\n outline: none;\n }\n\n ::slotted([option][active]),\n ::slotted([option]:hover) {\n background-color: #f6f6f6;\n }\n\n ::slotted([option][selected]) {\n border-left: 3px solid var(--primary-color, #38a25b);\n font-weight: bold;\n }\n\n ::slotted([separator]) {\n height: 1px;\n width: 100%;\n padding: 0;\n background-color: rgba(0, 0, 0, 0.15);\n }\n ::slotted([option] > input) {\n border: var(--border-dark-color, 1px solid rgba(0, 0, 0, 0.3));\n }\n\n ::slotted([hidden]) {\n display: none;\n }\n\n [search] {\n flex: 1;\n\n display: flex;\n position: relative;\n align-items: center;\n padding: 5px 10px;\n\n --mdc-icon-size: 20px;\n }\n\n [search] [type='text'] {\n flex: 1;\n background-color: transparent;\n border: 0;\n padding: 0 0 0 25px;\n outline: none;\n width: 50px;\n }\n\n [search] mwc-icon {\n color: var(--secondary-color);\n }\n\n [search] mwc-icon[search-icon] {\n position: absolute;\n }\n\n [search] mwc-icon[delete-icon] {\n opacity: 0.5;\n --mdc-icon-size: 14px;\n }\n\n [nothing] {\n opacity: 0.5;\n text-align: center;\n }\n "])))],(0,t.gn)([a({type:Boolean})],El.prototype,"multiple",void 0),(0,t.gn)([a({type:String,attribute:"attr-selected"})],El.prototype,"attrSelected",void 0),(0,t.gn)([a({type:Boolean,attribute:"with-search"})],El.prototype,"withSearch",void 0),(0,t.gn)([a({type:String})],El.prototype,"value",void 0),(0,t.gn)([u()],El.prototype,"activeIndex",void 0),(0,t.gn)([u()],El.prototype,"searchKeyword",void 0),(0,t.gn)([u()],El.prototype,"nothingToSelect",void 0),(0,t.gn)([v("[search] input")],El.prototype,"searchInput",void 0),El=(0,t.gn)([e("ox-popup-list")],El);var Cl,Sl,Dl,Ol,Pl=class extends gl{constructor(){super(...arguments),this.activeIndex=0,this._onkeydown=function(t){var e;switch(t.stopPropagation(),t.key){case"Esc":case"Escape":case"Left":case"ArrowLeft":this.close();break;case"Up":case"ArrowUp":this.activeIndex--;break;case"Right":case"ArrowRight":case"Down":case"ArrowDown":this.activeIndex++;break;case"Enter":t.stopPropagation();var r=null===(e=t.target)||void 0===e?void 0:e.closest("[menu], ox-popup-menuitem");r&&this.select(r)}}.bind(this),this._onfocusout=function(t){var e=t.target,r=t.relatedTarget,n=e.closest("ox-popup-menu");r||n===this?this.contains(r)||!window.POPUP_DEBUG&&this.close():(t.stopPropagation(),this.setActive(this.activeIndex))}.bind(this),this._onclick=function(t){var e;t.stopPropagation();var r=null===(e=t.target)||void 0===e?void 0:e.closest("[menu], ox-popup-menuitem");r&&(this.setActive(r),this.select(r))}.bind(this)}render(){return nt(wl||(wl=Al([" <slot> </slot> "])))}updated(t){t.has("activeIndex")&&this.setActive(this.activeIndex)}select(t){t.dispatchEvent(new CustomEvent("select")),t.hasAttribute("alive-on-select")||this.dispatchEvent(new CustomEvent("ox-close",{bubbles:!0,composed:!0,detail:this}))}setActive(t){var e=this,r=Array.from(this.querySelectorAll(":scope > ox-popup-menuitem, :scope > [menu]"));r.map(function(){var n=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){xl(o,n,i,a,s,"next",t)}function s(t){xl(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(n,i){var o;"number"==typeof t&&i===(t+r.length)%r.length?(n.setAttribute("active",""),null==(o=n.closest('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))||o.focus(),e.activeIndex=i):t===n?(e.activeIndex===i&&(n.removeAttribute("active"),yield e.updateComplete,n.setAttribute("active","")),e.activeIndex=i):n.removeAttribute("active")}));return function(t,e){return n.apply(this,arguments)}}())}static open(t){var{template:e,top:r,left:n,right:i,bottom:o,parent:a}=t,s=a||document.body,c=document.createElement("ox-popup-menu");return xt(e,c),c.setAttribute("active",""),c._parent=s,s.appendChild(c),c.open({top:r,left:n,right:i,bottom:o}),c}};function Il(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Pl.styles=[...gl.styles,S(_l||(_l=Al(["\n :host {\n display: none;\n flex-direction: column;\n align-items: stretch;\n background-color: var(--theme-white-color, #fff);\n z-index: 100;\n box-shadow: 2px 3px 10px 5px rgba(0, 0, 0, 0.15);\n padding: 4px 0;\n\n color: var(--theme-primary-text-color, #3c3938);\n font: normal 14px 'Roboto', sans-serif;\n }\n\n :host([active]) {\n display: flex;\n }\n\n :host(*:focus) {\n outline: none;\n }\n\n ::slotted(*) {\n padding: 5px 10px;\n cursor: pointer;\n }\n\n ::slotted(*:focus) {\n outline: none;\n }\n\n ::slotted([menu][active]),\n ::slotted([menu]:hover) {\n background-color: #f6f6f6;\n }\n\n ::slotted([menu]),\n ::slotted(ox-popup-menuitem) {\n border-left: 3px solid transparent;\n }\n\n ::slotted(ox-popup-menuitem[active]) {\n border-left: 3px solid var(--primary-color, #38a25b);\n font-weight: bold;\n }\n\n ::slotted([separator]) {\n height: 1px;\n width: 100%;\n padding: 0;\n background-color: rgba(0, 0, 0, 0.15);\n }\n ::slotted([menu] > input) {\n border: var(--border-dark-color, 1px solid rgba(0, 0, 0, 0.3));\n }\n "])))],(0,t.gn)([a({type:Number})],Pl.prototype,"activeIndex",void 0),Pl=(0,t.gn)([e("ox-popup-menu")],Pl);var kl,Tl,Rl,Fl,Nl,Ml,Bl,Ll,jl,Vl,zl,Ul=class extends At{constructor(){super(...arguments),this.active=!1,this._onclick=function(t){if(this._submenu){t.stopPropagation();var e=this.closest("ox-popup-menu");e&&e.setActive(this),this.dispatchEvent(new CustomEvent("select")),requestAnimationFrame((()=>{this.expand(!1)}))}}.bind(this),this._onkeydown=function(t){switch(t.key){case"Right":case"ArrowRight":t.stopPropagation(),this.expand(!1);break;case"Left":case"ArrowLeft":t.stopPropagation(),this.collapseSelf();break;case"Enter":this._submenu&&(t.stopPropagation(),this.expand(!1))}}.bind(this),this._onslotchange=function(t){this._submenu=this.querySelector("ox-popup-menu")}.bind(this)}render(){return nt(Cl||(Cl=Il(['\n <div icon>\n <slot name="icon"> </slot>\n </div>\n <div label>',"</div>\n\n ","\n\n <slot @slotchange=","> </slot>\n "])),this.label,this._submenu?nt(Sl||(Sl=Il(["<mwc-icon>chevron_right</mwc-icon>"]))):nt(Dl||(Dl=Il([""]))),this._onslotchange)}firstUpdated(){this.setAttribute("tabindex","0"),this.addEventListener("keydown",this._onkeydown),this.addEventListener("click",this._onclick)}updated(t){t.has("active")&&this.updateActive()}updateActive(){this.active?this.expand(!0):this.collapse()}expand(t){if(this._submenu){var e=this.clientWidth;this._submenu.open({top:0,left:e,silent:t})}}collapse(){var t;null===(t=this._submenu)||void 0===t||t.close()}collapseSelf(){this.dispatchEvent(new CustomEvent("ox-collapse",{bubbles:!0,composed:!0,detail:this}))}close(){this.dispatchEvent(new CustomEvent("ox-close",{bubbles:!0,composed:!0,detail:this}))}};function Hl(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Gl(t){var e;if(0==t.button)return{x:t.clientX,y:t.clientY};if(1==(null===(e=t.touches)||void 0===e?void 0:e.length)){var r=t.touches[0];return{x:r.clientX,y:r.clientY}}}Ul.styles=[S(Ol||(Ol=Il(["\n :host {\n display: flex;\n flex-direction: row;\n position: relative;\n align-items: center;\n }\n\n [icon] {\n width: 20px;\n display: flex;\n flex-direction: row;\n padding: 0;\n margin: 0 4px 0 0;\n align-items: center;\n justify-content: center;\n }\n\n [icon] > * {\n flex: 1;\n }\n\n [label] {\n flex: 1;\n text-transform: capitalize;\n }\n\n ::slotted(*[slot='icon']) {\n color: var(--secondary-color, #476172);\n font-size: 18px;\n }\n\n mwc-icon {\n display: block;\n width: 24px;\n text-align: right;\n font-size: 18px;\n color: var(--theme-primary-text-color, #3c3938);\n opacity: 0.7;\n }\n "])))],(0,t.gn)([a({type:Boolean})],Ul.prototype,"active",void 0),(0,t.gn)([a({type:String})],Ul.prototype,"label",void 0),(0,t.gn)([u()],Ul.prototype,"_submenu",void 0),Ul=(0,t.gn)([e("ox-popup-menuitem")],Ul);var ql=class extends At{constructor(){super(...arguments),this.backdrop=!1,this.title="",this.closable=!1,this.historical=!1,this.movable=!1,this.dragEndHandler=this.onDragEnd.bind(this),this.dragMoveHandler=this.onDragMove.bind(this)}render(){var t="center"==this.hovering?void 0:this.direction;return nt(kl||(kl=Hl(["\n ","\n\n <div\n overlayed\n hovering=","\n direction=","\n size=","\n @close-overlay=","\n @transitionstart=","\n @transitionend=","\n >\n <div\n header\n @mousedown=","\n @touchstart=",'\n draggable="false"\n >\n <mwc-icon @click='," ?closable="," historyback>arrow_back</mwc-icon>\n ",'\n <slot name="header">\n ',"</slot\n >\n <mwc-icon @click="," ?closable="," close>close</mwc-icon>\n </div>\n\n <div content>\n <slot> </slot>\n </div>\n </div>\n "])),Boolean(this.backdrop)?nt(Tl||(Tl=Hl([' <div id="backdrop" ?hidden='," @click=","></div> "])),!this.backdrop,(t=>this.onClose(t,!0))):nt(Rl||(Rl=Hl([""]))),this.hovering||"center",ie(t),this.size||"medium",(t=>{t.stopPropagation(),this.onClose(t)}),(t=>{t.target.removeAttribute("settled")}),(t=>{t.target.setAttribute("settled","")}),this.onDragStart.bind(this),this.onDragStart.bind(this),(t=>this.onClose(t)),this.closable,this.movable?nt(Fl||(Fl=Hl(["<mwc-icon>drag_indicator</mwc-icon>"]))):nt(Nl||(Nl=Hl([""]))),this.title||this.closable?nt(Ml||(Ml=Hl(["\n <h1>\n ","&nbsp;","\n </h1>\n "])),this.title||"",this.help?nt(Bl||(Bl=Hl([" <ox-help-icon .topic=","></ox-help-icon>"])),this.help):nt(Ll||(Ll=Hl([""])))):nt(jl||(jl=Hl([""]))),(t=>this.onClose(t)),this.closable)}updated(t){if(t.has("templateProperties")&&this.templateProperties){var e=this.firstElementChild;if(e)for(var r in this.templateProperties)e[r]=this.templateProperties[r]}}firstUpdated(){requestAnimationFrame((()=>{var t;null===(t=this.overlayed)||void 0===t||t.setAttribute("opened","true")}))}connectedCallback(){super.connectedCallback(),this.movable=this.movable&&!window.matchMedia("(max-width: 460px)").matches,this.movable&&(document.addEventListener("mouseup",this.dragEndHandler),document.addEventListener("touchend",this.dragEndHandler),document.addEventListener("touchcancel",this.dragEndHandler),document.addEventListener("mousemove",this.dragMoveHandler),document.addEventListener("touchmove",this.dragMoveHandler))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("overlay-closed",{detail:this.name})),this.movable&&(document.removeEventListener("mouseup",this.dragEndHandler),document.removeEventListener("touchend",this.dragEndHandler),document.removeEventListener("touchcancel",this.dragEndHandler),document.removeEventListener("mousemove",this.dragMoveHandler),document.removeEventListener("touchmove",this.dragMoveHandler)),super.disconnectedCallback()}onDragStart(t){if(this.movable){var e=Gl(t);return e?(this.dragStart=e,t.stopPropagation(),!1):void 0}}onDragMove(t){if(!this.movable||!this.dragStart)return!1;var e=Gl(t);if(!e)return!1;t.stopPropagation(),t.preventDefault();var r=e,{x:n,y:i}=e;n-=this.dragStart.x,i-=this.dragStart.y,this.dragStart=r;var o=this.overlayed,a=o.getBoundingClientRect();return o.style.left=Math.min(document.body.offsetWidth-40,Math.max(40-o.offsetWidth,a.left+n))+"px",o.style.top=Math.min(document.body.offsetHeight-40,Math.max(0,a.top+i))+"px",o.style.transform="initial",!1}onDragEnd(t){this.movable&&this.dragStart&&(t.stopPropagation(),t.preventDefault(),delete this.dragStart)}close(){var t;null===(t=this.parentNode)||void 0===t||t.removeChild(this)}onClose(t,e){if(t.stopPropagation(),this.historical){var r=(history.state||{}).overlay;if(!r||r.name!==this.name)return;if(e&&!r.escapable)return!0;history.back()}else this.close()}};function Wl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wl(Object(r),!0).forEach((function(e){Xl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xl(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}ql.styles=[al,S(Vl||(Vl=Hl(["\n /* for layout style */\n :host {\n position: relative;\n z-index: 1;\n }\n\n :host([hovering='edge']) {\n /* edge hovering 인 경우에는 상위 relative position 크기와 위치를 반영한다. */\n position: initial;\n }\n\n #backdrop {\n position: fixed;\n left: 0;\n top: 0;\n\n width: 100vw;\n height: 100vh;\n\n background-color: var(--overlay-background-color);\n }\n\n [overlayed] {\n position: absolute;\n\n display: flex;\n flex-direction: column;\n overflow: hidden;\n background: transparent;\n }\n\n [overlayed][hovering='center'] {\n position: fixed;\n\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n opacity: 0;\n }\n\n [overlayed][hovering='center'][opened] {\n opacity: 1;\n transition: opacity 0.3s ease-in;\n }\n\n [hovering='center'] {\n width: var(--overlay-center-normal-width, 60%);\n height: var(--overlay-center-normal-height, 60%);\n }\n\n [hovering='center'][size='small'] {\n width: var(--overlay-center-small-width, 40%);\n height: var(--overlay-center-small-height, 40%);\n }\n\n [hovering='center'][size='large'] {\n width: var(--overlay-center-large-width, 100%);\n height: var(--overlay-center-large-height, 100%);\n }\n\n [header] {\n --help-icon-color: #fff;\n --help-icon-hover-color: #fff;\n\n pointer-events: initial;\n }\n\n [content] {\n flex: 1;\n overflow: hidden;\n }\n\n ::slotted(*) {\n box-sizing: border-box;\n pointer-events: initial;\n }\n\n [hovering='center'] [content] ::slotted(*) {\n width: 100%;\n height: 100%;\n }\n [direction='up'],\n [direction='down'] {\n width: 100%;\n\n max-height: 0;\n transition: max-height 0.7s ease-in;\n }\n [direction='up'] {\n bottom: 0;\n }\n [direction='down'] {\n top: 0;\n }\n\n [direction='up'][opened],\n [direction='down'][opened] {\n max-height: 100vh;\n }\n\n [settled][direction='down'] [content],\n [settled][direction='up'] [content] {\n overflow-y: auto;\n }\n\n [direction='left'],\n [direction='right'] {\n height: 100%;\n\n max-width: 0;\n transition: max-width 0.5s ease-in;\n }\n [direction='left'] {\n right: 0;\n }\n [direction='right'] {\n left: 0;\n }\n\n [direction='left'][opened],\n [direction='right'][opened] {\n max-width: 100vw;\n }\n\n [settled][direction='left'] [content],\n [settled][direction='right'] [content] {\n overflow-x: auto;\n }\n\n @media screen and (max-width: 460px) {\n [direction='up'],\n [direction='down'] {\n max-height: 100vh;\n }\n\n [direction='left'],\n [direction='right'] {\n max-width: 100vw;\n }\n }\n "]))),S(zl||(zl=Hl(["\n /* for header style */\n [header] {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n background-color: var(--overlay-header-background-color);\n color: var(--overlay-header-color);\n }\n\n slot[name='header'] {\n flex: 1;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n }\n\n [name='header']::slotted(*) {\n margin: 0 auto;\n }\n\n [name='header'] > h1 {\n text-transform: capitalize;\n font: var(--overlay-header-font);\n }\n\n [historyback] {\n margin-left: 10px;\n margin-right: auto;\n }\n\n [close] {\n margin-left: auto;\n margin-right: 10px;\n }\n\n [historyback],\n [close] {\n display: none;\n }\n\n [closable][close] {\n display: block;\n }\n\n @media screen and (max-width: 460px) {\n [closable][historyback] {\n display: block;\n }\n\n [closable][close] {\n display: none;\n }\n }\n "])))],(0,t.gn)([a({type:Boolean})],ql.prototype,"backdrop",void 0),(0,t.gn)([a({type:String})],ql.prototype,"direction",void 0),(0,t.gn)([a({type:String,reflect:!0})],ql.prototype,"hovering",void 0),(0,t.gn)([a({type:String})],ql.prototype,"size",void 0),(0,t.gn)([a({type:String})],ql.prototype,"name",void 0),(0,t.gn)([a({type:String})],ql.prototype,"title",void 0),(0,t.gn)([a({type:Boolean})],ql.prototype,"closable",void 0),(0,t.gn)([a({type:Object})],ql.prototype,"templateProperties",void 0),(0,t.gn)([a({type:Object})],ql.prototype,"help",void 0),(0,t.gn)([a({type:Boolean})],ql.prototype,"historical",void 0),(0,t.gn)([a({type:Boolean})],ql.prototype,"movable",void 0),(0,t.gn)([v("[overlayed]")],ql.prototype,"overlayed",void 0),ql=(0,t.gn)([e("ox-floating-overlay")],ql);var $l,Ql,Kl=t=>{var{name:e,viewpart:r,position:n}=t;Ka.dispatch({type:Zl,name:e,viewpart:Yl(Yl({},r),{},{show:(!r.hovering||!r.show)&&r.show}),position:n}),r.hovering&&r.show&&nu(e)},Zl="APPEND_VIEWPART",Jl="REMOVE_VIEWPART",tu="UPDATE_VIEWPART";!function(t){t.HEADERBAR="headerbar",t.NAVBAR="navbar",t.ASIDEBAR="asidebar",t.FOOTERBAR="footerbar"}($l||($l={})),function(t){t.TOPMOST="TOPMOST",t.NORMAL="NORMAL"}(Ql||(Ql={}));var eu="UPDATE_VIEWPORT_WIDTH",ru=0,nu=(t,e,r)=>{var n=history.state,i=n?n.overlay:void 0,o=i&&void 0!==i.sequence?i.sequence:ru,a=ru=o+1;!r&&e&&Ka.dispatch({type:tu,name:t,override:e});var s=Object.assign({},n||{},{overlay:{name:t,sequence:a,escapable:!1!==(null==e?void 0:e.escapable)}});history.pushState(s,"",location.href),window.dispatchEvent(new CustomEvent("popstate",{detail:{state:s}}))},iu=t=>{history.back()},ou=0,au=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="$popup-".concat(ou++);Kl({name:r,viewpart:Yl(Yl({hovering:"center",closable:!0},e),{},{backdrop:!0,show:!1,temporary:!0,template:t}),position:$l.HEADERBAR}),nu(r,e,!0);var n={name:r,close:()=>{var t=(history.state||{}).overlay;t&&t.name==r&&history.back()},closed:!1};return document.addEventListener("overlay-closed",(function t(e){r==e.detail&&(n.closed=!0,n.onclosed&&n.onclosed(),document.removeEventListener("overlay-closed",t))})),n};function su(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?su(Object(r),!0).forEach((function(e){lu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):su(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lu(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var uu={viewparts:{},width:"WIDE"};var du,hu="OPEN_SNACKBAR",pu="CLOSE_SNACKBAR";function fu(t){if("string"==typeof t)return fu({message:t});var{message:e,level:r,option:n,ex:i}=t;document.dispatchEvent(new CustomEvent("notify",{detail:{message:e,level:r,ex:i,option:n}}))}function mu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mu(Object(r),!0).forEach((function(e){vu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vu(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yu={snackbarOpened:!1,level:"",message:"",action:{}};var bu=__webpack_require__(51266);function wu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wu(Object(r),!0).forEach((function(e){Eu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Eu(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Ka.addReducers({layout:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:uu,e=arguments.length>1?arguments[1]:void 0,r=cu({},t.viewparts);switch(e.type){case Zl:return cu(cu({},t),{},{viewparts:cu(cu({},t.viewparts),{},{[e.name]:cu(cu({},e.viewpart),{},{position:e.position})})});case Jl:return delete r[e.name],cu(cu({},t),{},{viewparts:r});case tu:var n=r[e.name];if(!n)return t;var i=e.override||{};return n.temporary&&!1===i.show?(delete r[e.name],cu(cu({},t),{},{viewparts:r})):cu(cu({},t),{},{viewparts:cu(cu({},t.viewparts),{},{[e.name]:cu(cu({},n),e.override)})});case eu:return cu(cu({},t),{},{width:e.width});default:return t}},snackbar:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yu,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case hu:return gu(gu({},t),{},{snackbarOpened:!0,level:e.level||"info",message:e.message,action:gu({},e.action)});case pu:return gu(gu({},t),{},{snackbarOpened:!1});default:return t}}}),document.addEventListener("open-overlay",(t=>{var{name:e,options:r}=t.detail;nu(e,r)})),document.addEventListener("close-overlay",(t=>{var{name:e}=t.detail;iu()})),document.addEventListener("toggle-overlay",(t=>{var{name:e,options:r}=t.detail;((t,e)=>{var{name:r}=history.state&&history.state.overlay||{};r==t?iu():nu(t,e)})(e,r)})),document.addEventListener("open-popup",(t=>{var{template:e,options:r,callback:n}=t.detail,i=au(e,r);i&&n&&n(i)})),document.addEventListener("notify",(t=>{var{message:e,level:r,ex:n="",option:i={}}=t.detail;switch(r){case"error":bu.error(e,n);break;case"warn":bu.warn(e,n);break;case"info":bu.info(e)}Ka.dispatch(((t,e)=>{var{message:r,action:n,timer:i=5e3}=e;return e=>{e({type:hu,level:t,message:r,action:n}),window.clearTimeout(du),-1!=i&&(du=window.setTimeout((()=>e({type:pu})),i))}})(r,_u({message:e},i)))}));var xu=[];function Au(){return xu.length>0?xu[xu.length-1].overlay.sequence:-1}document.addEventListener("keydown",(t=>{var e,r;xu.length>0&&("Escape"===t.key||"Esc"===t.key)&&(null===(r=null===(e=history.state)||void 0===e?void 0:e.overlay)||void 0===r?void 0:r.escapable)&&history.back()})),Ka.dispatch({type:Ha,callback:(t,e)=>{var r=e instanceof PopStateEvent,n=history.state,i=null==n?void 0:n.overlay,o=(null==i?void 0:i.sequence)||-1,a=Au();if(xu.length>0&&o<a)do{var{overlay:s}=xu.pop();Ka.dispatch({type:tu,name:s.name,override:{show:!1}}),a=Au()}while(o<a);!r&&i&&(xu.push(_u({},n)),Ka.dispatch({type:tu,name:i.name,override:{show:!0}}))}});const Cu=Ka;var Su,Du,Ou,Pu,Iu,ku,Tu,Ru,Fu=t=>e=>class extends e{connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._storeUnsubscribe=t.subscribe((()=>this.stateChanged(t.getState()))),this.stateChanged(t.getState())}disconnectedCallback(){this._storeUnsubscribe(),super.disconnectedCallback&&super.disconnectedCallback()}stateChanged(t){}};function Nu(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Mu,Bu,Lu,ju=class extends(Fu(Cu)(At)){constructor(){super(...arguments),this.level="info",this.message="",this.active=!1}render(){return nt(Su||(Su=Nu(["\n <span>\n <mwc-icon class=","\n >","</mwc-icon\n >\n </span>\n <span>","</span>\n ","\n "])),this.level,"info"==this.level?nt(Du||(Du=Nu([" notification_important "]))):"warn"==this.level?nt(Ou||(Ou=Nu([" warning "]))):"error"==this.level?nt(Pu||(Pu=Nu([" error "]))):nt(Iu||(Iu=Nu([""]))),this.message,this.action&&this.action.label?nt(ku||(ku=Nu(["\n <mwc-button\n @click=","\n >","</mwc-button\n >\n "])),(()=>{Cu.dispatch({type:pu}),this.action.callback()}),this.action.label):nt(Tu||(Tu=Nu([""]))))}stateChanged(t){var{level:e,message:r,snackbarOpened:n,action:i}=t.snackbar||{};this.level=e,this.message=r,this.active=n,this.action=i}};function Vu(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}ju.styles=S(Ru||(Ru=Nu(["\n :host {\n display: block;\n position: fixed;\n top: 100%;\n left: 0;\n right: 0;\n padding: 12px;\n background-color: black;\n color: white;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);\n text-align: center;\n will-change: transform;\n transform: translate3d(0, 0, 0);\n transition-property: visibility, transform;\n transition-duration: 0.2s;\n visibility: hidden;\n }\n\n :host([active]) {\n visibility: visible;\n transform: translate3d(0, -100%, 0);\n }\n\n mwc-icon {\n --mdc-icon-size: 1.2em;\n vertical-align: middle;\n max-width: 20px;\n }\n\n mwc-button {\n display: block;\n }\n\n .info {\n color: green;\n }\n\n .warn {\n color: yellow;\n }\n\n .error {\n color: red;\n }\n\n @media (min-width: 460px) {\n :host {\n width: 320px;\n margin: auto;\n }\n }\n "]))),(0,t.gn)([a({type:String})],ju.prototype,"level",void 0),(0,t.gn)([a({type:String})],ju.prototype,"message",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ju.prototype,"active",void 0),(0,t.gn)([a({type:Object})],ju.prototype,"action",void 0),ju=(0,t.gn)([e("ox-snack-bar")],ju);var zu,Uu,Hu,Gu,qu,Wu,Yu,Xu=Lu=class extends At{static get dragImage(){return Lu._dragImage||(Lu._dragImage=new Image,Lu._dragImage.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="),Lu._dragImage}connectedCallback(){super.connectedCallback(),this.hasAttribute("vertical")?(this.style.width="3px",this.style.height="100%",this.style.cursor="col-resize"):(this.style.width="100%",this.style.height="3px",this.style.cursor="row-resize")}render(){return nt(Mu||(Mu=Vu(['\n <div\n draggable="true"\n @dragstart=',"\n @drag=","\n @dragend=","\n ></div>\n "])),(t=>this._onDragStart(t)),this._throttled(100,this._onDrag.bind(this)),(t=>this._onDragEnd(t)))}_throttled(t,e){var r=0;return function(){var n=(new Date).getTime();if(!(n-r<t))return r=n,e(...arguments)}}_onDragStart(t){t.dataTransfer.setDragImage(Lu.dragImage,0,0),this.dragstart={x:t.clientX,y:t.clientY},this.dispatchEvent(new CustomEvent("splitter-dragstart",{bubbles:!0,composed:!0})),t.stopPropagation()}_onDrag(t){0!=t.clientX&&(this.dispatchEvent(new CustomEvent("splitter-drag",{bubbles:!0,composed:!0,detail:{x:t.clientX-this.dragstart.x,y:t.clientY-this.dragstart.y}})),requestAnimationFrame((()=>{dispatchEvent(new Event("resize"))})),t.stopPropagation())}_onDragEnd(t){this.dispatchEvent(new CustomEvent("splitter-dragend",{bubbles:!0,composed:!0,detail:{x:t.clientX-this.dragstart.x,y:t.clientY-this.dragstart.y}})),requestAnimationFrame((()=>{dispatchEvent(new Event("resize"))})),t.stopPropagation()}};function $u(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Qu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ku(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Xu.styles=S(Bu||(Bu=Vu(["\n :host {\n position: relative;\n opacity: 0.7;\n background-color: var(--splitter-background-color);\n }\n\n :host(:hover) {\n background-color: var(--splitter-hover-background-color);\n }\n\n div {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n "]))),Xu=Lu=(0,t.gn)([e("ox-resize-splitter")],Xu);var Zu,Ju,td,ed,rd,nd,id,od=class extends(Fu(Cu)(At)){constructor(){super(...arguments),this.fullbleed=!1,this.viewparts={},this._startHeight=0}render(){var t=this.viewparts,e=Object.keys(t).map((e=>function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qu(Object(r),!0).forEach((function(e){Ku(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({name:e},t[e]))).filter((t=>"headerbar"==t.position&&(!this.fullbleed||t.hovering)));return e=[...e.filter((t=>t.level==Ql.TOPMOST)),...e.filter((t=>t.level!==Ql.TOPMOST))],nt(zu||(zu=$u(["\n ","\n "])),e.map((t=>t.show?t.hovering?nt(Hu||(Hu=$u(["\n <ox-floating-overlay\n .backdrop=",'\n direction="down"\n .hovering=',"\n .name=","\n .title=","\n .help=","\n .size=","\n .closable=","\n .templateProperties=","\n .historical=","\n >","</ox-floating-overlay\n >\n "])),t.backdrop,t.hovering,t.name,t.title,t.help,t.size,t.closable,t.templateProperties,!0,t.template):nt(Gu||(Gu=$u(["\n <div headerbar>","</div>\n ","\n "])),t.template,t.resizable?nt(qu||(qu=$u(["\n <ox-resize-splitter\n @splitter-dragstart=","\n @splitter-drag=","\n ></ox-resize-splitter>\n "])),(t=>this.resizeStart(t)),(t=>this.resizeDrag(t))):nt(Wu||(Wu=$u([""])))):nt(Uu||(Uu=$u([""]))))))}resizeStart(t){var e;this._startHeight=(null===(e=t.target)||void 0===e?void 0:e.previousElementSibling).offsetHeight}resizeDrag(t){var e,r=t.detail,n=(null===(e=t.target)||void 0===e?void 0:e.previousElementSibling).querySelectorAll("*");Array.from(n).forEach((t=>{t.style.height="".concat(this._startHeight+r.y,"px")}))}stateChanged(t){this.viewparts=t.layout.viewparts||{}}};function ad(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function sd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cd(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}od.styles=[S(Yu||(Yu=$u(["\n :host {\n display: flex;\n flex-flow: column nowrap;\n align-items: stretch;\n\n position: relative;\n\n background-color: var(--header-bar-background-color);\n }\n\n *[headerbar] {\n display: block;\n }\n "])))],(0,t.gn)([a({type:Boolean,attribute:"fullbleed"})],od.prototype,"fullbleed",void 0),(0,t.gn)([u()],od.prototype,"viewparts",void 0),od=(0,t.gn)([e("ox-header-bar")],od);var ld,ud,dd,hd,pd,fd,md,gd=class extends(Fu(Cu)(At)){constructor(){super(...arguments),this.fullbleed=!1,this.viewparts={},this._startWidth=0}render(){var t=this.viewparts,e=Object.keys(t).map((e=>function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sd(Object(r),!0).forEach((function(e){cd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({name:e},t[e]))).filter((t=>"navbar"==t.position&&(!this.fullbleed||t.hovering)));return e=[...e.filter((t=>t.level==Ql.TOPMOST)),...e.filter((t=>t.level!==Ql.TOPMOST))],nt(Zu||(Zu=ad(["\n ","\n "])),e.map((t=>t.show?t.hovering?nt(td||(td=ad(["\n <ox-floating-overlay\n .backdrop=",'\n direction="right"\n .hovering=',"\n .name=","\n .title=","\n .help=","\n .size=","\n .closable=","\n .templateProperties=","\n .historical=","\n >","</ox-floating-overlay\n >\n "])),t.backdrop,t.hovering,t.name,t.title,t.help,t.size,t.closable,t.templateProperties,!0,t.template):nt(ed||(ed=ad(["\n <div navbar>","</div>\n ","\n "])),t.template,t.resizable?nt(rd||(rd=ad(["\n <ox-resize-splitter\n @splitter-dragstart=","\n @splitter-drag=","\n vertical\n ></ox-resize-splitter>\n "])),(t=>this.resizeStart(t)),(t=>this.resizeDrag(t))):nt(nd||(nd=ad([""])))):nt(Ju||(Ju=ad([""]))))))}resizeStart(t){var e;this._startWidth=(null===(e=t.target)||void 0===e?void 0:e.previousElementSibling).offsetWidth}resizeDrag(t){var e,r=t.detail,n=(null===(e=t.target)||void 0===e?void 0:e.previousElementSibling).querySelectorAll("*");Array.from(n).forEach((t=>{t.style.width="".concat(this._startWidth+r.x,"px")}))}stateChanged(t){this.viewparts=t.layout.viewparts||{}}};function vd(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function yd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bd(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}gd.styles=[al,S(id||(id=ad(["\n :host {\n display: flex;\n flex-flow: row nowrap;\n align-items: stretch;\n\n position: relative;\n\n background-color: var(--nav-bar-background-color);\n }\n\n *[navbar] {\n display: flex;\n flex-direction: row;\n }\n "])))],(0,t.gn)([a({type:Boolean,attribute:"fullbleed"})],gd.prototype,"fullbleed",void 0),(0,t.gn)([u()],gd.prototype,"viewparts",void 0),gd=(0,t.gn)([e("ox-nav-bar")],gd);var wd,_d,Ed,xd,Ad,Cd,Sd,Dd=class extends(Fu(Cu)(At)){constructor(){super(...arguments),this.fullbleed=!1,this.viewparts={},this._startWidth=0}render(){var t=this.viewparts,e=Object.keys(t).map((e=>function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yd(Object(r),!0).forEach((function(e){bd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({name:e},t[e]))).filter((t=>"asidebar"==t.position&&(!this.fullbleed||t.hovering)));return e=[...e.filter((t=>t.level==Ql.TOPMOST)),...e.filter((t=>t.level!==Ql.TOPMOST))],nt(ld||(ld=vd(["\n ","\n "])),e.map((t=>t.show?t.hovering?nt(dd||(dd=vd(["\n <ox-floating-overlay\n .backdrop=",'\n direction="left"\n .hovering=',"\n .name=","\n .size=","\n .title=","\n .help=","\n .closable=","\n .templateProperties=","\n .historical=","\n >","</ox-floating-overlay\n >\n "])),t.backdrop,t.hovering,t.name,t.size,t.title,t.help,t.closable,t.templateProperties,!0,t.template):nt(hd||(hd=vd(["\n <div asidebar>","</div>\n ","\n "])),t.template,t.resizable?nt(pd||(pd=vd(["\n <ox-resize-splitter\n @splitter-dragstart=","\n @splitter-drag=","\n vertical\n ></ox-resize-splitter>\n "])),(t=>this.resizeStart(t)),(t=>this.resizeDrag(t))):nt(fd||(fd=vd([""])))):nt(ud||(ud=vd([""]))))))}resizeStart(t){var e,r;this._startWidth=null===(r=null===(e=t.target)||void 0===e?void 0:e.previousElementSibling)||void 0===r?void 0:r.offsetWidth}resizeDrag(t){var e,r,n=t.detail,i=null===(r=null===(e=t.target)||void 0===e?void 0:e.previousElementSibling)||void 0===r?void 0:r.querySelectorAll("*");Array.from(i).forEach((t=>{t.style.width="".concat(this._startWidth-n.x,"px")}))}stateChanged(t){this.viewparts=t.layout.viewparts||{}}};function Od(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Pd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Id(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Dd.styles=[al,S(md||(md=vd(["\n :host {\n display: flex;\n flex-flow: row-reverse nowrap;\n align-items: stretch;\n\n position: relative;\n }\n\n *[asidebar] {\n display: block;\n overflow-y: auto;\n }\n "])))],(0,t.gn)([a({type:Boolean,attribute:"fullbleed"})],Dd.prototype,"fullbleed",void 0),(0,t.gn)([u()],Dd.prototype,"viewparts",void 0),Dd=(0,t.gn)([e("ox-aside-bar")],Dd);var kd,Td,Rd=class extends(Fu(Cu)(At)){constructor(){super(...arguments),this.fullbleed=!1,this.viewparts={},this._startHeight=0}render(){var t=this.viewparts,e=Object.keys(t).map((e=>function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pd(Object(r),!0).forEach((function(e){Id(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({name:e},t[e]))).filter((t=>"footerbar"==t.position&&(!this.fullbleed||t.hovering)));return e=[...e.filter((t=>t.level==Ql.TOPMOST)),...e.filter((t=>t.level!==Ql.TOPMOST))],nt(wd||(wd=Od(["\n ","\n "])),e.map((t=>t.show?t.hovering?nt(Ed||(Ed=Od(["\n <ox-floating-overlay\n .backdrop=",'\n direction="up"\n .hovering=',"\n .name=","\n .title=","\n .help=","\n .size=","\n .closable=","\n .templateProperties=","\n .historical=","\n >","</ox-floating-overlay\n >\n "])),t.backdrop,t.hovering,t.name,t.title||"",t.help,t.size,t.closable,t.templateProperties,!0,t.template):nt(xd||(xd=Od(["\n <div footerbar>","</div>\n ","\n "])),t.template,t.resizable?nt(Ad||(Ad=Od(["\n <ox-resize-splitter\n @splitter-dragstart=","\n @splitter-drag=","\n ></ox-resize-splitter>\n "])),(t=>this.resizeStart(t)),(t=>this.resizeDrag(t))):nt(Cd||(Cd=Od([""])))):nt(_d||(_d=Od([""]))))))}resizeStart(t){var e;this._startHeight=(null===(e=t.target)||void 0===e?void 0:e.previousElementSibling).offsetHeight}resizeDrag(t){var e,r=t.detail,n=(null===(e=t.target)||void 0===e?void 0:e.previousElementSibling).querySelectorAll("*");Array.from(n).forEach((t=>{t.style.height="".concat(this._startHeight-r.y,"px")}))}stateChanged(t){this.viewparts=t.layout.viewparts||{}}};function Fd(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Nd(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Rd.styles=[S(Sd||(Sd=Od(["\n :host {\n display: flex;\n flex-flow: column-reverse nowrap;\n align-items: stretch;\n position: relative;\n }\n\n *[footerbar] {\n display: block;\n max-width: 100vw;\n }\n\n @media screen and (max-width: 460px) {\n :host {\n padding-bottom: 0;\n }\n }\n "])))],(0,t.gn)([a({type:Boolean,attribute:"fullbleed"})],Rd.prototype,"fullbleed",void 0),(0,t.gn)([u()],Rd.prototype,"viewparts",void 0),Rd=(0,t.gn)([e("ox-footer-bar")],Rd);var Md=class extends(gi(mi)(At)){render(){return nt(kd||(kd=Nd(['\n <h1><ox-i18n msgid="label.delete account"></ox-i18n></h1>\n <span><ox-i18n msgid="text.delete account warning message"></ox-i18n></span>\n <form @submit=','>\n <div class="field">\n <label for="email"><ox-i18n msgid="label.email"></ox-i18n></label>\n <input id="email" type="email" name="email" autocapitalize="off" required />\n <label for="password"><ox-i18n msgid="label.password"></ox-i18n></label>\n <input id="password" type="password" name="password" required />\n </div>\n\n <button class="ui button" type="submit"><ox-i18n msgid="label.delete account"></ox-i18n></button>\n </form>\n '])),(t=>this.submit(t)))}submit(t){return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Fd(o,n,i,a,s,"next",t)}function s(t){Fd(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){t.preventDefault();var e=t.target,r={};new FormData(e).forEach(((t,e)=>{r[e]=t}));try{fu({level:"info",message:yield Di.deleteUser(r)}),Di.signout()}catch(t){e.reset(),fu({level:"error",message:"message"in t?t.message:t})}}))()}};Md.styles=[S(Td||(Td=Nd(["\n :host {\n display: flex;\n flex-direction: column;\n background-color: var(--popup-content-background-color);\n padding: var(--popup-content-padding);\n }\n\n * {\n box-sizing: border-box;\n }\n *:focus {\n outline: none;\n }\n\n label {\n font: bold 14px var(--theme-font);\n color: var(--primary-color);\n }\n\n input {\n border: var(--change-password-field-border);\n border-radius: var(--change-password-field-border-radius);\n padding: var(--change-password-field-padding);\n\n font: var(--change-password-field-font);\n width: var(--change-password-field-width);\n }\n input:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n div.field {\n padding-bottom: 10px;\n }\n\n ::placeholder {\n font-size: 0.8rem;\n text-transform: capitalize;\n }\n\n button {\n background-color: var(--status-danger-color, red);\n margin: 2px 2px 10px 2px;\n height: var(--button-height, 28px);\n color: var(--button-color, #fff);\n font: var(--button-font);\n border-radius: var(--button-radius, 5px);\n border: var(--button-border, 1px solid transparent);\n line-height: 1.5;\n }\n button:hover,\n button:active {\n background-color: var(--button-active-background-color, #22a6a7);\n border: var(--button-active-border);\n }\n "])))],Md=(0,t.gn)([e("delete-user-popup")],Md);var Bd,Ld,jd=(t,e)=>{},Vd={click:void 0,dblclick:void 0},zd=[],Ud={type:"",name:"",header:{renderer:t=>{}},record:{renderer:(t,e,r,n,i)=>{},classifier:jd,options:{}},handlers:Vd,label:!1},Hd={columns:zd,rows:{appendable:!1,insertable:!1,groups:[],totals:[],classifier:jd,handlers:Vd},list:{fields:["name","description","updatedAt"],details:[]}},Gd={},qd=[],Wd={records:qd},Yd=[20,30,50,100],Xd={page:1,limit:20,total:0,pages:Yd};function $d(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Qd=class extends At{render(){return nt(Bd||(Bd=$d(["\n <mwc-icon>","</mwc-icon>\n <div titler>","</div>\n <div description>","</div>\n "])),this.icon,this.title,this.description)}};Qd.styles=S(Ld||(Ld=$d(["\n :host {\n display: block;\n text-align: center;\n }\n\n mwc-icon {\n font: var(--oops-note-icon-font);\n color: var(--oops-note-icon-color);\n border: var(--oops-note-icon-border);\n border-radius: var(--oops-note-icon-border-radius);\n padding: var(--oops-note-icon-padding);\n }\n\n [titler] {\n margin: var(--oops-note-title-margin);\n font: var(--oops-note-title-font);\n color: var(--oops-note-title-color);\n text-transform: capitalize;\n }\n\n [description] {\n font: var(--oops-note-description-font);\n color: var(--oops-note-description-color);\n }\n "]))),(0,t.gn)([a()],Qd.prototype,"icon",void 0),(0,t.gn)([a()],Qd.prototype,"title",void 0),(0,t.gn)([a()],Qd.prototype,"description",void 0),Qd=(0,t.gn)([e("ox-empty-note")],Qd);const Kd=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Qi(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Eo(t,e,{leading:n,maxWait:e,trailing:i})};var Zd,Jd,th,eh,rh,nh,ih,oh,ah=S(Zd||(Zd=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n :host {\n --ox-input-placeholder-color: var(--primary-color);\n\n --ox-input-padding: var(--padding-narrow) var(--padding-default);\n --ox-input-border: 1px solid rgba(0, 0, 0, 0.2);\n --ox-input-focus-border: 1px solid var(--primary-color);\n --ox-input-border-radius: var(--border-radius);\n --ox-input-font: normal 14px var(--theme-font);\n --ox-input-color: var(--primary-text-color);\n\n --ox-filters-form-gap: var(--margin-wide);\n --ox-filters-form-label-font: var(--label-font);\n --ox-filters-form-label-color: var(--label-color);\n --ox-select-padding: 0 var(--padding-narrow);\n }\n\n label {\n font: var(--ox-filters-form-label-font);\n color: var(--ox-filters-form-label-color);\n }\n span {\n margin-right: var(--margin-narrow);\n text-transform: capitalize;\n }\n\n input::placeholder {\n color: var(--ox-input-placeholder-color);\n opacity: 0.6;\n }\n\n ox-select,\n input {\n padding: var(--input-padding);\n border: none;\n border-bottom: var(--ox-input-border);\n font: var(--ox-input-font);\n color: var(--ox-input-color);\n }\n\n ox-select:focus,\n input:focus {\n outline: none;\n border-bottom: var(--ox-input-focus-border);\n color: var(--primary-color);\n }\n ox-select {\n padding: var(--ox-select-padding);\n }\n\n input[type='number'] {\n padding-right: var(--padding-narrow);\n max-width: 90px;\n }\n\n input[type*='date'],\n input[type*='time'],\n input[type='week'],\n input[type='month'] {\n padding: 8px var(--padding-narrow) 8px var(--padding-default);\n max-width: 170px;\n }\n\n @media only screen and (max-width: 460px) {\n :host {\n --ox-filters-form-label-font: bold 13px var(--theme-font);\n --ox-input-font: normal 16px var(--theme-font);\n --ox-filters-form-gap: var(--margin-narrow);\n }\n\n ox-checkbox {\n margin-top: var(--margin-narrow);\n }\n\n input[from],\n input[to] {\n max-width: 44%;\n }\n\n input[type*='datetime'][from],\n input[type*='datetime'][to] {\n padding-right: var(--padding-narrow);\n min-width: 91%;\n }\n }\n"])));class sh extends At{constructor(){super(...arguments),this._form=null,this._formdataEventHandler=null}connectedCallback(){super.connectedCallback(),this.name&&(this._form=this.closest("form"),this._form&&(this._formdataEventHandler=this.appendFormData.bind(this),this._form.addEventListener("formdata",this._formdataEventHandler)))}disconnectedCallback(){super.disconnectedCallback(),this._form&&(this._form.removeEventListener("formdata",this._formdataEventHandler),this._form=null,this._formdataEventHandler=null)}appendFormData(t){var{formData:e}=t;if(this.name){var r=this.value;r instanceof Array||(r=[this.value]),r.forEach((t=>{e.append(this.name,"string"==typeof t?t:null==t?"":JSON.stringify(t))}))}}}function ch(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:String,attribute:!0})],sh.prototype,"name",void 0),(0,t.gn)([a()],sh.prototype,"value",void 0);var lh,uh=((Jd=class extends sh{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminatable=!1,this.indeterminate=!1,this._hasInner=!!this.innerHTML.trim().length}render(){return nt(th||(th=ch(["\n <div @click="," ?disabled=",'>\n <a href="#" @click='," checkbox>\n ","\n </a>\n ","\n </div>\n "])),this.onClick,this.disabled,(t=>t.preventDefault()),this.indeterminate?this.indeterminateIcon:this.checked?this.checkedIcon:this.uncheckedIcon,this._hasInner?nt(eh||(eh=ch([" <span label>\n <slot></slot>\n </span>"]))):"")}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",this.onKeyDown.bind(this))}onClick(){this.disabled||(this.indeterminatable?this.indeterminate?(this.indeterminate=!1,this.checked=!0):this.checked?(this.indeterminate=!1,this.checked=!1):(this.indeterminate=!0,this.checked=void 0):(this.indeterminate=!1,this.checked=!this.checked),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:this.checked})))}get checkedIcon(){return nt(rh||(rh=ch(['\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" />\n </svg>\n '])))}get uncheckedIcon(){return nt(nh||(nh=ch(['\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" />\n </svg>\n '])))}get indeterminateIcon(){return nt(ih||(ih=ch(['\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <line x1="4" x2="20" y1="12" y2="12" stroke="rgba(0, 0, 0, 0.7)" stroke-width="2" stroke-linecap="round" />\n </svg>\n '])))}onKeyDown(t){t.preventDefault()," "!==t.key&&"Spacebar"!=t.key||this.onClick()}appendFormData(t){var{formData:e}=t;this.name&&!this.indeterminate&&e.append(this.name,this.checked?"true":"false")}}).styles=[S(oh||(oh=ch(["\n :host {\n display: flex;\n }\n\n div {\n display: flex;\n align-items: center;\n cursor: pointer;\n }\n\n [disabled] {\n opacity: var(--ox-checkbox-disabled-opacity, 0.5);\n cursor: auto;\n }\n\n [checkbox] {\n display: flex;\n border-radius: var(--ox-checkbox-border-radius, 4px);\n border: var(--ox-checkbox-border, 1px solid rgba(0, 0, 0, 0.3));\n background-color: var(--ox-checkbox-background-color, #fff);\n width: var(--ox-checkbox-size, 15px);\n height: var(--ox-checkbox-size, 15px);\n align-items: center;\n justify-content: center;\n }\n\n a {\n background-color: var(--ox-checkbox-unchecked-background-color, #fff);\n border: var(--ox-checkbox-unchecked-border, 1px solid rgba(0, 0, 0, 0.3));\n }\n\n :host([checked]) a {\n background-color: var(--ox-checkbox-checked-background-color, #fff);\n border: var(--ox-checkbox-checked-border, 1px solid #38a25b);\n }\n\n path {\n fill: var(--ox-checkbox-fill-color, rgba(0, 0, 0, 0.1));\n }\n\n :host([checked]) path {\n fill: var(--ox-checkbox-checked-color, #38a25b);\n }\n\n svg {\n width: var(--ox-checkbox-size, 15px);\n height: var(--ox-checkbox-size, 15px);\n }\n\n [label] {\n margin: var(--ox-checkbox-label-margin, 0 0 0 7px);\n color: var(--ox-checkbox-label-color, #3a5877);\n }\n\n :host([checked]) [label] {\n font-weight: var(--ox-checkbox-checked-font-weight, bold);\n }\n "])))],Jd);(0,t.gn)([a({type:Boolean,attribute:"checked",reflect:!0})],uh.prototype,"checked",void 0),(0,t.gn)([a({type:Boolean})],uh.prototype,"disabled",void 0),(0,t.gn)([a({type:Boolean,attribute:"indeterminatable"})],uh.prototype,"indeterminatable",void 0),(0,t.gn)([a({type:Boolean,attribute:"indeterminate",reflect:!0})],uh.prototype,"indeterminate",void 0),(0,t.gn)([u()],uh.prototype,"_hasInner",void 0),uh=(0,t.gn)([e("ox-checkbox")],uh);var dh=(t,e,r)=>{var n=t.filter;return null==n||n.options,nt(lh||(lh=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n <ox-checkbox\n name=","\n ?checked=","\n indeterminatable\n ?indeterminate=","\n @change=","\n ></ox-checkbox>\n "])),t.name,e,null==e,(e=>{e.target.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:e.target.checked}}))}))};var hh,ph,fh=(hh=function(t,e){return hh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},hh(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}hh(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),mh=function(t){function e(e){var r,n,i,o=this.constructor,a=t.call(this,e)||this;return Object.defineProperty(a,"name",{value:o.name,enumerable:!1,configurable:!0}),r=a,n=o.prototype,(i=Object.setPrototypeOf)?i(r,n):r.__proto__=n,function(t,e){void 0===e&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}(a),a}return fh(e,t),e}(Error),gh=(ph=function(t,e){return ph=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},ph(t,e)},function(t,e){function r(){this.constructor=t}ph(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const vh=function(t){function e(e){void 0===e&&(e=void 0);var r=t.call(this,e)||this;return r.message=e,r}return gh(e,t),e.prototype.getKind=function(){return this.constructor.kind},e.kind="Exception",e}(mh);var yh=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const bh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yh(e,t),e.kind="ArgumentException",e}(vh);var wh=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const _h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wh(e,t),e.kind="IllegalArgumentException",e}(vh);var Eh=function(){function t(t){if(this.binarizer=t,null===t)throw new _h("Binarizer must be non-null.")}return t.prototype.getWidth=function(){return this.binarizer.getWidth()},t.prototype.getHeight=function(){return this.binarizer.getHeight()},t.prototype.getBlackRow=function(t,e){return this.binarizer.getBlackRow(t,e)},t.prototype.getBlackMatrix=function(){return null!==this.matrix&&void 0!==this.matrix||(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},t.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},t.prototype.crop=function(e,r,n,i){var o=this.binarizer.getLuminanceSource().crop(e,r,n,i);return new t(this.binarizer.createBinarizer(o))},t.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},t.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new t(this.binarizer.createBinarizer(e))},t.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new t(this.binarizer.createBinarizer(e))},t.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch(t){return""}},t}();const xh=Eh;var Ah=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ch=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ah(e,t),e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(vh),Sh=function(){function t(t){this.source=t}return t.prototype.getLuminanceSource=function(){return this.source},t.prototype.getWidth=function(){return this.source.getWidth()},t.prototype.getHeight=function(){return this.source.getHeight()},t}();var Dh=function(){function t(){}return t.arraycopy=function(t,e,r,n,i){for(;i--;)r[n++]=t[e++]},t.currentTimeMillis=function(){return Date.now()},t}();const Oh=Dh;var Ph=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ih=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ph(e,t),e.kind="IndexOutOfBoundsException",e}(vh);var kh=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Th=function(t){function e(e,r){void 0===e&&(e=void 0),void 0===r&&(r=void 0);var n=t.call(this,r)||this;return n.index=e,n.message=r,n}return kh(e,t),e.kind="ArrayIndexOutOfBoundsException",e}(Ih);var Rh=function(){function t(){}return t.fill=function(t,e){for(var r=0,n=t.length;r<n;r++)t[r]=e},t.fillWithin=function(e,r,n,i){t.rangeCheck(e.length,r,n);for(var o=r;o<n;o++)e[o]=i},t.rangeCheck=function(t,e,r){if(e>r)throw new _h("fromIndex("+e+") > toIndex("+r+")");if(e<0)throw new Th(e);if(r>t)throw new Th(r)},t.asList=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},t.create=function(t,e,r){return Array.from({length:t}).map((function(t){return Array.from({length:e}).fill(r)}))},t.createInt32Array=function(t,e,r){return Array.from({length:t}).map((function(t){return Int32Array.from({length:e}).fill(r)}))},t.equals=function(t,e){if(!t)return!1;if(!e)return!1;if(!t.length)return!1;if(!e.length)return!1;if(t.length!==e.length)return!1;for(var r=0,n=t.length;r<n;r++)if(t[r]!==e[r])return!1;return!0},t.hashCode=function(t){var e,r;if(null===t)return 0;var n=1;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next())n=31*n+o.value}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},t.fillUint8Array=function(t,e){for(var r=0;r!==t.length;r++)t[r]=e},t.copyOf=function(t,e){return t.slice(0,e)},t.copyOfUint8Array=function(t,e){if(t.length<=e){var r=new Uint8Array(e);return r.set(t),r}return t.slice(0,e)},t.copyOfRange=function(t,e,r){var n=r-e,i=new Int32Array(n);return Oh.arraycopy(t,e,i,0,n),i},t.binarySearch=function(e,r,n){void 0===n&&(n=t.numberComparator);for(var i=0,o=e.length-1;i<=o;){var a=o+i>>1,s=n(r,e[a]);if(s>0)i=a+1;else{if(!(s<0))return a;o=a-1}}return-i-1},t.numberComparator=function(t,e){return t-e},t}();const Fh=Rh;var Nh=function(){function t(){}return t.numberOfTrailingZeros=function(t){var e;if(0===t)return 32;var r=31;return 0!=(e=t<<16)&&(r-=16,t=e),0!=(e=t<<8)&&(r-=8,t=e),0!=(e=t<<4)&&(r-=4,t=e),0!=(e=t<<2)&&(r-=2,t=e),r-(t<<1>>>31)},t.numberOfLeadingZeros=function(t){if(0===t)return 32;var e=1;return t>>>16==0&&(e+=16,t<<=16),t>>>24==0&&(e+=8,t<<=8),t>>>28==0&&(e+=4,t<<=4),t>>>30==0&&(e+=2,t<<=2),e-(t>>>31)},t.toHexString=function(t){return t.toString(16)},t.toBinaryString=function(t){return String(parseInt(String(t),2))},t.bitCount=function(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,63&(t+=t>>>8)+(t>>>16)},t.truncDivision=function(t,e){return Math.trunc(t/e)},t.parseInt=function(t,e){return void 0===e&&(e=void 0),parseInt(t,e)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}();const Mh=Nh;var Bh=function(){function t(e,r){void 0===e?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,this.bits=null==r?t.makeArray(e):r)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>32*this.bits.length){var r=t.makeArray(e);Oh.arraycopy(this.bits,0,r,0,this.bits.length),this.bits=r}},t.prototype.get=function(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))},t.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},t.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},t.prototype.getNextSet=function(t){var e=this.size;if(t>=e)return e;var r=this.bits,n=Math.floor(t/32),i=r[n];i&=~((1<<(31&t))-1);for(var o=r.length;0===i;){if(++n===o)return e;i=r[n]}var a=32*n+Mh.numberOfTrailingZeros(i);return a>e?e:a},t.prototype.getNextUnset=function(t){var e=this.size;if(t>=e)return e;var r=this.bits,n=Math.floor(t/32),i=~r[n];i&=~((1<<(31&t))-1);for(var o=r.length;0===i;){if(++n===o)return e;i=~r[n]}var a=32*n+Mh.numberOfTrailingZeros(i);return a>e?e:a},t.prototype.setBulk=function(t,e){this.bits[Math.floor(t/32)]=e},t.prototype.setRange=function(t,e){if(e<t||t<0||e>this.size)throw new _h;if(e!==t){e--;for(var r=Math.floor(t/32),n=Math.floor(e/32),i=this.bits,o=r;o<=n;o++){var a=(2<<(o<n?31:31&e))-(1<<(o>r?0:31&t));i[o]|=a}}},t.prototype.clear=function(){for(var t=this.bits.length,e=this.bits,r=0;r<t;r++)e[r]=0},t.prototype.isRange=function(t,e,r){if(e<t||t<0||e>this.size)throw new _h;if(e===t)return!0;e--;for(var n=Math.floor(t/32),i=Math.floor(e/32),o=this.bits,a=n;a<=i;a++){var s=(2<<(a<i?31:31&e))-(1<<(a>n?0:31&t))&4294967295;if((o[a]&s)!==(r?s:0))return!1}return!0},t.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},t.prototype.appendBits=function(t,e){if(e<0||e>32)throw new _h("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(var r=e;r>0;r--)this.appendBit(1==(t>>r-1&1))},t.prototype.appendBitArray=function(t){var e=t.size;this.ensureCapacity(this.size+e);for(var r=0;r<e;r++)this.appendBit(t.get(r))},t.prototype.xor=function(t){if(this.size!==t.size)throw new _h("Sizes don't match");for(var e=this.bits,r=0,n=e.length;r<n;r++)e[r]^=t.bits[r]},t.prototype.toBytes=function(t,e,r,n){for(var i=0;i<n;i++){for(var o=0,a=0;a<8;a++)this.get(t)&&(o|=1<<7-a),t++;e[r+i]=o}},t.prototype.getBitArray=function(){return this.bits},t.prototype.reverse=function(){for(var t=new Int32Array(this.bits.length),e=Math.floor((this.size-1)/32),r=e+1,n=this.bits,i=0;i<r;i++){var o=n[i];o=(o=(o=(o=(o=o>>1&1431655765|(1431655765&o)<<1)>>2&858993459|(858993459&o)<<2)>>4&252645135|(252645135&o)<<4)>>8&16711935|(16711935&o)<<8)>>16&65535|(65535&o)<<16,t[e-i]=o}if(this.size!==32*r){var a=32*r-this.size,s=t[0]>>>a;for(i=1;i<r;i++){var c=t[i];s|=c<<32-a,t[i-1]=s,s=c>>>a}t[r-1]=s}this.bits=t},t.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.size===r.size&&Fh.equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+Fh.hashCode(this.bits)},t.prototype.toString=function(){for(var t="",e=0,r=this.size;e<r;e++)0==(7&e)&&(t+=" "),t+=this.get(e)?"X":".";return t},t.prototype.clone=function(){return new t(this.size,this.bits.slice())},t}();const Lh=Bh;var jh;!function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"}(jh||(jh={}));const Vh=jh;var zh=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zh(e,t),e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(vh);var Hh,Gh=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"}(Hh||(Hh={}));var qh=function(){function t(e,r,n){for(var i,o,a=[],s=3;s<arguments.length;s++)a[s-3]=arguments[s];this.valueIdentifier=e,this.name=n,this.values="number"==typeof r?Int32Array.from([r]):r,this.otherEncodingNames=a,t.VALUE_IDENTIFIER_TO_ECI.set(e,this),t.NAME_TO_ECI.set(n,this);for(var c=this.values,l=0,u=c.length;l!==u;l++){var d=c[l];t.VALUES_TO_ECI.set(d,this)}try{for(var h=Gh(a),p=h.next();!p.done;p=h.next()){var f=p.value;t.NAME_TO_ECI.set(f,this)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}return t.prototype.getValueIdentifier=function(){return this.valueIdentifier},t.prototype.getName=function(){return this.name},t.prototype.getValue=function(){return this.values[0]},t.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new Uh("incorect value");var r=t.VALUES_TO_ECI.get(e);if(void 0===r)throw new Uh("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(void 0===r)throw new Uh("incorect value");return r},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.getName()===r.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(Hh.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(Hh.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(Hh.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(Hh.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(Hh.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(Hh.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(Hh.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(Hh.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(Hh.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(Hh.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(Hh.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(Hh.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(Hh.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(Hh.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(Hh.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(Hh.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(Hh.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(Hh.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(Hh.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(Hh.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(Hh.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(Hh.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(Hh.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(Hh.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(Hh.Big5,28,"Big5"),t.GB18030=new t(Hh.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(Hh.EUC_KR,30,"EUC_KR","EUC-KR"),t}();const Wh=qh;var Yh=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Xh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yh(e,t),e.kind="UnsupportedOperationException",e}(vh);var $h=function(){function t(){}return t.decode=function(t,e){var r=this.encodingName(e);return this.customDecoder?this.customDecoder(t,r):"undefined"==typeof TextDecoder||this.shouldDecodeOnFallback(r)?this.decodeFallback(t,r):new TextDecoder(r).decode(t)},t.shouldDecodeOnFallback=function(e){return!t.isBrowser()&&"ISO-8859-1"===e},t.encode=function(t,e){var r=this.encodingName(e);return this.customEncoder?this.customEncoder(t,r):"undefined"==typeof TextEncoder?this.encodeFallback(t):(new TextEncoder).encode(t)},t.isBrowser=function(){return"undefined"!=typeof window&&"[object Window]"==={}.toString.call(window)},t.encodingName=function(t){return"string"==typeof t?t:t.getName()},t.encodingCharacterSet=function(t){return t instanceof Wh?t:Wh.getCharacterSetECIByName(t)},t.decodeFallback=function(e,r){var n=this.encodingCharacterSet(r);if(t.isDecodeFallbackSupported(n)){for(var i="",o=0,a=e.length;o<a;o++){var s=e[o].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(n.equals(Wh.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Xh("Encoding "+this.encodingName(r)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(t){return t.equals(Wh.UTF8)||t.equals(Wh.ISO8859_1)||t.equals(Wh.ASCII)},t.encodeFallback=function(t){for(var e=btoa(unescape(encodeURIComponent(t))).split(""),r=[],n=0;n<e.length;n++)r.push(e[n].charCodeAt(0));return new Uint8Array(r)},t}();const Qh=$h;var Kh=function(){function t(){}return t.castAsNonUtf8Char=function(t,e){void 0===e&&(e=null);var r=e?e.getName():this.ISO88591;return Qh.decode(new Uint8Array([t]),r)},t.guessEncoding=function(e,r){if(null!=r&&void 0!==r.get(Vh.CHARACTER_SET))return r.get(Vh.CHARACTER_SET).toString();for(var n=e.length,i=!0,o=!0,a=!0,s=0,c=0,l=0,u=0,d=0,h=0,p=0,f=0,m=0,g=0,v=0,y=e.length>3&&239===e[0]&&187===e[1]&&191===e[2],b=0;b<n&&(i||o||a);b++){var w=255&e[b];a&&(s>0?0==(128&w)?a=!1:s--:0!=(128&w)&&(0==(64&w)?a=!1:(s++,0==(32&w)?c++:(s++,0==(16&w)?l++:(s++,0==(8&w)?u++:a=!1))))),i&&(w>127&&w<160?i=!1:w>159&&(w<192||215===w||247===w)&&v++),o&&(d>0?w<64||127===w||w>252?o=!1:d--:128===w||160===w||w>239?o=!1:w>160&&w<224?(h++,f=0,++p>m&&(m=p)):w>127?(d++,p=0,++f>g&&(g=f)):(p=0,f=0))}return a&&s>0&&(a=!1),o&&d>0&&(o=!1),a&&(y||c+l+u>0)?t.UTF8:o&&(t.ASSUME_SHIFT_JIS||m>=3||g>=3)?t.SHIFT_JIS:i&&o?2===m&&2===h||10*v>=n?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:o?t.SHIFT_JIS:a?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=-1;function i(t,r,i,o,a,s){if("%%"===t)return"%";if(void 0!==e[++n]){t=o?parseInt(o.substr(1)):void 0;var c,l=a?parseInt(a.substr(1)):void 0;switch(s){case"s":c=e[n];break;case"c":c=e[n][0];break;case"f":c=parseFloat(e[n]).toFixed(t);break;case"p":c=parseFloat(e[n]).toPrecision(t);break;case"e":c=parseFloat(e[n]).toExponential(t);break;case"x":c=parseInt(e[n]).toString(l||16);break;case"d":c=parseFloat(parseInt(e[n],l||10).toPrecision(t)).toFixed(0)}c="object"==typeof c?JSON.stringify(c):(+c).toString(l);for(var u=parseInt(i),d=i&&i[0]+""=="0"?"0":" ";c.length<u;)c=void 0!==r?c+d:d+c;return c}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(o,i)},t.getBytes=function(t,e){return Qh.encode(t,e)},t.getCharCode=function(t,e){return void 0===e&&(e=0),t.charCodeAt(e)},t.getCharAt=function(t){return String.fromCharCode(t)},t.SHIFT_JIS=Wh.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=Wh.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=Wh.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}();const Zh=Kh;var Jh=function(){function t(t){void 0===t&&(t=""),this.value=t}return t.prototype.enableDecoding=function(t){return this.encoding=t,this},t.prototype.append=function(t){return"string"==typeof t?this.value+=t.toString():this.encoding?this.value+=Zh.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this},t.prototype.appendChars=function(t,e,r){for(var n=e;e<e+r;n++)this.append(t[n]);return this},t.prototype.length=function(){return this.value.length},t.prototype.charAt=function(t){return this.value.charAt(t)},t.prototype.deleteCharAt=function(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)},t.prototype.setCharAt=function(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+1)},t.prototype.substring=function(t,e){return this.value.substring(t,e)},t.prototype.setLengthToZero=function(){this.value=""},t.prototype.toString=function(){return this.value},t.prototype.insert=function(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+e.length)},t}();const tp=Jh;var ep=function(){function t(t,e,r,n){if(this.width=t,this.height=e,this.rowSize=r,this.bits=n,null==e&&(e=t),this.height=e,t<1||e<1)throw new _h("Both dimensions must be greater than 0");null==r&&(r=Math.floor((t+31)/32)),this.rowSize=r,null==n&&(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var r=e.length,n=e[0].length,i=new t(n,r),o=0;o<r;o++)for(var a=e[o],s=0;s<n;s++)a[s]&&i.set(s,o);return i},t.parseFromString=function(e,r,n){if(null===e)throw new _h("stringRepresentation cannot be null");for(var i=new Array(e.length),o=0,a=0,s=-1,c=0,l=0;l<e.length;)if("\n"===e.charAt(l)||"\r"===e.charAt(l)){if(o>a){if(-1===s)s=o-a;else if(o-a!==s)throw new _h("row lengths do not match");a=o,c++}l++}else if(e.substring(l,l+r.length)===r)l+=r.length,i[o]=!0,o++;else{if(e.substring(l,l+n.length)!==n)throw new _h("illegal character encountered: "+e.substring(l));l+=n.length,i[o]=!1,o++}if(o>a){if(-1===s)s=o-a;else if(o-a!==s)throw new _h("row lengths do not match");c++}for(var u=new t(s,c),d=0;d<o;d++)i[d]&&u.set(Math.floor(d%s),Math.floor(d/s));return u},t.prototype.get=function(t,e){var r=e*this.rowSize+Math.floor(t/32);return 0!=(this.bits[r]>>>(31&t)&1)},t.prototype.set=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]|=1<<(31&t)&4294967295},t.prototype.unset=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]&=~(1<<(31&t)&4294967295)},t.prototype.flip=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]^=1<<(31&t)&4294967295},t.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new _h("input matrix dimensions do not match");for(var e=new Lh(Math.floor(this.width/32)+1),r=this.rowSize,n=this.bits,i=0,o=this.height;i<o;i++)for(var a=i*r,s=t.getRow(i,e).getBitArray(),c=0;c<r;c++)n[a+c]^=s[c]},t.prototype.clear=function(){for(var t=this.bits,e=t.length,r=0;r<e;r++)t[r]=0},t.prototype.setRegion=function(t,e,r,n){if(e<0||t<0)throw new _h("Left and top must be nonnegative");if(n<1||r<1)throw new _h("Height and width must be at least 1");var i=t+r,o=e+n;if(o>this.height||i>this.width)throw new _h("The region must fit inside the matrix");for(var a=this.rowSize,s=this.bits,c=e;c<o;c++)for(var l=c*a,u=t;u<i;u++)s[l+Math.floor(u/32)]|=1<<(31&u)&4294967295},t.prototype.getRow=function(t,e){null==e||e.getSize()<this.width?e=new Lh(this.width):e.clear();for(var r=this.rowSize,n=this.bits,i=t*r,o=0;o<r;o++)e.setBulk(32*o,n[i+o]);return e},t.prototype.setRow=function(t,e){Oh.arraycopy(e.getBitArray(),0,this.bits,t*this.rowSize,this.rowSize)},t.prototype.rotate180=function(){for(var t=this.getWidth(),e=this.getHeight(),r=new Lh(t),n=new Lh(t),i=0,o=Math.floor((e+1)/2);i<o;i++)r=this.getRow(i,r),n=this.getRow(e-1-i,n),r.reverse(),n.reverse(),this.setRow(i,n),this.setRow(e-1-i,r)},t.prototype.getEnclosingRectangle=function(){for(var t=this.width,e=this.height,r=this.rowSize,n=this.bits,i=t,o=e,a=-1,s=-1,c=0;c<e;c++)for(var l=0;l<r;l++){var u=n[c*r+l];if(0!==u){if(c<o&&(o=c),c>s&&(s=c),32*l<i){for(var d=0;0==(u<<31-d&4294967295);)d++;32*l+d<i&&(i=32*l+d)}if(32*l+31>a){for(d=31;u>>>d==0;)d--;32*l+d>a&&(a=32*l+d)}}}return a<i||s<o?null:Int32Array.from([i,o,a-i+1,s-o+1])},t.prototype.getTopLeftOnBit=function(){for(var t=this.rowSize,e=this.bits,r=0;r<e.length&&0===e[r];)r++;if(r===e.length)return null;for(var n=r/t,i=r%t*32,o=e[r],a=0;0==(o<<31-a&4294967295);)a++;return i+=a,Int32Array.from([i,n])},t.prototype.getBottomRightOnBit=function(){for(var t=this.rowSize,e=this.bits,r=e.length-1;r>=0&&0===e[r];)r--;if(r<0)return null;for(var n=Math.floor(r/t),i=32*Math.floor(r%t),o=e[r],a=31;o>>>a==0;)a--;return i+=a,Int32Array.from([i,n])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.width===r.width&&this.height===r.height&&this.rowSize===r.rowSize&&Fh.equals(this.bits,r.bits)},t.prototype.hashCode=function(){var t=this.width;return 31*(t=31*(t=31*(t=31*t+this.width)+this.height)+this.rowSize)+Fh.hashCode(this.bits)},t.prototype.toString=function(t,e,r){return void 0===t&&(t="X "),void 0===e&&(e=" "),void 0===r&&(r="\n"),this.buildToString(t,e,r)},t.prototype.buildToString=function(t,e,r){for(var n=new tp,i=0,o=this.height;i<o;i++){for(var a=0,s=this.width;a<s;a++)n.append(this.get(a,i)?t:e);n.append(r)}return n.toString()},t.prototype.clone=function(){return new t(this.width,this.height,this.rowSize,this.bits.slice())},t}();const rp=ep;var np=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ip=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return np(e,t),e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(vh);var op=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ap=function(t){function e(r){var n=t.call(this,r)||this;return n.luminances=e.EMPTY,n.buckets=new Int32Array(e.LUMINANCE_BUCKETS),n}return op(e,t),e.prototype.getBlackRow=function(t,r){var n=this.getLuminanceSource(),i=n.getWidth();null==r||r.getSize()<i?r=new Lh(i):r.clear(),this.initArrays(i);for(var o=n.getRow(t,this.luminances),a=this.buckets,s=0;s<i;s++)a[(255&o[s])>>e.LUMINANCE_SHIFT]++;var c=e.estimateBlackPoint(a);if(i<3)for(s=0;s<i;s++)(255&o[s])<c&&r.set(s);else{var l=255&o[0],u=255&o[1];for(s=1;s<i-1;s++){var d=255&o[s+1];(4*u-l-d)/2<c&&r.set(s),l=u,u=d}}return r},e.prototype.getBlackMatrix=function(){var t=this.getLuminanceSource(),r=t.getWidth(),n=t.getHeight(),i=new rp(r,n);this.initArrays(r);for(var o=this.buckets,a=1;a<5;a++)for(var s=Math.floor(n*a/5),c=t.getRow(s,this.luminances),l=Math.floor(4*r/5),u=Math.floor(r/5);u<l;u++)o[(255&c[u])>>e.LUMINANCE_SHIFT]++;var d=e.estimateBlackPoint(o),h=t.getMatrix();for(a=0;a<n;a++){var p=a*r;for(u=0;u<r;u++)(255&h[p+u])<d&&i.set(u,a)}return i},e.prototype.createBinarizer=function(t){return new e(t)},e.prototype.initArrays=function(t){this.luminances.length<t&&(this.luminances=new Uint8ClampedArray(t));for(var r=this.buckets,n=0;n<e.LUMINANCE_BUCKETS;n++)r[n]=0},e.estimateBlackPoint=function(t){for(var r=t.length,n=0,i=0,o=0,a=0;a<r;a++)t[a]>o&&(i=a,o=t[a]),t[a]>n&&(n=t[a]);var s=0,c=0;for(a=0;a<r;a++){var l=a-i;(p=t[a]*l*l)>c&&(s=a,c=p)}if(i>s){var u=i;i=s,s=u}if(s-i<=r/16)throw new ip;var d=s-1,h=-1;for(a=s-1;a>i;a--){var p,f=a-i;(p=f*f*(s-a)*(n-t[a]))>h&&(d=a,h=p)}return d<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(Sh);const sp=ap;var cp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),lp=function(t){function e(e){var r=t.call(this,e)||this;return r.matrix=null,r}return cp(e,t),e.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var r=this.getLuminanceSource(),n=r.getWidth(),i=r.getHeight();if(n>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var o=r.getMatrix(),a=n>>e.BLOCK_SIZE_POWER;0!=(n&e.BLOCK_SIZE_MASK)&&a++;var s=i>>e.BLOCK_SIZE_POWER;0!=(i&e.BLOCK_SIZE_MASK)&&s++;var c=e.calculateBlackPoints(o,a,s,n,i),l=new rp(n,i);e.calculateThresholdForBlock(o,a,s,n,i,c,l),this.matrix=l}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,r,n,i,o,a,s){for(var c=o-e.BLOCK_SIZE,l=i-e.BLOCK_SIZE,u=0;u<n;u++){var d=u<<e.BLOCK_SIZE_POWER;d>c&&(d=c);for(var h=e.cap(u,2,n-3),p=0;p<r;p++){var f=p<<e.BLOCK_SIZE_POWER;f>l&&(f=l);for(var m=e.cap(p,2,r-3),g=0,v=-2;v<=2;v++){var y=a[h+v];g+=y[m-2]+y[m-1]+y[m]+y[m+1]+y[m+2]}var b=g/25;e.thresholdBlock(t,f,d,b,i,s)}}},e.cap=function(t,e,r){return t<e?e:t>r?r:t},e.thresholdBlock=function(t,r,n,i,o,a){for(var s=0,c=n*o+r;s<e.BLOCK_SIZE;s++,c+=o)for(var l=0;l<e.BLOCK_SIZE;l++)(255&t[c+l])<=i&&a.set(r+l,n+s)},e.calculateBlackPoints=function(t,r,n,i,o){for(var a=o-e.BLOCK_SIZE,s=i-e.BLOCK_SIZE,c=new Array(n),l=0;l<n;l++){c[l]=new Int32Array(r);var u=l<<e.BLOCK_SIZE_POWER;u>a&&(u=a);for(var d=0;d<r;d++){var h=d<<e.BLOCK_SIZE_POWER;h>s&&(h=s);for(var p=0,f=255,m=0,g=0,v=u*i+h;g<e.BLOCK_SIZE;g++,v+=i){for(var y=0;y<e.BLOCK_SIZE;y++){var b=255&t[v+y];p+=b,b<f&&(f=b),b>m&&(m=b)}if(m-f>e.MIN_DYNAMIC_RANGE)for(g++,v+=i;g<e.BLOCK_SIZE;g++,v+=i)for(y=0;y<e.BLOCK_SIZE;y++)p+=255&t[v+y]}var w=p>>2*e.BLOCK_SIZE_POWER;if(m-f<=e.MIN_DYNAMIC_RANGE&&(w=f/2,l>0&&d>0)){var _=(c[l-1][d]+2*c[l][d-1]+c[l-1][d-1])/4;f<_&&(w=_)}c[l][d]=w}}return c},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=5*e.BLOCK_SIZE,e.MIN_DYNAMIC_RANGE=24,e}(sp);const up=lp;var dp=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.isCropSupported=function(){return!1},t.prototype.crop=function(t,e,r,n){throw new Xh("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new Xh("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new Xh("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var t=new Uint8ClampedArray(this.width),e=new tp,r=0;r<this.height;r++){for(var n=this.getRow(r,t),i=0;i<this.width;i++){var o,a=255&n[i];o=a<64?"#":a<128?"+":a<192?".":" ",e.append(o)}e.append("\n")}return e.toString()},t}();const hp=dp;var pp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),fp=function(t){function e(e){var r=t.call(this,e.getWidth(),e.getHeight())||this;return r.delegate=e,r}return pp(e,t),e.prototype.getRow=function(t,e){for(var r=this.delegate.getRow(t,e),n=this.getWidth(),i=0;i<n;i++)r[i]=255-(255&r[i]);return r},e.prototype.getMatrix=function(){for(var t=this.delegate.getMatrix(),e=this.getWidth()*this.getHeight(),r=new Uint8ClampedArray(e),n=0;n<e;n++)r[n]=255-(255&t[n]);return r},e.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},e.prototype.crop=function(t,r,n,i){return new e(this.delegate.crop(t,r,n,i))},e.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},e.prototype.invert=function(){return this.delegate},e.prototype.rotateCounterClockwise=function(){return new e(this.delegate.rotateCounterClockwise())},e.prototype.rotateCounterClockwise45=function(){return new e(this.delegate.rotateCounterClockwise45())},e}(hp);const mp=fp;var gp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),vp=function(t){function e(r){var n=t.call(this,r.width,r.height)||this;return n.canvas=r,n.tempCanvasElement=null,n.buffer=e.makeBufferFromCanvasImageData(r),n}return gp(e,t),e.makeBufferFromCanvasImageData=function(t){var r=t.getContext("2d").getImageData(0,0,t.width,t.height);return e.toGrayscaleBuffer(r.data,t.width,t.height)},e.toGrayscaleBuffer=function(t,e,r){for(var n=new Uint8ClampedArray(e*r),i=0,o=0,a=t.length;i<a;i+=4,o++){var s=void 0;s=0===t[i+3]?255:306*t[i]+601*t[i+1]+117*t[i+2]+512>>10,n[o]=s}return n},e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new _h("Requested row is outside the image: "+t);var r=this.getWidth(),n=t*r;return null===e?e=this.buffer.slice(n,n+r):(e.length<r&&(e=new Uint8ClampedArray(r)),e.set(this.buffer.slice(n,n+r))),e},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(e,r,n,i){return t.prototype.crop.call(this,e,r,n,i),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.getTempCanvasElement=function(){if(null===this.tempCanvasElement){var t=this.canvas.ownerDocument.createElement("canvas");t.width=this.canvas.width,t.height=this.canvas.height,this.tempCanvasElement=t}return this.tempCanvasElement},e.prototype.rotate=function(t){var r=this.getTempCanvasElement(),n=r.getContext("2d"),i=t*e.DEGREE_TO_RADIANS,o=this.canvas.width,a=this.canvas.height,s=Math.ceil(Math.abs(Math.cos(i))*o+Math.abs(Math.sin(i))*a),c=Math.ceil(Math.abs(Math.sin(i))*o+Math.abs(Math.cos(i))*a);return r.width=s,r.height=c,n.translate(s/2,c/2),n.rotate(i),n.drawImage(this.canvas,o/-2,a/-2),this.buffer=e.makeBufferFromCanvasImageData(r),this},e.prototype.invert=function(){return new mp(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e}(hp),yp=function(){function t(t,e,r){this.deviceId=t,this.label=e,this.kind="videoinput",this.groupId=r||void 0}return t.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},t}(),bp=__webpack_require__(51266),wp=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))},_p=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Ep=function(){function t(t,e,r){void 0===e&&(e=500),this.reader=t,this.timeBetweenScansMillis=e,this._hints=r,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(t.prototype,"hasNavigator",{get:function(){return"undefined"!=typeof navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(t){this._timeBetweenDecodingAttempts=t<0?0:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hints",{get:function(){return this._hints},set:function(t){this._hints=t||null},enumerable:!1,configurable:!0}),t.prototype.listVideoInputDevices=function(){return wp(this,void 0,void 0,(function(){var t,e,r,n,i,o,a,s,c,l,u,d;return _p(this,(function(h){switch(h.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=h.sent(),e=[];try{for(r=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n=r.next();!n.done;n=r.next())i=n.value,"videoinput"===(o="video"===i.kind?"videoinput":i.kind)&&(a=i.deviceId||i.id,s=i.label||"Video device "+(e.length+1),c=i.groupId,l={deviceId:a,label:s,kind:o,groupId:c},e.push(l))}catch(t){u={error:t}}finally{try{n&&!n.done&&(d=r.return)&&d.call(r)}finally{if(u)throw u.error}}return[2,e]}}))}))},t.prototype.getVideoInputDevices=function(){return wp(this,void 0,void 0,(function(){return _p(this,(function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,t.sent().map((function(t){return new yp(t.deviceId,t.label)}))]}}))}))},t.prototype.findDeviceById=function(t){return wp(this,void 0,void 0,(function(){var e;return _p(this,(function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(e=r.sent())?[2,e.find((function(e){return e.deviceId===t}))]:[2,null]}}))}))},t.prototype.decodeFromInputVideoDevice=function(t,e){return wp(this,void 0,void 0,(function(){return _p(this,(function(r){switch(r.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,e)];case 1:return[2,r.sent()]}}))}))},t.prototype.decodeOnceFromVideoDevice=function(t,e){return wp(this,void 0,void 0,(function(){var r;return _p(this,(function(n){switch(n.label){case 0:return this.reset(),r={video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},[4,this.decodeOnceFromConstraints(r,e)];case 1:return[2,n.sent()]}}))}))},t.prototype.decodeOnceFromConstraints=function(t,e){return wp(this,void 0,void 0,(function(){var r;return _p(this,(function(n){switch(n.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return r=n.sent(),[4,this.decodeOnceFromStream(r,e)];case 2:return[2,n.sent()]}}))}))},t.prototype.decodeOnceFromStream=function(t,e){return wp(this,void 0,void 0,(function(){var r;return _p(this,(function(n){switch(n.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return r=n.sent(),[4,this.decodeOnce(r)];case 2:return[2,n.sent()]}}))}))},t.prototype.decodeFromInputVideoDeviceContinuously=function(t,e,r){return wp(this,void 0,void 0,(function(){return _p(this,(function(n){switch(n.label){case 0:return[4,this.decodeFromVideoDevice(t,e,r)];case 1:return[2,n.sent()]}}))}))},t.prototype.decodeFromVideoDevice=function(t,e,r){return wp(this,void 0,void 0,(function(){var n;return _p(this,(function(i){switch(i.label){case 0:return n={video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},[4,this.decodeFromConstraints(n,e,r)];case 1:return[2,i.sent()]}}))}))},t.prototype.decodeFromConstraints=function(t,e,r){return wp(this,void 0,void 0,(function(){var n;return _p(this,(function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return n=i.sent(),[4,this.decodeFromStream(n,e,r)];case 2:return[2,i.sent()]}}))}))},t.prototype.decodeFromStream=function(t,e,r){return wp(this,void 0,void 0,(function(){var n;return _p(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return n=i.sent(),[4,this.decodeContinuously(n,r)];case 2:return[2,i.sent()]}}))}))},t.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},t.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},t.prototype.attachStreamToVideo=function(t,e){return wp(this,void 0,void 0,(function(){var r;return _p(this,(function(n){switch(n.label){case 0:return r=this.prepareVideoElement(e),this.addVideoSource(r,t),this.videoElement=r,this.stream=t,[4,this.playVideoOnLoadAsync(r)];case 1:return n.sent(),[2,r]}}))}))},t.prototype.playVideoOnLoadAsync=function(t){var e=this;return new Promise((function(r,n){return e.playVideoOnLoad(t,(function(){return r()}))}))},t.prototype.playVideoOnLoad=function(t,e){var r=this;this.videoEndedListener=function(){return r.stopStreams()},this.videoCanPlayListener=function(){return r.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)},t.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},t.prototype.tryPlayVideo=function(t){return wp(this,void 0,void 0,(function(){return _p(this,(function(e){switch(e.label){case 0:if(this.isVideoPlaying(t))return bp.warn("Trying to play video that is already playing."),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.play()];case 2:return e.sent(),[3,4];case 3:return e.sent(),bp.warn("It was not possible to play the video."),[3,4];case 4:return[2]}}))}))},t.prototype.getMediaElement=function(t,e){var r=document.getElementById(t);if(!r)throw new bh("element with id '"+t+"' not found");if(r.nodeName.toLowerCase()!==e.toLowerCase())throw new bh("element with id '"+t+"' must be an "+e+" element");return r},t.prototype.decodeFromImage=function(t,e){if(!t&&!e)throw new bh("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)},t.prototype.decodeFromVideo=function(t,e){if(!t&&!e)throw new bh("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)},t.prototype.decodeFromVideoContinuously=function(t,e,r){if(void 0===t&&void 0===e)throw new bh("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,r):this.decodeFromVideoElementContinuously(t,r)},t.prototype.decodeFromImageElement=function(t){if(!t)throw new bh("An image element must be provided.");this.reset();var e=this.prepareImageElement(t);return this.imageElement=e,this.isImageLoaded(e)?this.decodeOnce(e,!1,!0):this._decodeOnLoadImage(e)},t.prototype.decodeFromVideoElement=function(t){var e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)},t.prototype.decodeFromVideoElementContinuously=function(t,e){var r=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(r,e)},t.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new bh("A video element must be provided.");this.reset();var e=this.prepareVideoElement(t);return this.videoElement=e,e},t.prototype.decodeFromImageUrl=function(t){if(!t)throw new bh("An URL must be provided.");this.reset();var e=this.prepareImageElement();this.imageElement=e;var r=this._decodeOnLoadImage(e);return e.src=t,r},t.prototype.decodeFromVideoUrl=function(t){if(!t)throw new bh("An URL must be provided.");this.reset();var e=this.prepareVideoElement(),r=this.decodeFromVideoElement(e);return e.src=t,r},t.prototype.decodeFromVideoUrlContinuously=function(t,e){if(!t)throw new bh("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),n=this.decodeFromVideoElementContinuously(r,e);return r.src=t,n},t.prototype._decodeOnLoadImage=function(t){var e=this;return new Promise((function(r,n){e.imageLoadedListener=function(){return e.decodeOnce(t,!1,!0).then(r,n)},t.addEventListener("load",e.imageLoadedListener)}))},t.prototype._decodeOnLoadVideo=function(t){return wp(this,void 0,void 0,(function(){return _p(this,(function(e){switch(e.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return e.sent(),[4,this.decodeOnce(t)];case 2:return[2,e.sent()]}}))}))},t.prototype._decodeOnLoadVideoContinuously=function(t,e){return wp(this,void 0,void 0,(function(){return _p(this,(function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return r.sent(),this.decodeContinuously(t,e),[2]}}))}))},t.prototype.isImageLoaded=function(t){return!!t.complete&&0!==t.naturalWidth},t.prototype.prepareImageElement=function(t){var e;return void 0===t&&((e=document.createElement("img")).width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e},t.prototype.prepareVideoElement=function(t){var e;return t||"undefined"==typeof document||((e=document.createElement("video")).width=200,e.height=200),"string"==typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e},t.prototype.decodeOnce=function(t,e,r){var n=this;void 0===e&&(e=!0),void 0===r&&(r=!0),this._stopAsyncDecode=!1;var i=function(o,a){if(n._stopAsyncDecode)return a(new ip("Video stream has ended before any code could be detected.")),void(n._stopAsyncDecode=void 0);try{o(n.decode(t))}catch(t){if(e&&t instanceof ip||(t instanceof Ch||t instanceof Uh)&&r)return setTimeout(i,n._timeBetweenDecodingAttempts,o,a);a(t)}};return new Promise((function(t,e){return i(t,e)}))},t.prototype.decodeContinuously=function(t,e){var r=this;this._stopContinuousDecode=!1;var n=function(){if(r._stopContinuousDecode)r._stopContinuousDecode=void 0;else try{var i=r.decode(t);e(i,null),setTimeout(n,r.timeBetweenScansMillis)}catch(t){e(null,t),(t instanceof Ch||t instanceof Uh||t instanceof ip)&&setTimeout(n,r._timeBetweenDecodingAttempts)}};n()},t.prototype.decode=function(t){var e=this.createBinaryBitmap(t);return this.decodeBitmap(e)},t.prototype._isHTMLVideoElement=function(t){return 0!==t.videoWidth},t.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t),this._isHTMLVideoElement(t)?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var e=this.getCaptureCanvas(t),r=new vp(e),n=new up(r);return new xh(n)},t.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var e=this.getCaptureCanvas(t).getContext("2d");this.captureCanvasContext=e}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas},t.prototype.drawFrameOnCanvas=function(t,e,r){void 0===e&&(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),void 0===r&&(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},t.prototype.drawImageOnCanvas=function(t,e,r){void 0===e&&(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),void 0===r&&(r=this.captureCanvasContext),r.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},t.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},t.prototype.createCaptureCanvas=function(t){if("undefined"==typeof document)return this._destroyCaptureCanvas(),null;var e,r,n=document.createElement("canvas");return void 0!==t&&(t instanceof HTMLVideoElement?(e=t.videoWidth,r=t.videoHeight):t instanceof HTMLImageElement&&(e=t.naturalWidth||t.width,r=t.naturalHeight||t.height)),n.style.width=e+"px",n.style.height=r+"px",n.width=e,n.height=r,n},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach((function(t){return t.stop()})),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.prototype._destroyVideoElement=function(){this.videoElement&&(void 0!==this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),void 0!==this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),void 0!==this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},t.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(t,e){try{t.srcObject=e}catch(r){t.src=URL.createObjectURL(e)}},t.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")},t}();const xp=function(){function t(t,e,r,n,i,o){void 0===r&&(r=null==e?0:8*e.length),void 0===o&&(o=Oh.currentTimeMillis()),this.text=t,this.rawBytes=e,this.numBits=r,this.resultPoints=n,this.format=i,this.timestamp=o,this.text=t,this.rawBytes=e,this.numBits=null==r?null==e?0:8*e.length:r,this.resultPoints=n,this.format=i,this.resultMetadata=null,this.timestamp=null==o?Oh.currentTimeMillis():o}return t.prototype.getText=function(){return this.text},t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.getBarcodeFormat=function(){return this.format},t.prototype.getResultMetadata=function(){return this.resultMetadata},t.prototype.putMetadata=function(t,e){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,e)},t.prototype.putAllMetadata=function(t){null!==t&&(null===this.resultMetadata?this.resultMetadata=t:this.resultMetadata=new Map(t))},t.prototype.addResultPoints=function(t){var e=this.resultPoints;if(null===e)this.resultPoints=t;else if(null!==t&&t.length>0){var r=new Array(e.length+t.length);Oh.arraycopy(e,0,r,0,e.length),Oh.arraycopy(t,0,r,e.length,t.length),this.resultPoints=r}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}();var Ap;!function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(Ap||(Ap={}));const Cp=Ap;var Sp;!function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(Sp||(Sp={}));const Dp=Sp,Op=function(){function t(t,e,r,n,i,o){void 0===i&&(i=-1),void 0===o&&(o=-1),this.rawBytes=t,this.text=e,this.byteSegments=r,this.ecLevel=n,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=o,this.numBits=null==t?0:8*t.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(t){this.numBits=t},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(t){this.erasures=t},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(t){this.other=t},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}();var Pp=function(){function t(){}return t.prototype.exp=function(t){return this.expTable[t]},t.prototype.log=function(t){if(0===t)throw new _h;return this.logTable[t]},t.addOrSubtract=function(t,e){return t^e},t}();const Ip=Pp;var kp=function(){function t(t,e){if(0===e.length)throw new _h;this.field=t;var r=e.length;if(r>1&&0===e[0]){for(var n=1;n<r&&0===e[n];)n++;n===r?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(r-n),Oh.arraycopy(e,n,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return 0===this.coefficients[0]},t.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},t.prototype.evaluateAt=function(t){if(0===t)return this.getCoefficient(0);var e,r=this.coefficients;if(1===t){e=0;for(var n=0,i=r.length;n!==i;n++){var o=r[n];e=Ip.addOrSubtract(e,o)}return e}e=r[0];var a=r.length,s=this.field;for(n=1;n<a;n++)e=Ip.addOrSubtract(s.multiply(t,e),r[n]);return e},t.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new _h("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var r=this.coefficients,n=e.coefficients;if(r.length>n.length){var i=r;r=n,n=i}var o=new Int32Array(n.length),a=n.length-r.length;Oh.arraycopy(n,0,o,0,a);for(var s=a;s<n.length;s++)o[s]=Ip.addOrSubtract(r[s-a],n[s]);return new t(this.field,o)},t.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new _h("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var r=this.coefficients,n=r.length,i=e.coefficients,o=i.length,a=new Int32Array(n+o-1),s=this.field,c=0;c<n;c++)for(var l=r[c],u=0;u<o;u++)a[c+u]=Ip.addOrSubtract(a[c+u],s.multiply(l,i[u]));return new t(s,a)},t.prototype.multiplyScalar=function(e){if(0===e)return this.field.getZero();if(1===e)return this;for(var r=this.coefficients.length,n=this.field,i=new Int32Array(r),o=this.coefficients,a=0;a<r;a++)i[a]=n.multiply(o[a],e);return new t(n,i)},t.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new _h;if(0===r)return this.field.getZero();for(var n=this.coefficients,i=n.length,o=new Int32Array(i+e),a=this.field,s=0;s<i;s++)o[s]=a.multiply(n[s],r);return new t(a,o)},t.prototype.divide=function(t){if(!this.field.equals(t.field))throw new _h("GenericGFPolys do not have same GenericGF field");if(t.isZero())throw new _h("Divide by 0");for(var e=this.field,r=e.getZero(),n=this,i=t.getCoefficient(t.getDegree()),o=e.inverse(i);n.getDegree()>=t.getDegree()&&!n.isZero();){var a=n.getDegree()-t.getDegree(),s=e.multiply(n.getCoefficient(n.getDegree()),o),c=t.multiplyByMonomial(a,s),l=e.buildMonomial(a,s);r=r.addOrSubtract(l),n=n.addOrSubtract(c)}return[r,n]},t.prototype.toString=function(){for(var t="",e=this.getDegree();e>=0;e--){var r=this.getCoefficient(e);if(0!==r){if(r<0?(t+=" - ",r=-r):t.length>0&&(t+=" + "),0===e||1!==r){var n=this.field.log(r);0===n?t+="1":1===n?t+="a":(t+="a^",t+=n)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t},t}();const Tp=kp;var Rp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Fp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rp(e,t),e.kind="ArithmeticException",e}(vh);var Np=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Mp=function(t){function e(e,r,n){var i=t.call(this)||this;i.primitive=e,i.size=r,i.generatorBase=n;for(var o=new Int32Array(r),a=1,s=0;s<r;s++)o[s]=a,(a*=2)>=r&&(a^=e,a&=r-1);i.expTable=o;var c=new Int32Array(r);for(s=0;s<r-1;s++)c[o[s]]=s;return i.logTable=c,i.zero=new Tp(i,Int32Array.from([0])),i.one=new Tp(i,Int32Array.from([1])),i}return Np(e,t),e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(t,e){if(t<0)throw new _h;if(0===e)return this.zero;var r=new Int32Array(t+1);return r[0]=e,new Tp(this,r)},e.prototype.inverse=function(t){if(0===t)throw new Fp;return this.expTable[this.size-this.logTable[t]-1]},e.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+Mh.toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(t){return t===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(Ip);const Bp=Mp;var Lp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const jp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lp(e,t),e.kind="ReedSolomonException",e}(vh);var Vp=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const zp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vp(e,t),e.kind="IllegalStateException",e}(vh);var Up=function(){function t(t){this.field=t}return t.prototype.decode=function(t,e){for(var r=this.field,n=new Tp(r,t),i=new Int32Array(e),o=!0,a=0;a<e;a++){var s=n.evaluateAt(r.exp(a+r.getGeneratorBase()));i[i.length-1-a]=s,0!==s&&(o=!1)}if(!o){var c=new Tp(r,i),l=this.runEuclideanAlgorithm(r.buildMonomial(e,1),c,e),u=l[0],d=l[1],h=this.findErrorLocations(u),p=this.findErrorMagnitudes(d,h);for(a=0;a<h.length;a++){var f=t.length-1-r.log(h[a]);if(f<0)throw new jp("Bad error location");t[f]=Bp.addOrSubtract(t[f],p[a])}}},t.prototype.runEuclideanAlgorithm=function(t,e,r){if(t.getDegree()<e.getDegree()){var n=t;t=e,e=n}for(var i=this.field,o=t,a=e,s=i.getZero(),c=i.getOne();a.getDegree()>=(r/2|0);){var l=o,u=s;if(s=c,(o=a).isZero())throw new jp("r_{i-1} was zero");a=l;for(var d=i.getZero(),h=o.getCoefficient(o.getDegree()),p=i.inverse(h);a.getDegree()>=o.getDegree()&&!a.isZero();){var f=a.getDegree()-o.getDegree(),m=i.multiply(a.getCoefficient(a.getDegree()),p);d=d.addOrSubtract(i.buildMonomial(f,m)),a=a.addOrSubtract(o.multiplyByMonomial(f,m))}if(c=d.multiply(s).addOrSubtract(u),a.getDegree()>=o.getDegree())throw new zp("Division algorithm failed to reduce polynomial?")}var g=c.getCoefficient(0);if(0===g)throw new jp("sigmaTilde(0) was zero");var v=i.inverse(g);return[c.multiplyScalar(v),a.multiplyScalar(v)]},t.prototype.findErrorLocations=function(t){var e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);for(var r=new Int32Array(e),n=0,i=this.field,o=1;o<i.getSize()&&n<e;o++)0===t.evaluateAt(o)&&(r[n]=i.inverse(o),n++);if(n!==e)throw new jp("Error locator degree does not match number of roots");return r},t.prototype.findErrorMagnitudes=function(t,e){for(var r=e.length,n=new Int32Array(r),i=this.field,o=0;o<r;o++){for(var a=i.inverse(e[o]),s=1,c=0;c<r;c++)if(o!==c){var l=i.multiply(e[c],a),u=0==(1&l)?1|l:-2&l;s=i.multiply(s,u)}n[o]=i.multiply(t.evaluateAt(a),i.inverse(s)),0!==i.getGeneratorBase()&&(n[o]=i.multiply(n[o],a))}return n},t}();const Hp=Up;var Gp;!function(t){t[t.UPPER=0]="UPPER",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.DIGIT=3]="DIGIT",t[t.PUNCT=4]="PUNCT",t[t.BINARY=5]="BINARY"}(Gp||(Gp={}));var qp=function(){function t(){}return t.prototype.decode=function(e){this.ddata=e;var r=e.getBits(),n=this.extractBits(r),i=this.correctBits(n),o=t.convertBoolArrayToByteArray(i),a=t.getEncodedData(i),s=new Op(o,a,null,null);return s.setNumBits(i.length),s},t.highLevelDecode=function(t){return this.getEncodedData(t)},t.getEncodedData=function(e){for(var r=e.length,n=Gp.UPPER,i=Gp.UPPER,o="",a=0;a<r;)if(i===Gp.BINARY){if(r-a<5)break;var s=t.readCode(e,a,5);if(a+=5,0===s){if(r-a<11)break;s=t.readCode(e,a,11)+31,a+=11}for(var c=0;c<s;c++){if(r-a<8){a=r;break}var l=t.readCode(e,a,8);o+=Zh.castAsNonUtf8Char(l),a+=8}i=n}else{var u=i===Gp.DIGIT?4:5;if(r-a<u)break;l=t.readCode(e,a,u),a+=u;var d=t.getCharacter(i,l);d.startsWith("CTRL_")?(n=i,i=t.getTable(d.charAt(5)),"L"===d.charAt(6)&&(n=i)):(o+=d,i=n)}return o},t.getTable=function(t){switch(t){case"L":return Gp.LOWER;case"P":return Gp.PUNCT;case"M":return Gp.MIXED;case"D":return Gp.DIGIT;case"B":return Gp.BINARY;default:return Gp.UPPER}},t.getCharacter=function(e,r){switch(e){case Gp.UPPER:return t.UPPER_TABLE[r];case Gp.LOWER:return t.LOWER_TABLE[r];case Gp.MIXED:return t.MIXED_TABLE[r];case Gp.PUNCT:return t.PUNCT_TABLE[r];case Gp.DIGIT:return t.DIGIT_TABLE[r];default:throw new zp("Bad table")}},t.prototype.correctBits=function(e){var r,n;this.ddata.getNbLayers()<=2?(n=6,r=Bp.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,r=Bp.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,r=Bp.AZTEC_DATA_10):(n=12,r=Bp.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),o=e.length/n;if(o<i)throw new Uh;for(var a=e.length%n,s=new Int32Array(o),c=0;c<o;c++,a+=n)s[c]=t.readCode(e,a,n);try{new Hp(r).decode(s,o-i)}catch(t){throw new Uh(t)}var l=(1<<n)-1,u=0;for(c=0;c<i;c++){if(0===(p=s[c])||p===l)throw new Uh;1!==p&&p!==l-1||u++}var d=new Array(i*n-u),h=0;for(c=0;c<i;c++){var p;if(1===(p=s[c])||p===l-1)d.fill(p>1,h,h+n-1),h+=n-1;else for(var f=n-1;f>=0;--f)d[h++]=0!=(p&1<<f)}return d},t.prototype.extractBits=function(t){var e=this.ddata.isCompact(),r=this.ddata.getNbLayers(),n=(e?11:14)+4*r,i=new Int32Array(n),o=new Array(this.totalBitsInLayer(r,e));if(e)for(var a=0;a<i.length;a++)i[a]=a;else{var s=n+1+2*Mh.truncDivision(Mh.truncDivision(n,2)-1,15),c=n/2,l=Mh.truncDivision(s,2);for(a=0;a<c;a++){var u=a+Mh.truncDivision(a,15);i[c-a-1]=l-u-1,i[c+a]=l+u+1}}a=0;for(var d=0;a<r;a++){for(var h=4*(r-a)+(e?9:12),p=2*a,f=n-1-p,m=0;m<h;m++)for(var g=2*m,v=0;v<2;v++)o[d+g+v]=t.get(i[p+v],i[p+m]),o[d+2*h+g+v]=t.get(i[p+m],i[f-v]),o[d+4*h+g+v]=t.get(i[f-v],i[f-m]),o[d+6*h+g+v]=t.get(i[f-m],i[p+v]);d+=8*h}return o},t.readCode=function(t,e,r){for(var n=0,i=e;i<e+r;i++)n<<=1,t[i]&&(n|=1);return n},t.readByte=function(e,r){var n=e.length-r;return n>=8?t.readCode(e,r,8):t.readCode(e,r,n)<<8-n},t.convertBoolArrayToByteArray=function(e){for(var r=new Uint8Array((e.length+7)/8),n=0;n<r.length;n++)r[n]=t.readByte(e,8*n);return r},t.prototype.totalBitsInLayer=function(t,e){return((e?88:112)+16*t)*t},t.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],t.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],t.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b","\t","\n","\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],t.PUNCT_TABLE=["","\r","\r\n",". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],t.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],t}();const Wp=qp;var Yp=function(){function t(){}return t.round=function(t){return NaN===t?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},t.distance=function(t,e,r,n){var i=t-r,o=e-n;return Math.sqrt(i*i+o*o)},t.sum=function(t){for(var e=0,r=0,n=t.length;r!==n;r++)e+=t[r];return e},t}();const Xp=Yp;var $p=function(){function t(){}return t.floatToIntBits=function(t){return t},t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}();const Qp=$p;var Kp=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.equals=function(e){if(e instanceof t){var r=e;return this.x===r.x&&this.y===r.y}return!1},t.prototype.hashCode=function(){return 31*Qp.floatToIntBits(this.x)+Qp.floatToIntBits(this.y)},t.prototype.toString=function(){return"("+this.x+","+this.y+")"},t.orderBestPatterns=function(t){var e,r,n,i=this.distance(t[0],t[1]),o=this.distance(t[1],t[2]),a=this.distance(t[0],t[2]);if(o>=i&&o>=a?(r=t[0],e=t[1],n=t[2]):a>=o&&a>=i?(r=t[1],e=t[0],n=t[2]):(r=t[2],e=t[0],n=t[1]),this.crossProductZ(e,r,n)<0){var s=e;e=n,n=s}t[0]=e,t[1]=r,t[2]=n},t.distance=function(t,e){return Xp.distance(t.x,t.y,e.x,e.y)},t.crossProductZ=function(t,e,r){var n=e.x,i=e.y;return(r.x-n)*(t.y-i)-(r.y-i)*(t.x-n)},t}();const Zp=Kp,Jp=function(){function t(t,e){this.bits=t,this.points=e}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}();var tf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ef=function(t){function e(e,r,n,i,o){var a=t.call(this,e,r)||this;return a.compact=n,a.nbDatablocks=i,a.nbLayers=o,a}return tf(e,t),e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}(Jp);var rf=function(){function t(e,r,n,i){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),null==r&&(r=t.INIT_SIZE),null==n&&(n=e.getWidth()/2|0),null==i&&(i=e.getHeight()/2|0);var o=r/2|0;if(this.leftInit=n-o,this.rightInit=n+o,this.upInit=i-o,this.downInit=i+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new ip}return t.prototype.detect=function(){for(var t=this.leftInit,e=this.rightInit,r=this.upInit,n=this.downInit,i=!1,o=!0,a=!1,s=!1,c=!1,l=!1,u=!1,d=this.width,h=this.height;o;){o=!1;for(var p=!0;(p||!s)&&e<d;)(p=this.containsBlackPoint(r,n,e,!1))?(e++,o=!0,s=!0):s||e++;if(e>=d){i=!0;break}for(var f=!0;(f||!c)&&n<h;)(f=this.containsBlackPoint(t,e,n,!0))?(n++,o=!0,c=!0):c||n++;if(n>=h){i=!0;break}for(var m=!0;(m||!l)&&t>=0;)(m=this.containsBlackPoint(r,n,t,!1))?(t--,o=!0,l=!0):l||t--;if(t<0){i=!0;break}for(var g=!0;(g||!u)&&r>=0;)(g=this.containsBlackPoint(t,e,r,!0))?(r--,o=!0,u=!0):u||r--;if(r<0){i=!0;break}o&&(a=!0)}if(!i&&a){for(var v=e-t,y=null,b=1;null===y&&b<v;b++)y=this.getBlackPointOnSegment(t,n-b,t+b,n);if(null==y)throw new ip;var w=null;for(b=1;null===w&&b<v;b++)w=this.getBlackPointOnSegment(t,r+b,t+b,r);if(null==w)throw new ip;var _=null;for(b=1;null===_&&b<v;b++)_=this.getBlackPointOnSegment(e,r+b,e-b,r);if(null==_)throw new ip;var E=null;for(b=1;null===E&&b<v;b++)E=this.getBlackPointOnSegment(e,n-b,e-b,n);if(null==E)throw new ip;return this.centerEdges(E,y,_,w)}throw new ip},t.prototype.getBlackPointOnSegment=function(t,e,r,n){for(var i=Xp.round(Xp.distance(t,e,r,n)),o=(r-t)/i,a=(n-e)/i,s=this.image,c=0;c<i;c++){var l=Xp.round(t+c*o),u=Xp.round(e+c*a);if(s.get(l,u))return new Zp(l,u)}return null},t.prototype.centerEdges=function(e,r,n,i){var o=e.getX(),a=e.getY(),s=r.getX(),c=r.getY(),l=n.getX(),u=n.getY(),d=i.getX(),h=i.getY(),p=t.CORR;return o<this.width/2?[new Zp(d-p,h+p),new Zp(s+p,c+p),new Zp(l-p,u-p),new Zp(o+p,a-p)]:[new Zp(d+p,h+p),new Zp(s+p,c-p),new Zp(l-p,u+p),new Zp(o-p,a-p)]},t.prototype.containsBlackPoint=function(t,e,r,n){var i=this.image;if(n){for(var o=t;o<=e;o++)if(i.get(o,r))return!0}else for(var a=t;a<=e;a++)if(i.get(r,a))return!0;return!1},t.INIT_SIZE=10,t.CORR=1,t}();const nf=rf;var of=function(){function t(){}return t.checkAndNudgePoints=function(t,e){for(var r=t.getWidth(),n=t.getHeight(),i=!0,o=0;o<e.length&&i;o+=2){var a=Math.floor(e[o]),s=Math.floor(e[o+1]);if(a<-1||a>r||s<-1||s>n)throw new ip;i=!1,-1===a?(e[o]=0,i=!0):a===r&&(e[o]=r-1,i=!0),-1===s?(e[o+1]=0,i=!0):s===n&&(e[o+1]=n-1,i=!0)}for(i=!0,o=e.length-2;o>=0&&i;o-=2){if(a=Math.floor(e[o]),s=Math.floor(e[o+1]),a<-1||a>r||s<-1||s>n)throw new ip;i=!1,-1===a?(e[o]=0,i=!0):a===r&&(e[o]=r-1,i=!0),-1===s?(e[o+1]=0,i=!0):s===n&&(e[o+1]=n-1,i=!0)}},t}();const af=of;var sf=function(){function t(t,e,r,n,i,o,a,s,c){this.a11=t,this.a21=e,this.a31=r,this.a12=n,this.a22=i,this.a32=o,this.a13=a,this.a23=s,this.a33=c}return t.quadrilateralToQuadrilateral=function(e,r,n,i,o,a,s,c,l,u,d,h,p,f,m,g){var v=t.quadrilateralToSquare(e,r,n,i,o,a,s,c);return t.squareToQuadrilateral(l,u,d,h,p,f,m,g).times(v)},t.prototype.transformPoints=function(t){for(var e=t.length,r=this.a11,n=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,c=this.a31,l=this.a32,u=this.a33,d=0;d<e;d+=2){var h=t[d],p=t[d+1],f=i*h+s*p+u;t[d]=(r*h+o*p+c)/f,t[d+1]=(n*h+a*p+l)/f}},t.prototype.transformPointsWithValues=function(t,e){for(var r=this.a11,n=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,c=this.a31,l=this.a32,u=this.a33,d=t.length,h=0;h<d;h++){var p=t[h],f=e[h],m=i*p+s*f+u;t[h]=(r*p+o*f+c)/m,e[h]=(n*p+a*f+l)/m}},t.squareToQuadrilateral=function(e,r,n,i,o,a,s,c){var l=e-n+o-s,u=r-i+a-c;if(0===l&&0===u)return new t(n-e,o-n,e,i-r,a-i,r,0,0,1);var d=n-o,h=s-o,p=i-a,f=c-a,m=d*f-h*p,g=(l*f-h*u)/m,v=(d*u-l*p)/m;return new t(n-e+g*n,s-e+v*s,e,i-r+g*i,c-r+v*c,r,g,v,1)},t.quadrilateralToSquare=function(e,r,n,i,o,a,s,c){return t.squareToQuadrilateral(e,r,n,i,o,a,s,c).buildAdjoint()},t.prototype.buildAdjoint=function(){return new t(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},t.prototype.times=function(e){return new t(this.a11*e.a11+this.a21*e.a12+this.a31*e.a13,this.a11*e.a21+this.a21*e.a22+this.a31*e.a23,this.a11*e.a31+this.a21*e.a32+this.a31*e.a33,this.a12*e.a11+this.a22*e.a12+this.a32*e.a13,this.a12*e.a21+this.a22*e.a22+this.a32*e.a23,this.a12*e.a31+this.a22*e.a32+this.a32*e.a33,this.a13*e.a11+this.a23*e.a12+this.a33*e.a13,this.a13*e.a21+this.a23*e.a22+this.a33*e.a23,this.a13*e.a31+this.a23*e.a32+this.a33*e.a33)},t}();const cf=sf;var lf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),uf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lf(e,t),e.prototype.sampleGrid=function(t,e,r,n,i,o,a,s,c,l,u,d,h,p,f,m,g,v,y){var b=cf.quadrilateralToQuadrilateral(n,i,o,a,s,c,l,u,d,h,p,f,m,g,v,y);return this.sampleGridWithTransform(t,e,r,b)},e.prototype.sampleGridWithTransform=function(t,e,r,n){if(e<=0||r<=0)throw new ip;for(var i=new rp(e,r),o=new Float32Array(2*e),a=0;a<r;a++){for(var s=o.length,c=a+.5,l=0;l<s;l+=2)o[l]=l/2+.5,o[l+1]=c;n.transformPoints(o),af.checkAndNudgePoints(t,o);try{for(l=0;l<s;l+=2)t.get(Math.floor(o[l]),Math.floor(o[l+1]))&&i.set(l/2,a)}catch(t){throw new ip}}return i},e}(af);const df=uf,hf=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new df,t}();var pf=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.toResultPoint=function(){return new Zp(this.getX(),this.getY())},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t}(),ff=function(){function t(t){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=t}return t.prototype.detect=function(){return this.detectMirror(!1)},t.prototype.detectMirror=function(t){var e=this.getMatrixCenter(),r=this.getBullsEyeCorners(e);if(t){var n=r[0];r[0]=r[2],r[2]=n}this.extractParameters(r);var i=this.sampleGrid(this.image,r[this.shift%4],r[(this.shift+1)%4],r[(this.shift+2)%4],r[(this.shift+3)%4]),o=this.getMatrixCornerPoints(r);return new ef(i,o,this.compact,this.nbDataBlocks,this.nbLayers)},t.prototype.extractParameters=function(t){if(!(this.isValidPoint(t[0])&&this.isValidPoint(t[1])&&this.isValidPoint(t[2])&&this.isValidPoint(t[3])))throw new ip;var e=2*this.nbCenterLayers,r=new Int32Array([this.sampleLine(t[0],t[1],e),this.sampleLine(t[1],t[2],e),this.sampleLine(t[2],t[3],e),this.sampleLine(t[3],t[0],e)]);this.shift=this.getRotation(r,e);for(var n=0,i=0;i<4;i++){var o=r[(this.shift+i)%4];this.compact?(n<<=7,n+=o>>1&127):(n<<=10,n+=(o>>2&992)+(o>>1&31))}var a=this.getCorrectedParameterData(n,this.compact);this.compact?(this.nbLayers=1+(a>>6),this.nbDataBlocks=1+(63&a)):(this.nbLayers=1+(a>>11),this.nbDataBlocks=1+(2047&a))},t.prototype.getRotation=function(t,e){var r=0;t.forEach((function(t,n,i){r=(t>>e-2<<1)+(1&t)+(r<<3)})),r=((1&r)<<11)+(r>>1);for(var n=0;n<4;n++)if(Mh.bitCount(r^this.EXPECTED_CORNER_BITS[n])<=2)return n;throw new ip},t.prototype.getCorrectedParameterData=function(t,e){var r,n;e?(r=7,n=2):(r=10,n=4);for(var i=r-n,o=new Int32Array(r),a=r-1;a>=0;--a)o[a]=15&t,t>>=4;try{new Hp(Bp.AZTEC_PARAM).decode(o,i)}catch(t){throw new ip}var s=0;for(a=0;a<n;a++)s=(s<<4)+o[a];return s},t.prototype.getBullsEyeCorners=function(t){var e=t,r=t,n=t,i=t,o=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var a=this.getFirstDifferent(e,o,1,-1),s=this.getFirstDifferent(r,o,1,1),c=this.getFirstDifferent(n,o,-1,1),l=this.getFirstDifferent(i,o,-1,-1);if(this.nbCenterLayers>2){var u=this.distancePoint(l,a)*this.nbCenterLayers/(this.distancePoint(i,e)*(this.nbCenterLayers+2));if(u<.75||u>1.25||!this.isWhiteOrBlackRectangle(a,s,c,l))break}e=a,r=s,n=c,i=l,o=!o}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new ip;this.compact=5===this.nbCenterLayers;var d=new Zp(e.getX()+.5,e.getY()-.5),h=new Zp(r.getX()+.5,r.getY()+.5),p=new Zp(n.getX()-.5,n.getY()+.5),f=new Zp(i.getX()-.5,i.getY()-.5);return this.expandSquare([d,h,p,f],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},t.prototype.getMatrixCenter=function(){var t,e,r,n;try{t=(c=new nf(this.image).detect())[0],e=c[1],r=c[2],n=c[3]}catch(a){var i=this.image.getWidth()/2,o=this.image.getHeight()/2;t=this.getFirstDifferent(new pf(i+7,o-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new pf(i+7,o+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new pf(i-7,o+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new pf(i-7,o-7),!1,-1,-1).toResultPoint()}var a=Xp.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=Xp.round((t.getY()+n.getY()+e.getY()+r.getY())/4);try{var c;t=(c=new nf(this.image,15,a,s).detect())[0],e=c[1],r=c[2],n=c[3]}catch(i){t=this.getFirstDifferent(new pf(a+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new pf(a+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new pf(a-7,s+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new pf(a-7,s-7),!1,-1,-1).toResultPoint()}return a=Xp.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=Xp.round((t.getY()+n.getY()+e.getY()+r.getY())/4),new pf(a,s)},t.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},t.prototype.sampleGrid=function(t,e,r,n,i){var o=hf.getInstance(),a=this.getDimension(),s=a/2-this.nbCenterLayers,c=a/2+this.nbCenterLayers;return o.sampleGrid(t,a,a,s,s,c,s,c,c,s,c,e.getX(),e.getY(),r.getX(),r.getY(),n.getX(),n.getY(),i.getX(),i.getY())},t.prototype.sampleLine=function(t,e,r){for(var n=0,i=this.distanceResultPoint(t,e),o=i/r,a=t.getX(),s=t.getY(),c=o*(e.getX()-t.getX())/i,l=o*(e.getY()-t.getY())/i,u=0;u<r;u++)this.image.get(Xp.round(a+u*c),Xp.round(s+u*l))&&(n|=1<<r-u-1);return n},t.prototype.isWhiteOrBlackRectangle=function(t,e,r,n){t=new pf(t.getX()-3,t.getY()+3),e=new pf(e.getX()-3,e.getY()-3),r=new pf(r.getX()+3,r.getY()-3),n=new pf(n.getX()+3,n.getY()+3);var i=this.getColor(n,t);if(0===i)return!1;var o=this.getColor(t,e);return o===i&&(o=this.getColor(e,r))===i&&(o=this.getColor(r,n))===i},t.prototype.getColor=function(t,e){for(var r=this.distancePoint(t,e),n=(e.getX()-t.getX())/r,i=(e.getY()-t.getY())/r,o=0,a=t.getX(),s=t.getY(),c=this.image.get(t.getX(),t.getY()),l=Math.ceil(r),u=0;u<l;u++)a+=n,s+=i,this.image.get(Xp.round(a),Xp.round(s))!==c&&o++;var d=o/r;return d>.1&&d<.9?0:d<=.1===c?1:-1},t.prototype.getFirstDifferent=function(t,e,r,n){for(var i=t.getX()+r,o=t.getY()+n;this.isValid(i,o)&&this.image.get(i,o)===e;)i+=r,o+=n;for(i-=r,o-=n;this.isValid(i,o)&&this.image.get(i,o)===e;)i+=r;for(i-=r;this.isValid(i,o)&&this.image.get(i,o)===e;)o+=n;return new pf(i,o-=n)},t.prototype.expandSquare=function(t,e,r){var n=r/(2*e),i=t[0].getX()-t[2].getX(),o=t[0].getY()-t[2].getY(),a=(t[0].getX()+t[2].getX())/2,s=(t[0].getY()+t[2].getY())/2,c=new Zp(a+n*i,s+n*o),l=new Zp(a-n*i,s-n*o);return i=t[1].getX()-t[3].getX(),o=t[1].getY()-t[3].getY(),a=(t[1].getX()+t[3].getX())/2,s=(t[1].getY()+t[3].getY())/2,[c,new Zp(a+n*i,s+n*o),l,new Zp(a-n*i,s-n*o)]},t.prototype.isValid=function(t,e){return t>=0&&t<this.image.getWidth()&&e>0&&e<this.image.getHeight()},t.prototype.isValidPoint=function(t){var e=Xp.round(t.getX()),r=Xp.round(t.getY());return this.isValid(e,r)},t.prototype.distancePoint=function(t,e){return Xp.distance(t.getX(),t.getY(),e.getX(),e.getY())},t.prototype.distanceResultPoint=function(t,e){return Xp.distance(t.getX(),t.getY(),e.getX(),e.getY())},t.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(Mh.truncDivision(this.nbLayers-4,8)+1)+15},t}();const mf=ff,gf=function(){function t(){}return t.prototype.decode=function(t,e){void 0===e&&(e=null);var r=null,n=new mf(t.getBlackMatrix()),i=null,o=null;try{i=(a=n.detectMirror(!1)).getPoints(),this.reportFoundResultPoints(e,i),o=(new Wp).decode(a)}catch(t){r=t}if(null==o)try{var a;i=(a=n.detectMirror(!0)).getPoints(),this.reportFoundResultPoints(e,i),o=(new Wp).decode(a)}catch(t){if(null!=r)throw r;throw t}var s=new xp(o.getText(),o.getRawBytes(),o.getNumBits(),i,Cp.AZTEC,Oh.currentTimeMillis()),c=o.getByteSegments();null!=c&&s.putMetadata(Dp.BYTE_SEGMENTS,c);var l=o.getECLevel();return null!=l&&s.putMetadata(Dp.ERROR_CORRECTION_LEVEL,l),s},t.prototype.reportFoundResultPoints=function(t,e){if(null!=t){var r=t.get(Vh.NEED_RESULT_POINT_CALLBACK);null!=r&&e.forEach((function(t,e,n){r.foundPossibleResultPoint(t)}))}},t.prototype.reset=function(){},t}();var vf,yf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),bf=(yf((function(t){return void 0===t&&(t=500),vf.call(this,new gf,t)||this}),vf=Ep),function(){function t(){}return t.prototype.decode=function(t,e){try{return this.doDecode(t,e)}catch(l){if(e&&!0===e.get(Vh.TRY_HARDER)&&t.isRotateSupported()){var r=t.rotateCounterClockwise(),n=this.doDecode(r,e),i=n.getResultMetadata(),o=270;null!==i&&!0===i.get(Dp.ORIENTATION)&&(o+=i.get(Dp.ORIENTATION)%360),n.putMetadata(Dp.ORIENTATION,o);var a=n.getResultPoints();if(null!==a)for(var s=r.getHeight(),c=0;c<a.length;c++)a[c]=new Zp(s-a[c].getY()-1,a[c].getX());return n}throw new ip}},t.prototype.reset=function(){},t.prototype.doDecode=function(t,e){var r,n=t.getWidth(),i=t.getHeight(),o=new Lh(n),a=e&&!0===e.get(Vh.TRY_HARDER),s=Math.max(1,i>>(a?8:5));r=a?i:15;for(var c=Math.trunc(i/2),l=0;l<r;l++){var u=Math.trunc((l+1)/2),d=c+s*(0==(1&l)?u:-u);if(d<0||d>=i)break;try{o=t.getBlackRow(d,o)}catch(t){continue}for(var h=function(t){if(1===t&&(o.reverse(),e&&!0===e.get(Vh.NEED_RESULT_POINT_CALLBACK))){var r=new Map;e.forEach((function(t,e){return r.set(e,t)})),r.delete(Vh.NEED_RESULT_POINT_CALLBACK),e=r}try{var i=p.decodeRow(d,o,e);if(1===t){i.putMetadata(Dp.ORIENTATION,180);var a=i.getResultPoints();null!==a&&(a[0]=new Zp(n-a[0].getX()-1,a[0].getY()),a[1]=new Zp(n-a[1].getX()-1,a[1].getY()))}return{value:i}}catch(t){}},p=this,f=0;f<2;f++){var m=h(f);if("object"==typeof m)return m.value}}throw new ip},t.recordPattern=function(t,e,r){for(var n=r.length,i=0;i<n;i++)r[i]=0;var o=t.getSize();if(e>=o)throw new ip;for(var a=!t.get(e),s=0,c=e;c<o;){if(t.get(c)!==a)r[s]++;else{if(++s===n)break;r[s]=1,a=!a}c++}if(s!==n&&(s!==n-1||c!==o))throw new ip},t.recordPatternInReverse=function(e,r,n){for(var i=n.length,o=e.get(r);r>0&&i>=0;)e.get(--r)!==o&&(i--,o=!o);if(i>=0)throw new ip;t.recordPattern(e,r+1,n)},t.patternMatchVariance=function(t,e,r){for(var n=t.length,i=0,o=0,a=0;a<n;a++)i+=t[a],o+=e[a];if(i<o)return Number.POSITIVE_INFINITY;var s=i/o;r*=s;for(var c=0,l=0;l<n;l++){var u=t[l],d=e[l]*s,h=u>d?u-d:d-u;if(h>r)return Number.POSITIVE_INFINITY;c+=h}return c/i},t}());const wf=bf;var _f=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _f(e,t),e.findStartPattern=function(t){for(var r=t.getSize(),n=t.getNextSet(0),i=0,o=Int32Array.from([0,0,0,0,0,0]),a=n,s=!1,c=n;c<r;c++)if(t.get(c)!==s)o[i]++;else{if(5===i){for(var l=e.MAX_AVG_VARIANCE,u=-1,d=e.CODE_START_A;d<=e.CODE_START_C;d++){var h=wf.patternMatchVariance(o,e.CODE_PATTERNS[d],e.MAX_INDIVIDUAL_VARIANCE);h<l&&(l=h,u=d)}if(u>=0&&t.isRange(Math.max(0,a-(c-a)/2),a,!1))return Int32Array.from([a,c,u]);a+=o[0]+o[1],(o=o.slice(2,o.length-1))[i-1]=0,o[i]=0,i--}else i++;o[i]=1,s=!s}throw new ip},e.decodeCode=function(t,r,n){wf.recordPattern(t,n,r);for(var i=e.MAX_AVG_VARIANCE,o=-1,a=0;a<e.CODE_PATTERNS.length;a++){var s=e.CODE_PATTERNS[a],c=this.patternMatchVariance(r,s,e.MAX_INDIVIDUAL_VARIANCE);c<i&&(i=c,o=a)}if(o>=0)return o;throw new ip},e.prototype.decodeRow=function(t,r,n){var i,o=n&&!0===n.get(Vh.ASSUME_GS1),a=e.findStartPattern(r),s=a[2],c=0,l=new Uint8Array(20);switch(l[c++]=s,s){case e.CODE_START_A:i=e.CODE_CODE_A;break;case e.CODE_START_B:i=e.CODE_CODE_B;break;case e.CODE_START_C:i=e.CODE_CODE_C;break;default:throw new Uh}for(var u=!1,d=!1,h="",p=a[0],f=a[1],m=Int32Array.from([0,0,0,0,0,0]),g=0,v=0,y=s,b=0,w=!0,_=!1,E=!1;!u;){var x=d;switch(d=!1,g=v,v=e.decodeCode(r,m,f),l[c++]=v,v!==e.CODE_STOP&&(w=!0),v!==e.CODE_STOP&&(y+=++b*v),p=f,f+=m.reduce((function(t,e){return t+e}),0),v){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new Uh}switch(i){case e.CODE_CODE_A:if(v<64)h+=E===_?String.fromCharCode(" ".charCodeAt(0)+v):String.fromCharCode(" ".charCodeAt(0)+v+128),E=!1;else if(v<96)h+=E===_?String.fromCharCode(v-64):String.fromCharCode(v+64),E=!1;else switch(v!==e.CODE_STOP&&(w=!1),v){case e.CODE_FNC_1:o&&(0===h.length?h+="]C1":h+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!_&&E?(_=!0,E=!1):_&&E?(_=!1,E=!1):E=!0;break;case e.CODE_SHIFT:d=!0,i=e.CODE_CODE_B;break;case e.CODE_CODE_B:i=e.CODE_CODE_B;break;case e.CODE_CODE_C:i=e.CODE_CODE_C;break;case e.CODE_STOP:u=!0}break;case e.CODE_CODE_B:if(v<96)h+=E===_?String.fromCharCode(" ".charCodeAt(0)+v):String.fromCharCode(" ".charCodeAt(0)+v+128),E=!1;else switch(v!==e.CODE_STOP&&(w=!1),v){case e.CODE_FNC_1:o&&(0===h.length?h+="]C1":h+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!_&&E?(_=!0,E=!1):_&&E?(_=!1,E=!1):E=!0;break;case e.CODE_SHIFT:d=!0,i=e.CODE_CODE_A;break;case e.CODE_CODE_A:i=e.CODE_CODE_A;break;case e.CODE_CODE_C:i=e.CODE_CODE_C;break;case e.CODE_STOP:u=!0}break;case e.CODE_CODE_C:if(v<100)v<10&&(h+="0"),h+=v;else switch(v!==e.CODE_STOP&&(w=!1),v){case e.CODE_FNC_1:o&&(0===h.length?h+="]C1":h+=String.fromCharCode(29));break;case e.CODE_CODE_A:i=e.CODE_CODE_A;break;case e.CODE_CODE_B:i=e.CODE_CODE_B;break;case e.CODE_STOP:u=!0}}x&&(i=i===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var A=f-p;if(f=r.getNextUnset(f),!r.isRange(f,Math.min(r.getSize(),f+(f-p)/2),!1))throw new ip;if((y-=b*g)%103!==g)throw new Ch;var C=h.length;if(0===C)throw new ip;C>0&&w&&(h=i===e.CODE_CODE_C?h.substring(0,C-2):h.substring(0,C-1));for(var S=(a[1]+a[0])/2,D=p+A/2,O=l.length,P=new Uint8Array(O),I=0;I<O;I++)P[I]=l[I];var k=[new Zp(S,t),new Zp(D,t)];return new xp(h,P,0,k,Cp.CODE_128,(new Date).getTime())},e.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],e.MAX_AVG_VARIANCE=.25,e.MAX_INDIVIDUAL_VARIANCE=.7,e.CODE_SHIFT=98,e.CODE_CODE_C=99,e.CODE_CODE_B=100,e.CODE_CODE_A=101,e.CODE_FNC_1=102,e.CODE_FNC_2=97,e.CODE_FNC_3=96,e.CODE_FNC_4_A=101,e.CODE_FNC_4_B=100,e.CODE_START_A=103,e.CODE_START_B=104,e.CODE_START_C=105,e.CODE_STOP=106,e}(wf);const xf=Ef;var Af=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cf=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Sf=function(t){function e(e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var n=t.call(this)||this;return n.usingCheckDigit=e,n.extendedMode=r,n.decodeRowResult="",n.counters=new Int32Array(9),n}return Af(e,t),e.prototype.decodeRow=function(t,r,n){var i,o,a,s,c=this.counters;c.fill(0),this.decodeRowResult="";var l,u,d=e.findAsteriskPattern(r,c),h=r.getNextSet(d[1]),p=r.getSize();do{e.recordPattern(r,h,c);var f=e.toNarrowWidePattern(c);if(f<0)throw new ip;l=e.patternToChar(f),this.decodeRowResult+=l,u=h;try{for(var m=(i=void 0,Cf(c)),g=m.next();!g.done;g=m.next())h+=g.value}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}h=r.getNextSet(h)}while("*"!==l);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var v,y=0;try{for(var b=Cf(c),w=b.next();!w.done;w=b.next())y+=w.value}catch(t){a={error:t}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}if(h!==p&&2*(h-u-y)<y)throw new ip;if(this.usingCheckDigit){for(var _=this.decodeRowResult.length-1,E=0,x=0;x<_;x++)E+=e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(x));if(this.decodeRowResult.charAt(_)!==e.ALPHABET_STRING.charAt(E%43))throw new Ch;this.decodeRowResult=this.decodeRowResult.substring(0,_)}if(0===this.decodeRowResult.length)throw new ip;v=this.extendedMode?e.decodeExtended(this.decodeRowResult):this.decodeRowResult;var A=(d[1]+d[0])/2,C=u+y/2;return new xp(v,null,0,[new Zp(A,t),new Zp(C,t)],Cp.CODE_39,(new Date).getTime())},e.findAsteriskPattern=function(t,r){for(var n=t.getSize(),i=t.getNextSet(0),o=0,a=i,s=!1,c=r.length,l=i;l<n;l++)if(t.get(l)!==s)r[o]++;else{if(o===c-1){if(this.toNarrowWidePattern(r)===e.ASTERISK_ENCODING&&t.isRange(Math.max(0,a-Math.floor((l-a)/2)),a,!1))return[a,l];a+=r[0]+r[1],r.copyWithin(0,2,2+o-1),r[o-1]=0,r[o]=0,o--}else o++;r[o]=1,s=!s}throw new ip},e.toNarrowWidePattern=function(t){var e,r,n,i=t.length,o=0;do{var a=2147483647;try{for(var s=(e=void 0,Cf(t)),c=s.next();!c.done;c=s.next())(h=c.value)<a&&h>o&&(a=h)}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}o=a,n=0;for(var l=0,u=0,d=0;d<i;d++)(h=t[d])>o&&(u|=1<<i-1-d,n++,l+=h);if(3===n){for(d=0;d<i&&n>0;d++){var h;if((h=t[d])>o&&(n--,2*h>=l))return-1}return u}}while(n>3);return-1},e.patternToChar=function(t){for(var r=0;r<e.CHARACTER_ENCODINGS.length;r++)if(e.CHARACTER_ENCODINGS[r]===t)return e.ALPHABET_STRING.charAt(r);if(t===e.ASTERISK_ENCODING)return"*";throw new ip},e.decodeExtended=function(t){for(var e=t.length,r="",n=0;n<e;n++){var i=t.charAt(n);if("+"===i||"$"===i||"%"===i||"/"===i){var o=t.charAt(n+1),a="\0";switch(i){case"+":if(!(o>="A"&&o<="Z"))throw new Uh;a=String.fromCharCode(o.charCodeAt(0)+32);break;case"$":if(!(o>="A"&&o<="Z"))throw new Uh;a=String.fromCharCode(o.charCodeAt(0)-64);break;case"%":if(o>="A"&&o<="E")a=String.fromCharCode(o.charCodeAt(0)-38);else if(o>="F"&&o<="J")a=String.fromCharCode(o.charCodeAt(0)-11);else if(o>="K"&&o<="O")a=String.fromCharCode(o.charCodeAt(0)+16);else if(o>="P"&&o<="T")a=String.fromCharCode(o.charCodeAt(0)+43);else if("U"===o)a="\0";else if("V"===o)a="@";else if("W"===o)a="`";else{if("X"!==o&&"Y"!==o&&"Z"!==o)throw new Uh;a=""}break;case"/":if(o>="A"&&o<="O")a=String.fromCharCode(o.charCodeAt(0)-32);else{if("Z"!==o)throw new Uh;a=":"}}r+=a,n++}else r+=i}return r},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(wf);const Df=Sf;var Of=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Pf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.narrowLineWidth=-1,e}return Of(e,t),e.prototype.decodeRow=function(t,r,n){var i,o,a=this.decodeStart(r),s=this.decodeEnd(r),c=new tp;e.decodeMiddle(r,a[1],s[0],c);var l=c.toString(),u=null;null!=n&&(u=n.get(Vh.ALLOWED_LENGTHS)),null==u&&(u=e.DEFAULT_ALLOWED_LENGTHS);var d=l.length,h=!1,p=0;try{for(var f=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(u),m=f.next();!m.done;m=f.next()){var g=m.value;if(d===g){h=!0;break}g>p&&(p=g)}}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}if(!h&&d>p&&(h=!0),!h)throw new Uh;var v=[new Zp(a[1],t),new Zp(s[0],t)];return new xp(l,null,0,v,Cp.ITF,(new Date).getTime())},e.decodeMiddle=function(t,r,n,i){var o=new Int32Array(10),a=new Int32Array(5),s=new Int32Array(5);for(o.fill(0),a.fill(0),s.fill(0);r<n;){wf.recordPattern(t,r,o);for(var c=0;c<5;c++){var l=2*c;a[c]=o[l],s[c]=o[l+1]}var u=e.decodeDigit(a);i.append(u.toString()),u=this.decodeDigit(s),i.append(u.toString()),o.forEach((function(t){r+=t}))}},e.prototype.decodeStart=function(t){var r=e.skipWhiteSpace(t),n=e.findGuardPattern(t,r,e.START_PATTERN);return this.narrowLineWidth=(n[1]-n[0])/4,this.validateQuietZone(t,n[0]),n},e.prototype.validateQuietZone=function(t,e){var r=10*this.narrowLineWidth;r=r<e?r:e;for(var n=e-1;r>0&&n>=0&&!t.get(n);n--)r--;if(0!==r)throw new ip},e.skipWhiteSpace=function(t){var e=t.getSize(),r=t.getNextSet(0);if(r===e)throw new ip;return r},e.prototype.decodeEnd=function(t){t.reverse();try{var r=e.skipWhiteSpace(t),n=void 0;try{n=e.findGuardPattern(t,r,e.END_PATTERN_REVERSED[0])}catch(i){i instanceof ip&&(n=e.findGuardPattern(t,r,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,n[0]);var i=n[0];return n[0]=t.getSize()-n[1],n[1]=t.getSize()-i,n}finally{t.reverse()}},e.findGuardPattern=function(t,r,n){var i=n.length,o=new Int32Array(i),a=t.getSize(),s=!1,c=0,l=r;o.fill(0);for(var u=r;u<a;u++)if(t.get(u)!==s)o[c]++;else{if(c===i-1){if(wf.patternMatchVariance(o,n,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return[l,u];l+=o[0]+o[1],Oh.arraycopy(o,2,o,0,c-1),o[c-1]=0,o[c]=0,c--}else c++;o[c]=1,s=!s}throw new ip},e.decodeDigit=function(t){for(var r=e.MAX_AVG_VARIANCE,n=-1,i=e.PATTERNS.length,o=0;o<i;o++){var a=e.PATTERNS[o],s=wf.patternMatchVariance(t,a,e.MAX_INDIVIDUAL_VARIANCE);s<r?(r=s,n=o):s===r&&(n=-1)}if(n>=0)return n%10;throw new ip},e.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e}(wf);const If=Pf;var kf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.decodeRowStringBuffer="",e}return kf(e,t),e.findStartGuardPattern=function(t){for(var r,n=!1,i=0,o=Int32Array.from([0,0,0]);!n;){o=Int32Array.from([0,0,0]);var a=(r=e.findGuardPattern(t,i,!1,this.START_END_PATTERN,o))[0],s=a-((i=r[1])-a);s>=0&&(n=t.isRange(s,a,!1))}return r},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var r=t.length;if(0===r)return!1;var n=parseInt(t.charAt(r-1),10);return e.getStandardUPCEANChecksum(t.substring(0,r-1))===n},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,r=0,n=e-1;n>=0;n-=2){if((i=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new Uh;r+=i}for(r*=3,n=e-2;n>=0;n-=2){var i;if((i=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new Uh;r+=i}return(1e3-r)%10},e.decodeEnd=function(t,r){return e.findGuardPattern(t,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(t,e,r,n){return this.findGuardPattern(t,e,r,n,new Int32Array(n.length))},e.findGuardPattern=function(t,r,n,i,o){for(var a=t.getSize(),s=0,c=r=n?t.getNextUnset(r):t.getNextSet(r),l=i.length,u=n,d=r;d<a;d++)if(t.get(d)!==u)o[s]++;else{if(s===l-1){if(wf.patternMatchVariance(o,i,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return Int32Array.from([c,d]);c+=o[0]+o[1];for(var h=o.slice(2,o.length-1),p=0;p<s-1;p++)o[p]=h[p];o[s-1]=0,o[s]=0,s--}else s++;o[s]=1,u=!u}throw new ip},e.decodeDigit=function(t,r,n,i){this.recordPattern(t,n,r);for(var o=this.MAX_AVG_VARIANCE,a=-1,s=i.length,c=0;c<s;c++){var l=i[c],u=wf.patternMatchVariance(r,l,e.MAX_INDIVIDUAL_VARIANCE);u<o&&(o=u,a=c)}if(a>=0)return a;throw new ip},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],e}(wf);const Rf=Tf;var Ff=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Nf=function(){function t(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,r,n){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(r,n,i),a=i.toString(),s=t.parseExtensionString(a),c=[new Zp((n[0]+n[1])/2,e),new Zp(o,e)],l=new xp(a,null,0,c,Cp.UPC_EAN_EXTENSION,(new Date).getTime());return null!=s&&l.putAllMetadata(s),l},t.prototype.decodeMiddle=function(e,r,n){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),c=r[1],l=0,u=0;u<5&&c<s;u++){var d=Rf.decodeDigit(e,a,c,Rf.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var h=(i=void 0,Ff(a)),p=h.next();!p.done;p=h.next())c+=p.value}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}d>=10&&(l|=1<<4-u),4!==u&&(c=e.getNextSet(c),c=e.getNextUnset(c))}if(5!==n.length)throw new ip;var f=this.determineCheckDigit(l);if(t.extensionChecksum(n.toString())!==f)throw new ip;return c},t.extensionChecksum=function(t){for(var e=t.length,r=0,n=e-2;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);for(r*=3,n=e-1;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);return(r*=3)%10},t.prototype.determineCheckDigit=function(t){for(var e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new ip},t.parseExtensionString=function(e){if(5!==e.length)return null;var r=t.parseExtension5String(e);return null==r?null:new Map([[Dp.SUGGESTED_PRICE,r]])},t.parseExtension5String=function(t){var e;switch(t.charAt(0)){case"0":e="£";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e=""}var r=parseInt(t.substring(1)),n=r%100;return e+(r/100).toString()+"."+(n<10?"0"+n:n.toString())},t}();const Mf=Nf;var Bf=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Lf=function(){function t(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,r,n){var i=this.decodeRowStringBuffer,o=this.decodeMiddle(r,n,i),a=i.toString(),s=t.parseExtensionString(a),c=[new Zp((n[0]+n[1])/2,e),new Zp(o,e)],l=new xp(a,null,0,c,Cp.UPC_EAN_EXTENSION,(new Date).getTime());return null!=s&&l.putAllMetadata(s),l},t.prototype.decodeMiddle=function(t,e,r){var n,i,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var a=t.getSize(),s=e[1],c=0,l=0;l<2&&s<a;l++){var u=Rf.decodeDigit(t,o,s,Rf.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+u%10);try{for(var d=(n=void 0,Bf(o)),h=d.next();!h.done;h=d.next())s+=h.value}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}u>=10&&(c|=1<<1-l),1!==l&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(2!==r.length)throw new ip;if(parseInt(r.toString())%4!==c)throw new ip;return s},t.parseExtensionString=function(t){return 2!==t.length?null:new Map([[Dp.ISSUE_NUMBER,parseInt(t)]])},t}();const jf=Lf,Vf=function(){function t(){}return t.decodeRow=function(t,e,r){var n=Rf.findGuardPattern(e,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new Mf).decodeRow(t,e,n)}catch(r){return(new jf).decodeRow(t,e,n)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}();var zf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Uf=function(t){function e(){var r=t.call(this)||this;r.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map((function(t){return Int32Array.from(t)}));for(var n=10;n<20;n++){for(var i=e.L_PATTERNS[n-10],o=new Int32Array(i.length),a=0;a<i.length;a++)o[a]=i[i.length-a-1];e.L_AND_G_PATTERNS[n]=o}return r}return zf(e,t),e.prototype.decodeRow=function(t,r,n){var i=e.findStartGuardPattern(r),o=null==n?null:n.get(Vh.NEED_RESULT_POINT_CALLBACK);if(null!=o){var a=new Zp((i[0]+i[1])/2,t);o.foundPossibleResultPoint(a)}var s=this.decodeMiddle(r,i,this.decodeRowStringBuffer),c=s.rowOffset,l=s.resultString;if(null!=o){var u=new Zp(c,t);o.foundPossibleResultPoint(u)}var d=e.decodeEnd(r,c);if(null!=o){var h=new Zp((d[0]+d[1])/2,t);o.foundPossibleResultPoint(h)}var p=d[1],f=p+(p-d[0]);if(f>=r.getSize()||!r.isRange(p,f,!1))throw new ip;var m=l.toString();if(m.length<8)throw new Uh;if(!e.checkChecksum(m))throw new Ch;var g=(i[1]+i[0])/2,v=(d[1]+d[0])/2,y=this.getBarcodeFormat(),b=[new Zp(g,t),new Zp(v,t)],w=new xp(m,null,0,b,y,(new Date).getTime()),_=0;try{var E=Vf.decodeRow(t,r,d[1]);w.putMetadata(Dp.UPC_EAN_EXTENSION,E.getText()),w.putAllMetadata(E.getResultMetadata()),w.addResultPoints(E.getResultPoints()),_=E.getText().length}catch(t){}var x=null==n?null:n.get(Vh.ALLOWED_EAN_EXTENSIONS);if(null!=x){var A=!1;for(var C in x)if(_.toString()===C){A=!0;break}if(!A)throw new ip}return y===Cp.EAN_13||Cp.UPC_A,w},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var r=t.length;if(0===r)return!1;var n=parseInt(t.charAt(r-1),10);return e.getStandardUPCEANChecksum(t.substring(0,r-1))===n},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,r=0,n=e-1;n>=0;n-=2){if((i=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new Uh;r+=i}for(r*=3,n=e-2;n>=0;n-=2){var i;if((i=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new Uh;r+=i}return(1e3-r)%10},e.decodeEnd=function(t,r){return e.findGuardPattern(t,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e}(Rf);const Hf=Uf;var Gf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),qf=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Wf=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return Gf(e,t),e.prototype.decodeMiddle=function(t,r,n){var i,o,a,s,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var l=t.getSize(),u=r[1],d=0,h=0;h<6&&u<l;h++){var p=Hf.decodeDigit(t,c,u,Hf.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+p%10);try{for(var f=(i=void 0,qf(c)),m=f.next();!m.done;m=f.next())u+=m.value}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}p>=10&&(d|=1<<5-h)}for(n=e.determineFirstDigit(n,d),u=Hf.findGuardPattern(t,u,!0,Hf.MIDDLE_PATTERN,new Int32Array(Hf.MIDDLE_PATTERN.length).fill(0))[1],h=0;h<6&&u<l;h++){p=Hf.decodeDigit(t,c,u,Hf.L_PATTERNS),n+=String.fromCharCode("0".charCodeAt(0)+p);try{for(var g=(a=void 0,qf(c)),v=g.next();!v.done;v=g.next())u+=v.value}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}}return{rowOffset:u,resultString:n}},e.prototype.getBarcodeFormat=function(){return Cp.EAN_13},e.determineFirstDigit=function(t,e){for(var r=0;r<10;r++)if(e===this.FIRST_DIGIT_ENCODINGS[r])return String.fromCharCode("0".charCodeAt(0)+r)+t;throw new ip},e.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],e}(Hf);const Yf=Wf;var Xf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),$f=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Qf=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return Xf(e,t),e.prototype.decodeMiddle=function(t,e,r){var n,i,o,a,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var c=t.getSize(),l=e[1],u=0;u<4&&l<c;u++){var d=Hf.decodeDigit(t,s,l,Hf.L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+d);try{for(var h=(n=void 0,$f(s)),p=h.next();!p.done;p=h.next())l+=p.value}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}for(l=Hf.findGuardPattern(t,l,!0,Hf.MIDDLE_PATTERN,new Int32Array(Hf.MIDDLE_PATTERN.length).fill(0))[1],u=0;u<4&&l<c;u++){d=Hf.decodeDigit(t,s,l,Hf.L_PATTERNS),r+=String.fromCharCode("0".charCodeAt(0)+d);try{for(var f=(o=void 0,$f(s)),m=f.next();!m.done;m=f.next())l+=m.value}catch(t){o={error:t}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}return{rowOffset:l,resultString:r}},e.prototype.getBarcodeFormat=function(){return Cp.EAN_8},e}(Hf);const Kf=Qf;var Zf=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Jf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ean13Reader=new Yf,e}return Zf(e,t),e.prototype.getBarcodeFormat=function(){return Cp.UPC_A},e.prototype.decode=function(t,e){return this.maybeReturnResult(this.ean13Reader.decode(t))},e.prototype.decodeRow=function(t,e,r){return this.maybeReturnResult(this.ean13Reader.decodeRow(t,e,r))},e.prototype.decodeMiddle=function(t,e,r){return this.ean13Reader.decodeMiddle(t,e,r)},e.prototype.maybeReturnResult=function(t){var e=t.getText();if("0"===e.charAt(0)){var r=new xp(e.substring(1),null,null,t.getResultPoints(),Cp.UPC_A);return null!=t.getResultMetadata()&&r.putAllMetadata(t.getResultMetadata()),r}throw new ip},e.prototype.reset=function(){this.ean13Reader.reset()},e}(Hf);var tm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),em=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},rm=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=new Int32Array(4),e}return tm(e,t),e.prototype.decodeMiddle=function(t,r,n){var i,o,a=this.decodeMiddleCounters.map((function(t){return t}));a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=t.getSize(),c=r[1],l=0,u=0;u<6&&c<s;u++){var d=e.decodeDigit(t,a,c,e.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var h=(i=void 0,em(a)),p=h.next();!p.done;p=h.next())c+=p.value}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}d>=10&&(l|=1<<5-u)}return e.determineNumSysAndCheckDigit(new tp(n),l),c},e.prototype.decodeEnd=function(t,r){return e.findGuardPatternWithoutCounters(t,r,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(t){return Hf.checkChecksum(e.convertUPCEtoUPCA(t))},e.determineNumSysAndCheckDigit=function(t,e){for(var r=0;r<=1;r++)for(var n=0;n<10;n++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[r][n])return t.insert(0,"0"+r),void t.append("0"+n);throw ip.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return Cp.UPC_E},e.convertUPCEtoUPCA=function(t){var e=t.slice(1,7).split("").map((function(t){return t.charCodeAt(0)})),r=new tp;r.append(t.charAt(0));var n=e[5];switch(n){case 0:case 1:case 2:r.appendChars(e,0,2),r.append(n),r.append("0000"),r.appendChars(e,2,3);break;case 3:r.appendChars(e,0,3),r.append("00000"),r.appendChars(e,3,2);break;case 4:r.appendChars(e,0,4),r.append("00000"),r.append(e[4]);break;default:r.appendChars(e,0,5),r.append("0000"),r.append(n)}return t.length>=8&&r.append(t.charAt(7)),r.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],e}(Hf);const nm=rm;var im=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),om=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},am=function(t){function e(e){var r=t.call(this)||this,n=null==e?null:e.get(Vh.POSSIBLE_FORMATS),i=[];return null!=n&&(n.indexOf(Cp.EAN_13)>-1&&i.push(new Yf),n.indexOf(Cp.UPC_A)>-1&&i.push(new Jf),n.indexOf(Cp.EAN_8)>-1&&i.push(new Kf),n.indexOf(Cp.UPC_E)>-1&&i.push(new nm)),0===i.length&&(i.push(new Yf),i.push(new Jf),i.push(new Kf),i.push(new nm)),r.readers=i,r}return im(e,t),e.prototype.decodeRow=function(t,e,r){var n,i;try{for(var o=om(this.readers),a=o.next();!a.done;a=o.next()){var s=a.value;try{var c=s.decodeRow(t,e,r),l=c.getBarcodeFormat()===Cp.EAN_13&&"0"===c.getText().charAt(0),u=null==r?null:r.get(Vh.POSSIBLE_FORMATS),d=null==u||u.includes(Cp.UPC_A);if(l&&d){var h=c.getRawBytes(),p=new xp(c.getText().substring(1),h,h?h.length:null,c.getResultPoints(),Cp.UPC_A);return p.putAllMetadata(c.getResultMetadata()),p}return c}catch(t){}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}throw new ip},e.prototype.reset=function(){var t,e;try{for(var r=om(this.readers),n=r.next();!n.done;n=r.next())n.value.reset()}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e}(wf);const sm=am;var cm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),lm=function(t){function e(){var e=t.call(this)||this;return e.decodeFinderCounters=new Int32Array(4),e.dataCharacterCounters=new Int32Array(8),e.oddRoundingErrors=new Array(4),e.evenRoundingErrors=new Array(4),e.oddCounts=new Array(e.dataCharacterCounters.length/2),e.evenCounts=new Array(e.dataCharacterCounters.length/2),e}return cm(e,t),e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(t,r){for(var n=0;n<r.length;n++)if(wf.patternMatchVariance(t,r[n],e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return n;throw new ip},e.count=function(t){return Xp.sum(new Int32Array(t))},e.increment=function(t,e){for(var r=0,n=e[0],i=1;i<t.length;i++)e[i]>n&&(n=e[i],r=i);t[r]++},e.decrement=function(t,e){for(var r=0,n=e[0],i=1;i<t.length;i++)e[i]<n&&(n=e[i],r=i);t[r]--},e.isFinderPattern=function(t){var r,n,i=t[0]+t[1],o=i/(i+t[2]+t[3]);if(o>=e.MIN_FINDER_PATTERN_RATIO&&o<=e.MAX_FINDER_PATTERN_RATIO){var a=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;try{for(var c=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),l=c.next();!l.done;l=c.next()){var u=l.value;u>s&&(s=u),u<a&&(a=u)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return s<10*a}return!1},e.MAX_AVG_VARIANCE=.2,e.MAX_INDIVIDUAL_VARIANCE=.45,e.MIN_FINDER_PATTERN_RATIO=9.5/12,e.MAX_FINDER_PATTERN_RATIO=12.5/14,e}(wf);const um=lm,dm=function(){function t(t,e){this.value=t,this.checksumPortion=e}return t.prototype.getValue=function(){return this.value},t.prototype.getChecksumPortion=function(){return this.checksumPortion},t.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.value===r.value&&this.checksumPortion===r.checksumPortion},t.prototype.hashCode=function(){return this.value^this.checksumPortion},t}(),hm=function(){function t(t,e,r,n,i){this.value=t,this.startEnd=e,this.value=t,this.startEnd=e,this.resultPoints=new Array,this.resultPoints.push(new Zp(r,i)),this.resultPoints.push(new Zp(n,i))}return t.prototype.getValue=function(){return this.value},t.prototype.getStartEnd=function(){return this.startEnd},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.value===r.value},t.prototype.hashCode=function(){return this.value},t}();var pm=function(){function t(){}return t.getRSSvalue=function(e,r,n){var i,o,a=0;try{for(var s=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),c=s.next();!c.done;c=s.next())a+=c.value}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}for(var l=0,u=0,d=e.length,h=0;h<d-1;h++){var p=void 0;for(p=1,u|=1<<h;p<e[h];p++,u&=~(1<<h)){var f=t.combins(a-p-1,d-h-2);if(n&&0===u&&a-p-(d-h-1)>=d-h-1&&(f-=t.combins(a-p-(d-h),d-h-2)),d-h-1>1){for(var m=0,g=a-p-(d-h-2);g>r;g--)m+=t.combins(a-p-g-1,d-h-3);f-=m*(d-1-h)}else a-p>r&&f--;l+=f}a-=p}return l},t.combins=function(t,e){var r,n;t-e>e?(n=e,r=t-e):(n=t-e,r=e);for(var i=1,o=1,a=t;a>r;a--)i*=a,o<=n&&(i/=o,o++);for(;o<=n;)i/=o,o++;return i},t}();const fm=pm;var mm=function(){function t(){}return t.buildBitArray=function(t){var e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);for(var r=new Lh(12*e),n=0,i=t[0].getRightChar().getValue(),o=11;o>=0;--o)0!=(i&1<<o)&&r.set(n),n++;for(o=1;o<t.length;++o){for(var a=t[o],s=a.getLeftChar().getValue(),c=11;c>=0;--c)0!=(s&1<<c)&&r.set(n),n++;if(null!=a.getRightChar()){var l=a.getRightChar().getValue();for(c=11;c>=0;--c)0!=(l&1<<c)&&r.set(n),n++}}return r},t}();const gm=mm,vm=function(){function t(t,e){e?this.decodedInformation=null:(this.finished=t,this.decodedInformation=e)}return t.prototype.getDecodedInformation=function(){return this.decodedInformation},t.prototype.isFinished=function(){return this.finished},t}(),ym=function(){function t(t){this.newPosition=t}return t.prototype.getNewPosition=function(){return this.newPosition},t}();var bm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const wm=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return bm(e,t),e.prototype.getValue=function(){return this.value},e.prototype.isFNC1=function(){return this.value===e.FNC1},e.FNC1="$",e}(ym);var _m=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Em=function(t){function e(e,r,n){var i=t.call(this,e)||this;return n?(i.remaining=!0,i.remainingValue=i.remainingValue):(i.remaining=!1,i.remainingValue=0),i.newString=r,i}return _m(e,t),e.prototype.getNewString=function(){return this.newString},e.prototype.isRemaining=function(){return this.remaining},e.prototype.getRemainingValue=function(){return this.remainingValue},e}(ym);var xm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Am=function(t){function e(e,r,n){var i=t.call(this,e)||this;if(r<0||r>10||n<0||n>10)throw new Uh;return i.firstDigit=r,i.secondDigit=n,i}return xm(e,t),e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e}(ym);var Cm=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Sm=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var r,n,i,o,a,s,c,l;if(!e)return null;if(e.length<2)throw new ip;var u=e.substring(0,2);try{for(var d=Cm(t.TWO_DIGIT_DATA_LENGTH),h=d.next();!h.done;h=d.next())if((_=h.value)[0]===u)return _[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,_[2],e):t.processFixedAI(2,_[1],e)}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}if(e.length<3)throw new ip;var p=e.substring(0,3);try{for(var f=Cm(t.THREE_DIGIT_DATA_LENGTH),m=f.next();!m.done;m=f.next())if((_=m.value)[0]===p)return _[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,_[2],e):t.processFixedAI(3,_[1],e)}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var g=Cm(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),v=g.next();!v.done;v=g.next())if((_=v.value)[0]===p)return _[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,_[2],e):t.processFixedAI(4,_[1],e)}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(e.length<4)throw new ip;var y=e.substring(0,4);try{for(var b=Cm(t.FOUR_DIGIT_DATA_LENGTH),w=b.next();!w.done;w=b.next()){var _;if((_=w.value)[0]===y)return _[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,_[2],e):t.processFixedAI(4,_[1],e)}}catch(t){c={error:t}}finally{try{w&&!w.done&&(l=b.return)&&l.call(b)}finally{if(c)throw c.error}}throw new ip},t.processFixedAI=function(e,r,n){if(n.length<e)throw new ip;var i=n.substring(0,e);if(n.length<e+r)throw new ip;var o=n.substring(e,e+r),a=n.substring(e+r),s="("+i+")"+o,c=t.parseFieldsInGeneralPurpose(a);return null==c?s:s+c},t.processVariableAI=function(e,r,n){var i,o=n.substring(0,e);i=n.length<e+r?n.length:e+r;var a=n.substring(e,i),s=n.substring(i),c="("+o+")"+a,l=t.parseFieldsInGeneralPurpose(s);return null==l?c:c+l},t.VARIABLE_LENGTH=[],t.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",t.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",t.VARIABLE_LENGTH,20],["22",t.VARIABLE_LENGTH,29],["30",t.VARIABLE_LENGTH,8],["37",t.VARIABLE_LENGTH,8],["90",t.VARIABLE_LENGTH,30],["91",t.VARIABLE_LENGTH,30],["92",t.VARIABLE_LENGTH,30],["93",t.VARIABLE_LENGTH,30],["94",t.VARIABLE_LENGTH,30],["95",t.VARIABLE_LENGTH,30],["96",t.VARIABLE_LENGTH,30],["97",t.VARIABLE_LENGTH,3],["98",t.VARIABLE_LENGTH,30],["99",t.VARIABLE_LENGTH,30]],t.THREE_DIGIT_DATA_LENGTH=[["240",t.VARIABLE_LENGTH,30],["241",t.VARIABLE_LENGTH,30],["242",t.VARIABLE_LENGTH,6],["250",t.VARIABLE_LENGTH,30],["251",t.VARIABLE_LENGTH,30],["253",t.VARIABLE_LENGTH,17],["254",t.VARIABLE_LENGTH,20],["400",t.VARIABLE_LENGTH,30],["401",t.VARIABLE_LENGTH,30],["402",17],["403",t.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",t.VARIABLE_LENGTH,20],["421",t.VARIABLE_LENGTH,15],["422",3],["423",t.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",t.VARIABLE_LENGTH,15],["391",t.VARIABLE_LENGTH,18],["392",t.VARIABLE_LENGTH,15],["393",t.VARIABLE_LENGTH,18],["703",t.VARIABLE_LENGTH,30]],t.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",t.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",t.VARIABLE_LENGTH,20],["8003",t.VARIABLE_LENGTH,30],["8004",t.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",t.VARIABLE_LENGTH,30],["8008",t.VARIABLE_LENGTH,12],["8018",18],["8020",t.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",t.VARIABLE_LENGTH,70],["8200",t.VARIABLE_LENGTH,70]],t}();const Dm=Sm;var Om=function(){function t(t){this.buffer=new tp,this.information=t}return t.prototype.decodeAllCodes=function(t,e){for(var r=e,n=null;;){var i=this.decodeGeneralPurposeField(r,n),o=Dm.parseFieldsInGeneralPurpose(i.getNewString());if(null!=o&&t.append(o),n=i.isRemaining()?""+i.getRemainingValue():null,r===i.getNewPosition())break;r=i.getNewPosition()}return t.toString()},t.prototype.isStillNumeric=function(t){if(t+7>this.information.getSize())return t+4<=this.information.getSize();for(var e=t;e<t+3;++e)if(this.information.get(e))return!0;return this.information.get(t+3)},t.prototype.decodeNumeric=function(t){if(t+7>this.information.getSize()){var e=this.extractNumericValueFromBitArray(t,4);return new Am(this.information.getSize(),0===e?Am.FNC1:e-1,Am.FNC1)}var r=this.extractNumericValueFromBitArray(t,7);return new Am(t+7,(r-8)/11,(r-8)%11)},t.prototype.extractNumericValueFromBitArray=function(e,r){return t.extractNumericValueFromBitArray(this.information,e,r)},t.extractNumericValueFromBitArray=function(t,e,r){for(var n=0,i=0;i<r;++i)t.get(e+i)&&(n|=1<<r-i-1);return n},t.prototype.decodeGeneralPurposeField=function(t,e){this.buffer.setLengthToZero(),null!=e&&this.buffer.append(e),this.current.setPosition(t);var r=this.parseBlocks();return null!=r&&r.isRemaining()?new Em(this.current.getPosition(),this.buffer.toString(),r.getRemainingValue()):new Em(this.current.getPosition(),this.buffer.toString())},t.prototype.parseBlocks=function(){var t,e;do{var r=this.current.getPosition();if(t=this.current.isAlpha()?(e=this.parseAlphaBlock()).isFinished():this.current.isIsoIec646()?(e=this.parseIsoIec646Block()).isFinished():(e=this.parseNumericBlock()).isFinished(),r===this.current.getPosition()&&!t)break}while(!t);return e.getDecodedInformation()},t.prototype.parseNumericBlock=function(){for(;this.isStillNumeric(this.current.getPosition());){var t=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFirstDigitFNC1()){var e=void 0;return e=t.isSecondDigitFNC1()?new Em(this.current.getPosition(),this.buffer.toString()):new Em(this.current.getPosition(),this.buffer.toString(),t.getSecondDigit()),new vm(!0,e)}if(this.buffer.append(t.getFirstDigit()),t.isSecondDigitFNC1())return e=new Em(this.current.getPosition(),this.buffer.toString()),new vm(!0,e);this.buffer.append(t.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new vm(!1)},t.prototype.parseIsoIec646Block=function(){for(;this.isStillIsoIec646(this.current.getPosition());){var t=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new Em(this.current.getPosition(),this.buffer.toString());return new vm(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new vm(!1)},t.prototype.parseAlphaBlock=function(){for(;this.isStillAlpha(this.current.getPosition());){var t=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new Em(this.current.getPosition(),this.buffer.toString());return new vm(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new vm(!1)},t.prototype.isStillIsoIec646=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<116)return!0;if(t+8>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(t,8);return n>=232&&n<253},t.prototype.decodeIsoIec646=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new wm(t+5,wm.FNC1);if(e>=5&&e<15)return new wm(t+5,"0"+(e-5));var r,n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<90)return new wm(t+7,""+(n+1));if(n>=90&&n<116)return new wm(t+7,""+(n+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:r="!";break;case 233:r='"';break;case 234:r="%";break;case 235:r="&";break;case 236:r="'";break;case 237:r="(";break;case 238:r=")";break;case 239:r="*";break;case 240:r="+";break;case 241:r=",";break;case 242:r="-";break;case 243:r=".";break;case 244:r="/";break;case 245:r=":";break;case 246:r=";";break;case 247:r="<";break;case 248:r="=";break;case 249:r=">";break;case 250:r="?";break;case 251:r="_";break;case 252:r=" ";break;default:throw new Uh}return new wm(t+8,r)},t.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(t,6);return r>=16&&r<63},t.prototype.decodeAlphanumeric=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new wm(t+5,wm.FNC1);if(e>=5&&e<15)return new wm(t+5,"0"+(e-5));var r,n=this.extractNumericValueFromBitArray(t,6);if(n>=32&&n<58)return new wm(t+6,""+(n+33));switch(n){case 58:r="*";break;case 59:r=",";break;case 60:r="-";break;case 61:r=".";break;case 62:r="/";break;default:throw new zp("Decoding invalid alphanumeric value: "+n)}return new wm(t+6,r)},t.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<5&&e+t<this.information.getSize();++e)if(2===e){if(!this.information.get(t+2))return!1}else if(this.information.get(t+e))return!1;return!0},t.prototype.isAlphaOr646ToNumericLatch=function(t){if(t+3>this.information.getSize())return!1;for(var e=t;e<t+3;++e)if(this.information.get(e))return!1;return!0},t.prototype.isNumericToAlphaNumericLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<4&&e+t<this.information.getSize();++e)if(this.information.get(t+e))return!1;return!0},t}();const Pm=Om,Im=function(){function t(t){this.information=t,this.generalDecoder=new Pm(t)}return t.prototype.getInformation=function(){return this.information},t.prototype.getGeneralDecoder=function(){return this.generalDecoder},t}();var km=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Tm=function(t){function e(e){return t.call(this,e)||this}return km(e,t),e.prototype.encodeCompressedGtin=function(t,e){t.append("(01)");var r=t.length();t.append("9"),this.encodeCompressedGtinWithoutAI(t,e,r)},e.prototype.encodeCompressedGtinWithoutAI=function(t,r,n){for(var i=0;i<4;++i){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(r+10*i,10);o/100==0&&t.append("0"),o/10==0&&t.append("0"),t.append(o)}e.appendCheckDigit(t,n)},e.appendCheckDigit=function(t,e){for(var r=0,n=0;n<13;n++){var i=t.charAt(n+e).charCodeAt(0)-"0".charCodeAt(0);r+=0==(1&n)?3*i:i}10==(r=10-r%10)&&(r=0),t.append(r)},e.GTIN_SIZE=40,e}(Im);const Rm=Tm;var Fm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Nm=function(t){function e(e){return t.call(this,e)||this}return Fm(e,t),e.prototype.parseInformation=function(){var t=new tp;t.append("(01)");var r=t.length(),n=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE,4);return t.append(n),this.encodeCompressedGtinWithoutAI(t,e.HEADER_SIZE+4,r),this.getGeneralDecoder().decodeAllCodes(t,e.HEADER_SIZE+44)},e.HEADER_SIZE=4,e}(Rm);var Mm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Bm=function(t){function e(e){return t.call(this,e)||this}return Mm(e,t),e.prototype.parseInformation=function(){var t=new tp;return this.getGeneralDecoder().decodeAllCodes(t,e.HEADER_SIZE)},e.HEADER_SIZE=5,e}(Im);var Lm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),jm=function(t){function e(e){return t.call(this,e)||this}return Lm(e,t),e.prototype.encodeCompressedWeight=function(t,e,r){var n=this.getGeneralDecoder().extractNumericValueFromBitArray(e,r);this.addWeightCode(t,n);for(var i=this.checkWeight(n),o=1e5,a=0;a<5;++a)i/o==0&&t.append("0"),o/=10;t.append(i)},e}(Rm);const Vm=jm;var zm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Um=function(t){function e(e){return t.call(this,e)||this}return zm(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+Vm.GTIN_SIZE+e.WEIGHT_SIZE)throw new ip;var t=new tp;return this.encodeCompressedGtin(t,e.HEADER_SIZE),this.encodeCompressedWeight(t,e.HEADER_SIZE+Vm.GTIN_SIZE,e.WEIGHT_SIZE),t.toString()},e.HEADER_SIZE=5,e.WEIGHT_SIZE=15,e}(Vm);var Hm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Gm=function(t){function e(e){return t.call(this,e)||this}return Hm(e,t),e.prototype.addWeightCode=function(t,e){t.append("(3103)")},e.prototype.checkWeight=function(t){return t},e}(Um);var qm=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Wm=function(t){function e(e){return t.call(this,e)||this}return qm(e,t),e.prototype.addWeightCode=function(t,e){e<1e4?t.append("(3202)"):t.append("(3203)")},e.prototype.checkWeight=function(t){return t<1e4?t:t-1e4},e}(Um);var Ym=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Xm=function(t){function e(e){return t.call(this,e)||this}return Ym(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+Rm.GTIN_SIZE)throw new ip;var t=new tp;this.encodeCompressedGtin(t,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+Rm.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(392"),t.append(r),t.append(")");var n=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+Rm.GTIN_SIZE+e.LAST_DIGIT_SIZE,null);return t.append(n.getNewString()),t.toString()},e.HEADER_SIZE=8,e.LAST_DIGIT_SIZE=2,e}(Rm);var $m=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Qm=function(t){function e(e){return t.call(this,e)||this}return $m(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+Rm.GTIN_SIZE)throw new ip;var t=new tp;this.encodeCompressedGtin(t,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+Rm.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(393"),t.append(r),t.append(")");var n=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+Rm.GTIN_SIZE+e.LAST_DIGIT_SIZE,e.FIRST_THREE_DIGITS_SIZE);n/100==0&&t.append("0"),n/10==0&&t.append("0"),t.append(n);var i=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+Rm.GTIN_SIZE+e.LAST_DIGIT_SIZE+e.FIRST_THREE_DIGITS_SIZE,null);return t.append(i.getNewString()),t.toString()},e.HEADER_SIZE=8,e.LAST_DIGIT_SIZE=2,e.FIRST_THREE_DIGITS_SIZE=10,e}(Rm);var Km=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Zm=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.dateCode=n,i.firstAIdigits=r,i}return Km(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE+e.DATE_SIZE)throw new ip;var t=new tp;return this.encodeCompressedGtin(t,e.HEADER_SIZE),this.encodeCompressedWeight(t,e.HEADER_SIZE+e.GTIN_SIZE,e.WEIGHT_SIZE),this.encodeCompressedDate(t,e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE),t.toString()},e.prototype.encodeCompressedDate=function(t,r){var n=this.getGeneralDecoder().extractNumericValueFromBitArray(r,e.DATE_SIZE);if(38400!=n){t.append("("),t.append(this.dateCode),t.append(")");var i=n%32,o=(n/=32)%12+1,a=n/=12;a/10==0&&t.append("0"),t.append(a),o/10==0&&t.append("0"),t.append(o),i/10==0&&t.append("0"),t.append(i)}},e.prototype.addWeightCode=function(t,e){t.append("("),t.append(this.firstAIdigits),t.append(e/1e5),t.append(")")},e.prototype.checkWeight=function(t){return t%1e5},e.HEADER_SIZE=8,e.WEIGHT_SIZE=20,e.DATE_SIZE=16,e}(Vm);var Jm=__webpack_require__(51266);const tg=function(){function t(t,e,r,n){this.leftchar=t,this.rightchar=e,this.finderpattern=r,this.maybeLast=n}return t.prototype.mayBeLast=function(){return this.maybeLast},t.prototype.getLeftChar=function(){return this.leftchar},t.prototype.getRightChar=function(){return this.rightchar},t.prototype.getFinderPattern=function(){return this.finderpattern},t.prototype.mustBeLast=function(){return null==this.rightchar},t.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"},t.equals=function(e,r){return e instanceof t&&t.equalsOrNull(e.leftchar,r.leftchar)&&t.equalsOrNull(e.rightchar,r.rightchar)&&t.equalsOrNull(e.finderpattern,r.finderpattern)},t.equalsOrNull=function(e,r){return null===e?null===r:t.equals(e,r)},t.prototype.hashCode=function(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()},t}(),eg=function(){function t(t,e,r){this.pairs=t,this.rowNumber=e,this.wasReversed=r}return t.prototype.getPairs=function(){return this.pairs},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.isReversed=function(){return this.wasReversed},t.prototype.isEquivalent=function(t){return this.checkEqualitity(this,t)},t.prototype.toString=function(){return"{ "+this.pairs+" }"},t.prototype.equals=function(e,r){return e instanceof t&&this.checkEqualitity(e,r)&&e.wasReversed===r.wasReversed},t.prototype.checkEqualitity=function(t,e){var r;if(t&&e)return t.forEach((function(t,n){e.forEach((function(e){t.getLeftChar().getValue()===e.getLeftChar().getValue()&&t.getRightChar().getValue()===e.getRightChar().getValue()&&t.getFinderPatter().getValue()===e.getFinderPatter().getValue()&&(r=!0)}))})),r},t}();var rg=__webpack_require__(51266),ng=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ig=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},og=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.pairs=new Array(e.MAX_PAIRS),r.rows=new Array,r.startEnd=[2],r}return ng(e,t),e.prototype.decodeRow=function(t,r,n){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(t,r))}catch(t){}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(t,r))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(t,e){for(var r,n=!1;!n;)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(t){if(t instanceof ip){if(!this.pairs.length)throw new ip;n=!0}}if(this.checkChecksum())return this.pairs;if(r=!!this.rows.length,this.storeRow(t,!1),r){var i=this.checkRowsBoolean(!1);if(null!=i)return i;if(null!=(i=this.checkRowsBoolean(!0)))return i}throw new ip},e.prototype.checkRowsBoolean=function(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());var e=null;try{e=this.checkRows(new Array,0)}catch(t){rg.log(t)}return t&&(this.rows=this.rows.reverse()),e},e.prototype.checkRows=function(t,r){for(var n,i,o=r;o<this.rows.length;o++){var a=this.rows[o];this.pairs.length=0;try{for(var s=(n=void 0,ig(t)),c=s.next();!c.done;c=s.next()){var l=c.value;this.pairs.push(l.getPairs())}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}if(this.pairs.push(a.getPairs()),e.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var u=new Array(t);u.push(a);try{return this.checkRows(u,o+1)}catch(t){rg.log(t)}}}throw new ip},e.isValidSequence=function(t){var r,n;try{for(var i=ig(e.FINDER_PATTERN_SEQUENCES),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(t.length>a.length)){for(var s=!0,c=0;c<t.length;c++)if(t[c].getFinderPattern().getValue()!=a[c]){s=!1;break}if(s)return!0}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},e.prototype.storeRow=function(t,r){for(var n=0,i=!1,o=!1;n<this.rows.length;){var a=this.rows[n];if(a.getRowNumber()>t){o=a.isEquivalent(this.pairs);break}i=a.isEquivalent(this.pairs),n++}o||i||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(n,new eg(this.pairs,t,r)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(t,e){var r,n,i,o,a,s;try{for(var c=ig(e),l=c.next();!l.done;l=c.next()){var u=l.value;if(u.getPairs().length!==t.length)try{for(var d=(i=void 0,ig(u.getPairs())),h=d.next();!h.done;h=d.next()){var p=h.value;try{for(var f=(a=void 0,ig(t)),m=f.next();!m.done;m=f.next()){var g=m.value;if(tg.equals(p,g)){!0;break}}}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}},e.isPartialRow=function(t,e){var r,n,i,o,a,s;try{for(var c=ig(e),l=c.next();!l.done;l=c.next()){var u=l.value,d=!0;try{for(var h=(i=void 0,ig(t)),p=h.next();!p.done;p=h.next()){var f=p.value,m=!1;try{for(var g=(a=void 0,ig(u.getPairs())),v=g.next();!v.done;v=g.next()){var y=v.value;if(f.equals(y)){m=!0;break}}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(!m){d=!1;break}}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}if(d)return!0}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(t){var e=function(t){try{if(t.get(1))return new Nm(t);if(!t.get(2))return new Bm(t);switch(Pm.extractNumericValueFromBitArray(t,1,4)){case 4:return new Gm(t);case 5:return new Wm(t)}switch(Pm.extractNumericValueFromBitArray(t,1,5)){case 12:return new Xm(t);case 13:return new Qm(t)}switch(Pm.extractNumericValueFromBitArray(t,1,7)){case 56:return new Zm(t,"310","11");case 57:return new Zm(t,"320","11");case 58:return new Zm(t,"310","13");case 59:return new Zm(t,"320","13");case 60:return new Zm(t,"310","15");case 61:return new Zm(t,"320","15");case 62:return new Zm(t,"310","17");case 63:return new Zm(t,"320","17")}}catch(e){throw Jm.log(e),new zp("unknown decoder: "+t)}}(gm.buildBitArray(t)).parseInformation(),r=t[0].getFinderPattern().getResultPoints(),n=t[t.length-1].getFinderPattern().getResultPoints(),i=[r[0],r[1],n[0],n[1]];return new xp(e,null,null,i,Cp.RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var t=this.pairs.get(0),e=t.getLeftChar(),r=t.getRightChar();if(null==r)return!1;for(var n=r.getChecksumPortion(),i=2,o=1;o<this.pairs.size();++o){var a=this.pairs.get(o);n+=a.getLeftChar().getChecksumPortion(),i++;var s=a.getRightChar();null!=s&&(n+=s.getChecksumPortion(),i++)}return 211*(i-4)+(n%=211)==e.getValue()},e.getNextSecondBar=function(t,e){var r;return t.get(e)?(r=t.getNextUnset(e),r=t.getNextSet(r)):(r=t.getNextSet(e),r=t.getNextUnset(r)),r},e.prototype.retrieveNextPair=function(t,r,n){var i,o=r.length%2==0;this.startFromEven&&(o=!o);var a=!0,s=-1;do{this.findNextPair(t,r,s),null==(i=this.parseFoundFinderPattern(t,n,o))?s=e.getNextSecondBar(t,this.startEnd[0]):a=!1}while(a);var c,l=this.decodeDataCharacter(t,i,o,!0);if(!this.isEmptyPair(r)&&r[r.length-1].mustBeLast())throw new ip;try{c=this.decodeDataCharacter(t,i,o,!1)}catch(t){c=null,rg.log(t)}return new tg(l,c,i,!0)},e.prototype.isEmptyPair=function(t){return 0===t.length},e.prototype.findNextPair=function(t,r,n){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;var o,a=t.getSize();o=n>=0?n:this.isEmptyPair(r)?0:r[r.length-1].getFinderPattern().getStartEnd()[1];var s=r.length%2!=0;this.startFromEven&&(s=!s);for(var c=!1;o<a&&(c=!t.get(o));)o++;for(var l=0,u=o,d=o;d<a;d++)if(t.get(d)!=c)i[l]++;else{if(3==l){if(s&&e.reverseCounters(i),e.isFinderPattern(i))return this.startEnd[0]=u,void(this.startEnd[1]=d);s&&e.reverseCounters(i),u+=i[0]+i[1],i[0]=i[2],i[1]=i[3],i[2]=0,i[3]=0,l--}else l++;i[l]=1,c=!c}throw new ip},e.reverseCounters=function(t){for(var e=t.length,r=0;r<e/2;++r){var n=t[r];t[r]=t[e-r-1],t[e-r-1]=n}},e.prototype.parseFoundFinderPattern=function(t,r,n){var i,o,a;if(n){for(var s=this.startEnd[0]-1;s>=0&&!t.get(s);)s--;s++,i=this.startEnd[0]-s,o=s,a=this.startEnd[1]}else o=this.startEnd[0],i=(a=t.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var c,l=this.getDecodeFinderCounters();Oh.arraycopy(l,0,l,1,l.length-1),l[0]=i;try{c=this.parseFinderValue(l,e.FINDER_PATTERNS)}catch(t){return null}return new hm(c,[o,a],o,a,r)},e.prototype.decodeDataCharacter=function(t,r,n,i){for(var o=this.getDataCharacterCounters(),a=0;a<o.length;a++)o[a]=0;if(i)e.recordPatternInReverse(t,r.getStartEnd()[0],o);else{e.recordPattern(t,r.getStartEnd()[1],o);for(var s=0,c=o.length-1;s<c;s++,c--){var l=o[s];o[s]=o[c],o[c]=l}}var u=Xp.sum(new Int32Array(o))/17,d=(r.getStartEnd()[1]-r.getStartEnd()[0])/15;if(Math.abs(u-d)/d>.3)throw new ip;var h=this.getOddCounts(),p=this.getEvenCounts(),f=this.getOddRoundingErrors(),m=this.getEvenRoundingErrors();for(s=0;s<o.length;s++){var g=1*o[s]/u,v=g+.5;if(v<1){if(g<.3)throw new ip;v=1}else if(v>8){if(g>8.7)throw new ip;v=8}var y=s/2;0==(1&s)?(h[y]=v,f[y]=g-v):(p[y]=v,m[y]=g-v)}this.adjustOddEvenCounts(17);var b=4*r.getValue()+(n?0:2)+(i?0:1)-1,w=0,_=0;for(s=h.length-1;s>=0;s--){if(e.isNotA1left(r,n,i)){var E=e.WEIGHTS[b][2*s];_+=h[s]*E}w+=h[s]}var x=0;for(s=p.length-1;s>=0;s--)e.isNotA1left(r,n,i)&&(E=e.WEIGHTS[b][2*s+1],x+=p[s]*E);var A=_+x;if(0!=(1&w)||w>13||w<4)throw new ip;var C=(13-w)/2,S=e.SYMBOL_WIDEST[C],D=9-S,O=fm.getRSSvalue(h,S,!0),P=fm.getRSSvalue(p,D,!1),I=e.EVEN_TOTAL_SUBSET[C],k=e.GSUM[C];return new dm(O*I+P+k,A)},e.isNotA1left=function(t,e,r){return!(0==t.getValue()&&e&&r)},e.prototype.adjustOddEvenCounts=function(t){var r=Xp.sum(new Int32Array(this.getOddCounts())),n=Xp.sum(new Int32Array(this.getEvenCounts())),i=!1,o=!1;r>13?o=!0:r<4&&(i=!0);var a=!1,s=!1;n>13?s=!0:n<4&&(a=!0);var c=r+n-t,l=1==(1&r),u=0==(1&n);if(1==c)if(l){if(u)throw new ip;o=!0}else{if(!u)throw new ip;s=!0}else if(-1==c)if(l){if(u)throw new ip;i=!0}else{if(!u)throw new ip;a=!0}else{if(0!=c)throw new ip;if(l){if(!u)throw new ip;r<n?(i=!0,s=!0):(o=!0,a=!0)}else if(u)throw new ip}if(i){if(o)throw new ip;e.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(o&&e.decrement(this.getOddCounts(),this.getOddRoundingErrors()),a){if(s)throw new ip;e.increment(this.getEvenCounts(),this.getOddRoundingErrors())}s&&e.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.SYMBOL_WIDEST=[7,5,4,3,1],e.EVEN_TOTAL_SUBSET=[4,20,52,104,204],e.GSUM=[0,348,1388,2948,3988],e.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],e.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],e.FINDER_PAT_A=0,e.FINDER_PAT_B=1,e.FINDER_PAT_C=2,e.FINDER_PAT_D=3,e.FINDER_PAT_E=4,e.FINDER_PAT_F=5,e.FINDER_PATTERN_SEQUENCES=[[e.FINDER_PAT_A,e.FINDER_PAT_A],[e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B],[e.FINDER_PAT_A,e.FINDER_PAT_C,e.FINDER_PAT_B,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_C],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F]],e.MAX_PAIRS=11,e}(um);const ag=og;var sg=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const cg=function(t){function e(e,r,n){var i=t.call(this,e,r)||this;return i.count=0,i.finderPattern=n,i}return sg(e,t),e.prototype.getFinderPattern=function(){return this.finderPattern},e.prototype.getCount=function(){return this.count},e.prototype.incrementCount=function(){this.count++},e}(dm);var lg=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ug=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.possibleLeftPairs=[],e.possibleRightPairs=[],e}return lg(e,t),e.prototype.decodeRow=function(t,r,n){var i,o,a,s,c=this.decodePair(r,!1,t,n);e.addOrTally(this.possibleLeftPairs,c),r.reverse();var l=this.decodePair(r,!0,t,n);e.addOrTally(this.possibleRightPairs,l),r.reverse();try{for(var u=ug(this.possibleLeftPairs),d=u.next();!d.done;d=u.next()){var h=d.value;if(h.getCount()>1)try{for(var p=(a=void 0,ug(this.possibleRightPairs)),f=p.next();!f.done;f=p.next()){var m=f.value;if(m.getCount()>1&&e.checkChecksum(h,m))return e.constructResult(h,m)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}throw new ip},e.addOrTally=function(t,e){var r,n;if(null!=e){var i=!1;try{for(var o=ug(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getValue()===e.getValue()){s.incrementCount(),i=!0;break}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}i||t.push(e)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(t,e){for(var r=4537077*t.getValue()+e.getValue(),n=new String(r).toString(),i=new tp,o=13-n.length;o>0;o--)i.append("0");i.append(n);var a=0;for(o=0;o<13;o++){var s=i.charAt(o).charCodeAt(0)-"0".charCodeAt(0);a+=0==(1&o)?3*s:s}10==(a=10-a%10)&&(a=0),i.append(a.toString());var c=t.getFinderPattern().getResultPoints(),l=e.getFinderPattern().getResultPoints();return new xp(i.toString(),null,0,[c[0],c[1],l[0],l[1]],Cp.RSS_14,(new Date).getTime())},e.checkChecksum=function(t,e){var r=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,n=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return n>72&&n--,n>8&&n--,r===n},e.prototype.decodePair=function(t,e,r,n){try{var i=this.findFinderPattern(t,e),o=this.parseFoundFinderPattern(t,r,e,i),a=null==n?null:n.get(Vh.NEED_RESULT_POINT_CALLBACK);if(null!=a){var s=(i[0]+i[1])/2;e&&(s=t.getSize()-1-s),a.foundPossibleResultPoint(new Zp(s,r))}var c=this.decodeDataCharacter(t,o,!0),l=this.decodeDataCharacter(t,o,!1);return new cg(1597*c.getValue()+l.getValue(),c.getChecksumPortion()+4*l.getChecksumPortion(),o)}catch(t){return null}},e.prototype.decodeDataCharacter=function(t,r,n){for(var i=this.getDataCharacterCounters(),o=0;o<i.length;o++)i[o]=0;if(n)wf.recordPatternInReverse(t,r.getStartEnd()[0],i);else{wf.recordPattern(t,r.getStartEnd()[1]+1,i);for(var a=0,s=i.length-1;a<s;a++,s--){var c=i[a];i[a]=i[s],i[s]=c}}var l=n?16:15,u=Xp.sum(new Int32Array(i))/l,d=this.getOddCounts(),h=this.getEvenCounts(),p=this.getOddRoundingErrors(),f=this.getEvenRoundingErrors();for(a=0;a<i.length;a++){var m=i[a]/u,g=Math.floor(m+.5);g<1?g=1:g>8&&(g=8);var v=Math.floor(a/2);0==(1&a)?(d[v]=g,p[v]=m-g):(h[v]=g,f[v]=m-g)}this.adjustOddEvenCounts(n,l);var y=0,b=0;for(a=d.length-1;a>=0;a--)b*=9,b+=d[a],y+=d[a];var w=0,_=0;for(a=h.length-1;a>=0;a--)w*=9,w+=h[a],_+=h[a];var E=b+3*w;if(n){if(0!=(1&y)||y>12||y<4)throw new ip;var x=(12-y)/2,A=9-(P=e.OUTSIDE_ODD_WIDEST[x]),C=fm.getRSSvalue(d,P,!1),S=fm.getRSSvalue(h,A,!0),D=e.OUTSIDE_EVEN_TOTAL_SUBSET[x],O=e.OUTSIDE_GSUM[x];return new dm(C*D+S+O,E)}if(0!=(1&_)||_>10||_<4)throw new ip;x=(10-_)/2,A=9-(P=e.INSIDE_ODD_WIDEST[x]),C=fm.getRSSvalue(d,P,!0),S=fm.getRSSvalue(h,A,!1);var P,I=e.INSIDE_ODD_TOTAL_SUBSET[x];return O=e.INSIDE_GSUM[x],new dm(S*I+C+O,E)},e.prototype.findFinderPattern=function(t,e){var r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;for(var n=t.getSize(),i=!1,o=0;o<n&&e!==(i=!t.get(o));)o++;for(var a=0,s=o,c=o;c<n;c++)if(t.get(c)!==i)r[a]++;else{if(3===a){if(um.isFinderPattern(r))return[s,c];s+=r[0]+r[1],r[0]=r[2],r[1]=r[3],r[2]=0,r[3]=0,a--}else a++;r[a]=1,i=!i}throw new ip},e.prototype.parseFoundFinderPattern=function(t,r,n,i){for(var o=t.get(i[0]),a=i[0]-1;a>=0&&o!==t.get(a);)a--;a++;var s=i[0]-a,c=this.getDecodeFinderCounters(),l=new Int32Array(c.length);Oh.arraycopy(c,0,l,1,c.length-1),l[0]=s;var u=this.parseFinderValue(l,e.FINDER_PATTERNS),d=a,h=i[1];return n&&(d=t.getSize()-1-d,h=t.getSize()-1-h),new hm(u,[a,i[1]],d,h,r)},e.prototype.adjustOddEvenCounts=function(t,e){var r=Xp.sum(new Int32Array(this.getOddCounts())),n=Xp.sum(new Int32Array(this.getEvenCounts())),i=!1,o=!1,a=!1,s=!1;t?(r>12?o=!0:r<4&&(i=!0),n>12?s=!0:n<4&&(a=!0)):(r>11?o=!0:r<5&&(i=!0),n>10?s=!0:n<4&&(a=!0));var c=r+n-e,l=(1&r)==(t?1:0),u=1==(1&n);if(1===c)if(l){if(u)throw new ip;o=!0}else{if(!u)throw new ip;s=!0}else if(-1===c)if(l){if(u)throw new ip;i=!0}else{if(!u)throw new ip;a=!0}else{if(0!==c)throw new ip;if(l){if(!u)throw new ip;r<n?(i=!0,s=!0):(o=!0,a=!0)}else if(u)throw new ip}if(i){if(o)throw new ip;um.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(o&&um.decrement(this.getOddCounts(),this.getOddRoundingErrors()),a){if(s)throw new ip;um.increment(this.getEvenCounts(),this.getOddRoundingErrors())}s&&um.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],e.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],e.OUTSIDE_GSUM=[0,161,961,2015,2715],e.INSIDE_GSUM=[0,336,1036,1516],e.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],e.INSIDE_ODD_WIDEST=[2,4,6,8],e.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],e}(um);const hg=dg;var pg=__webpack_require__(51266),fg=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),mg=function(t){function e(e){var r=t.call(this)||this;r.readers=[];var n=e?e.get(Vh.POSSIBLE_FORMATS):null,i=e&&void 0!==e.get(Vh.ASSUME_CODE_39_CHECK_DIGIT);return n&&((n.includes(Cp.EAN_13)||n.includes(Cp.UPC_A)||n.includes(Cp.EAN_8)||n.includes(Cp.UPC_E))&&r.readers.push(new sm(e)),n.includes(Cp.CODE_39)&&r.readers.push(new Df(i)),n.includes(Cp.CODE_128)&&r.readers.push(new xf),n.includes(Cp.ITF)&&r.readers.push(new If),n.includes(Cp.RSS_14)&&r.readers.push(new hg),n.includes(Cp.RSS_EXPANDED)&&(pg.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),r.readers.push(new ag))),0===r.readers.length&&(r.readers.push(new sm(e)),r.readers.push(new Df),r.readers.push(new sm(e)),r.readers.push(new xf),r.readers.push(new If),r.readers.push(new hg)),r}return fg(e,t),e.prototype.decodeRow=function(t,e,r){for(var n=0;n<this.readers.length;n++)try{return this.readers[n].decodeRow(t,e,r)}catch(t){}throw new ip},e.prototype.reset=function(){this.readers.forEach((function(t){return t.reset()}))},e}(wf);const gg=mg;var vg=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yg=(function(t){vg((function(e,r){return void 0===e&&(e=500),t.call(this,new gg(r),e,r)||this}),t)}(Ep),function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}),bg=function(){function t(t,e,r){this.ecCodewords=t,this.ecBlocks=[e],r&&this.ecBlocks.push(r)}return t.prototype.getECCodewords=function(){return this.ecCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),wg=function(){function t(t,e){this.count=t,this.dataCodewords=e}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),_g=function(){function t(t,e,r,n,i,o){var a,s;this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=r,this.dataRegionSizeRows=n,this.dataRegionSizeColumns=i,this.ecBlocks=o;var c=0,l=o.getECCodewords(),u=o.getECBlocks();try{for(var d=yg(u),h=d.next();!h.done;h=d.next()){var p=h.value;c+=p.getCount()*(p.getDataCodewords()+l)}}catch(t){a={error:t}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}this.totalCodewords=c}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},t.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},t.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},t.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t.getVersionForDimensions=function(e,r){var n,i;if(0!=(1&e)||0!=(1&r))throw new Uh;try{for(var o=yg(t.VERSIONS),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.symbolSizeRows===e&&s.symbolSizeColumns===r)return s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}throw new Uh},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new bg(5,new wg(1,3))),new t(2,12,12,10,10,new bg(7,new wg(1,5))),new t(3,14,14,12,12,new bg(10,new wg(1,8))),new t(4,16,16,14,14,new bg(12,new wg(1,12))),new t(5,18,18,16,16,new bg(14,new wg(1,18))),new t(6,20,20,18,18,new bg(18,new wg(1,22))),new t(7,22,22,20,20,new bg(20,new wg(1,30))),new t(8,24,24,22,22,new bg(24,new wg(1,36))),new t(9,26,26,24,24,new bg(28,new wg(1,44))),new t(10,32,32,14,14,new bg(36,new wg(1,62))),new t(11,36,36,16,16,new bg(42,new wg(1,86))),new t(12,40,40,18,18,new bg(48,new wg(1,114))),new t(13,44,44,20,20,new bg(56,new wg(1,144))),new t(14,48,48,22,22,new bg(68,new wg(1,174))),new t(15,52,52,24,24,new bg(42,new wg(2,102))),new t(16,64,64,14,14,new bg(56,new wg(2,140))),new t(17,72,72,16,16,new bg(36,new wg(4,92))),new t(18,80,80,18,18,new bg(48,new wg(4,114))),new t(19,88,88,20,20,new bg(56,new wg(4,144))),new t(20,96,96,22,22,new bg(68,new wg(4,174))),new t(21,104,104,24,24,new bg(56,new wg(6,136))),new t(22,120,120,18,18,new bg(68,new wg(6,175))),new t(23,132,132,20,20,new bg(62,new wg(8,163))),new t(24,144,144,22,22,new bg(62,new wg(8,156),new wg(2,155))),new t(25,8,18,6,16,new bg(7,new wg(1,5))),new t(26,8,32,6,14,new bg(11,new wg(1,10))),new t(27,12,26,10,24,new bg(14,new wg(1,16))),new t(28,12,36,10,16,new bg(18,new wg(1,22))),new t(29,16,36,14,16,new bg(24,new wg(1,32))),new t(30,16,48,14,22,new bg(28,new wg(1,49)))]},t.VERSIONS=t.buildVersions(),t}();const Eg=_g;var xg=function(){function t(e){var r=e.getHeight();if(r<8||r>144||0!=(1&r))throw new Uh;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new rp(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(t){var e=t.getHeight(),r=t.getWidth();return Eg.getVersionForDimensions(e,r)},t.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),e=0,r=4,n=0,i=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),a=!1,s=!1,c=!1,l=!1;do{if(r!==i||0!==n||a)if(r!==i-2||0!==n||0==(3&o)||s)if(r!==i+4||2!==n||0!=(7&o)||c)if(r!==i-2||0!==n||4!=(7&o)||l){do{r<i&&n>=0&&!this.readMappingMatrix.get(n,r)&&(t[e++]=255&this.readUtah(r,n,i,o)),r-=2,n+=2}while(r>=0&&n<o);r+=1,n+=3;do{r>=0&&n<o&&!this.readMappingMatrix.get(n,r)&&(t[e++]=255&this.readUtah(r,n,i,o)),r+=2,n-=2}while(r<i&&n>=0);r+=3,n+=1}else t[e++]=255&this.readCorner4(i,o),r-=2,n+=2,l=!0;else t[e++]=255&this.readCorner3(i,o),r-=2,n+=2,c=!0;else t[e++]=255&this.readCorner2(i,o),r-=2,n+=2,s=!0;else t[e++]=255&this.readCorner1(i,o),r-=2,n+=2,a=!0}while(r<i||n<o);if(e!==this.version.getTotalCodewords())throw new Uh;return t},t.prototype.readModule=function(t,e,r,n){return t<0&&(t+=r,e+=4-(r+4&7)),e<0&&(e+=n,t+=4-(n+4&7)),this.readMappingMatrix.set(e,t),this.mappingBitMatrix.get(e,t)},t.prototype.readUtah=function(t,e,r,n){var i=0;return this.readModule(t-2,e-2,r,n)&&(i|=1),i<<=1,this.readModule(t-2,e-1,r,n)&&(i|=1),i<<=1,this.readModule(t-1,e-2,r,n)&&(i|=1),i<<=1,this.readModule(t-1,e-1,r,n)&&(i|=1),i<<=1,this.readModule(t-1,e,r,n)&&(i|=1),i<<=1,this.readModule(t,e-2,r,n)&&(i|=1),i<<=1,this.readModule(t,e-1,r,n)&&(i|=1),i<<=1,this.readModule(t,e,r,n)&&(i|=1),i},t.prototype.readCorner1=function(t,e){var r=0;return this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,1,t,e)&&(r|=1),r<<=1,this.readModule(t-1,2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r<<=1,this.readModule(2,e-1,t,e)&&(r|=1),r<<=1,this.readModule(3,e-1,t,e)&&(r|=1),r},t.prototype.readCorner2=function(t,e){var r=0;return this.readModule(t-3,0,t,e)&&(r|=1),r<<=1,this.readModule(t-2,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(0,e-4,t,e)&&(r|=1),r<<=1,this.readModule(0,e-3,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r},t.prototype.readCorner3=function(t,e){var r=0;return this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,e-1,t,e)&&(r|=1),r<<=1,this.readModule(0,e-3,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-3,t,e)&&(r|=1),r<<=1,this.readModule(1,e-2,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r},t.prototype.readCorner4=function(t,e){var r=0;return this.readModule(t-3,0,t,e)&&(r|=1),r<<=1,this.readModule(t-2,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r<<=1,this.readModule(2,e-1,t,e)&&(r|=1),r<<=1,this.readModule(3,e-1,t,e)&&(r|=1),r},t.prototype.extractDataRegion=function(t){var e=this.version.getSymbolSizeRows(),r=this.version.getSymbolSizeColumns();if(t.getHeight()!==e)throw new _h("Dimension of bitMatrix must match the version size");for(var n=this.version.getDataRegionSizeRows(),i=this.version.getDataRegionSizeColumns(),o=e/n|0,a=r/i|0,s=new rp(a*i,o*n),c=0;c<o;++c)for(var l=c*n,u=0;u<a;++u)for(var d=u*i,h=0;h<n;++h)for(var p=c*(n+2)+1+h,f=l+h,m=0;m<i;++m){var g=u*(i+2)+1+m;if(t.get(g,p)){var v=d+m;s.set(v,f)}}return s},t}();const Ag=xg;var Cg=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Sg=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,r){var n,i,o,a,s=r.getECBlocks(),c=0,l=s.getECBlocks();try{for(var u=Cg(l),d=u.next();!d.done;d=u.next())c+=(g=d.value).getCount()}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}var h=new Array(c),p=0;try{for(var f=Cg(l),m=f.next();!m.done;m=f.next())for(var g=m.value,v=0;v<g.getCount();v++){var y=g.getDataCodewords(),b=s.getECCodewords()+y;h[p++]=new t(y,new Uint8Array(b))}}catch(t){o={error:t}}finally{try{m&&!m.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}var w=h[0].codewords.length-s.getECCodewords(),_=w-1,E=0;for(v=0;v<_;v++)for(var x=0;x<p;x++)h[x].codewords[v]=e[E++];var A=24===r.getVersionNumber(),C=A?8:p;for(x=0;x<C;x++)h[x].codewords[w-1]=e[E++];var S=h[0].codewords.length;for(v=w;v<S;v++)for(x=0;x<p;x++){var D=A?(x+8)%p:x,O=A&&D>7?v-1:v;h[D].codewords[O]=e[E++]}if(E!==e.length)throw new _h;return h},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}();const Dg=Sg,Og=function(){function t(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return t.prototype.getBitOffset=function(){return this.bitOffset},t.prototype.getByteOffset=function(){return this.byteOffset},t.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new _h(""+t);var e=0,r=this.bitOffset,n=this.byteOffset,i=this.bytes;if(r>0){var o=8-r,a=t<o?t:o,s=255>>8-a<<(c=o-a);e=(i[n]&s)>>c,t-=a,8===(r+=a)&&(r=0,n++)}if(t>0){for(;t>=8;)e=e<<8|255&i[n],n++,t-=8;var c;if(t>0)s=255>>(c=8-t)<<c,e=e<<t|(i[n]&s)>>c,r+=t}return this.bitOffset=r,this.byteOffset=n,e},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}();var Pg;!function(t){t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE"}(Pg||(Pg={}));var Ig=function(){function t(){}return t.decode=function(t){var e=new Og(t),r=new tp,n=new tp,i=new Array,o=Pg.ASCII_ENCODE;do{if(o===Pg.ASCII_ENCODE)o=this.decodeAsciiSegment(e,r,n);else{switch(o){case Pg.C40_ENCODE:this.decodeC40Segment(e,r);break;case Pg.TEXT_ENCODE:this.decodeTextSegment(e,r);break;case Pg.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,r);break;case Pg.EDIFACT_ENCODE:this.decodeEdifactSegment(e,r);break;case Pg.BASE256_ENCODE:this.decodeBase256Segment(e,r,i);break;default:throw new Uh}o=Pg.ASCII_ENCODE}}while(o!==Pg.PAD_ENCODE&&e.available()>0);return n.length()>0&&r.append(n.toString()),new Op(t,r.toString(),0===i.length?null:i,null)},t.decodeAsciiSegment=function(t,e,r){var n=!1;do{var i=t.readBits(8);if(0===i)throw new Uh;if(i<=128)return n&&(i+=128),e.append(String.fromCharCode(i-1)),Pg.ASCII_ENCODE;if(129===i)return Pg.PAD_ENCODE;if(i<=229){var o=i-130;o<10&&e.append("0"),e.append(""+o)}else switch(i){case 230:return Pg.C40_ENCODE;case 231:return Pg.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:n=!0;break;case 236:e.append("[)>05"),r.insert(0,"");break;case 237:e.append("[)>06"),r.insert(0,"");break;case 238:return Pg.ANSIX12_ENCODE;case 239:return Pg.TEXT_ENCODE;case 240:return Pg.EDIFACT_ENCODE;default:if(254!==i||0!==t.available())throw new Uh}}while(t.available()>0);return Pg.ASCII_ENCODE},t.decodeC40Segment=function(t,e){var r=!1,n=[],i=0;do{if(8===t.available())return;var o=t.readBits(8);if(254===o)return;this.parseTwoBytes(o,t.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.C40_BASIC_SET_CHARS.length))throw new Uh;var c=this.C40_BASIC_SET_CHARS[s];r?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):e.append(c)}break;case 1:r?(e.append(String.fromCharCode(s+128)),r=!1):e.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.C40_SHIFT2_SET_CHARS.length)c=this.C40_SHIFT2_SET_CHARS[s],r?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):e.append(c);else switch(s){case 27:e.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new Uh}i=0;break;case 3:r?(e.append(String.fromCharCode(s+224)),r=!1):e.append(String.fromCharCode(s+96)),i=0;break;default:throw new Uh}}}while(t.available()>0)},t.decodeTextSegment=function(t,e){var r=!1,n=[],i=0;do{if(8===t.available())return;var o=t.readBits(8);if(254===o)return;this.parseTwoBytes(o,t.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.TEXT_BASIC_SET_CHARS.length))throw new Uh;var c=this.TEXT_BASIC_SET_CHARS[s];r?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):e.append(c)}break;case 1:r?(e.append(String.fromCharCode(s+128)),r=!1):e.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.TEXT_SHIFT2_SET_CHARS.length)c=this.TEXT_SHIFT2_SET_CHARS[s],r?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):e.append(c);else switch(s){case 27:e.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new Uh}i=0;break;case 3:if(!(s<this.TEXT_SHIFT3_SET_CHARS.length))throw new Uh;c=this.TEXT_SHIFT3_SET_CHARS[s],r?(e.append(String.fromCharCode(c.charCodeAt(0)+128)),r=!1):e.append(c),i=0;break;default:throw new Uh}}}while(t.available()>0)},t.decodeAnsiX12Segment=function(t,e){var r=[];do{if(8===t.available())return;var n=t.readBits(8);if(254===n)return;this.parseTwoBytes(n,t.readBits(8),r);for(var i=0;i<3;i++){var o=r[i];switch(o){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(o<14)e.append(String.fromCharCode(o+44));else{if(!(o<40))throw new Uh;e.append(String.fromCharCode(o+51))}}}}while(t.available()>0)},t.parseTwoBytes=function(t,e,r){var n=(t<<8)+e-1,i=Math.floor(n/1600);r[0]=i,n-=1600*i,i=Math.floor(n/40),r[1]=i,r[2]=n-40*i},t.decodeEdifactSegment=function(t,e){do{if(t.available()<=16)return;for(var r=0;r<4;r++){var n=t.readBits(6);if(31===n){var i=8-t.getBitOffset();return void(8!==i&&t.readBits(i))}0==(32&n)&&(n|=64),e.append(String.fromCharCode(n))}}while(t.available()>0)},t.decodeBase256Segment=function(t,e,r){var n,i=1+t.getByteOffset(),o=this.unrandomize255State(t.readBits(8),i++);if((n=0===o?t.available()/8|0:o<250?o:250*(o-249)+this.unrandomize255State(t.readBits(8),i++))<0)throw new Uh;for(var a=new Uint8Array(n),s=0;s<n;s++){if(t.available()<8)throw new Uh;a[s]=this.unrandomize255State(t.readBits(8),i++)}r.push(a);try{e.append(Qh.decode(a,Zh.ISO88591))}catch(t){throw new zp("Platform does not support required encoding: "+t.message)}},t.unrandomize255State=function(t,e){var r=t-(149*e%255+1);return r>=0?r:r+256},t.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],t}();const kg=Ig;var Tg=function(){function t(){this.rsDecoder=new Hp(Bp.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(t){var e,r,n=new Ag(t),i=n.getVersion(),o=n.readCodewords(),a=Dg.getDataBlocks(o,i),s=0;try{for(var c=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),l=c.next();!l.done;l=c.next())s+=l.value.getNumDataCodewords()}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}for(var u=new Uint8Array(s),d=a.length,h=0;h<d;h++){var p=a[h],f=p.getCodewords(),m=p.getNumDataCodewords();this.correctErrors(f,m);for(var g=0;g<m;g++)u[g*d+h]=f[g]}return kg.decode(u)},t.prototype.correctErrors=function(t,e){var r=new Int32Array(t);try{this.rsDecoder.decode(r,t.length-e)}catch(t){throw new Ch}for(var n=0;n<e;n++)t[n]=r[n]},t}();const Rg=Tg;var Fg=function(){function t(t){this.image=t,this.rectangleDetector=new nf(this.image)}return t.prototype.detect=function(){var e=this.rectangleDetector.detect(),r=this.detectSolid1(e);if((r=this.detectSolid2(r))[3]=this.correctTopRight(r),!r[3])throw new ip;var n=(r=this.shiftToModuleCenter(r))[0],i=r[1],o=r[2],a=r[3],s=this.transitionsBetween(n,a)+1,c=this.transitionsBetween(o,a)+1;1==(1&s)&&(s+=1),1==(1&c)&&(c+=1),4*s<7*c&&4*c<7*s&&(s=c=Math.max(s,c));var l=t.sampleGrid(this.image,n,i,o,a,s,c);return new Jp(l,[n,i,o,a])},t.shiftPoint=function(t,e,r){var n=(e.getX()-t.getX())/(r+1),i=(e.getY()-t.getY())/(r+1);return new Zp(t.getX()+n,t.getY()+i)},t.moveAway=function(t,e,r){var n=t.getX(),i=t.getY();return n<e?n-=1:n+=1,i<r?i-=1:i+=1,new Zp(n,i)},t.prototype.detectSolid1=function(t){var e=t[0],r=t[1],n=t[3],i=t[2],o=this.transitionsBetween(e,r),a=this.transitionsBetween(r,n),s=this.transitionsBetween(n,i),c=this.transitionsBetween(i,e),l=o,u=[i,e,r,n];return l>a&&(l=a,u[0]=e,u[1]=r,u[2]=n,u[3]=i),l>s&&(l=s,u[0]=r,u[1]=n,u[2]=i,u[3]=e),l>c&&(u[0]=n,u[1]=i,u[2]=e,u[3]=r),u},t.prototype.detectSolid2=function(e){var r=e[0],n=e[1],i=e[2],o=e[3],a=this.transitionsBetween(r,o),s=t.shiftPoint(n,i,4*(a+1)),c=t.shiftPoint(i,n,4*(a+1));return this.transitionsBetween(s,r)<this.transitionsBetween(c,o)?(e[0]=r,e[1]=n,e[2]=i,e[3]=o):(e[0]=n,e[1]=i,e[2]=o,e[3]=r),e},t.prototype.correctTopRight=function(e){var r=e[0],n=e[1],i=e[2],o=e[3],a=this.transitionsBetween(r,o),s=this.transitionsBetween(n,o),c=t.shiftPoint(r,n,4*(s+1)),l=t.shiftPoint(i,n,4*(a+1));a=this.transitionsBetween(c,o),s=this.transitionsBetween(l,o);var u=new Zp(o.getX()+(i.getX()-n.getX())/(a+1),o.getY()+(i.getY()-n.getY())/(a+1)),d=new Zp(o.getX()+(r.getX()-n.getX())/(s+1),o.getY()+(r.getY()-n.getY())/(s+1));return this.isValid(u)?this.isValid(d)?this.transitionsBetween(c,u)+this.transitionsBetween(l,u)>this.transitionsBetween(c,d)+this.transitionsBetween(l,d)?u:d:u:this.isValid(d)?d:null},t.prototype.shiftToModuleCenter=function(e){var r=e[0],n=e[1],i=e[2],o=e[3],a=this.transitionsBetween(r,o)+1,s=this.transitionsBetween(i,o)+1,c=t.shiftPoint(r,n,4*s),l=t.shiftPoint(i,n,4*a);1==(1&(a=this.transitionsBetween(c,o)+1))&&(a+=1),1==(1&(s=this.transitionsBetween(l,o)+1))&&(s+=1);var u,d,h=(r.getX()+n.getX()+i.getX()+o.getX())/4,p=(r.getY()+n.getY()+i.getY()+o.getY())/4;return r=t.moveAway(r,h,p),n=t.moveAway(n,h,p),i=t.moveAway(i,h,p),o=t.moveAway(o,h,p),c=t.shiftPoint(r,n,4*s),c=t.shiftPoint(c,o,4*a),u=t.shiftPoint(n,r,4*s),u=t.shiftPoint(u,i,4*a),l=t.shiftPoint(i,o,4*s),l=t.shiftPoint(l,n,4*a),d=t.shiftPoint(o,i,4*s),[c,u,l,d=t.shiftPoint(d,r,4*a)]},t.prototype.isValid=function(t){return t.getX()>=0&&t.getX()<this.image.getWidth()&&t.getY()>0&&t.getY()<this.image.getHeight()},t.sampleGrid=function(t,e,r,n,i,o,a){return hf.getInstance().sampleGrid(t,o,a,.5,.5,o-.5,.5,o-.5,a-.5,.5,a-.5,e.getX(),e.getY(),i.getX(),i.getY(),n.getX(),n.getY(),r.getX(),r.getY())},t.prototype.transitionsBetween=function(t,e){var r=Math.trunc(t.getX()),n=Math.trunc(t.getY()),i=Math.trunc(e.getX()),o=Math.trunc(e.getY()),a=Math.abs(o-n)>Math.abs(i-r);if(a){var s=r;r=n,n=s,s=i,i=o,o=s}for(var c=Math.abs(i-r),l=Math.abs(o-n),u=-c/2,d=n<o?1:-1,h=r<i?1:-1,p=0,f=this.image.get(a?n:r,a?r:n),m=r,g=n;m!==i;m+=h){var v=this.image.get(a?g:m,a?m:g);if(v!==f&&(p++,f=v),(u+=l)>0){if(g===o)break;g+=d,u-=c}}return p},t}();const Ng=Fg;var Mg=function(){function t(){this.decoder=new Rg}return t.prototype.decode=function(e,r){var n,i;if(void 0===r&&(r=null),null!=r&&r.has(Vh.PURE_BARCODE)){var o=t.extractPureBits(e.getBlackMatrix());n=this.decoder.decode(o),i=t.NO_POINTS}else{var a=new Ng(e.getBlackMatrix()).detect();n=this.decoder.decode(a.getBits()),i=a.getPoints()}var s=n.getRawBytes(),c=new xp(n.getText(),s,8*s.length,i,Cp.DATA_MATRIX,Oh.currentTimeMillis()),l=n.getByteSegments();null!=l&&c.putMetadata(Dp.BYTE_SEGMENTS,l);var u=n.getECLevel();return null!=u&&c.putMetadata(Dp.ERROR_CORRECTION_LEVEL,u),c},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null==e||null==r)throw new ip;var n=this.moduleSize(e,t),i=e[1],o=r[1],a=e[0],s=(r[0]-a+1)/n,c=(o-i+1)/n;if(s<=0||c<=0)throw new ip;var l=n/2;i+=l,a+=l;for(var u=new rp(s,c),d=0;d<c;d++)for(var h=i+d*n,p=0;p<s;p++)t.get(a+p*n,h)&&u.set(p,d);return u},t.moduleSize=function(t,e){for(var r=e.getWidth(),n=t[0],i=t[1];n<r&&e.get(n,i);)n++;if(n===r)throw new ip;var o=n-t[0];if(0===o)throw new ip;return o},t.NO_POINTS=[],t}();const Bg=Mg;var Lg,jg=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(t){jg((function(e){return void 0===e&&(e=500),t.call(this,new Bg,e)||this}),t)}(Ep),function(t){t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H"}(Lg||(Lg={}));var Vg=function(){function t(e,r,n){this.value=e,this.stringValue=r,this.bits=n,t.FOR_BITS.set(n,this),t.FOR_VALUE.set(e,this)}return t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.fromString=function(e){switch(e){case"L":return t.L;case"M":return t.M;case"Q":return t.Q;case"H":return t.H;default:throw new bh(e+"not available")}},t.prototype.toString=function(){return this.stringValue},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.value===r.value},t.forBits=function(e){if(e<0||e>=t.FOR_BITS.size)throw new _h;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t(Lg.L,"L",1),t.M=new t(Lg.M,"M",0),t.Q=new t(Lg.Q,"Q",3),t.H=new t(Lg.H,"H",2),t}();const zg=Vg;var Ug=function(){function t(t){this.errorCorrectionLevel=zg.forBits(t>>3&3),this.dataMask=7&t}return t.numBitsDiffering=function(t,e){return Mh.bitCount(t^e)},t.decodeFormatInformation=function(e,r){var n=t.doDecodeFormatInformation(e,r);return null!==n?n:t.doDecodeFormatInformation(e^t.FORMAT_INFO_MASK_QR,r^t.FORMAT_INFO_MASK_QR)},t.doDecodeFormatInformation=function(e,r){var n,i,o=Number.MAX_SAFE_INTEGER,a=0;try{for(var s=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t.FORMAT_INFO_DECODE_LOOKUP),c=s.next();!c.done;c=s.next()){var l=c.value,u=l[0];if(u===e||u===r)return new t(l[1]);var d=t.numBitsDiffering(e,u);d<o&&(a=l[1],o=d),e!==r&&(d=t.numBitsDiffering(r,u))<o&&(a=l[1],o=d)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o<=3?new t(a):null},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getDataMask=function(){return this.dataMask},t.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.errorCorrectionLevel===r.errorCorrectionLevel&&this.dataMask===r.dataMask},t.FORMAT_INFO_MASK_QR=21522,t.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],t}();const Hg=Ug;var Gg=function(){function t(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];this.ecCodewordsPerBlock=t,this.ecBlocks=e}return t.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},t.prototype.getNumBlocks=function(){var t,e,r=0,n=this.ecBlocks;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),o=i.next();!o.done;o=i.next())r+=o.value.getCount()}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return r},t.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},t.prototype.getECBlocks=function(){return this.ecBlocks},t}();const qg=Gg;var Wg=function(){function t(t,e){this.count=t,this.dataCodewords=e}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}();const Yg=Wg;var Xg=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$g=function(){function t(t,e){for(var r,n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.versionNumber=t,this.alignmentPatternCenters=e,this.ecBlocks=i;var a=0,s=i[0].getECCodewordsPerBlock(),c=i[0].getECBlocks();try{for(var l=Xg(c),u=l.next();!u.done;u=l.next()){var d=u.value;a+=d.getCount()*(d.getDataCodewords()+s)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}this.totalCodewords=a}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},t.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.getValue()]},t.getProvisionalVersionForDimension=function(t){if(t%4!=1)throw new Uh;try{return this.getVersionForNumber((t-17)/4)}catch(t){throw new Uh}},t.getVersionForNumber=function(e){if(e<1||e>40)throw new _h;return t.VERSIONS[e-1]},t.decodeVersionInformation=function(e){for(var r=Number.MAX_SAFE_INTEGER,n=0,i=0;i<t.VERSION_DECODE_INFO.length;i++){var o=t.VERSION_DECODE_INFO[i];if(o===e)return t.getVersionForNumber(i+7);var a=Hg.numBitsDiffering(e,o);a<r&&(n=i+7,r=a)}return r<=3?t.getVersionForNumber(n):null},t.prototype.buildFunctionPattern=function(){var t=this.getDimensionForVersion(),e=new rp(t);e.setRegion(0,0,9,9),e.setRegion(t-8,0,8,9),e.setRegion(0,t-8,9,8);for(var r=this.alignmentPatternCenters.length,n=0;n<r;n++)for(var i=this.alignmentPatternCenters[n]-2,o=0;o<r;o++)0===n&&(0===o||o===r-1)||n===r-1&&0===o||e.setRegion(this.alignmentPatternCenters[o]-2,i,5,5);return e.setRegion(6,9,1,t-17),e.setRegion(9,6,t-17,1),this.versionNumber>6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e},t.prototype.toString=function(){return""+this.versionNumber},t.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),t.VERSIONS=[new t(1,new Int32Array(0),new qg(7,new Yg(1,19)),new qg(10,new Yg(1,16)),new qg(13,new Yg(1,13)),new qg(17,new Yg(1,9))),new t(2,Int32Array.from([6,18]),new qg(10,new Yg(1,34)),new qg(16,new Yg(1,28)),new qg(22,new Yg(1,22)),new qg(28,new Yg(1,16))),new t(3,Int32Array.from([6,22]),new qg(15,new Yg(1,55)),new qg(26,new Yg(1,44)),new qg(18,new Yg(2,17)),new qg(22,new Yg(2,13))),new t(4,Int32Array.from([6,26]),new qg(20,new Yg(1,80)),new qg(18,new Yg(2,32)),new qg(26,new Yg(2,24)),new qg(16,new Yg(4,9))),new t(5,Int32Array.from([6,30]),new qg(26,new Yg(1,108)),new qg(24,new Yg(2,43)),new qg(18,new Yg(2,15),new Yg(2,16)),new qg(22,new Yg(2,11),new Yg(2,12))),new t(6,Int32Array.from([6,34]),new qg(18,new Yg(2,68)),new qg(16,new Yg(4,27)),new qg(24,new Yg(4,19)),new qg(28,new Yg(4,15))),new t(7,Int32Array.from([6,22,38]),new qg(20,new Yg(2,78)),new qg(18,new Yg(4,31)),new qg(18,new Yg(2,14),new Yg(4,15)),new qg(26,new Yg(4,13),new Yg(1,14))),new t(8,Int32Array.from([6,24,42]),new qg(24,new Yg(2,97)),new qg(22,new Yg(2,38),new Yg(2,39)),new qg(22,new Yg(4,18),new Yg(2,19)),new qg(26,new Yg(4,14),new Yg(2,15))),new t(9,Int32Array.from([6,26,46]),new qg(30,new Yg(2,116)),new qg(22,new Yg(3,36),new Yg(2,37)),new qg(20,new Yg(4,16),new Yg(4,17)),new qg(24,new Yg(4,12),new Yg(4,13))),new t(10,Int32Array.from([6,28,50]),new qg(18,new Yg(2,68),new Yg(2,69)),new qg(26,new Yg(4,43),new Yg(1,44)),new qg(24,new Yg(6,19),new Yg(2,20)),new qg(28,new Yg(6,15),new Yg(2,16))),new t(11,Int32Array.from([6,30,54]),new qg(20,new Yg(4,81)),new qg(30,new Yg(1,50),new Yg(4,51)),new qg(28,new Yg(4,22),new Yg(4,23)),new qg(24,new Yg(3,12),new Yg(8,13))),new t(12,Int32Array.from([6,32,58]),new qg(24,new Yg(2,92),new Yg(2,93)),new qg(22,new Yg(6,36),new Yg(2,37)),new qg(26,new Yg(4,20),new Yg(6,21)),new qg(28,new Yg(7,14),new Yg(4,15))),new t(13,Int32Array.from([6,34,62]),new qg(26,new Yg(4,107)),new qg(22,new Yg(8,37),new Yg(1,38)),new qg(24,new Yg(8,20),new Yg(4,21)),new qg(22,new Yg(12,11),new Yg(4,12))),new t(14,Int32Array.from([6,26,46,66]),new qg(30,new Yg(3,115),new Yg(1,116)),new qg(24,new Yg(4,40),new Yg(5,41)),new qg(20,new Yg(11,16),new Yg(5,17)),new qg(24,new Yg(11,12),new Yg(5,13))),new t(15,Int32Array.from([6,26,48,70]),new qg(22,new Yg(5,87),new Yg(1,88)),new qg(24,new Yg(5,41),new Yg(5,42)),new qg(30,new Yg(5,24),new Yg(7,25)),new qg(24,new Yg(11,12),new Yg(7,13))),new t(16,Int32Array.from([6,26,50,74]),new qg(24,new Yg(5,98),new Yg(1,99)),new qg(28,new Yg(7,45),new Yg(3,46)),new qg(24,new Yg(15,19),new Yg(2,20)),new qg(30,new Yg(3,15),new Yg(13,16))),new t(17,Int32Array.from([6,30,54,78]),new qg(28,new Yg(1,107),new Yg(5,108)),new qg(28,new Yg(10,46),new Yg(1,47)),new qg(28,new Yg(1,22),new Yg(15,23)),new qg(28,new Yg(2,14),new Yg(17,15))),new t(18,Int32Array.from([6,30,56,82]),new qg(30,new Yg(5,120),new Yg(1,121)),new qg(26,new Yg(9,43),new Yg(4,44)),new qg(28,new Yg(17,22),new Yg(1,23)),new qg(28,new Yg(2,14),new Yg(19,15))),new t(19,Int32Array.from([6,30,58,86]),new qg(28,new Yg(3,113),new Yg(4,114)),new qg(26,new Yg(3,44),new Yg(11,45)),new qg(26,new Yg(17,21),new Yg(4,22)),new qg(26,new Yg(9,13),new Yg(16,14))),new t(20,Int32Array.from([6,34,62,90]),new qg(28,new Yg(3,107),new Yg(5,108)),new qg(26,new Yg(3,41),new Yg(13,42)),new qg(30,new Yg(15,24),new Yg(5,25)),new qg(28,new Yg(15,15),new Yg(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new qg(28,new Yg(4,116),new Yg(4,117)),new qg(26,new Yg(17,42)),new qg(28,new Yg(17,22),new Yg(6,23)),new qg(30,new Yg(19,16),new Yg(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new qg(28,new Yg(2,111),new Yg(7,112)),new qg(28,new Yg(17,46)),new qg(30,new Yg(7,24),new Yg(16,25)),new qg(24,new Yg(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new qg(30,new Yg(4,121),new Yg(5,122)),new qg(28,new Yg(4,47),new Yg(14,48)),new qg(30,new Yg(11,24),new Yg(14,25)),new qg(30,new Yg(16,15),new Yg(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new qg(30,new Yg(6,117),new Yg(4,118)),new qg(28,new Yg(6,45),new Yg(14,46)),new qg(30,new Yg(11,24),new Yg(16,25)),new qg(30,new Yg(30,16),new Yg(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new qg(26,new Yg(8,106),new Yg(4,107)),new qg(28,new Yg(8,47),new Yg(13,48)),new qg(30,new Yg(7,24),new Yg(22,25)),new qg(30,new Yg(22,15),new Yg(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new qg(28,new Yg(10,114),new Yg(2,115)),new qg(28,new Yg(19,46),new Yg(4,47)),new qg(28,new Yg(28,22),new Yg(6,23)),new qg(30,new Yg(33,16),new Yg(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new qg(30,new Yg(8,122),new Yg(4,123)),new qg(28,new Yg(22,45),new Yg(3,46)),new qg(30,new Yg(8,23),new Yg(26,24)),new qg(30,new Yg(12,15),new Yg(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new qg(30,new Yg(3,117),new Yg(10,118)),new qg(28,new Yg(3,45),new Yg(23,46)),new qg(30,new Yg(4,24),new Yg(31,25)),new qg(30,new Yg(11,15),new Yg(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new qg(30,new Yg(7,116),new Yg(7,117)),new qg(28,new Yg(21,45),new Yg(7,46)),new qg(30,new Yg(1,23),new Yg(37,24)),new qg(30,new Yg(19,15),new Yg(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new qg(30,new Yg(5,115),new Yg(10,116)),new qg(28,new Yg(19,47),new Yg(10,48)),new qg(30,new Yg(15,24),new Yg(25,25)),new qg(30,new Yg(23,15),new Yg(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new qg(30,new Yg(13,115),new Yg(3,116)),new qg(28,new Yg(2,46),new Yg(29,47)),new qg(30,new Yg(42,24),new Yg(1,25)),new qg(30,new Yg(23,15),new Yg(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new qg(30,new Yg(17,115)),new qg(28,new Yg(10,46),new Yg(23,47)),new qg(30,new Yg(10,24),new Yg(35,25)),new qg(30,new Yg(19,15),new Yg(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new qg(30,new Yg(17,115),new Yg(1,116)),new qg(28,new Yg(14,46),new Yg(21,47)),new qg(30,new Yg(29,24),new Yg(19,25)),new qg(30,new Yg(11,15),new Yg(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new qg(30,new Yg(13,115),new Yg(6,116)),new qg(28,new Yg(14,46),new Yg(23,47)),new qg(30,new Yg(44,24),new Yg(7,25)),new qg(30,new Yg(59,16),new Yg(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new qg(30,new Yg(12,121),new Yg(7,122)),new qg(28,new Yg(12,47),new Yg(26,48)),new qg(30,new Yg(39,24),new Yg(14,25)),new qg(30,new Yg(22,15),new Yg(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new qg(30,new Yg(6,121),new Yg(14,122)),new qg(28,new Yg(6,47),new Yg(34,48)),new qg(30,new Yg(46,24),new Yg(10,25)),new qg(30,new Yg(2,15),new Yg(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new qg(30,new Yg(17,122),new Yg(4,123)),new qg(28,new Yg(29,46),new Yg(14,47)),new qg(30,new Yg(49,24),new Yg(10,25)),new qg(30,new Yg(24,15),new Yg(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new qg(30,new Yg(4,122),new Yg(18,123)),new qg(28,new Yg(13,46),new Yg(32,47)),new qg(30,new Yg(48,24),new Yg(14,25)),new qg(30,new Yg(42,15),new Yg(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new qg(30,new Yg(20,117),new Yg(4,118)),new qg(28,new Yg(40,47),new Yg(7,48)),new qg(30,new Yg(43,24),new Yg(22,25)),new qg(30,new Yg(10,15),new Yg(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new qg(30,new Yg(19,118),new Yg(6,119)),new qg(28,new Yg(18,47),new Yg(31,48)),new qg(30,new Yg(34,24),new Yg(34,25)),new qg(30,new Yg(20,15),new Yg(61,16)))],t}();const Qg=$g;var Kg;!function(t){t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111"}(Kg||(Kg={}));var Zg=function(){function t(t,e){this.value=t,this.isMasked=e}return t.prototype.unmaskBitMatrix=function(t,e){for(var r=0;r<e;r++)for(var n=0;n<e;n++)this.isMasked(r,n)&&t.flip(n,r)},t.values=new Map([[Kg.DATA_MASK_000,new t(Kg.DATA_MASK_000,(function(t,e){return 0==(t+e&1)}))],[Kg.DATA_MASK_001,new t(Kg.DATA_MASK_001,(function(t,e){return 0==(1&t)}))],[Kg.DATA_MASK_010,new t(Kg.DATA_MASK_010,(function(t,e){return e%3==0}))],[Kg.DATA_MASK_011,new t(Kg.DATA_MASK_011,(function(t,e){return(t+e)%3==0}))],[Kg.DATA_MASK_100,new t(Kg.DATA_MASK_100,(function(t,e){return 0==(Math.floor(t/2)+Math.floor(e/3)&1)}))],[Kg.DATA_MASK_101,new t(Kg.DATA_MASK_101,(function(t,e){return t*e%6==0}))],[Kg.DATA_MASK_110,new t(Kg.DATA_MASK_110,(function(t,e){return t*e%6<3}))],[Kg.DATA_MASK_111,new t(Kg.DATA_MASK_111,(function(t,e){return 0==(t+e+t*e%3&1)}))]]),t}();const Jg=Zg;var tv=function(){function t(t){var e=t.getHeight();if(e<21||1!=(3&e))throw new Uh;this.bitMatrix=t}return t.prototype.readFormatInformation=function(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;for(var t=0,e=0;e<6;e++)t=this.copyBit(e,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(var r=5;r>=0;r--)t=this.copyBit(8,r,t);var n=this.bitMatrix.getHeight(),i=0,o=n-7;for(r=n-1;r>=o;r--)i=this.copyBit(8,r,i);for(e=n-8;e<n;e++)i=this.copyBit(e,8,i);if(this.parsedFormatInfo=Hg.decodeFormatInformation(t,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new Uh},t.prototype.readVersion=function(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;var t=this.bitMatrix.getHeight(),e=Math.floor((t-17)/4);if(e<=6)return Qg.getVersionForNumber(e);for(var r=0,n=t-11,i=5;i>=0;i--)for(var o=t-9;o>=n;o--)r=this.copyBit(o,i,r);var a=Qg.decodeVersionInformation(r);if(null!==a&&a.getDimensionForVersion()===t)return this.parsedVersion=a,a;for(r=0,o=5;o>=0;o--)for(i=t-9;i>=n;i--)r=this.copyBit(o,i,r);if(null!==(a=Qg.decodeVersionInformation(r))&&a.getDimensionForVersion()===t)return this.parsedVersion=a,a;throw new Uh},t.prototype.copyBit=function(t,e,r){return(this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e))?r<<1|1:r<<1},t.prototype.readCodewords=function(){var t=this.readFormatInformation(),e=this.readVersion(),r=Jg.values.get(t.getDataMask()),n=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,n);for(var i=e.buildFunctionPattern(),o=!0,a=new Uint8Array(e.getTotalCodewords()),s=0,c=0,l=0,u=n-1;u>0;u-=2){6===u&&u--;for(var d=0;d<n;d++)for(var h=o?n-1-d:d,p=0;p<2;p++)i.get(u-p,h)||(l++,c<<=1,this.bitMatrix.get(u-p,h)&&(c|=1),8===l&&(a[s++]=c,l=0,c=0));o=!o}if(s!==e.getTotalCodewords())throw new Uh;return a},t.prototype.remask=function(){if(null!==this.parsedFormatInfo){var t=Jg.values[this.parsedFormatInfo.getDataMask()],e=this.bitMatrix.getHeight();t.unmaskBitMatrix(this.bitMatrix,e)}},t.prototype.setMirror=function(t){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=t},t.prototype.mirror=function(){for(var t=this.bitMatrix,e=0,r=t.getWidth();e<r;e++)for(var n=e+1,i=t.getHeight();n<i;n++)t.get(e,n)!==t.get(n,e)&&(t.flip(n,e),t.flip(e,n))},t}();const ev=tv;var rv=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},nv=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,r,n){var i,o,a,s;if(e.length!==r.getTotalCodewords())throw new _h;var c=r.getECBlocksForLevel(n),l=0,u=c.getECBlocks();try{for(var d=rv(u),h=d.next();!h.done;h=d.next())l+=(v=h.value).getCount()}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}var p=new Array(l),f=0;try{for(var m=rv(u),g=m.next();!g.done;g=m.next())for(var v=g.value,y=0;y<v.getCount();y++){var b=v.getDataCodewords(),w=c.getECCodewordsPerBlock()+b;p[f++]=new t(b,new Uint8Array(w))}}catch(t){a={error:t}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}for(var _=p[0].codewords.length,E=p.length-1;E>=0&&p[E].codewords.length!==_;)E--;E++;var x=_-c.getECCodewordsPerBlock(),A=0;for(y=0;y<x;y++)for(var C=0;C<f;C++)p[C].codewords[y]=e[A++];for(C=E;C<f;C++)p[C].codewords[x]=e[A++];var S=p[0].codewords.length;for(y=x;y<S;y++)for(C=0;C<f;C++){var D=C<E?y:y+1;p[C].codewords[D]=e[A++]}return p},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}();const iv=nv;var ov;!function(t){t[t.TERMINATOR=0]="TERMINATOR",t[t.NUMERIC=1]="NUMERIC",t[t.ALPHANUMERIC=2]="ALPHANUMERIC",t[t.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",t[t.BYTE=4]="BYTE",t[t.ECI=5]="ECI",t[t.KANJI=6]="KANJI",t[t.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",t[t.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",t[t.HANZI=9]="HANZI"}(ov||(ov={}));var av=function(){function t(e,r,n,i){this.value=e,this.stringValue=r,this.characterCountBitsForVersions=n,this.bits=i,t.FOR_BITS.set(i,this),t.FOR_VALUE.set(e,this)}return t.forBits=function(e){var r=t.FOR_BITS.get(e);if(void 0===r)throw new _h;return r},t.prototype.getCharacterCountBits=function(t){var e,r=t.getVersionNumber();return e=r<=9?0:r<=26?1:2,this.characterCountBitsForVersions[e]},t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.value===r.value},t.prototype.toString=function(){return this.stringValue},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.TERMINATOR=new t(ov.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),t.NUMERIC=new t(ov.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),t.ALPHANUMERIC=new t(ov.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),t.STRUCTURED_APPEND=new t(ov.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),t.BYTE=new t(ov.BYTE,"BYTE",Int32Array.from([8,16,16]),4),t.ECI=new t(ov.ECI,"ECI",Int32Array.from([0,0,0]),7),t.KANJI=new t(ov.KANJI,"KANJI",Int32Array.from([8,10,12]),8),t.FNC1_FIRST_POSITION=new t(ov.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),t.FNC1_SECOND_POSITION=new t(ov.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),t.HANZI=new t(ov.HANZI,"HANZI",Int32Array.from([8,10,12]),13),t}();const sv=av;var cv=function(){function t(){}return t.decode=function(e,r,n,i){var o=new Og(e),a=new tp,s=new Array,c=-1,l=-1;try{var u=null,d=!1,h=void 0;do{if(o.available()<4)h=sv.TERMINATOR;else{var p=o.readBits(4);h=sv.forBits(p)}switch(h){case sv.TERMINATOR:break;case sv.FNC1_FIRST_POSITION:case sv.FNC1_SECOND_POSITION:d=!0;break;case sv.STRUCTURED_APPEND:if(o.available()<16)throw new Uh;c=o.readBits(8),l=o.readBits(8);break;case sv.ECI:var f=t.parseECIValue(o);if(null===(u=Wh.getCharacterSetECIByValue(f)))throw new Uh;break;case sv.HANZI:var m=o.readBits(4),g=o.readBits(h.getCharacterCountBits(r));m===t.GB2312_SUBSET&&t.decodeHanziSegment(o,a,g);break;default:var v=o.readBits(h.getCharacterCountBits(r));switch(h){case sv.NUMERIC:t.decodeNumericSegment(o,a,v);break;case sv.ALPHANUMERIC:t.decodeAlphanumericSegment(o,a,v,d);break;case sv.BYTE:t.decodeByteSegment(o,a,v,u,s,i);break;case sv.KANJI:t.decodeKanjiSegment(o,a,v);break;default:throw new Uh}}}while(h!==sv.TERMINATOR)}catch(t){throw new Uh}return new Op(e,a.toString(),0===s.length?null:s,null===n?null:n.toString(),c,l)},t.decodeHanziSegment=function(t,e,r){if(13*r>t.available())throw new Uh;for(var n=new Uint8Array(2*r),i=0;r>0;){var o=t.readBits(13),a=o/96<<8&4294967295|o%96;a+=a<959?41377:42657,n[i]=a>>8&255,n[i+1]=255&a,i+=2,r--}try{e.append(Qh.decode(n,Zh.GB2312))}catch(t){throw new Uh(t)}},t.decodeKanjiSegment=function(t,e,r){if(13*r>t.available())throw new Uh;for(var n=new Uint8Array(2*r),i=0;r>0;){var o=t.readBits(13),a=o/192<<8&4294967295|o%192;a+=a<7936?33088:49472,n[i]=a>>8,n[i+1]=a,i+=2,r--}try{e.append(Qh.decode(n,Zh.SHIFT_JIS))}catch(t){throw new Uh(t)}},t.decodeByteSegment=function(t,e,r,n,i,o){if(8*r>t.available())throw new Uh;for(var a,s=new Uint8Array(r),c=0;c<r;c++)s[c]=t.readBits(8);a=null===n?Zh.guessEncoding(s,o):n.getName();try{e.append(Qh.decode(s,a))}catch(t){throw new Uh(t)}i.push(s)},t.toAlphaNumericChar=function(e){if(e>=t.ALPHANUMERIC_CHARS.length)throw new Uh;return t.ALPHANUMERIC_CHARS[e]},t.decodeAlphanumericSegment=function(e,r,n,i){for(var o=r.length();n>1;){if(e.available()<11)throw new Uh;var a=e.readBits(11);r.append(t.toAlphaNumericChar(Math.floor(a/45))),r.append(t.toAlphaNumericChar(a%45)),n-=2}if(1===n){if(e.available()<6)throw new Uh;r.append(t.toAlphaNumericChar(e.readBits(6)))}if(i)for(var s=o;s<r.length();s++)"%"===r.charAt(s)&&(s<r.length()-1&&"%"===r.charAt(s+1)?r.deleteCharAt(s+1):r.setCharAt(s,String.fromCharCode(29)))},t.decodeNumericSegment=function(e,r,n){for(;n>=3;){if(e.available()<10)throw new Uh;var i=e.readBits(10);if(i>=1e3)throw new Uh;r.append(t.toAlphaNumericChar(Math.floor(i/100))),r.append(t.toAlphaNumericChar(Math.floor(i/10)%10)),r.append(t.toAlphaNumericChar(i%10)),n-=3}if(2===n){if(e.available()<7)throw new Uh;var o=e.readBits(7);if(o>=100)throw new Uh;r.append(t.toAlphaNumericChar(Math.floor(o/10))),r.append(t.toAlphaNumericChar(o%10))}else if(1===n){if(e.available()<4)throw new Uh;var a=e.readBits(4);if(a>=10)throw new Uh;r.append(t.toAlphaNumericChar(a))}},t.parseECIValue=function(t){var e=t.readBits(8);if(0==(128&e))return 127&e;if(128==(192&e))return(63&e)<<8&4294967295|t.readBits(8);if(192==(224&e))return(31&e)<<16&4294967295|t.readBits(16);throw new Uh},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}();const lv=cv,uv=function(){function t(t){this.mirrored=t}return t.prototype.isMirrored=function(){return this.mirrored},t.prototype.applyMirroredCorrection=function(t){if(this.mirrored&&null!==t&&!(t.length<3)){var e=t[0];t[0]=t[2],t[2]=e}},t}();var dv=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},hv=function(){function t(){this.rsDecoder=new Hp(Bp.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(t,e){return this.decodeBitMatrix(rp.parseFromBooleanArray(t),e)},t.prototype.decodeBitMatrix=function(t,e){var r=new ev(t),n=null;try{return this.decodeBitMatrixParser(r,e)}catch(t){n=t}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();var i=this.decodeBitMatrixParser(r,e);return i.setOther(new uv(!0)),i}catch(t){if(null!==n)throw n;throw t}},t.prototype.decodeBitMatrixParser=function(t,e){var r,n,i,o,a=t.readVersion(),s=t.readFormatInformation().getErrorCorrectionLevel(),c=t.readCodewords(),l=iv.getDataBlocks(c,a,s),u=0;try{for(var d=dv(l),h=d.next();!h.done;h=d.next())u+=(v=h.value).getNumDataCodewords()}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}var p=new Uint8Array(u),f=0;try{for(var m=dv(l),g=m.next();!g.done;g=m.next()){var v,y=(v=g.value).getCodewords(),b=v.getNumDataCodewords();this.correctErrors(y,b);for(var w=0;w<b;w++)p[f++]=y[w]}}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}return lv.decode(p,a,s,e)},t.prototype.correctErrors=function(t,e){var r=new Int32Array(t);try{this.rsDecoder.decode(r,t.length-e)}catch(t){throw new Ch}for(var n=0;n<e;n++)t[n]=r[n]},t}();const pv=hv;var fv=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),mv=function(t){function e(e,r,n){var i=t.call(this,e,r)||this;return i.estimatedModuleSize=n,i}return fv(e,t),e.prototype.aboutEquals=function(t,e,r){if(Math.abs(e-this.getY())<=t&&Math.abs(r-this.getX())<=t){var n=Math.abs(t-this.estimatedModuleSize);return n<=1||n<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,r,n){return new e((this.getX()+r)/2,(this.getY()+t)/2,(this.estimatedModuleSize+n)/2)},e}(Zp);const gv=mv;var vv=function(){function t(t,e,r,n,i,o,a){this.image=t,this.startX=e,this.startY=r,this.width=n,this.height=i,this.moduleSize=o,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return t.prototype.find=function(){for(var t=this.startX,e=this.height,r=t+this.width,n=this.startY+e/2,i=new Int32Array(3),o=this.image,a=0;a<e;a++){var s=n+(0==(1&a)?Math.floor((a+1)/2):-Math.floor((a+1)/2));i[0]=0,i[1]=0,i[2]=0;for(var c=t;c<r&&!o.get(c,s);)c++;for(var l=0;c<r;){if(o.get(c,s))if(1===l)i[1]++;else if(2===l){var u;if(this.foundPatternCross(i)&&null!==(u=this.handlePossibleCenter(i,s,c)))return u;i[0]=i[2],i[1]=1,i[2]=0,l=1}else i[++l]++;else 1===l&&l++,i[l]++;c++}if(this.foundPatternCross(i)&&null!==(u=this.handlePossibleCenter(i,s,r)))return u}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new ip},t.centerFromEnd=function(t,e){return e-t[2]-t[1]/2},t.prototype.foundPatternCross=function(t){for(var e=this.moduleSize,r=e/2,n=0;n<3;n++)if(Math.abs(e-t[n])>=r)return!1;return!0},t.prototype.crossCheckVertical=function(e,r,n,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;for(var c=e;c>=0&&o.get(r,c)&&s[1]<=n;)s[1]++,c--;if(c<0||s[1]>n)return NaN;for(;c>=0&&!o.get(r,c)&&s[0]<=n;)s[0]++,c--;if(s[0]>n)return NaN;for(c=e+1;c<a&&o.get(r,c)&&s[1]<=n;)s[1]++,c++;if(c===a||s[1]>n)return NaN;for(;c<a&&!o.get(r,c)&&s[2]<=n;)s[2]++,c++;if(s[2]>n)return NaN;var l=s[0]+s[1]+s[2];return 5*Math.abs(l-i)>=2*i?NaN:this.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.handlePossibleCenter=function(e,r,n){var i,o,a=e[0]+e[1]+e[2],s=t.centerFromEnd(e,n),c=this.crossCheckVertical(r,s,2*e[1],a);if(!isNaN(c)){var l=(e[0]+e[1]+e[2])/3;try{for(var u=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.possibleCenters),d=u.next();!d.done;d=u.next()){var h=d.value;if(h.aboutEquals(l,c,s))return h.combineEstimate(c,s,l)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}var p=new gv(s,c,l);this.possibleCenters.push(p),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(p)}return null},t}();const yv=vv;var bv=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),wv=function(t){function e(e,r,n,i){var o=t.call(this,e,r)||this;return o.estimatedModuleSize=n,o.count=i,void 0===i&&(o.count=1),o}return bv(e,t),e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(t,e,r){if(Math.abs(e-this.getY())<=t&&Math.abs(r-this.getX())<=t){var n=Math.abs(t-this.estimatedModuleSize);return n<=1||n<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,r,n){var i=this.count+1;return new e((this.count*this.getX()+r)/i,(this.count*this.getY()+t)/i,(this.count*this.estimatedModuleSize+n)/i,i)},e}(Zp);const _v=wv,Ev=function(){function t(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t}();var xv=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Av=function(){function t(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}return t.prototype.getImage=function(){return this.image},t.prototype.getPossibleCenters=function(){return this.possibleCenters},t.prototype.find=function(e){var r=null!=e&&void 0!==e.get(Vh.TRY_HARDER),n=null!=e&&void 0!==e.get(Vh.PURE_BARCODE),i=this.image,o=i.getHeight(),a=i.getWidth(),s=Math.floor(3*o/(4*t.MAX_MODULES));(s<t.MIN_SKIP||r)&&(s=t.MIN_SKIP);for(var c=!1,l=new Int32Array(5),u=s-1;u<o&&!c;u+=s){l[0]=0,l[1]=0,l[2]=0,l[3]=0,l[4]=0;for(var d=0,h=0;h<a;h++)if(i.get(h,u))1==(1&d)&&d++,l[d]++;else if(0==(1&d))if(4===d)if(t.foundPatternCross(l)){if(!0!==this.handlePossibleCenter(l,u,h,n)){l[0]=l[2],l[1]=l[3],l[2]=l[4],l[3]=1,l[4]=0,d=3;continue}if(s=2,!0===this.hasSkipped)c=this.haveMultiplyConfirmedCenters();else{var p=this.findRowSkip();p>l[2]&&(u+=p-l[2]-s,h=a-1)}d=0,l[0]=0,l[1]=0,l[2]=0,l[3]=0,l[4]=0}else l[0]=l[2],l[1]=l[3],l[2]=l[4],l[3]=1,l[4]=0,d=3;else l[++d]++;else l[d]++;t.foundPatternCross(l)&&!0===this.handlePossibleCenter(l,u,a,n)&&(s=l[0],this.hasSkipped&&(c=this.haveMultiplyConfirmedCenters()))}var f=this.selectBestPatterns();return Zp.orderBestPatterns(f),new Ev(f)},t.centerFromEnd=function(t,e){return e-t[4]-t[3]-t[2]/2},t.foundPatternCross=function(t){for(var e=0,r=0;r<5;r++){var n=t[r];if(0===n)return!1;e+=n}if(e<7)return!1;var i=e/7,o=i/2;return Math.abs(i-t[0])<o&&Math.abs(i-t[1])<o&&Math.abs(3*i-t[2])<3*o&&Math.abs(i-t[3])<o&&Math.abs(i-t[4])<o},t.prototype.getCrossCheckStateCount=function(){var t=this.crossCheckStateCount;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t},t.prototype.crossCheckDiagonal=function(e,r,n,i){for(var o=this.getCrossCheckStateCount(),a=0,s=this.image;e>=a&&r>=a&&s.get(r-a,e-a);)o[2]++,a++;if(e<a||r<a)return!1;for(;e>=a&&r>=a&&!s.get(r-a,e-a)&&o[1]<=n;)o[1]++,a++;if(e<a||r<a||o[1]>n)return!1;for(;e>=a&&r>=a&&s.get(r-a,e-a)&&o[0]<=n;)o[0]++,a++;if(o[0]>n)return!1;var c=s.getHeight(),l=s.getWidth();for(a=1;e+a<c&&r+a<l&&s.get(r+a,e+a);)o[2]++,a++;if(e+a>=c||r+a>=l)return!1;for(;e+a<c&&r+a<l&&!s.get(r+a,e+a)&&o[3]<n;)o[3]++,a++;if(e+a>=c||r+a>=l||o[3]>=n)return!1;for(;e+a<c&&r+a<l&&s.get(r+a,e+a)&&o[4]<n;)o[4]++,a++;if(o[4]>=n)return!1;var u=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(u-i)<2*i&&t.foundPatternCross(o)},t.prototype.crossCheckVertical=function(e,r,n,i){for(var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),c=e;c>=0&&o.get(r,c);)s[2]++,c--;if(c<0)return NaN;for(;c>=0&&!o.get(r,c)&&s[1]<=n;)s[1]++,c--;if(c<0||s[1]>n)return NaN;for(;c>=0&&o.get(r,c)&&s[0]<=n;)s[0]++,c--;if(s[0]>n)return NaN;for(c=e+1;c<a&&o.get(r,c);)s[2]++,c++;if(c===a)return NaN;for(;c<a&&!o.get(r,c)&&s[3]<n;)s[3]++,c++;if(c===a||s[3]>=n)return NaN;for(;c<a&&o.get(r,c)&&s[4]<n;)s[4]++,c++;if(s[4]>=n)return NaN;var l=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(l-i)>=2*i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.crossCheckHorizontal=function(e,r,n,i){for(var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),c=e;c>=0&&o.get(c,r);)s[2]++,c--;if(c<0)return NaN;for(;c>=0&&!o.get(c,r)&&s[1]<=n;)s[1]++,c--;if(c<0||s[1]>n)return NaN;for(;c>=0&&o.get(c,r)&&s[0]<=n;)s[0]++,c--;if(s[0]>n)return NaN;for(c=e+1;c<a&&o.get(c,r);)s[2]++,c++;if(c===a)return NaN;for(;c<a&&!o.get(c,r)&&s[3]<n;)s[3]++,c++;if(c===a||s[3]>=n)return NaN;for(;c<a&&o.get(c,r)&&s[4]<n;)s[4]++,c++;if(s[4]>=n)return NaN;var l=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(l-i)>=i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,c):NaN},t.prototype.handlePossibleCenter=function(e,r,n,i){var o=e[0]+e[1]+e[2]+e[3]+e[4],a=t.centerFromEnd(e,n),s=this.crossCheckVertical(r,Math.floor(a),e[2],o);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),e[2],o),!isNaN(a)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),e[2],o)))){for(var c=o/7,l=!1,u=this.possibleCenters,d=0,h=u.length;d<h;d++){var p=u[d];if(p.aboutEquals(c,s,a)){u[d]=p.combineEstimate(s,a,c),l=!0;break}}if(!l){var f=new _v(a,s,c);u.push(f),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(f)}return!0}return!1},t.prototype.findRowSkip=function(){var e,r;if(this.possibleCenters.length<=1)return 0;var n=null;try{for(var i=xv(this.possibleCenters),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.getCount()>=t.CENTER_QUORUM){if(null!=n)return this.hasSkipped=!0,Math.floor((Math.abs(n.getX()-a.getX())-Math.abs(n.getY()-a.getY()))/2);n=a}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return 0},t.prototype.haveMultiplyConfirmedCenters=function(){var e,r,n,i,o=0,a=0,s=this.possibleCenters.length;try{for(var c=xv(this.possibleCenters),l=c.next();!l.done;l=c.next())(f=l.value).getCount()>=t.CENTER_QUORUM&&(o++,a+=f.getEstimatedModuleSize())}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}if(o<3)return!1;var u=a/s,d=0;try{for(var h=xv(this.possibleCenters),p=h.next();!p.done;p=h.next()){var f=p.value;d+=Math.abs(f.getEstimatedModuleSize()-u)}}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}return d<=.05*a},t.prototype.selectBestPatterns=function(){var t,e,r,n,i=this.possibleCenters.length;if(i<3)throw new ip;var o,a=this.possibleCenters;if(i>3){var s=0,c=0;try{for(var l=xv(this.possibleCenters),u=l.next();!u.done;u=l.next()){var d=u.value.getEstimatedModuleSize();s+=d,c+=d*d}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}o=s/i;var h=Math.sqrt(c/i-o*o);a.sort((function(t,e){var r=Math.abs(e.getEstimatedModuleSize()-o),n=Math.abs(t.getEstimatedModuleSize()-o);return r<n?-1:r>n?1:0}));for(var p=Math.max(.2*o,h),f=0;f<a.length&&a.length>3;f++){var m=a[f];Math.abs(m.getEstimatedModuleSize()-o)>p&&(a.splice(f,1),f--)}}if(a.length>3){s=0;try{for(var g=xv(a),v=g.next();!v.done;v=g.next())s+=v.value.getEstimatedModuleSize()}catch(t){r={error:t}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(r)throw r.error}}o=s/a.length,a.sort((function(t,e){if(e.getCount()===t.getCount()){var r=Math.abs(e.getEstimatedModuleSize()-o),n=Math.abs(t.getEstimatedModuleSize()-o);return r<n?1:r>n?-1:0}return e.getCount()-t.getCount()})),a.splice(3)}return[a[0],a[1],a[2]]},t.CENTER_QUORUM=2,t.MIN_SKIP=3,t.MAX_MODULES=57,t}();const Cv=Av;var Sv=function(){function t(t){this.image=t}return t.prototype.getImage=function(){return this.image},t.prototype.getResultPointCallback=function(){return this.resultPointCallback},t.prototype.detect=function(t){this.resultPointCallback=null==t?null:t.get(Vh.NEED_RESULT_POINT_CALLBACK);var e=new Cv(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(e)},t.prototype.processFinderPatternInfo=function(e){var r=e.getTopLeft(),n=e.getTopRight(),i=e.getBottomLeft(),o=this.calculateModuleSize(r,n,i);if(o<1)throw new ip("No pattern found in proccess finder.");var a=t.computeDimension(r,n,i,o),s=Qg.getProvisionalVersionForDimension(a),c=s.getDimensionForVersion()-7,l=null;if(s.getAlignmentPatternCenters().length>0)for(var u=n.getX()-r.getX()+i.getX(),d=n.getY()-r.getY()+i.getY(),h=1-3/c,p=Math.floor(r.getX()+h*(u-r.getX())),f=Math.floor(r.getY()+h*(d-r.getY())),m=4;m<=16;m<<=1)try{l=this.findAlignmentInRegion(o,p,f,m);break}catch(t){if(!(t instanceof ip))throw t}var g=t.createTransform(r,n,i,l,a),v=t.sampleGrid(this.image,g,a);return new Jp(v,null===l?[i,r,n]:[i,r,n,l])},t.createTransform=function(t,e,r,n,i){var o,a,s,c,l=i-3.5;return null!==n?(o=n.getX(),a=n.getY(),c=s=l-3):(o=e.getX()-t.getX()+r.getX(),a=e.getY()-t.getY()+r.getY(),s=l,c=l),cf.quadrilateralToQuadrilateral(3.5,3.5,l,3.5,s,c,3.5,l,t.getX(),t.getY(),e.getX(),e.getY(),o,a,r.getX(),r.getY())},t.sampleGrid=function(t,e,r){return hf.getInstance().sampleGridWithTransform(t,r,r,e)},t.computeDimension=function(t,e,r,n){var i=Xp.round(Zp.distance(t,e)/n),o=Xp.round(Zp.distance(t,r)/n),a=Math.floor((i+o)/2)+7;switch(3&a){case 0:a++;break;case 2:a--;break;case 3:throw new ip("Dimensions could be not found.")}return a},t.prototype.calculateModuleSize=function(t,e,r){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,r))/2},t.prototype.calculateModuleSizeOneWay=function(t,e){var r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(r)?n/7:isNaN(n)?r/7:(r+n)/14},t.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,e,r,n){var i=this.sizeOfBlackWhiteBlackRun(t,e,r,n),o=1,a=t-(r-t);a<0?(o=t/(t-a),a=0):a>=this.image.getWidth()&&(o=(this.image.getWidth()-1-t)/(a-t),a=this.image.getWidth()-1);var s=Math.floor(e-(n-e)*o);return o=1,s<0?(o=e/(e-s),s=0):s>=this.image.getHeight()&&(o=(this.image.getHeight()-1-e)/(s-e),s=this.image.getHeight()-1),a=Math.floor(t+(a-t)*o),(i+=this.sizeOfBlackWhiteBlackRun(t,e,a,s))-1},t.prototype.sizeOfBlackWhiteBlackRun=function(t,e,r,n){var i=Math.abs(n-e)>Math.abs(r-t);if(i){var o=t;t=e,e=o,o=r,r=n,n=o}for(var a=Math.abs(r-t),s=Math.abs(n-e),c=-a/2,l=t<r?1:-1,u=e<n?1:-1,d=0,h=r+l,p=t,f=e;p!==h;p+=l){var m=i?f:p,g=i?p:f;if(1===d===this.image.get(m,g)){if(2===d)return Xp.distance(p,f,t,e);d++}if((c+=s)>0){if(f===n)break;f+=u,c-=a}}return 2===d?Xp.distance(r+l,n,t,e):NaN},t.prototype.findAlignmentInRegion=function(t,e,r,n){var i=Math.floor(n*t),o=Math.max(0,e-i),a=Math.min(this.image.getWidth()-1,e+i);if(a-o<3*t)throw new ip("Alignment top exceeds estimated module size.");var s=Math.max(0,r-i),c=Math.min(this.image.getHeight()-1,r+i);if(c-s<3*t)throw new ip("Alignment bottom exceeds estimated module size.");return new yv(this.image,o,s,a-o,c-s,t,this.resultPointCallback).find()},t}();const Dv=Sv;var Ov=function(){function t(){this.decoder=new pv}return t.prototype.getDecoder=function(){return this.decoder},t.prototype.decode=function(e,r){var n,i;if(null!=r&&void 0!==r.get(Vh.PURE_BARCODE)){var o=t.extractPureBits(e.getBlackMatrix());n=this.decoder.decodeBitMatrix(o,r),i=t.NO_POINTS}else{var a=new Dv(e.getBlackMatrix()).detect(r);n=this.decoder.decodeBitMatrix(a.getBits(),r),i=a.getPoints()}n.getOther()instanceof uv&&n.getOther().applyMirroredCorrection(i);var s=new xp(n.getText(),n.getRawBytes(),void 0,i,Cp.QR_CODE,void 0),c=n.getByteSegments();null!==c&&s.putMetadata(Dp.BYTE_SEGMENTS,c);var l=n.getECLevel();return null!==l&&s.putMetadata(Dp.ERROR_CORRECTION_LEVEL,l),n.hasStructuredAppend()&&(s.putMetadata(Dp.STRUCTURED_APPEND_SEQUENCE,n.getStructuredAppendSequenceNumber()),s.putMetadata(Dp.STRUCTURED_APPEND_PARITY,n.getStructuredAppendParity())),s},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null===e||null===r)throw new ip;var n=this.moduleSize(e,t),i=e[1],o=r[1],a=e[0],s=r[0];if(a>=s||i>=o)throw new ip;if(o-i!=s-a&&(s=a+(o-i))>=t.getWidth())throw new ip;var c=Math.round((s-a+1)/n),l=Math.round((o-i+1)/n);if(c<=0||l<=0)throw new ip;if(l!==c)throw new ip;var u=Math.floor(n/2);i+=u;var d=(a+=u)+Math.floor((c-1)*n)-s;if(d>0){if(d>u)throw new ip;a-=d}var h=i+Math.floor((l-1)*n)-o;if(h>0){if(h>u)throw new ip;i-=h}for(var p=new rp(c,l),f=0;f<l;f++)for(var m=i+Math.floor(f*n),g=0;g<c;g++)t.get(a+Math.floor(g*n),m)&&p.set(g,f);return p},t.moduleSize=function(t,e){for(var r=e.getHeight(),n=e.getWidth(),i=t[0],o=t[1],a=!0,s=0;i<n&&o<r;){if(a!==e.get(i,o)){if(5==++s)break;a=!a}i++,o++}if(i===n||o===r)throw new ip;return(i-t[0])/7},t.NO_POINTS=new Array,t}();const Pv=Ov;var Iv=function(){function t(){}return t.prototype.PDF417Common=function(){},t.getBitCountSum=function(t){return Xp.sum(t)},t.toIntArray=function(e){var r,n;if(null==e||!e.length)return t.EMPTY_INT_ARRAY;var i=new Int32Array(e.length),o=0;try{for(var a=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),s=a.next();!s.done;s=a.next()){var c=s.value;i[o++]=c}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},t.getCodeword=function(e){var r=Fh.binarySearch(t.SYMBOL_TABLE,262143&e);return r<0?-1:(t.CODEWORD_TABLE[r]-1)%t.NUMBER_OF_CODEWORDS},t.NUMBER_OF_CODEWORDS=929,t.MAX_CODEWORDS_IN_BARCODE=t.NUMBER_OF_CODEWORDS-1,t.MIN_ROWS_IN_BARCODE=3,t.MAX_ROWS_IN_BARCODE=90,t.MODULES_IN_CODEWORD=17,t.MODULES_IN_STOP_PATTERN=18,t.BARS_IN_MODULE=8,t.EMPTY_INT_ARRAY=new Int32Array([]),t.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),t.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),t}();const kv=Iv,Tv=function(){function t(t,e){this.bits=t,this.points=e}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}();var Rv=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Fv=function(){function t(){}return t.detectMultiple=function(e,r,n){var i=e.getBlackMatrix(),o=t.detect(n,i);return o.length||((i=i.clone()).rotate180(),o=t.detect(n,i)),new Tv(i,o)},t.detect=function(e,r){for(var n,i,o=new Array,a=0,s=0,c=!1;a<r.getHeight();){var l=t.findVertices(r,a,s);if(null!=l[0]||null!=l[3]){if(c=!0,o.push(l),!e)break;null!=l[2]?(s=Math.trunc(l[2].getX()),a=Math.trunc(l[2].getY())):(s=Math.trunc(l[4].getX()),a=Math.trunc(l[4].getY()))}else{if(!c)break;c=!1,s=0;try{for(var u=(n=void 0,Rv(o)),d=u.next();!d.done;d=u.next()){var h=d.value;null!=h[1]&&(a=Math.trunc(Math.max(a,h[1].getY()))),null!=h[3]&&(a=Math.max(a,Math.trunc(h[3].getY())))}}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}a+=t.ROW_STEP}}return o},t.findVertices=function(e,r,n){var i=e.getHeight(),o=e.getWidth(),a=new Array(8);return t.copyToResult(a,t.findRowsWithPattern(e,i,o,r,n,t.START_PATTERN),t.INDEXES_START_PATTERN),null!=a[4]&&(n=Math.trunc(a[4].getX()),r=Math.trunc(a[4].getY())),t.copyToResult(a,t.findRowsWithPattern(e,i,o,r,n,t.STOP_PATTERN),t.INDEXES_STOP_PATTERN),a},t.copyToResult=function(t,e,r){for(var n=0;n<r.length;n++)t[r[n]]=e[n]},t.findRowsWithPattern=function(e,r,n,i,o,a){for(var s=new Array(4),c=!1,l=new Int32Array(a.length);i<r;i+=t.ROW_STEP)if(null!=(p=t.findGuardPattern(e,o,i,n,!1,a,l))){for(;i>0;){if(null==(h=t.findGuardPattern(e,o,--i,n,!1,a,l))){i++;break}p=h}s[0]=new Zp(p[0],i),s[1]=new Zp(p[1],i),c=!0;break}var u=i+1;if(c){for(var d=0,h=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);u<r;u++){var p;if(null!=(p=t.findGuardPattern(e,h[0],u,n,!1,a,l))&&Math.abs(h[0]-p[0])<t.MAX_PATTERN_DRIFT&&Math.abs(h[1]-p[1])<t.MAX_PATTERN_DRIFT)h=p,d=0;else{if(d>t.SKIPPED_ROW_COUNT_MAX)break;d++}}u-=d+1,s[2]=new Zp(h[0],u),s[3]=new Zp(h[1],u)}return u-i<t.BARCODE_MIN_HEIGHT&&Fh.fill(s,null),s},t.findGuardPattern=function(e,r,n,i,o,a,s){Fh.fillWithin(s,0,s.length,0);for(var c=r,l=0;e.get(c,n)&&c>0&&l++<t.MAX_PIXEL_DRIFT;)c--;for(var u=c,d=0,h=a.length,p=o;u<i;u++)if(e.get(u,n)!==p)s[d]++;else{if(d===h-1){if(t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return new Int32Array([c,u]);c+=s[0]+s[1],Oh.arraycopy(s,2,s,0,d-1),s[d-1]=0,s[d]=0,d--}else d++;s[d]=1,p=!p}return d===h-1&&t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE?new Int32Array([c,u-1]):null},t.patternMatchVariance=function(t,e,r){for(var n=t.length,i=0,o=0,a=0;a<n;a++)i+=t[a],o+=e[a];if(i<o)return 1/0;var s=i/o;r*=s;for(var c=0,l=0;l<n;l++){var u=t[l],d=e[l]*s,h=u>d?u-d:d-u;if(h>r)return 1/0;c+=h}return c/i},t.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),t.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),t.MAX_AVG_VARIANCE=.42,t.MAX_INDIVIDUAL_VARIANCE=.8,t.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),t.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),t.MAX_PIXEL_DRIFT=3,t.MAX_PATTERN_DRIFT=5,t.SKIPPED_ROW_COUNT_MAX=25,t.ROW_STEP=5,t.BARCODE_MIN_HEIGHT=10,t}();const Nv=Fv;var Mv=function(){function t(t,e){if(0===e.length)throw new _h;this.field=t;var r=e.length;if(r>1&&0===e[0]){for(var n=1;n<r&&0===e[n];)n++;n===r?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(r-n),Oh.arraycopy(e,n,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return 0===this.coefficients[0]},t.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},t.prototype.evaluateAt=function(t){var e,r;if(0===t)return this.getCoefficient(0);if(1===t){var n=0;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.coefficients),o=i.next();!o.done;o=i.next()){var a=o.value;n=this.field.add(n,a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}for(var s=this.coefficients[0],c=this.coefficients.length,l=1;l<c;l++)s=this.field.add(this.field.multiply(t,s),this.coefficients[l]);return s},t.prototype.add=function(e){if(!this.field.equals(e.field))throw new _h("ModulusPolys do not have same ModulusGF field");if(this.isZero())return e;if(e.isZero())return this;var r=this.coefficients,n=e.coefficients;if(r.length>n.length){var i=r;r=n,n=i}var o=new Int32Array(n.length),a=n.length-r.length;Oh.arraycopy(n,0,o,0,a);for(var s=a;s<n.length;s++)o[s]=this.field.add(r[s-a],n[s]);return new t(this.field,o)},t.prototype.subtract=function(t){if(!this.field.equals(t.field))throw new _h("ModulusPolys do not have same ModulusGF field");return t.isZero()?this:this.add(t.negative())},t.prototype.multiply=function(e){return e instanceof t?this.multiplyOther(e):this.multiplyScalar(e)},t.prototype.multiplyOther=function(e){if(!this.field.equals(e.field))throw new _h("ModulusPolys do not have same ModulusGF field");if(this.isZero()||e.isZero())return new t(this.field,new Int32Array([0]));for(var r=this.coefficients,n=r.length,i=e.coefficients,o=i.length,a=new Int32Array(n+o-1),s=0;s<n;s++)for(var c=r[s],l=0;l<o;l++)a[s+l]=this.field.add(a[s+l],this.field.multiply(c,i[l]));return new t(this.field,a)},t.prototype.negative=function(){for(var e=this.coefficients.length,r=new Int32Array(e),n=0;n<e;n++)r[n]=this.field.subtract(0,this.coefficients[n]);return new t(this.field,r)},t.prototype.multiplyScalar=function(e){if(0===e)return new t(this.field,new Int32Array([0]));if(1===e)return this;for(var r=this.coefficients.length,n=new Int32Array(r),i=0;i<r;i++)n[i]=this.field.multiply(this.coefficients[i],e);return new t(this.field,n)},t.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new _h;if(0===r)return new t(this.field,new Int32Array([0]));for(var n=this.coefficients.length,i=new Int32Array(n+e),o=0;o<n;o++)i[o]=this.field.multiply(this.coefficients[o],r);return new t(this.field,i)},t.prototype.toString=function(){for(var t=new tp,e=this.getDegree();e>=0;e--){var r=this.getCoefficient(e);0!==r&&(r<0?(t.append(" - "),r=-r):t.length()>0&&t.append(" + "),0!==e&&1===r||t.append(r),0!==e&&(1===e?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()},t}();const Bv=Mv;var Lv=function(){function t(){}return t.prototype.add=function(t,e){return(t+e)%this.modulus},t.prototype.subtract=function(t,e){return(this.modulus+t-e)%this.modulus},t.prototype.exp=function(t){return this.expTable[t]},t.prototype.log=function(t){if(0===t)throw new _h;return this.logTable[t]},t.prototype.inverse=function(t){if(0===t)throw new Fp;return this.expTable[this.modulus-this.logTable[t]-1]},t.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]},t.prototype.getSize=function(){return this.modulus},t.prototype.equals=function(t){return t===this},t}();const jv=Lv;var Vv=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),zv=function(t){function e(e,r){var n=t.call(this)||this;n.modulus=e,n.expTable=new Int32Array(e),n.logTable=new Int32Array(e);for(var i=1,o=0;o<e;o++)n.expTable[o]=i,i=i*r%e;for(o=0;o<e-1;o++)n.logTable[n.expTable[o]]=o;return n.zero=new Bv(n,new Int32Array([0])),n.one=new Bv(n,new Int32Array([1])),n}return Vv(e,t),e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(t,e){if(t<0)throw new _h;if(0===e)return this.zero;var r=new Int32Array(t+1);return r[0]=e,new Bv(this,r)},e.PDF417_GF=new e(kv.NUMBER_OF_CODEWORDS,3),e}(jv);const Uv=zv;var Hv=function(){function t(){this.field=Uv.PDF417_GF}return t.prototype.decode=function(t,e,r){for(var n,i,o=new Bv(this.field,t),a=new Int32Array(e),s=!1,c=e;c>0;c--){var l=o.evaluateAt(this.field.exp(c));a[e-c]=l,0!==l&&(s=!0)}if(!s)return 0;var u=this.field.getOne();if(null!=r)try{for(var d=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),h=d.next();!h.done;h=d.next()){var p=h.value,f=this.field.exp(t.length-1-p),m=new Bv(this.field,new Int32Array([this.field.subtract(0,f),1]));u=u.multiply(m)}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}var g=new Bv(this.field,a),v=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),g,e),y=v[0],b=v[1],w=this.findErrorLocations(y),_=this.findErrorMagnitudes(b,y,w);for(c=0;c<w.length;c++){var E=t.length-1-this.field.log(w[c]);if(E<0)throw Ch.getChecksumInstance();t[E]=this.field.subtract(t[E],_[c])}return w.length},t.prototype.runEuclideanAlgorithm=function(t,e,r){if(t.getDegree()<e.getDegree()){var n=t;t=e,e=n}for(var i=t,o=e,a=this.field.getZero(),s=this.field.getOne();o.getDegree()>=Math.round(r/2);){var c=i,l=a;if(a=s,(i=o).isZero())throw Ch.getChecksumInstance();o=c;for(var u=this.field.getZero(),d=i.getCoefficient(i.getDegree()),h=this.field.inverse(d);o.getDegree()>=i.getDegree()&&!o.isZero();){var p=o.getDegree()-i.getDegree(),f=this.field.multiply(o.getCoefficient(o.getDegree()),h);u=u.add(this.field.buildMonomial(p,f)),o=o.subtract(i.multiplyByMonomial(p,f))}s=u.multiply(a).subtract(l).negative()}var m=s.getCoefficient(0);if(0===m)throw Ch.getChecksumInstance();var g=this.field.inverse(m);return[s.multiply(g),o.multiply(g)]},t.prototype.findErrorLocations=function(t){for(var e=t.getDegree(),r=new Int32Array(e),n=0,i=1;i<this.field.getSize()&&n<e;i++)0===t.evaluateAt(i)&&(r[n]=this.field.inverse(i),n++);if(n!==e)throw Ch.getChecksumInstance();return r},t.prototype.findErrorMagnitudes=function(t,e,r){for(var n=e.getDegree(),i=new Int32Array(n),o=1;o<=n;o++)i[n-o]=this.field.multiply(o,e.getCoefficient(o));var a=new Bv(this.field,i),s=r.length,c=new Int32Array(s);for(o=0;o<s;o++){var l=this.field.inverse(r[o]),u=this.field.subtract(0,t.evaluateAt(l)),d=this.field.inverse(a.evaluateAt(l));c[o]=this.field.multiply(u,d)}return c},t}();const Gv=Hv,qv=function(){function t(e,r,n,i,o){e instanceof t?this.constructor_2(e):this.constructor_1(e,r,n,i,o)}return t.prototype.constructor_1=function(t,e,r,n,i){var o=null==e||null==r,a=null==n||null==i;if(o&&a)throw new ip;o?(e=new Zp(0,n.getY()),r=new Zp(0,i.getY())):a&&(n=new Zp(t.getWidth()-1,e.getY()),i=new Zp(t.getWidth()-1,r.getY())),this.image=t,this.topLeft=e,this.bottomLeft=r,this.topRight=n,this.bottomRight=i,this.minX=Math.trunc(Math.min(e.getX(),r.getX())),this.maxX=Math.trunc(Math.max(n.getX(),i.getX())),this.minY=Math.trunc(Math.min(e.getY(),n.getY())),this.maxY=Math.trunc(Math.max(r.getY(),i.getY()))},t.prototype.constructor_2=function(t){this.image=t.image,this.topLeft=t.getTopLeft(),this.bottomLeft=t.getBottomLeft(),this.topRight=t.getTopRight(),this.bottomRight=t.getBottomRight(),this.minX=t.getMinX(),this.maxX=t.getMaxX(),this.minY=t.getMinY(),this.maxY=t.getMaxY()},t.merge=function(e,r){return null==e?r:null==r?e:new t(e.image,e.topLeft,e.bottomLeft,r.topRight,r.bottomRight)},t.prototype.addMissingRows=function(e,r,n){var i=this.topLeft,o=this.bottomLeft,a=this.topRight,s=this.bottomRight;if(e>0){var c=n?this.topLeft:this.topRight,l=Math.trunc(c.getY()-e);l<0&&(l=0);var u=new Zp(c.getX(),l);n?i=u:a=u}if(r>0){var d=n?this.bottomLeft:this.bottomRight,h=Math.trunc(d.getY()+r);h>=this.image.getHeight()&&(h=this.image.getHeight()-1);var p=new Zp(d.getX(),h);n?o=p:s=p}return new t(this.image,i,o,a,s)},t.prototype.getMinX=function(){return this.minX},t.prototype.getMaxX=function(){return this.maxX},t.prototype.getMinY=function(){return this.minY},t.prototype.getMaxY=function(){return this.maxY},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getBottomRight=function(){return this.bottomRight},t}(),Wv=function(){function t(t,e,r,n){this.columnCount=t,this.errorCorrectionLevel=n,this.rowCountUpperPart=e,this.rowCountLowerPart=r,this.rowCount=e+r}return t.prototype.getColumnCount=function(){return this.columnCount},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},t.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},t}();var Yv=function(){function t(){this.buffer=""}return t.form=function(t,e){var r=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,(function(t,n,i,o,a,s){if("%%"===t)return"%";if(void 0!==e[++r]){t=o?parseInt(o.substr(1)):void 0;var c,l=a?parseInt(a.substr(1)):void 0;switch(s){case"s":c=e[r];break;case"c":c=e[r][0];break;case"f":c=parseFloat(e[r]).toFixed(t);break;case"p":c=parseFloat(e[r]).toPrecision(t);break;case"e":c=parseFloat(e[r]).toExponential(t);break;case"x":c=parseInt(e[r]).toString(l||16);break;case"d":c=parseFloat(parseInt(e[r],l||10).toPrecision(t)).toFixed(0)}c="object"==typeof c?JSON.stringify(c):(+c).toString(l);for(var u=parseInt(i),d=i&&i[0]+""=="0"?"0":" ";c.length<u;)c=void 0!==n?c+d:d+c;return c}}))},t.prototype.format=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.buffer+=t.form(e,r)},t.prototype.toString=function(){return this.buffer},t}();const Xv=Yv;var $v=function(){function t(t){this.boundingBox=new qv(t),this.codewords=new Array(t.getMaxY()-t.getMinY()+1)}return t.prototype.getCodewordNearby=function(e){var r=this.getCodeword(e);if(null!=r)return r;for(var n=1;n<t.MAX_NEARBY_DISTANCE;n++){var i=this.imageRowToCodewordIndex(e)-n;if(i>=0&&null!=(r=this.codewords[i]))return r;if((i=this.imageRowToCodewordIndex(e)+n)<this.codewords.length&&null!=(r=this.codewords[i]))return r}return null},t.prototype.imageRowToCodewordIndex=function(t){return t-this.boundingBox.getMinY()},t.prototype.setCodeword=function(t,e){this.codewords[this.imageRowToCodewordIndex(t)]=e},t.prototype.getCodeword=function(t){return this.codewords[this.imageRowToCodewordIndex(t)]},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.getCodewords=function(){return this.codewords},t.prototype.toString=function(){var t,e,r=new Xv,n=0;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.codewords),o=i.next();!o.done;o=i.next()){var a=o.value;null!=a?r.format("%3d: %3d|%3d%n",n++,a.getRowNumber(),a.getValue()):r.format("%3d: | %n",n++)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return r.toString()},t.MAX_NEARBY_DISTANCE=5,t}();const Qv=$v;var Kv=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Zv=function(){function t(){this.values=new Map}return t.prototype.setValue=function(t){t=Math.trunc(t);var e=this.values.get(t);null==e&&(e=0),e++,this.values.set(t,e)},t.prototype.getValue=function(){var t,e,r=-1,n=new Array,i=function(t,e){var i=function(){return t},o=function(){return e};o()>r?(r=o(),(n=[]).push(i())):o()===r&&n.push(i())};try{for(var o=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.values.entries()),a=o.next();!a.done;a=o.next()){var s=Kv(a.value,2);i(s[0],s[1])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return kv.toIntArray(n)},t.prototype.getConfidence=function(t){return this.values.get(t)},t}();const Jv=Zv;var ty=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ey=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ry=function(t){function e(e,r){var n=t.call(this,e)||this;return n._isLeft=r,n}return ty(e,t),e.prototype.setRowNumbers=function(){var t,e;try{for(var r=ey(this.getCodewords()),n=r.next();!n.done;n=r.next()){var i=n.value;null!=i&&i.setRowNumberAsRowIndicatorColumn()}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.adjustCompleteIndicatorColumnRowNumbers=function(t){var e=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(e,t);for(var r=this.getBoundingBox(),n=this._isLeft?r.getTopLeft():r.getTopRight(),i=this._isLeft?r.getBottomLeft():r.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(n.getY())),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=-1,c=1,l=0,u=o;u<a;u++)if(null!=e[u]){var d=e[u],h=d.getRowNumber()-s;if(0===h)l++;else if(1===h)c=Math.max(c,l),l=1,s=d.getRowNumber();else if(h<0||d.getRowNumber()>=t.getRowCount()||h>u)e[u]=null;else{for(var p,f=(p=c>2?(c-2)*h:h)>=u,m=1;m<=p&&!f;m++)f=null!=e[u-m];f?e[u]=null:(s=d.getRowNumber(),l=1)}}},e.prototype.getRowHeights=function(){var t,e,r=this.getBarcodeMetadata();if(null==r)return null;this.adjustIncompleteIndicatorColumnRowNumbers(r);var n=new Int32Array(r.getRowCount());try{for(var i=ey(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;if(null!=a){var s=a.getRowNumber();if(s>=n.length)continue;n[s]++}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n},e.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(t){for(var e=this.getBoundingBox(),r=this._isLeft?e.getTopLeft():e.getTopRight(),n=this._isLeft?e.getBottomLeft():e.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),o=this.imageRowToCodewordIndex(Math.trunc(n.getY())),a=this.getCodewords(),s=-1,c=1,l=0,u=i;u<o;u++)if(null!=a[u]){var d=a[u];d.setRowNumberAsRowIndicatorColumn();var h=d.getRowNumber()-s;0===h?l++:1===h?(c=Math.max(c,l),l=1,s=d.getRowNumber()):d.getRowNumber()>=t.getRowCount()?a[u]=null:(s=d.getRowNumber(),l=1)}},e.prototype.getBarcodeMetadata=function(){var t,e,r=this.getCodewords(),n=new Jv,i=new Jv,o=new Jv,a=new Jv;try{for(var s=ey(r),c=s.next();!c.done;c=s.next()){var l=c.value;if(null!=l){l.setRowNumberAsRowIndicatorColumn();var u=l.getValue()%30,d=l.getRowNumber();switch(this._isLeft||(d+=2),d%3){case 0:i.setValue(3*u+1);break;case 1:a.setValue(u/3),o.setValue(u%3);break;case 2:n.setValue(u+1)}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}if(0===n.getValue().length||0===i.getValue().length||0===o.getValue().length||0===a.getValue().length||n.getValue()[0]<1||i.getValue()[0]+o.getValue()[0]<kv.MIN_ROWS_IN_BARCODE||i.getValue()[0]+o.getValue()[0]>kv.MAX_ROWS_IN_BARCODE)return null;var h=new Wv(n.getValue()[0],i.getValue()[0],o.getValue()[0],a.getValue()[0]);return this.removeIncorrectCodewords(r,h),h},e.prototype.removeIncorrectCodewords=function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(null!=t[r]){var i=n.getValue()%30,o=n.getRowNumber();if(o>e.getRowCount())t[r]=null;else switch(this._isLeft||(o+=2),o%3){case 0:3*i+1!==e.getRowCountUpperPart()&&(t[r]=null);break;case 1:Math.trunc(i/3)===e.getErrorCorrectionLevel()&&i%3===e.getRowCountLowerPart()||(t[r]=null);break;case 2:i+1!==e.getColumnCount()&&(t[r]=null)}}}},e.prototype.isLeft=function(){return this._isLeft},e.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+t.prototype.toString.call(this)},e}(Qv);const ny=ry;var iy=function(){function t(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return t.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var t,e=kv.MAX_CODEWORDS_IN_BARCODE;do{t=e,e=this.adjustRowNumbersAndGetCount()}while(e>0&&e<t);return this.detectionResultColumns},t.prototype.adjustIndicatorColumnRowNumbers=function(t){null!=t&&t.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},t.prototype.adjustRowNumbersAndGetCount=function(){var t=this.adjustRowNumbersByRow();if(0===t)return 0;for(var e=1;e<this.barcodeColumnCount+1;e++)for(var r=this.detectionResultColumns[e].getCodewords(),n=0;n<r.length;n++)null!=r[n]&&(r[n].hasValidRowNumber()||this.adjustRowNumbers(e,n,r));return t},t.prototype.adjustRowNumbersByRow=function(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()},t.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var t=this.detectionResultColumns[0].getCodewords(),e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<t.length;r++)if(null!=t[r]&&null!=e[r]&&t[r].getRowNumber()===e[r].getRowNumber())for(var n=1;n<=this.barcodeColumnCount;n++){var i=this.detectionResultColumns[n].getCodewords()[r];null!=i&&(i.setRowNumber(t[r].getRowNumber()),i.hasValidRowNumber()||(this.detectionResultColumns[n].getCodewords()[r]=null))}},t.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var e=0,r=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<r.length;n++)if(null!=r[n])for(var i=r[n].getRowNumber(),o=0,a=this.barcodeColumnCount+1;a>0&&o<this.ADJUST_ROW_NUMBER_SKIP;a--){var s=this.detectionResultColumns[a].getCodewords()[n];null!=s&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var e=0,r=this.detectionResultColumns[0].getCodewords(),n=0;n<r.length;n++)if(null!=r[n])for(var i=r[n].getRowNumber(),o=0,a=1;a<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;a++){var s=this.detectionResultColumns[a].getCodewords()[n];null!=s&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.adjustRowNumberIfValid=function(t,e,r){return null==r||r.hasValidRowNumber()||(r.isValidRowNumber(t)?(r.setRowNumber(t),e=0):++e),e},t.prototype.adjustRowNumbers=function(e,r,n){var i,o;if(null!=this.detectionResultColumns[e-1]){var a=n[r],s=this.detectionResultColumns[e-1].getCodewords(),c=s;null!=this.detectionResultColumns[e+1]&&(c=this.detectionResultColumns[e+1].getCodewords());var l=new Array(14);l[2]=s[r],l[3]=c[r],r>0&&(l[0]=n[r-1],l[4]=s[r-1],l[5]=c[r-1]),r>1&&(l[8]=n[r-2],l[10]=s[r-2],l[11]=c[r-2]),r<n.length-1&&(l[1]=n[r+1],l[6]=s[r+1],l[7]=c[r+1]),r<n.length-2&&(l[9]=n[r+2],l[12]=s[r+2],l[13]=c[r+2]);try{for(var u=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(l),d=u.next();!d.done;d=u.next()){var h=d.value;if(t.adjustRowNumber(a,h))return}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}},t.adjustRowNumber=function(t,e){return!(null==e||!e.hasValidRowNumber()||e.getBucket()!==t.getBucket()||(t.setRowNumber(e.getRowNumber()),0))},t.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},t.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},t.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},t.prototype.setBoundingBox=function(t){this.boundingBox=t},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.setDetectionResultColumn=function(t,e){this.detectionResultColumns[t]=e},t.prototype.getDetectionResultColumn=function(t){return this.detectionResultColumns[t]},t.prototype.toString=function(){var t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var e=new Xv,r=0;r<t.getCodewords().length;r++){e.format("CW %3d:",r);for(var n=0;n<this.barcodeColumnCount+2;n++)if(null!=this.detectionResultColumns[n]){var i=this.detectionResultColumns[n].getCodewords()[r];null!=i?e.format(" %3d|%3d",i.getRowNumber(),i.getValue()):e.format(" | ")}else e.format(" | ");e.format("%n")}return e.toString()},t}();const oy=iy,ay=function(){function t(e,r,n,i){this.rowNumber=t.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(e),this.endX=Math.trunc(r),this.bucket=Math.trunc(n),this.value=Math.trunc(i)}return t.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},t.prototype.isValidRowNumber=function(e){return e!==t.BARCODE_ROW_UNKNOWN&&this.bucket===e%3*3},t.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},t.prototype.getWidth=function(){return this.endX-this.startX},t.prototype.getStartX=function(){return this.startX},t.prototype.getEndX=function(){return this.endX},t.prototype.getBucket=function(){return this.bucket},t.prototype.getValue=function(){return this.value},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.setRowNumber=function(t){this.rowNumber=t},t.prototype.toString=function(){return this.rowNumber+"|"+this.value},t.BARCODE_ROW_UNKNOWN=-1,t}();var sy=function(){function t(){}return t.initialize=function(){for(var e=0;e<kv.SYMBOL_TABLE.length;e++)for(var r=kv.SYMBOL_TABLE[e],n=1&r,i=0;i<kv.BARS_IN_MODULE;i++){for(var o=0;(1&r)===n;)o+=1,r>>=1;n=1&r,t.RATIOS_TABLE[e]||(t.RATIOS_TABLE[e]=new Array(kv.BARS_IN_MODULE)),t.RATIOS_TABLE[e][kv.BARS_IN_MODULE-i-1]=Math.fround(o/kv.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},t.getDecodedValue=function(e){var r=t.getDecodedCodewordValue(t.sampleBitCounts(e));return-1!==r?r:t.getClosestDecodedValue(e)},t.sampleBitCounts=function(t){for(var e=Xp.sum(t),r=new Int32Array(kv.BARS_IN_MODULE),n=0,i=0,o=0;o<kv.MODULES_IN_CODEWORD;o++){var a=e/(2*kv.MODULES_IN_CODEWORD)+o*e/kv.MODULES_IN_CODEWORD;i+t[n]<=a&&(i+=t[n],n++),r[n]++}return r},t.getDecodedCodewordValue=function(e){var r=t.getBitValue(e);return-1===kv.getCodeword(r)?-1:r},t.getBitValue=function(t){for(var e=0,r=0;r<t.length;r++)for(var n=0;n<t[r];n++)e=e<<1|(r%2==0?1:0);return Math.trunc(e)},t.getClosestDecodedValue=function(e){var r=Xp.sum(e),n=new Array(kv.BARS_IN_MODULE);if(r>1)for(var i=0;i<n.length;i++)n[i]=Math.fround(e[i]/r);var o=Qp.MAX_VALUE,a=-1;this.bSymbolTableReady||t.initialize();for(var s=0;s<t.RATIOS_TABLE.length;s++){for(var c=0,l=t.RATIOS_TABLE[s],u=0;u<kv.BARS_IN_MODULE;u++){var d=Math.fround(l[u]-n[u]);if((c+=Math.fround(d*d))>=o)break}c<o&&(o=c,a=kv.SYMBOL_TABLE[s])}return a},t.bSymbolTableReady=!1,t.RATIOS_TABLE=new Array(kv.SYMBOL_TABLE.length).map((function(t){return new Array(kv.BARS_IN_MODULE)})),t}();const cy=sy,ly=function(){function t(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return t.prototype.getSegmentIndex=function(){return this.segmentIndex},t.prototype.setSegmentIndex=function(t){this.segmentIndex=t},t.prototype.getFileId=function(){return this.fileId},t.prototype.setFileId=function(t){this.fileId=t},t.prototype.getOptionalData=function(){return this.optionalData},t.prototype.setOptionalData=function(t){this.optionalData=t},t.prototype.isLastSegment=function(){return this.lastSegment},t.prototype.setLastSegment=function(t){this.lastSegment=t},t.prototype.getSegmentCount=function(){return this.segmentCount},t.prototype.setSegmentCount=function(t){this.segmentCount=t},t.prototype.getSender=function(){return this.sender||null},t.prototype.setSender=function(t){this.sender=t},t.prototype.getAddressee=function(){return this.addressee||null},t.prototype.setAddressee=function(t){this.addressee=t},t.prototype.getFileName=function(){return this.fileName},t.prototype.setFileName=function(t){this.fileName=t},t.prototype.getFileSize=function(){return this.fileSize},t.prototype.setFileSize=function(t){this.fileSize=t},t.prototype.getChecksum=function(){return this.checksum},t.prototype.setChecksum=function(t){this.checksum=t},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.setTimestamp=function(t){this.timestamp=t},t}(),uy=function(){function t(){}return t.parseLong=function(t,e){return void 0===e&&(e=void 0),parseInt(t,e)},t}();var dy=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const hy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dy(e,t),e.kind="NullPointerException",e}(vh);var py=function(){function t(){}return t.prototype.writeBytes=function(t){this.writeBytesOffset(t,0,t.length)},t.prototype.writeBytesOffset=function(t,e,r){if(null==t)throw new hy;if(e<0||e>t.length||r<0||e+r>t.length||e+r<0)throw new Ih;if(0!==r)for(var n=0;n<r;n++)this.write(t[e+n])},t.prototype.flush=function(){},t.prototype.close=function(){},t}();const fy=py;var my=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const gy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return my(e,t),e}(vh);var vy=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),yy=function(t){function e(e){void 0===e&&(e=32);var r=t.call(this)||this;if(r.count=0,e<0)throw new _h("Negative initial size: "+e);return r.buf=new Uint8Array(e),r}return vy(e,t),e.prototype.ensureCapacity=function(t){t-this.buf.length>0&&this.grow(t)},e.prototype.grow=function(t){var e=this.buf.length<<1;if(e-t<0&&(e=t),e<0){if(t<0)throw new gy;e=Mh.MAX_VALUE}this.buf=Fh.copyOfUint8Array(this.buf,e)},e.prototype.write=function(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1},e.prototype.writeBytesOffset=function(t,e,r){if(e<0||e>t.length||r<0||e+r-t.length>0)throw new Ih;this.ensureCapacity(this.count+r),Oh.arraycopy(t,e,this.buf,this.count,r),this.count+=r},e.prototype.writeTo=function(t){t.writeBytesOffset(this.buf,0,this.count)},e.prototype.reset=function(){this.count=0},e.prototype.toByteArray=function(){return Fh.copyOfUint8Array(this.buf,this.count)},e.prototype.size=function(){return this.count},e.prototype.toString=function(t){return t?"string"==typeof t?this.toString_string(t):this.toString_number(t):this.toString_void()},e.prototype.toString_void=function(){return new String(this.buf).toString()},e.prototype.toString_string=function(t){return new String(this.buf).toString()},e.prototype.toString_number=function(t){return new String(this.buf).toString()},e.prototype.close=function(){},e}(fy);const by=yy;var wy,_y;function Ey(){if("undefined"!=typeof window)return window.BigInt||null;if(void 0!==__webpack_require__.g)return __webpack_require__.g.BigInt||null;if("undefined"!=typeof self)return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}function xy(t){if(void 0===_y&&(_y=Ey()),null===_y)throw new Error("BigInt is not supported!");return _y(t)}!function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(wy||(wy={}));var Ay=function(){function t(){}return t.decode=function(e,r){var n=new tp(""),i=Wh.ISO8859_1;n.enableDecoding(i);for(var o=1,a=e[o++],s=new ly;o<e[0];){switch(a){case t.TEXT_COMPACTION_MODE_LATCH:o=t.textCompaction(e,o,n);break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:o=t.byteCompaction(a,e,i,o,n);break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:n.append(e[o++]);break;case t.NUMERIC_COMPACTION_MODE_LATCH:o=t.numericCompaction(e,o,n);break;case t.ECI_CHARSET:Wh.getCharacterSetECIByValue(e[o++]);break;case t.ECI_GENERAL_PURPOSE:o+=2;break;case t.ECI_USER_DEFINED:o++;break;case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:o=t.decodeMacroBlock(e,o,s);break;case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:throw new Uh;default:o--,o=t.textCompaction(e,o,n)}if(!(o<e.length))throw Uh.getFormatInstance();a=e[o++]}if(0===n.length())throw Uh.getFormatInstance();var c=new Op(null,n.toString(),null,r);return c.setOther(s),c},t.decodeMacroBlock=function(e,r,n){if(r+t.NUMBER_OF_SEQUENCE_CODEWORDS>e[0])throw Uh.getFormatInstance();for(var i=new Int32Array(t.NUMBER_OF_SEQUENCE_CODEWORDS),o=0;o<t.NUMBER_OF_SEQUENCE_CODEWORDS;o++,r++)i[o]=e[r];n.setSegmentIndex(Mh.parseInt(t.decodeBase900toBase10(i,t.NUMBER_OF_SEQUENCE_CODEWORDS)));var a=new tp;r=t.textCompaction(e,r,a),n.setFileId(a.toString());var s=-1;for(e[r]===t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(s=r+1);r<e[0];)switch(e[r]){case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(e[++r]){case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var c=new tp;r=t.textCompaction(e,r+1,c),n.setFileName(c.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var l=new tp;r=t.textCompaction(e,r+1,l),n.setSender(l.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var u=new tp;r=t.textCompaction(e,r+1,u),n.setAddressee(u.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var d=new tp;r=t.numericCompaction(e,r+1,d),n.setSegmentCount(Mh.parseInt(d.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var h=new tp;r=t.numericCompaction(e,r+1,h),n.setTimestamp(uy.parseLong(h.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var p=new tp;r=t.numericCompaction(e,r+1,p),n.setChecksum(Mh.parseInt(p.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var f=new tp;r=t.numericCompaction(e,r+1,f),n.setFileSize(uy.parseLong(f.toString()));break;default:throw Uh.getFormatInstance()}break;case t.MACRO_PDF417_TERMINATOR:r++,n.setLastSegment(!0);break;default:throw Uh.getFormatInstance()}if(-1!==s){var m=r-s;n.isLastSegment()&&m--,n.setOptionalData(Fh.copyOfRange(e,s,s+m))}return r},t.textCompaction=function(e,r,n){for(var i=new Int32Array(2*(e[0]-r)),o=new Int32Array(2*(e[0]-r)),a=0,s=!1;r<e[0]&&!s;){var c=e[r++];if(c<t.TEXT_COMPACTION_MODE_LATCH)i[a]=c/30,i[a+1]=c%30,a+=2;else switch(c){case t.TEXT_COMPACTION_MODE_LATCH:i[a++]=t.TEXT_COMPACTION_MODE_LATCH;break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:r--,s=!0;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[a]=t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,c=e[r++],o[a]=c,a++}}return t.decodeTextCompaction(i,o,a,n),r},t.decodeTextCompaction=function(e,r,n,i){for(var o=wy.ALPHA,a=wy.ALPHA,s=0;s<n;){var c=e[s],l="";switch(o){case wy.ALPHA:if(c<26)l=String.fromCharCode(65+c);else switch(c){case 26:l=" ";break;case t.LL:o=wy.LOWER;break;case t.ML:o=wy.MIXED;break;case t.PS:a=o,o=wy.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=wy.ALPHA}break;case wy.LOWER:if(c<26)l=String.fromCharCode(97+c);else switch(c){case 26:l=" ";break;case t.AS:a=o,o=wy.ALPHA_SHIFT;break;case t.ML:o=wy.MIXED;break;case t.PS:a=o,o=wy.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=wy.ALPHA}break;case wy.MIXED:if(c<t.PL)l=t.MIXED_CHARS[c];else switch(c){case t.PL:o=wy.PUNCT;break;case 26:l=" ";break;case t.LL:o=wy.LOWER;break;case t.AL:o=wy.ALPHA;break;case t.PS:a=o,o=wy.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=wy.ALPHA}break;case wy.PUNCT:if(c<t.PAL)l=t.PUNCT_CHARS[c];else switch(c){case t.PAL:o=wy.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=wy.ALPHA}break;case wy.ALPHA_SHIFT:if(o=a,c<26)l=String.fromCharCode(65+c);else switch(c){case 26:l=" ";break;case t.TEXT_COMPACTION_MODE_LATCH:o=wy.ALPHA}break;case wy.PUNCT_SHIFT:if(o=a,c<t.PAL)l=t.PUNCT_CHARS[c];else switch(c){case t.PAL:o=wy.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=wy.ALPHA}}""!==l&&i.append(l),s++}},t.byteCompaction=function(e,r,n,i,o){var a=new by,s=0,c=0,l=!1;switch(e){case t.BYTE_COMPACTION_MODE_LATCH:for(var u=new Int32Array(6),d=r[i++];i<r[0]&&!l;)switch(u[s++]=d,c=900*c+d,d=r[i++]){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,l=!0;break;default:if(s%5==0&&s>0){for(var h=0;h<6;++h)a.write(Number(xy(c)>>xy(8*(5-h))));c=0,s=0}}i===r[0]&&d<t.TEXT_COMPACTION_MODE_LATCH&&(u[s++]=d);for(var p=0;p<s;p++)a.write(u[p]);break;case t.BYTE_COMPACTION_MODE_LATCH_6:for(;i<r[0]&&!l;){var f=r[i++];if(f<t.TEXT_COMPACTION_MODE_LATCH)s++,c=900*c+f;else switch(f){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,l=!0}if(s%5==0&&s>0){for(h=0;h<6;++h)a.write(Number(xy(c)>>xy(8*(5-h))));c=0,s=0}}}return o.append(Qh.decode(a.toByteArray(),n)),i},t.numericCompaction=function(e,r,n){for(var i=0,o=!1,a=new Int32Array(t.MAX_NUMERIC_CODEWORDS);r<e[0]&&!o;){var s=e[r++];if(r===e[0]&&(o=!0),s<t.TEXT_COMPACTION_MODE_LATCH)a[i]=s,i++;else switch(s){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:r--,o=!0}(i%t.MAX_NUMERIC_CODEWORDS==0||s===t.NUMERIC_COMPACTION_MODE_LATCH||o)&&i>0&&(n.append(t.decodeBase900toBase10(a,i)),i=0)}return r},t.decodeBase900toBase10=function(e,r){for(var n=xy(0),i=0;i<r;i++)n+=t.EXP900[r-i-1]*xy(e[i]);var o=n.toString();if("1"!==o.charAt(0))throw new Uh;return o.substring(1)},t.TEXT_COMPACTION_MODE_LATCH=900,t.BYTE_COMPACTION_MODE_LATCH=901,t.NUMERIC_COMPACTION_MODE_LATCH=902,t.BYTE_COMPACTION_MODE_LATCH_6=924,t.ECI_USER_DEFINED=925,t.ECI_GENERAL_PURPOSE=926,t.ECI_CHARSET=927,t.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,t.MACRO_PDF417_TERMINATOR=922,t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,t.MAX_NUMERIC_CODEWORDS=15,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,t.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,t.PL=25,t.LL=27,t.AS=27,t.ML=28,t.AL=28,t.PS=29,t.PAL=29,t.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",t.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",t.EXP900=Ey()?function(){var t=[];t[0]=xy(1);var e=xy(900);t[1]=e;for(var r=2;r<16;r++)t[r]=t[r-1]*e;return t}():[],t.NUMBER_OF_SEQUENCE_CODEWORDS=2,t}();const Cy=Ay;var Sy=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Dy=function(){function t(){}return t.decode=function(e,r,n,i,o,a,s){for(var c,l=new qv(e,r,n,i,o),u=null,d=null,h=!0;;h=!1){if(null!=r&&(u=t.getRowIndicatorColumn(e,l,r,!0,a,s)),null!=i&&(d=t.getRowIndicatorColumn(e,l,i,!1,a,s)),null==(c=t.merge(u,d)))throw ip.getNotFoundInstance();var p=c.getBoundingBox();if(!h||null==p||!(p.getMinY()<l.getMinY()||p.getMaxY()>l.getMaxY()))break;l=p}c.setBoundingBox(l);var f=c.getBarcodeColumnCount()+1;c.setDetectionResultColumn(0,u),c.setDetectionResultColumn(f,d);for(var m=null!=u,g=1;g<=f;g++){var v=m?g:f-g;if(void 0===c.getDetectionResultColumn(v)){var y=void 0;y=0===v||v===f?new ny(l,0===v):new Qv(l),c.setDetectionResultColumn(v,y);for(var b=-1,w=b,_=l.getMinY();_<=l.getMaxY();_++){if((b=t.getStartColumn(c,v,_,m))<0||b>l.getMaxX()){if(-1===w)continue;b=w}var E=t.detectCodeword(e,l.getMinX(),l.getMaxX(),m,b,_,a,s);null!=E&&(y.setCodeword(_,E),w=b,a=Math.min(a,E.getWidth()),s=Math.max(s,E.getWidth()))}}}return t.createDecoderResult(c)},t.merge=function(e,r){if(null==e&&null==r)return null;var n=t.getBarcodeMetadata(e,r);if(null==n)return null;var i=qv.merge(t.adjustBoundingBox(e),t.adjustBoundingBox(r));return new oy(n,i)},t.adjustBoundingBox=function(e){var r,n;if(null==e)return null;var i=e.getRowHeights();if(null==i)return null;var o=t.getMax(i),a=0;try{for(var s=Sy(i),c=s.next();!c.done;c=s.next()){var l=c.value;if(a+=o-l,l>0)break}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}for(var u=e.getCodewords(),d=0;a>0&&null==u[d];d++)a--;var h=0;for(d=i.length-1;d>=0&&(h+=o-i[d],!(i[d]>0));d--);for(d=u.length-1;h>0&&null==u[d];d--)h--;return e.getBoundingBox().addMissingRows(a,h,e.isLeft())},t.getMax=function(t){var e,r,n=-1;try{for(var i=Sy(t),o=i.next();!o.done;o=i.next()){var a=o.value;n=Math.max(n,a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},t.getBarcodeMetadata=function(t,e){var r,n;return null==t||null==(r=t.getBarcodeMetadata())?null==e?null:e.getBarcodeMetadata():null==e||null==(n=e.getBarcodeMetadata())?r:r.getColumnCount()!==n.getColumnCount()&&r.getErrorCorrectionLevel()!==n.getErrorCorrectionLevel()&&r.getRowCount()!==n.getRowCount()?null:r},t.getRowIndicatorColumn=function(e,r,n,i,o,a){for(var s=new ny(r,i),c=0;c<2;c++)for(var l=0===c?1:-1,u=Math.trunc(Math.trunc(n.getX())),d=Math.trunc(Math.trunc(n.getY()));d<=r.getMaxY()&&d>=r.getMinY();d+=l){var h=t.detectCodeword(e,0,e.getWidth(),i,u,d,o,a);null!=h&&(s.setCodeword(d,h),u=i?h.getStartX():h.getEndX())}return s},t.adjustCodewordCount=function(e,r){var n=r[0][1],i=n.getValue(),o=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-t.getNumberOfECCodeWords(e.getBarcodeECLevel());if(0===i.length){if(o<1||o>kv.MAX_CODEWORDS_IN_BARCODE)throw ip.getNotFoundInstance();n.setValue(o)}else i[0]!==o&&n.setValue(o)},t.createDecoderResult=function(e){var r=t.createBarcodeMatrix(e);t.adjustCodewordCount(e,r);for(var n=new Array,i=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),o=[],a=new Array,s=0;s<e.getBarcodeRowCount();s++)for(var c=0;c<e.getBarcodeColumnCount();c++){var l=r[s][c+1].getValue(),u=s*e.getBarcodeColumnCount()+c;0===l.length?n.push(u):1===l.length?i[u]=l[0]:(a.push(u),o.push(l))}for(var d=new Array(o.length),h=0;h<d.length;h++)d[h]=o[h];return t.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(),i,kv.toIntArray(n),kv.toIntArray(a),d)},t.createDecoderResultFromAmbiguousValues=function(e,r,n,i,o){for(var a=new Int32Array(i.length),s=100;s-- >0;){for(var c=0;c<a.length;c++)r[i[c]]=o[c][a[c]];try{return t.decodeCodewords(r,e,n)}catch(t){if(!(t instanceof Ch))throw t}if(0===a.length)throw Ch.getChecksumInstance();for(c=0;c<a.length;c++){if(a[c]<o[c].length-1){a[c]++;break}if(a[c]=0,c===a.length-1)throw Ch.getChecksumInstance()}}throw Ch.getChecksumInstance()},t.createBarcodeMatrix=function(t){for(var e,r,n,i,o=Array.from({length:t.getBarcodeRowCount()},(function(){return new Array(t.getBarcodeColumnCount()+2)})),a=0;a<o.length;a++)for(var s=0;s<o[a].length;s++)o[a][s]=new Jv;var c=0;try{for(var l=Sy(t.getDetectionResultColumns()),u=l.next();!u.done;u=l.next()){var d=u.value;if(null!=d)try{for(var h=(n=void 0,Sy(d.getCodewords())),p=h.next();!p.done;p=h.next()){var f=p.value;if(null!=f){var m=f.getRowNumber();if(m>=0){if(m>=o.length)continue;o[m][c].setValue(f.getValue())}}}}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}c++}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}return o},t.isValidBarcodeColumn=function(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1},t.getStartColumn=function(e,r,n,i){var o,a,s=i?1:-1,c=null;if(t.isValidBarcodeColumn(e,r-s)&&(c=e.getDetectionResultColumn(r-s).getCodeword(n)),null!=c)return i?c.getEndX():c.getStartX();if(null!=(c=e.getDetectionResultColumn(r).getCodewordNearby(n)))return i?c.getStartX():c.getEndX();if(t.isValidBarcodeColumn(e,r-s)&&(c=e.getDetectionResultColumn(r-s).getCodewordNearby(n)),null!=c)return i?c.getEndX():c.getStartX();for(var l=0;t.isValidBarcodeColumn(e,r-s);){r-=s;try{for(var u=(o=void 0,Sy(e.getDetectionResultColumn(r).getCodewords())),d=u.next();!d.done;d=u.next()){var h=d.value;if(null!=h)return(i?h.getEndX():h.getStartX())+s*l*(h.getEndX()-h.getStartX())}}catch(t){o={error:t}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}l++}return i?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},t.detectCodeword=function(e,r,n,i,o,a,s,c){o=t.adjustCodewordStartColumn(e,r,n,i,o,a);var l,u=t.getModuleBitCount(e,r,n,i,o,a);if(null==u)return null;var d=Xp.sum(u);if(i)l=o+d;else{for(var h=0;h<u.length/2;h++){var p=u[h];u[h]=u[u.length-1-h],u[u.length-1-h]=p}o=(l=o)-d}if(!t.checkCodewordSkew(d,s,c))return null;var f=cy.getDecodedValue(u),m=kv.getCodeword(f);return-1===m?null:new ay(o,l,t.getCodewordBucketNumber(f),m)},t.getModuleBitCount=function(t,e,r,n,i,o){for(var a=i,s=new Int32Array(8),c=0,l=n?1:-1,u=n;(n?a<r:a>=e)&&c<s.length;)t.get(a,o)===u?(s[c]++,a+=l):(c++,u=!u);return c===s.length||a===(n?r:e)&&c===s.length-1?s:null},t.getNumberOfECCodeWords=function(t){return 2<<t},t.adjustCodewordStartColumn=function(e,r,n,i,o,a){for(var s=o,c=i?-1:1,l=0;l<2;l++){for(;(i?s>=r:s<n)&&i===e.get(s,a);){if(Math.abs(o-s)>t.CODEWORD_SKEW_SIZE)return o;s+=c}c=-c,i=!i}return s},t.checkCodewordSkew=function(e,r,n){return r-t.CODEWORD_SKEW_SIZE<=e&&e<=n+t.CODEWORD_SKEW_SIZE},t.decodeCodewords=function(e,r,n){if(0===e.length)throw Uh.getFormatInstance();var i=1<<r+1,o=t.correctErrors(e,n,i);t.verifyCodewordCount(e,i);var a=Cy.decode(e,""+r);return a.setErrorsCorrected(o),a.setErasures(n.length),a},t.correctErrors=function(e,r,n){if(null!=r&&r.length>n/2+t.MAX_ERRORS||n<0||n>t.MAX_EC_CODEWORDS)throw Ch.getChecksumInstance();return t.errorCorrection.decode(e,n,r)},t.verifyCodewordCount=function(t,e){if(t.length<4)throw Uh.getFormatInstance();var r=t[0];if(r>t.length)throw Uh.getFormatInstance();if(0===r){if(!(e<t.length))throw Uh.getFormatInstance();t[0]=t.length-e}},t.getBitCountForCodeword=function(t){for(var e=new Int32Array(8),r=0,n=e.length-1;!((1&t)!==r&&(r=1&t,--n<0));)e[n]++,t>>=1;return e},t.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},t.getCodewordBucketNumber_number=function(e){return t.getCodewordBucketNumber(t.getBitCountForCodeword(e))},t.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},t.toString=function(t){for(var e=new Xv,r=0;r<t.length;r++){e.format("Row %2d: ",r);for(var n=0;n<t[r].length;n++){var i=t[r][n];0===i.getValue().length?e.format(" ",null):e.format("%4d(%2d)",i.getValue()[0],i.getConfidence(i.getValue()[0]))}e.format("%n")}return e.toString()},t.CODEWORD_SKEW_SIZE=2,t.MAX_ERRORS=3,t.MAX_EC_CODEWORDS=512,t.errorCorrection=new Gv,t}();const Oy=Dy;var Py=function(){function t(){}return t.prototype.decode=function(e,r){void 0===r&&(r=null);var n=t.decode(e,r,!1);if(null==n||0===n.length||null==n[0])throw ip.getNotFoundInstance();return n[0]},t.prototype.decodeMultiple=function(e,r){void 0===r&&(r=null);try{return t.decode(e,r,!0)}catch(t){if(t instanceof Uh||t instanceof Ch)throw ip.getNotFoundInstance();throw t}},t.decode=function(e,r,n){var i,o,a=new Array,s=Nv.detectMultiple(e,r,n);try{for(var c=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.getPoints()),l=c.next();!l.done;l=c.next()){var u=l.value,d=Oy.decode(s.getBits(),u[4],u[5],u[6],u[7],t.getMinCodewordWidth(u),t.getMaxCodewordWidth(u)),h=new xp(d.getText(),d.getRawBytes(),void 0,u,Cp.PDF_417);h.putMetadata(Dp.ERROR_CORRECTION_LEVEL,d.getECLevel());var p=d.getOther();null!=p&&h.putMetadata(Dp.PDF417_EXTRA_METADATA,p),a.push(h)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return a.map((function(t){return t}))},t.getMaxWidth=function(t,e){return null==t||null==e?0:Math.trunc(Math.abs(t.getX()-e.getX()))},t.getMinWidth=function(t,e){return null==t||null==e?Mh.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))},t.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(t.getMaxWidth(e[0],e[4]),t.getMaxWidth(e[6],e[2])*kv.MODULES_IN_CODEWORD/kv.MODULES_IN_STOP_PATTERN),Math.max(t.getMaxWidth(e[1],e[5]),t.getMaxWidth(e[7],e[3])*kv.MODULES_IN_CODEWORD/kv.MODULES_IN_STOP_PATTERN)))},t.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(t.getMinWidth(e[0],e[4]),t.getMinWidth(e[6],e[2])*kv.MODULES_IN_CODEWORD/kv.MODULES_IN_STOP_PATTERN),Math.min(t.getMinWidth(e[1],e[5]),t.getMinWidth(e[7],e[3])*kv.MODULES_IN_CODEWORD/kv.MODULES_IN_STOP_PATTERN)))},t.prototype.reset=function(){},t}();const Iy=Py;var ky=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Ty=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ky(e,t),e.kind="ReaderException",e}(vh);var Ry=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Fy=function(){function t(){}return t.prototype.decode=function(t,e){return this.setHints(e),this.decodeInternal(t)},t.prototype.decodeWithState=function(t){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(t)},t.prototype.setHints=function(t){this.hints=t;var e=null!=t&&void 0!==t.get(Vh.TRY_HARDER),r=null==t?null:t.get(Vh.POSSIBLE_FORMATS),n=new Array;if(null!=r){var i=r.some((function(t){return t===Cp.UPC_A||t===Cp.UPC_E||t===Cp.EAN_13||t===Cp.EAN_8||t===Cp.CODABAR||t===Cp.CODE_39||t===Cp.CODE_93||t===Cp.CODE_128||t===Cp.ITF||t===Cp.RSS_14||t===Cp.RSS_EXPANDED}));i&&!e&&n.push(new gg(t)),r.includes(Cp.QR_CODE)&&n.push(new Pv),r.includes(Cp.DATA_MATRIX)&&n.push(new Bg),r.includes(Cp.AZTEC)&&n.push(new gf),r.includes(Cp.PDF_417)&&n.push(new Iy),i&&e&&n.push(new gg(t))}0===n.length&&(e||n.push(new gg(t)),n.push(new Pv),n.push(new Bg),n.push(new gf),n.push(new Iy),e&&n.push(new gg(t))),this.readers=n},t.prototype.reset=function(){var t,e;if(null!==this.readers)try{for(var r=Ry(this.readers),n=r.next();!n.done;n=r.next())n.value.reset()}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.decodeInternal=function(t){var e,r;if(null===this.readers)throw new Ty("No readers where selected, nothing can be read.");try{for(var n=Ry(this.readers),i=n.next();!i.done;i=n.next()){var o=i.value;try{return o.decode(t,this.hints)}catch(t){if(t instanceof Ty)continue}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}throw new ip("No MultiFormat Readers were able to detect the code.")},t}();const Ny=Fy;var My,By=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ly=function(t){function e(e,r){void 0===e&&(e=null),void 0===r&&(r=500);var n=new Ny;return n.setHints(e),t.call(this,n,r)||this}return By(e,t),e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e}(Ep),jy=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vy=(function(t){jy((function(e){return void 0===e&&(e=500),t.call(this,new Iy,e)||this}),t)}(Ep),function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}());!function(t){Vy((function(e){return void 0===e&&(e=500),t.call(this,new Pv,e)||this}),t)}(Ep),function(t){t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.MIN_SIZE=3]="MIN_SIZE",t[t.MAX_SIZE=4]="MAX_SIZE",t[t.MARGIN=5]="MARGIN",t[t.PDF417_COMPACT=6]="PDF417_COMPACT",t[t.PDF417_COMPACTION=7]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=9]="AZTEC_LAYERS",t[t.QR_VERSION=10]="QR_VERSION"}(My||(My={}));const zy=My;var Uy=function(){function t(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new Tp(t,Int32Array.from([1])))}return t.prototype.buildGenerator=function(t){var e=this.cachedGenerators;if(t>=e.length)for(var r=e[e.length-1],n=this.field,i=e.length;i<=t;i++){var o=r.multiply(new Tp(n,Int32Array.from([1,n.exp(i-1+n.getGeneratorBase())])));e.push(o),r=o}return e[t]},t.prototype.encode=function(t,e){if(0===e)throw new _h("No error correction bytes");var r=t.length-e;if(r<=0)throw new _h("No data bytes provided");var n=this.buildGenerator(e),i=new Int32Array(r);Oh.arraycopy(t,0,i,0,r);for(var o=new Tp(this.field,i),a=(o=o.multiplyByMonomial(e,1)).divide(n)[1].getCoefficients(),s=e-a.length,c=0;c<s;c++)t[r+c]=0;Oh.arraycopy(a,0,t,r+s,a.length)},t}();const Hy=Uy;var Gy=function(){function t(){}return t.applyMaskPenaltyRule1=function(e){return t.applyMaskPenaltyRule1Internal(e,!0)+t.applyMaskPenaltyRule1Internal(e,!1)},t.applyMaskPenaltyRule2=function(e){for(var r=0,n=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o-1;a++)for(var s=n[a],c=0;c<i-1;c++){var l=s[c];l===s[c+1]&&l===n[a+1][c]&&l===n[a+1][c+1]&&r++}return t.N2*r},t.applyMaskPenaltyRule3=function(e){for(var r=0,n=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=0;s<i;s++){var c=n[a];s+6<i&&1===c[s]&&0===c[s+1]&&1===c[s+2]&&1===c[s+3]&&1===c[s+4]&&0===c[s+5]&&1===c[s+6]&&(t.isWhiteHorizontal(c,s-4,s)||t.isWhiteHorizontal(c,s+7,s+11))&&r++,a+6<o&&1===n[a][s]&&0===n[a+1][s]&&1===n[a+2][s]&&1===n[a+3][s]&&1===n[a+4][s]&&0===n[a+5][s]&&1===n[a+6][s]&&(t.isWhiteVertical(n,s,a-4,a)||t.isWhiteVertical(n,s,a+7,a+11))&&r++}return r*t.N3},t.isWhiteHorizontal=function(t,e,r){e=Math.max(e,0),r=Math.min(r,t.length);for(var n=e;n<r;n++)if(1===t[n])return!1;return!0},t.isWhiteVertical=function(t,e,r,n){r=Math.max(r,0),n=Math.min(n,t.length);for(var i=r;i<n;i++)if(1===t[i][e])return!1;return!0},t.applyMaskPenaltyRule4=function(e){for(var r=0,n=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=n[a],c=0;c<i;c++)1===s[c]&&r++;var l=e.getHeight()*e.getWidth();return Math.floor(10*Math.abs(2*r-l)/l)*t.N4},t.getDataMaskBit=function(t,e,r){var n,i;switch(t){case 0:n=r+e&1;break;case 1:n=1&r;break;case 2:n=e%3;break;case 3:n=(r+e)%3;break;case 4:n=Math.floor(r/2)+Math.floor(e/3)&1;break;case 5:n=(1&(i=r*e))+i%3;break;case 6:n=(1&(i=r*e))+i%3&1;break;case 7:n=(i=r*e)%3+(r+e&1)&1;break;default:throw new _h("Invalid mask pattern: "+t)}return 0===n},t.applyMaskPenaltyRule1Internal=function(e,r){for(var n=0,i=r?e.getHeight():e.getWidth(),o=r?e.getWidth():e.getHeight(),a=e.getArray(),s=0;s<i;s++){for(var c=0,l=-1,u=0;u<o;u++){var d=r?a[s][u]:a[u][s];d===l?c++:(c>=5&&(n+=t.N1+(c-5)),c=1,l=d)}c>=5&&(n+=t.N1+(c-5))}return n},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}();const qy=Gy;var Wy=function(){function t(t,e){this.width=t,this.height=e;for(var r=new Array(e),n=0;n!==e;n++)r[n]=new Uint8Array(t);this.bytes=r}return t.prototype.getHeight=function(){return this.height},t.prototype.getWidth=function(){return this.width},t.prototype.get=function(t,e){return this.bytes[e][t]},t.prototype.getArray=function(){return this.bytes},t.prototype.setNumber=function(t,e,r){this.bytes[e][t]=r},t.prototype.setBoolean=function(t,e,r){this.bytes[e][t]=r?1:0},t.prototype.clear=function(t){var e,r;try{for(var n=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.bytes),i=n.next();!i.done;i=n.next()){var o=i.value;Fh.fill(o,t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;if(this.width!==r.width)return!1;if(this.height!==r.height)return!1;for(var n=0,i=this.height;n<i;++n)for(var o=this.bytes[n],a=r.bytes[n],s=0,c=this.width;s<c;++s)if(o[s]!==a[s])return!1;return!0},t.prototype.toString=function(){for(var t=new tp,e=0,r=this.height;e<r;++e){for(var n=this.bytes[e],i=0,o=this.width;i<o;++i)switch(n[i]){case 0:t.append(" 0");break;case 1:t.append(" 1");break;default:t.append(" ")}t.append("\n")}return t.toString()},t}();const Yy=Wy,Xy=function(){function t(){this.maskPattern=-1}return t.prototype.getMode=function(){return this.mode},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getVersion=function(){return this.version},t.prototype.getMaskPattern=function(){return this.maskPattern},t.prototype.getMatrix=function(){return this.matrix},t.prototype.toString=function(){var t=new tp;return t.append("<<\n"),t.append(" mode: "),t.append(this.mode?this.mode.toString():"null"),t.append("\n ecLevel: "),t.append(this.ecLevel?this.ecLevel.toString():"null"),t.append("\n version: "),t.append(this.version?this.version.toString():"null"),t.append("\n maskPattern: "),t.append(this.maskPattern.toString()),this.matrix?(t.append("\n matrix:\n"),t.append(this.matrix.toString())):t.append("\n matrix: null\n"),t.append(">>\n"),t.toString()},t.prototype.setMode=function(t){this.mode=t},t.prototype.setECLevel=function(t){this.ecLevel=t},t.prototype.setVersion=function(t){this.version=t},t.prototype.setMaskPattern=function(t){this.maskPattern=t},t.prototype.setMatrix=function(t){this.matrix=t},t.isValidMaskPattern=function(e){return e>=0&&e<t.NUM_MASK_PATTERNS},t.NUM_MASK_PATTERNS=8,t}();var $y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const Qy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $y(e,t),e.kind="WriterException",e}(vh);var Ky=function(){function t(){}return t.clearMatrix=function(t){t.clear(255)},t.buildMatrix=function(e,r,n,i,o){t.clearMatrix(o),t.embedBasicPatterns(n,o),t.embedTypeInfo(r,i,o),t.maybeEmbedVersionInfo(n,o),t.embedDataBits(e,i,o)},t.embedBasicPatterns=function(e,r){t.embedPositionDetectionPatternsAndSeparators(r),t.embedDarkDotAtLeftBottomCorner(r),t.maybeEmbedPositionAdjustmentPatterns(e,r),t.embedTimingPatterns(r)},t.embedTypeInfo=function(e,r,n){var i=new Lh;t.makeTypeInfoBits(e,r,i);for(var o=0,a=i.getSize();o<a;++o){var s=i.get(i.getSize()-1-o),c=t.TYPE_INFO_COORDINATES[o],l=c[0],u=c[1];if(n.setBoolean(l,u,s),o<8){var d=n.getWidth()-o-1,h=8;n.setBoolean(d,h,s)}else d=8,h=n.getHeight()-7+(o-8),n.setBoolean(d,h,s)}},t.maybeEmbedVersionInfo=function(e,r){if(!(e.getVersionNumber()<7)){var n=new Lh;t.makeVersionInfoBits(e,n);for(var i=17,o=0;o<6;++o)for(var a=0;a<3;++a){var s=n.get(i);i--,r.setBoolean(o,r.getHeight()-11+a,s),r.setBoolean(r.getHeight()-11+a,o,s)}}},t.embedDataBits=function(e,r,n){for(var i=0,o=-1,a=n.getWidth()-1,s=n.getHeight()-1;a>0;){for(6===a&&(a-=1);s>=0&&s<n.getHeight();){for(var c=0;c<2;++c){var l=a-c;if(t.isEmpty(n.get(l,s))){var u=void 0;i<e.getSize()?(u=e.get(i),++i):u=!1,255!==r&&qy.getDataMaskBit(r,l,s)&&(u=!u),n.setBoolean(l,s,u)}}s+=o}s+=o=-o,a-=2}if(i!==e.getSize())throw new Qy("Not all bits consumed: "+i+"/"+e.getSize())},t.findMSBSet=function(t){return 32-Mh.numberOfLeadingZeros(t)},t.calculateBCHCode=function(e,r){if(0===r)throw new _h("0 polynomial");var n=t.findMSBSet(r);for(e<<=n-1;t.findMSBSet(e)>=n;)e^=r<<t.findMSBSet(e)-n;return e},t.makeTypeInfoBits=function(e,r,n){if(!Xy.isValidMaskPattern(r))throw new Qy("Invalid mask pattern");var i=e.getBits()<<3|r;n.appendBits(i,5);var o=t.calculateBCHCode(i,t.TYPE_INFO_POLY);n.appendBits(o,10);var a=new Lh;if(a.appendBits(t.TYPE_INFO_MASK_PATTERN,15),n.xor(a),15!==n.getSize())throw new Qy("should not happen but we got: "+n.getSize())},t.makeVersionInfoBits=function(e,r){r.appendBits(e.getVersionNumber(),6);var n=t.calculateBCHCode(e.getVersionNumber(),t.VERSION_INFO_POLY);if(r.appendBits(n,12),18!==r.getSize())throw new Qy("should not happen but we got: "+r.getSize())},t.isEmpty=function(t){return 255===t},t.embedTimingPatterns=function(e){for(var r=8;r<e.getWidth()-8;++r){var n=(r+1)%2;t.isEmpty(e.get(r,6))&&e.setNumber(r,6,n),t.isEmpty(e.get(6,r))&&e.setNumber(6,r,n)}},t.embedDarkDotAtLeftBottomCorner=function(t){if(0===t.get(8,t.getHeight()-8))throw new Qy;t.setNumber(8,t.getHeight()-8,1)},t.embedHorizontalSeparationPattern=function(e,r,n){for(var i=0;i<8;++i){if(!t.isEmpty(n.get(e+i,r)))throw new Qy;n.setNumber(e+i,r,0)}},t.embedVerticalSeparationPattern=function(e,r,n){for(var i=0;i<7;++i){if(!t.isEmpty(n.get(e,r+i)))throw new Qy;n.setNumber(e,r+i,0)}},t.embedPositionAdjustmentPattern=function(e,r,n){for(var i=0;i<5;++i)for(var o=t.POSITION_ADJUSTMENT_PATTERN[i],a=0;a<5;++a)n.setNumber(e+a,r+i,o[a])},t.embedPositionDetectionPattern=function(e,r,n){for(var i=0;i<7;++i)for(var o=t.POSITION_DETECTION_PATTERN[i],a=0;a<7;++a)n.setNumber(e+a,r+i,o[a])},t.embedPositionDetectionPatternsAndSeparators=function(e){var r=t.POSITION_DETECTION_PATTERN[0].length;t.embedPositionDetectionPattern(0,0,e),t.embedPositionDetectionPattern(e.getWidth()-r,0,e),t.embedPositionDetectionPattern(0,e.getWidth()-r,e),t.embedHorizontalSeparationPattern(0,7,e),t.embedHorizontalSeparationPattern(e.getWidth()-8,7,e),t.embedHorizontalSeparationPattern(0,e.getWidth()-8,e),t.embedVerticalSeparationPattern(7,0,e),t.embedVerticalSeparationPattern(e.getHeight()-7-1,0,e),t.embedVerticalSeparationPattern(7,e.getHeight()-7,e)},t.maybeEmbedPositionAdjustmentPatterns=function(e,r){if(!(e.getVersionNumber()<2))for(var n=e.getVersionNumber()-1,i=t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[n],o=0,a=i.length;o!==a;o++){var s=i[o];if(s>=0)for(var c=0;c!==a;c++){var l=i[c];l>=0&&t.isEmpty(r.get(l,s))&&t.embedPositionAdjustmentPattern(l-2,s-2,r)}}},t.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),t.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),t.VERSION_INFO_POLY=7973,t.TYPE_INFO_POLY=1335,t.TYPE_INFO_MASK_PATTERN=21522,t}();const Zy=Ky,Jy=function(){function t(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}return t.prototype.getDataBytes=function(){return this.dataBytes},t.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},t}();var tb=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},eb=function(){function t(){}return t.calculateMaskPenalty=function(t){return qy.applyMaskPenaltyRule1(t)+qy.applyMaskPenaltyRule2(t)+qy.applyMaskPenaltyRule3(t)+qy.applyMaskPenaltyRule4(t)},t.encode=function(e,r,n){void 0===n&&(n=null);var i=t.DEFAULT_BYTE_MODE_ENCODING,o=null!==n&&void 0!==n.get(zy.CHARACTER_SET);o&&(i=n.get(zy.CHARACTER_SET).toString());var a=this.chooseMode(e,i),s=new Lh;if(a===sv.BYTE&&(o||t.DEFAULT_BYTE_MODE_ENCODING!==i)){var c=Wh.getCharacterSetECIByName(i);void 0!==c&&this.appendECI(c,s)}this.appendModeInfo(a,s);var l,u=new Lh;if(this.appendBytes(e,a,u,i),null!==n&&void 0!==n.get(zy.QR_VERSION)){var d=Number.parseInt(n.get(zy.QR_VERSION).toString(),10);l=Qg.getVersionForNumber(d);var h=this.calculateBitsNeeded(a,s,u,l);if(!this.willFit(h,l,r))throw new Qy("Data too big for requested version")}else l=this.recommendVersion(r,a,s,u);var p=new Lh;p.appendBitArray(s);var f=a===sv.BYTE?u.getSizeInBytes():e.length;this.appendLengthInfo(f,l,a,p),p.appendBitArray(u);var m=l.getECBlocksForLevel(r),g=l.getTotalCodewords()-m.getTotalECCodewords();this.terminateBits(g,p);var v=this.interleaveWithECBytes(p,l.getTotalCodewords(),g,m.getNumBlocks()),y=new Xy;y.setECLevel(r),y.setMode(a),y.setVersion(l);var b=l.getDimensionForVersion(),w=new Yy(b,b),_=this.chooseMaskPattern(v,r,l,w);return y.setMaskPattern(_),Zy.buildMatrix(v,r,l,_,w),y.setMatrix(w),y},t.recommendVersion=function(t,e,r,n){var i=this.calculateBitsNeeded(e,r,n,Qg.getVersionForNumber(1)),o=this.chooseVersion(i,t),a=this.calculateBitsNeeded(e,r,n,o);return this.chooseVersion(a,t)},t.calculateBitsNeeded=function(t,e,r,n){return e.getSize()+t.getCharacterCountBits(n)+r.getSize()},t.getAlphanumericCode=function(e){return e<t.ALPHANUMERIC_TABLE.length?t.ALPHANUMERIC_TABLE[e]:-1},t.chooseMode=function(e,r){if(void 0===r&&(r=null),Wh.SJIS.getName()===r&&this.isOnlyDoubleByteKanji(e))return sv.KANJI;for(var n=!1,i=!1,o=0,a=e.length;o<a;++o){var s=e.charAt(o);if(t.isDigit(s))n=!0;else{if(-1===this.getAlphanumericCode(s.charCodeAt(0)))return sv.BYTE;i=!0}}return i?sv.ALPHANUMERIC:n?sv.NUMERIC:sv.BYTE},t.isOnlyDoubleByteKanji=function(t){var e;try{e=Qh.encode(t,Wh.SJIS)}catch(t){return!1}var r=e.length;if(r%2!=0)return!1;for(var n=0;n<r;n+=2){var i=255&e[n];if((i<129||i>159)&&(i<224||i>235))return!1}return!0},t.chooseMaskPattern=function(t,e,r,n){for(var i=Number.MAX_SAFE_INTEGER,o=-1,a=0;a<Xy.NUM_MASK_PATTERNS;a++){Zy.buildMatrix(t,e,r,a,n);var s=this.calculateMaskPenalty(n);s<i&&(i=s,o=a)}return o},t.chooseVersion=function(e,r){for(var n=1;n<=40;n++){var i=Qg.getVersionForNumber(n);if(t.willFit(e,i,r))return i}throw new Qy("Data too big")},t.willFit=function(t,e,r){return e.getTotalCodewords()-e.getECBlocksForLevel(r).getTotalECCodewords()>=(t+7)/8},t.terminateBits=function(t,e){var r=8*t;if(e.getSize()>r)throw new Qy("data bits cannot fit in the QR Code"+e.getSize()+" > "+r);for(var n=0;n<4&&e.getSize()<r;++n)e.appendBit(!1);var i=7&e.getSize();if(i>0)for(n=i;n<8;n++)e.appendBit(!1);var o=t-e.getSizeInBytes();for(n=0;n<o;++n)e.appendBits(0==(1&n)?236:17,8);if(e.getSize()!==r)throw new Qy("Bits size does not equal capacity")},t.getNumDataBytesAndNumECBytesForBlockID=function(t,e,r,n,i,o){if(n>=r)throw new Qy("Block ID too large");var a=t%r,s=r-a,c=Math.floor(t/r),l=c+1,u=Math.floor(e/r),d=u+1,h=c-u,p=l-d;if(h!==p)throw new Qy("EC bytes mismatch");if(r!==s+a)throw new Qy("RS blocks mismatch");if(t!==(u+h)*s+(d+p)*a)throw new Qy("Total bytes mismatch");n<s?(i[0]=u,o[0]=h):(i[0]=d,o[0]=p)},t.interleaveWithECBytes=function(e,r,n,i){var o,a,s,c;if(e.getSizeInBytes()!==n)throw new Qy("Number of bits and data bytes does not match");for(var l=0,u=0,d=0,h=new Array,p=0;p<i;++p){var f=new Int32Array(1),m=new Int32Array(1);t.getNumDataBytesAndNumECBytesForBlockID(r,n,i,p,f,m);var g=f[0],v=new Uint8Array(g);e.toBytes(8*l,v,0,g);var y=t.generateECBytes(v,m[0]);h.push(new Jy(v,y)),u=Math.max(u,g),d=Math.max(d,y.length),l+=f[0]}if(n!==l)throw new Qy("Data bytes does not match offset");var b=new Lh;for(p=0;p<u;++p)try{for(var w=(o=void 0,tb(h)),_=w.next();!_.done;_=w.next())p<(v=_.value.getDataBytes()).length&&b.appendBits(v[p],8)}catch(t){o={error:t}}finally{try{_&&!_.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}for(p=0;p<d;++p)try{for(var E=(s=void 0,tb(h)),x=E.next();!x.done;x=E.next())p<(y=x.value.getErrorCorrectionBytes()).length&&b.appendBits(y[p],8)}catch(t){s={error:t}}finally{try{x&&!x.done&&(c=E.return)&&c.call(E)}finally{if(s)throw s.error}}if(r!==b.getSizeInBytes())throw new Qy("Interleaving error: "+r+" and "+b.getSizeInBytes()+" differ.");return b},t.generateECBytes=function(t,e){for(var r=t.length,n=new Int32Array(r+e),i=0;i<r;i++)n[i]=255&t[i];new Hy(Bp.QR_CODE_FIELD_256).encode(n,e);var o=new Uint8Array(e);for(i=0;i<e;i++)o[i]=n[r+i];return o},t.appendModeInfo=function(t,e){e.appendBits(t.getBits(),4)},t.appendLengthInfo=function(t,e,r,n){var i=r.getCharacterCountBits(e);if(t>=1<<i)throw new Qy(t+" is bigger than "+((1<<i)-1));n.appendBits(t,i)},t.appendBytes=function(e,r,n,i){switch(r){case sv.NUMERIC:t.appendNumericBytes(e,n);break;case sv.ALPHANUMERIC:t.appendAlphanumericBytes(e,n);break;case sv.BYTE:t.append8BitBytes(e,n,i);break;case sv.KANJI:t.appendKanjiBytes(e,n);break;default:throw new Qy("Invalid mode: "+r)}},t.getDigit=function(t){return t.charCodeAt(0)-48},t.isDigit=function(e){var r=t.getDigit(e);return r>=0&&r<=9},t.appendNumericBytes=function(e,r){for(var n=e.length,i=0;i<n;){var o=t.getDigit(e.charAt(i));if(i+2<n){var a=t.getDigit(e.charAt(i+1)),s=t.getDigit(e.charAt(i+2));r.appendBits(100*o+10*a+s,10),i+=3}else i+1<n?(a=t.getDigit(e.charAt(i+1)),r.appendBits(10*o+a,7),i+=2):(r.appendBits(o,4),i++)}},t.appendAlphanumericBytes=function(e,r){for(var n=e.length,i=0;i<n;){var o=t.getAlphanumericCode(e.charCodeAt(i));if(-1===o)throw new Qy;if(i+1<n){var a=t.getAlphanumericCode(e.charCodeAt(i+1));if(-1===a)throw new Qy;r.appendBits(45*o+a,11),i+=2}else r.appendBits(o,6),i++}},t.append8BitBytes=function(t,e,r){var n;try{n=Qh.encode(t,r)}catch(t){throw new Qy(t)}for(var i=0,o=n.length;i!==o;i++){var a=n[i];e.appendBits(a,8)}},t.appendKanjiBytes=function(t,e){var r;try{r=Qh.encode(t,Wh.SJIS)}catch(t){throw new Qy(t)}for(var n=r.length,i=0;i<n;i+=2){var o=(255&r[i])<<8&4294967295|255&r[i+1],a=-1;if(o>=33088&&o<=40956?a=o-33088:o>=57408&&o<=60351&&(a=o-49472),-1===a)throw new Qy("Invalid byte sequence");var s=192*(a>>8)+(255&a);e.appendBits(s,13)}},t.appendECI=function(t,e){e.appendBits(sv.ECI.getBits(),4),e.appendBits(t.getValue(),8)},t.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),t.DEFAULT_BYTE_MODE_ENCODING=Wh.UTF8.getName(),t}();const rb=eb;!function(){function t(){}t.prototype.write=function(e,r,n,i){if(void 0===i&&(i=null),0===e.length)throw new _h("Found empty contents");if(r<0||n<0)throw new _h("Requested dimensions are too small: "+r+"x"+n);var o=zg.L,a=t.QUIET_ZONE_SIZE;null!==i&&(void 0!==i.get(zy.ERROR_CORRECTION)&&(o=zg.fromString(i.get(zy.ERROR_CORRECTION).toString())),void 0!==i.get(zy.MARGIN)&&(a=Number.parseInt(i.get(zy.MARGIN).toString(),10)));var s=rb.encode(e,o,i);return this.renderResult(s,r,n,a)},t.prototype.writeToDom=function(t,e,r,n,i){void 0===i&&(i=null),"string"==typeof t&&(t=document.querySelector(t));var o=this.write(e,r,n,i);t&&t.appendChild(o)},t.prototype.renderResult=function(t,e,r,n){var i=t.getMatrix();if(null===i)throw new zp;for(var o=i.getWidth(),a=i.getHeight(),s=o+2*n,c=a+2*n,l=Math.max(e,s),u=Math.max(r,c),d=Math.min(Math.floor(l/s),Math.floor(u/c)),h=Math.floor((l-o*d)/2),p=Math.floor((u-a*d)/2),f=this.createSVGElement(l,u),m=0,g=p;m<a;m++,g+=d)for(var v=0,y=h;v<o;v++,y+=d)if(1===i.get(v,m)){var b=this.createSvgRectElement(y,g,d,d);f.appendChild(b)}return f},t.prototype.createSVGElement=function(e,r){var n=document.createElementNS(t.SVG_NS,"svg");return n.setAttributeNS(null,"height",e.toString()),n.setAttributeNS(null,"width",r.toString()),n},t.prototype.createSvgRectElement=function(e,r,n,i){var o=document.createElementNS(t.SVG_NS,"rect");return o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"height",n.toString()),o.setAttributeNS(null,"width",i.toString()),o.setAttributeNS(null,"fill","#000000"),o},t.QUIET_ZONE_SIZE=4,t.SVG_NS="http://www.w3.org/2000/svg"}();!function(){function t(){}t.prototype.encode=function(e,r,n,i,o){if(0===e.length)throw new _h("Found empty contents");if(r!==Cp.QR_CODE)throw new _h("Can only encode QR_CODE, but got "+r);if(n<0||i<0)throw new _h("Requested dimensions are too small: "+n+"x"+i);var a=zg.L,s=t.QUIET_ZONE_SIZE;null!==o&&(void 0!==o.get(zy.ERROR_CORRECTION)&&(a=zg.fromString(o.get(zy.ERROR_CORRECTION).toString())),void 0!==o.get(zy.MARGIN)&&(s=Number.parseInt(o.get(zy.MARGIN).toString(),10)));var c=rb.encode(e,a,o);return t.renderResult(c,n,i,s)},t.renderResult=function(t,e,r,n){var i=t.getMatrix();if(null===i)throw new zp;for(var o=i.getWidth(),a=i.getHeight(),s=o+2*n,c=a+2*n,l=Math.max(e,s),u=Math.max(r,c),d=Math.min(Math.floor(l/s),Math.floor(u/c)),h=Math.floor((l-o*d)/2),p=Math.floor((u-a*d)/2),f=new rp(l,u),m=0,g=p;m<a;m++,g+=d)for(var v=0,y=h;v<o;v++,y+=d)1===i.get(v,m)&&f.setRegion(y,g,d,d);return f},t.QUIET_ZONE_SIZE=4}();var nb=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(t){function e(e,r,n,i,o,a,s,c){var l=t.call(this,a,s)||this;if(l.yuvData=e,l.dataWidth=r,l.dataHeight=n,l.left=i,l.top=o,i+a>r||o+s>n)throw new _h("Crop rectangle does not fit within image data.");return c&&l.reverseHorizontal(a,s),l}nb(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new _h("Requested row is outside the image: "+t);var r=this.getWidth();(null==e||e.length<r)&&(e=new Uint8ClampedArray(r));var n=(t+this.top)*this.dataWidth+this.left;return Oh.arraycopy(this.yuvData,n,e,0,r),e},e.prototype.getMatrix=function(){var t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.yuvData;var r=t*e,n=new Uint8ClampedArray(r),i=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return Oh.arraycopy(this.yuvData,i,n,0,r),n;for(var o=0;o<e;o++){var a=o*t;Oh.arraycopy(this.yuvData,i,n,a,t),i+=this.dataWidth}return n},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,r,n,i){return new e(this.yuvData,this.dataWidth,this.dataHeight,this.left+t,this.top+r,n,i,!1)},e.prototype.renderThumbnail=function(){for(var t=this.getWidth()/e.THUMBNAIL_SCALE_FACTOR,r=this.getHeight()/e.THUMBNAIL_SCALE_FACTOR,n=new Int32Array(t*r),i=this.yuvData,o=this.top*this.dataWidth+this.left,a=0;a<r;a++){for(var s=a*t,c=0;c<t;c++){var l=255&i[o+c*e.THUMBNAIL_SCALE_FACTOR];n[s+c]=4278190080|65793*l}o+=this.dataWidth*e.THUMBNAIL_SCALE_FACTOR}return n},e.prototype.getThumbnailWidth=function(){return this.getWidth()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.getThumbnailHeight=function(){return this.getHeight()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.reverseHorizontal=function(t,e){for(var r=this.yuvData,n=0,i=this.top*this.dataWidth+this.left;n<e;n++,i+=this.dataWidth)for(var o=i+t/2,a=i,s=i+t-1;a<o;a++,s--){var c=r[a];r[a]=r[s],r[s]=c}},e.prototype.invert=function(){return new mp(this)},e.THUMBNAIL_SCALE_FACTOR=2}(hp);var ib=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(t){function e(e,r,n,i,o,a,s){var c=t.call(this,r,n)||this;if(c.dataWidth=i,c.dataHeight=o,c.left=a,c.top=s,4===e.BYTES_PER_ELEMENT){for(var l=r*n,u=new Uint8ClampedArray(l),d=0;d<l;d++){var h=e[d],p=h>>16&255,f=h>>7&510,m=255&h;u[d]=(p+f+m)/4&255}c.luminances=u}else c.luminances=e;if(void 0===i&&(c.dataWidth=r),void 0===o&&(c.dataHeight=n),void 0===a&&(c.left=0),void 0===s&&(c.top=0),c.left+r>c.dataWidth||c.top+n>c.dataHeight)throw new _h("Crop rectangle does not fit within image data.");return c}ib(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new _h("Requested row is outside the image: "+t);var r=this.getWidth();(null==e||e.length<r)&&(e=new Uint8ClampedArray(r));var n=(t+this.top)*this.dataWidth+this.left;return Oh.arraycopy(this.luminances,n,e,0,r),e},e.prototype.getMatrix=function(){var t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.luminances;var r=t*e,n=new Uint8ClampedArray(r),i=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return Oh.arraycopy(this.luminances,i,n,0,r),n;for(var o=0;o<e;o++){var a=o*t;Oh.arraycopy(this.luminances,i,n,a,t),i+=this.dataWidth}return n},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,r,n,i){return new e(this.luminances,n,i,this.dataWidth,this.dataHeight,this.left+t,this.top+r)},e.prototype.invert=function(){return new mp(this)}}(hp);var ob=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const ab=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ob(e,t),e.forName=function(t){return this.getCharacterSetECIByName(t)},e}(Wh),sb=function(){function t(){}return t.ISO_8859_1=Wh.ISO8859_1,t}(),cb=function(){function t(){}return t.prototype.isCompact=function(){return this.compact},t.prototype.setCompact=function(t){this.compact=t},t.prototype.getSize=function(){return this.size},t.prototype.setSize=function(t){this.size=t},t.prototype.getLayers=function(){return this.layers},t.prototype.setLayers=function(t){this.layers=t},t.prototype.getCodeWords=function(){return this.codeWords},t.prototype.setCodeWords=function(t){this.codeWords=t},t.prototype.getMatrix=function(){return this.matrix},t.prototype.setMatrix=function(t){this.matrix=t},t}(),lb=function(){function t(){}return t.singletonList=function(t){return[t]},t.min=function(t,e){return t.sort(e)[0]},t}(),ub=function(){function t(t){this.previous=t}return t.prototype.getPrevious=function(){return this.previous},t}();var db=__webpack_require__(51266),hb=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();const pb=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.value=r,i.bitCount=n,i}return hb(e,t),e.prototype.appendTo=function(t,e){t.appendBits(this.value,this.bitCount)},e.prototype.add=function(t,r){return new e(this,t,r)},e.prototype.addBinaryShift=function(t,r){return db.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new e(this,t,r)},e.prototype.toString=function(){var t=this.value&(1<<this.bitCount)-1;return t|=1<<this.bitCount,"<"+Mh.toBinaryString(t|1<<this.bitCount).substring(1)+">"},e}(ub);var fb=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),mb=function(t){function e(e,r,n){var i=t.call(this,e,0,0)||this;return i.binaryShiftStart=r,i.binaryShiftByteCount=n,i}return fb(e,t),e.prototype.appendTo=function(t,e){for(var r=0;r<this.binaryShiftByteCount;r++)(0===r||31===r&&this.binaryShiftByteCount<=62)&&(t.appendBits(31,5),this.binaryShiftByteCount>62?t.appendBits(this.binaryShiftByteCount-31,16):0===r?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(e[this.binaryShiftStart+r],8)},e.prototype.addBinaryShift=function(t,r){return new e(this,t,r)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e}(pb);const gb=mb;function vb(t,e,r){return new pb(t,e,r)}var yb=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],bb=new pb(null,0,0),wb=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])],_b=function(t){var e,r;try{for(var n=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),i=n.next();!i.done;i=n.next()){var o=i.value;Fh.fill(o,-1)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return t[0][4]=0,t[1][4]=0,t[1][0]=28,t[3][4]=0,t[2][4]=0,t[2][0]=15,t}(Fh.createInt32Array(6,6)),Eb=function(){function t(t,e,r,n){this.token=t,this.mode=e,this.binaryShiftByteCount=r,this.bitCount=n}return t.prototype.getMode=function(){return this.mode},t.prototype.getToken=function(){return this.token},t.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},t.prototype.getBitCount=function(){return this.bitCount},t.prototype.latchAndAppend=function(e,r){var n=this.bitCount,i=this.token;if(e!==this.mode){var o=wb[this.mode][e];i=vb(i,65535&o,o>>16),n+=o>>16}var a=2===e?4:5;return new t(i=vb(i,r,a),e,0,n+a)},t.prototype.shiftAndAppend=function(e,r){var n=this.token,i=2===this.mode?4:5;return n=vb(n,_b[this.mode][e],i),new t(n=vb(n,r,5),this.mode,0,this.bitCount+i+5)},t.prototype.addBinaryShiftChar=function(e){var r=this.token,n=this.mode,i=this.bitCount;if(4===this.mode||2===this.mode){var o=wb[n][0];r=vb(r,65535&o,o>>16),i+=o>>16,n=0}var a=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,s=new t(r,n,this.binaryShiftByteCount+1,i+a);return 2078===s.binaryShiftByteCount&&(s=s.endBinaryShift(e+1)),s},t.prototype.endBinaryShift=function(e){if(0===this.binaryShiftByteCount)return this;var r=this.token;return new t(r=function(t,e,r){return new gb(t,e,r)}(r,e-this.binaryShiftByteCount,this.binaryShiftByteCount),this.mode,0,this.bitCount)},t.prototype.isBetterThanOrEqualTo=function(e){var r=this.bitCount+(wb[this.mode][e.mode]>>16);return this.binaryShiftByteCount<e.binaryShiftByteCount?r+=t.calculateBinaryShiftCost(e)-t.calculateBinaryShiftCost(this):this.binaryShiftByteCount>e.binaryShiftByteCount&&e.binaryShiftByteCount>0&&(r+=10),r<=e.bitCount},t.prototype.toBitArray=function(t){for(var e,r,n=[],i=this.endBinaryShift(t.length).token;null!==i;i=i.getPrevious())n.unshift(i);var o=new Lh;try{for(var a=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),s=a.next();!s.done;s=a.next())s.value.appendTo(o,t)}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return o},t.prototype.toString=function(){return Zh.format("%s bits=%d bytes=%d",yb[this.mode],this.bitCount,this.binaryShiftByteCount)},t.calculateBinaryShiftCost=function(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0},t.INITIAL_STATE=new t(bb,0,0,0),t}();const xb=Eb;var Ab=function(t){var e=Zh.getCharCode(" "),r=Zh.getCharCode("."),n=Zh.getCharCode(",");t[0][e]=1;for(var i=Zh.getCharCode("Z"),o=Zh.getCharCode("A"),a=o;a<=i;a++)t[0][a]=a-o+2;t[1][e]=1;var s=Zh.getCharCode("z"),c=Zh.getCharCode("a");for(a=c;a<=s;a++)t[1][a]=a-c+2;t[2][e]=1;var l=Zh.getCharCode("9"),u=Zh.getCharCode("0");for(a=u;a<=l;a++)t[2][a]=a-u+2;t[2][n]=12,t[2][r]=13;for(var d=["\0"," ","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","@","\\","^","_","`","|","~",""],h=0;h<d.length;h++)t[3][Zh.getCharCode(d[h])]=h;var p=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(h=0;h<p.length;h++)Zh.getCharCode(p[h])>0&&(t[4][Zh.getCharCode(p[h])]=h);return t}(Fh.createInt32Array(5,256)),Cb=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Sb=function(){function t(t){this.text=t}return t.prototype.encode=function(){for(var e=Zh.getCharCode(" "),r=Zh.getCharCode("\n"),n=lb.singletonList(xb.INITIAL_STATE),i=0;i<this.text.length;i++){var o=void 0,a=i+1<this.text.length?this.text[i+1]:0;switch(this.text[i]){case Zh.getCharCode("\r"):o=a===r?2:0;break;case Zh.getCharCode("."):o=a===e?3:0;break;case Zh.getCharCode(","):o=a===e?4:0;break;case Zh.getCharCode(":"):o=a===e?5:0;break;default:o=0}o>0?(n=t.updateStateListForPair(n,i,o),i++):n=this.updateStateListForChar(n,i)}var s=lb.min(n,(function(t,e){return t.getBitCount()-e.getBitCount()}));return s.toBitArray(this.text)},t.prototype.updateStateListForChar=function(e,r){var n,i,o=[];try{for(var a=Cb(e),s=a.next();!s.done;s=a.next()){var c=s.value;this.updateStateForChar(c,r,o)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t.simplifyStates(o)},t.prototype.updateStateForChar=function(t,e,r){for(var n=255&this.text[e],i=Ab[t.getMode()][n]>0,o=null,a=0;a<=4;a++){var s=Ab[a][n];if(s>0){if(null==o&&(o=t.endBinaryShift(e)),!i||a===t.getMode()||2===a){var c=o.latchAndAppend(a,s);r.push(c)}if(!i&&_b[t.getMode()][a]>=0){var l=o.shiftAndAppend(a,s);r.push(l)}}}if(t.getBinaryShiftByteCount()>0||0===Ab[t.getMode()][n]){var u=t.addBinaryShiftChar(e);r.push(u)}},t.updateStateListForPair=function(t,e,r){var n,i,o=[];try{for(var a=Cb(t),s=a.next();!s.done;s=a.next()){var c=s.value;this.updateStateForPair(c,e,r,o)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this.simplifyStates(o)},t.updateStateForPair=function(t,e,r,n){var i=t.endBinaryShift(e);if(n.push(i.latchAndAppend(4,r)),4!==t.getMode()&&n.push(i.shiftAndAppend(4,r)),3===r||4===r){var o=i.latchAndAppend(2,16-r).latchAndAppend(2,1);n.push(o)}if(t.getBinaryShiftByteCount()>0){var a=t.addBinaryShiftChar(e).addBinaryShiftChar(e+1);n.push(a)}},t.simplifyStates=function(t){var e,r,n,i,o=[];try{for(var a=Cb(t),s=a.next();!s.done;s=a.next()){var c=s.value,l=!0,u=function(t){if(t.isBetterThanOrEqualTo(c))return l=!1,"break";c.isBetterThanOrEqualTo(t)&&(o=o.filter((function(e){return e!==t})))};try{for(var d=(n=void 0,Cb(o)),h=d.next();!h.done&&"break"!==u(h.value);h=d.next());}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}l&&o.push(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return o},t}();const Db=Sb;var Ob=function(){function t(){}return t.encodeBytes=function(e){return t.encode(e,t.DEFAULT_EC_PERCENT,t.DEFAULT_AZTEC_LAYERS)},t.encode=function(e,r,n){var i,o,a,s,c,l=new Db(e).encode(),u=Mh.truncDivision(l.getSize()*r,100)+11,d=l.getSize()+u;if(n!==t.DEFAULT_AZTEC_LAYERS){if(i=n<0,(o=Math.abs(n))>(i?t.MAX_NB_BITS_COMPACT:t.MAX_NB_BITS))throw new _h(Zh.format("Illegal value %s for layers",n));var h=(a=t.totalBitsInLayer(o,i))-a%(s=t.WORD_SIZE[o]);if((c=t.stuffBits(l,s)).getSize()+u>h)throw new _h("Data to large for user specified layer");if(i&&c.getSize()>64*s)throw new _h("Data to large for user specified layer")}else{s=0,c=null;for(var p=0;;p++){if(p>t.MAX_NB_BITS)throw new _h("Data too large for an Aztec code");if(!(o=(i=p<=3)?p+1:p,d>(a=t.totalBitsInLayer(o,i))||(null!=c&&s===t.WORD_SIZE[o]||(s=t.WORD_SIZE[o],c=t.stuffBits(l,s)),h=a-a%s,i&&c.getSize()>64*s||!(c.getSize()+u<=h))))break}}var f,m=t.generateCheckWords(c,a,s),g=c.getSize()/s,v=t.generateModeMessage(i,o,g),y=(i?11:14)+4*o,b=new Int32Array(y);if(i)for(f=y,p=0;p<b.length;p++)b[p]=p;else{f=y+1+2*Mh.truncDivision(Mh.truncDivision(y,2)-1,15);var w=Mh.truncDivision(y,2),_=Mh.truncDivision(f,2);for(p=0;p<w;p++){var E=p+Mh.truncDivision(p,15);b[w-p-1]=_-E-1,b[w+p]=_+E+1}}for(var x=new rp(f),A=(p=0,0);p<o;p++){for(var C=4*(o-p)+(i?9:12),S=0;S<C;S++)for(var D=2*S,O=0;O<2;O++)m.get(A+D+O)&&x.set(b[2*p+O],b[2*p+S]),m.get(A+2*C+D+O)&&x.set(b[2*p+S],b[y-1-2*p-O]),m.get(A+4*C+D+O)&&x.set(b[y-1-2*p-O],b[y-1-2*p-S]),m.get(A+6*C+D+O)&&x.set(b[y-1-2*p-S],b[2*p+O]);A+=8*C}if(t.drawModeMessage(x,i,f,v),i)t.drawBullsEye(x,Mh.truncDivision(f,2),5);else for(t.drawBullsEye(x,Mh.truncDivision(f,2),7),p=0,S=0;p<Mh.truncDivision(y,2)-1;p+=15,S+=16)for(O=1&Mh.truncDivision(f,2);O<f;O+=2)x.set(Mh.truncDivision(f,2)-S,O),x.set(Mh.truncDivision(f,2)+S,O),x.set(O,Mh.truncDivision(f,2)-S),x.set(O,Mh.truncDivision(f,2)+S);var P=new cb;return P.setCompact(i),P.setSize(f),P.setLayers(o),P.setCodeWords(g),P.setMatrix(x),P},t.drawBullsEye=function(t,e,r){for(var n=0;n<r;n+=2)for(var i=e-n;i<=e+n;i++)t.set(i,e-n),t.set(i,e+n),t.set(e-n,i),t.set(e+n,i);t.set(e-r,e-r),t.set(e-r+1,e-r),t.set(e-r,e-r+1),t.set(e+r,e-r),t.set(e+r,e-r+1),t.set(e+r,e+r-1)},t.generateModeMessage=function(e,r,n){var i=new Lh;return e?(i.appendBits(r-1,2),i.appendBits(n-1,6),i=t.generateCheckWords(i,28,4)):(i.appendBits(r-1,5),i.appendBits(n-1,11),i=t.generateCheckWords(i,40,4)),i},t.drawModeMessage=function(t,e,r,n){var i=Mh.truncDivision(r,2);if(e)for(var o=0;o<7;o++){var a=i-3+o;n.get(o)&&t.set(a,i-5),n.get(o+7)&&t.set(i+5,a),n.get(20-o)&&t.set(a,i+5),n.get(27-o)&&t.set(i-5,a)}else for(o=0;o<10;o++)a=i-5+o+Mh.truncDivision(o,5),n.get(o)&&t.set(a,i-7),n.get(o+10)&&t.set(i+7,a),n.get(29-o)&&t.set(a,i+7),n.get(39-o)&&t.set(i-7,a)},t.generateCheckWords=function(e,r,n){var i,o,a=e.getSize()/n,s=new Hy(t.getGF(n)),c=Mh.truncDivision(r,n),l=t.bitsToWords(e,n,c);s.encode(l,c-a);var u=r%n,d=new Lh;d.appendBits(0,u);try{for(var h=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Array.from(l)),p=h.next();!p.done;p=h.next()){var f=p.value;d.appendBits(f,n)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return d},t.bitsToWords=function(t,e,r){var n,i,o=new Int32Array(r);for(n=0,i=t.getSize()/e;n<i;n++){for(var a=0,s=0;s<e;s++)a|=t.get(n*e+s)?1<<e-s-1:0;o[n]=a}return o},t.getGF=function(t){switch(t){case 4:return Bp.AZTEC_PARAM;case 6:return Bp.AZTEC_DATA_6;case 8:return Bp.AZTEC_DATA_8;case 10:return Bp.AZTEC_DATA_10;case 12:return Bp.AZTEC_DATA_12;default:throw new _h("Unsupported word size "+t)}},t.stuffBits=function(t,e){for(var r=new Lh,n=t.getSize(),i=(1<<e)-2,o=0;o<n;o+=e){for(var a=0,s=0;s<e;s++)(o+s>=n||t.get(o+s))&&(a|=1<<e-1-s);(a&i)===i?(r.appendBits(a&i,e),o--):0==(a&i)?(r.appendBits(1|a,e),o--):r.appendBits(a,e)}return r},t.totalBitsInLayer=function(t,e){return((e?88:112)+16*t)*t},t.DEFAULT_EC_PERCENT=33,t.DEFAULT_AZTEC_LAYERS=0,t.MAX_NB_BITS=32,t.MAX_NB_BITS_COMPACT=4,t.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]),t}();const Pb=Ob;!function(){function t(){}t.prototype.encode=function(t,e,r,n){return this.encodeWithHints(t,e,r,n,null)},t.prototype.encodeWithHints=function(e,r,n,i,o){var a=sb.ISO_8859_1,s=Pb.DEFAULT_EC_PERCENT,c=Pb.DEFAULT_AZTEC_LAYERS;return null!=o&&(o.has(zy.CHARACTER_SET)&&(a=ab.forName(o.get(zy.CHARACTER_SET).toString())),o.has(zy.ERROR_CORRECTION)&&(s=Mh.parseInt(o.get(zy.ERROR_CORRECTION).toString())),o.has(zy.AZTEC_LAYERS)&&(c=Mh.parseInt(o.get(zy.AZTEC_LAYERS).toString()))),t.encodeLayers(e,r,n,i,a,s,c)},t.encodeLayers=function(e,r,n,i,o,a,s){if(r!==Cp.AZTEC)throw new _h("Can only encode AZTEC, but got "+r);var c=Pb.encode(Zh.getBytes(e,o),a,s);return t.renderResult(c,n,i)},t.renderResult=function(t,e,r){var n=t.getMatrix();if(null==n)throw new zp;for(var i=n.getWidth(),o=n.getHeight(),a=Math.max(e,i),s=Math.max(r,o),c=Math.min(a/i,s/o),l=(a-i*c)/2,u=(s-o*c)/2,d=new rp(a,s),h=0,p=u;h<o;h++,p+=c)for(var f=0,m=l;f<i;f++,m+=c)n.get(f,h)&&d.setRegion(m,p,c,c);return d}}();var Ib,kb,Tb,Rb=__webpack_require__(51266);function Fb(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Nb(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function Mb(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Nb(o,n,i,a,s,"next",t)}function s(t){Nb(o,n,i,a,s,"throw",t)}a(void 0)}))}}var Bb,Lb=((Ib=class extends sh{connectedCallback(){var t=this;super.connectedCallback(),this.scannable=!1,navigator.mediaDevices&&Mb((function*(){try{var e=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});e&&(e.getTracks().forEach((t=>t.stop())),t.scannable=!0)}catch(t){Rb.warn("this device not support camera for barcode scan",t)}}))()}disconnectedCallback(){this.stopScan()}render(){return this.style.setProperty("--barcodescan-input-button-icon","url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAYBAMAAAAfR1CMAAADKGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFNjM4RURDQkQ1OUExMUU5QkExMkQ4NUY3NkMxNzBFOSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFNjM4RURDQ0Q1OUExMUU5QkExMkQ4NUY3NkMxNzBFOSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2MzhFREM5RDU5QTExRTlCQTEyRDg1Rjc2QzE3MEU5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2MzhFRENBRDU5QTExRTlCQTEyRDg1Rjc2QzE3MEU5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+55pr/QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAkUExURQAAAEdwTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEus/7UCWQwAAAALdFJOU9YAg3wKBFBDSz9PnvQNDgAAAE9JREFUGNNjEEQFDKLJSnCOklkgg9QUJFn3RgZhRyS+iCGDEIp2RSBfQICRkRGIgTSQL4jCF6ScvxsZYOFT2T50/6D7Fz080MMLPTzRwhsAHVspfelur08AAAAASUVORK5CYII=",")")),nt(kb||(kb=Fb(['\n <input\n type="text"\n .value=',"\n @change=","\n @keydown=","\n />\n <button\n ?hidden=",'\n id="scan-button"\n @click=',"\n ></button>\n\n <ox-popup\n @focusout=","\n >\n <video></video>\n </ox-popup>\n "])),this.value||"",(t=>this.onInputChange(t)),(t=>this.onInputKeyDown(t)),!this.scannable,(t=>{this.scan(t)}),(()=>{this.stopScan()}))}onInputChange(t){var e;t.stopPropagation(),this.englishOnly?this.value=this.input.value=null===(e=this.input.value)||void 0===e?void 0:e.replace(/[^\x00-\x7F]/g,""):this.value=this.input.value,this.selectAfterChange&&requestAnimationFrame((()=>{this.input.select()})),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}onInputKeyDown(t){if("Enter"!==t.key||t.isComposing){if(this.englishOnly&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&/^Key/.test(t.code)){t.stopPropagation(),t.preventDefault();var e=t.shiftKey?t.code.charAt(3):t.code.charAt(3).toLowerCase(),r=this.input.value,n=this.input.selectionStart||0,i=this.input.selectionEnd||n;this.input.value=[r.substring(0,n),e,r.substring(i)].join(""),this.input.setSelectionRange(n+1,n+1)}}else t.preventDefault(),this.input.dispatchEvent(new CustomEvent("change"))}scan(t){var e=this;return Mb((function*(){try{if(e.popup.open({}),yield e.updateComplete,e.stream=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}}),e.reader=new Ly,"none"!==getComputedStyle(e.popup).display&&e.stream){var t=yield e.reader.decodeOnceFromStream(e.stream,e.video),r=e.input;r.focus(),e.value=r.value=String(t),e.withoutEnter||r.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter"}))}else e.stopScan()}catch(t){Rb.warn(t)}finally{e.popup.close(),e.stopScan()}}))()}stopScan(){var t,e,r;null===(t=this.video)||void 0===t||t.pause(),null===(e=this.stream)||void 0===e||e.getTracks().forEach((t=>t.stop())),null===(r=this.reader)||void 0===r||r.reset(),delete this.stream,delete this.reader}}).styles=[S(Tb||(Tb=Fb(["\n :host {\n display: flex;\n align-items: center;\n border: none;\n }\n\n * {\n align-self: stretch;\n }\n\n *:focus {\n outline: none;\n }\n\n input {\n flex: 1;\n width: 10px; /* intentionally width set */\n border: 0;\n border-bottom: var(--border-dark-color);\n padding: var(--input-padding);\n padding-right: 35px;\n font: var(--input-font);\n color: var(--primary-text-color);\n }\n input:focus {\n outline: none;\n border-bottom: 1px solid var(--primary-color);\n }\n\n #scan-button {\n display: block;\n position: relative;\n margin-left: -30px;\n width: 30px;\n border: none;\n background: var(--barcodescan-input-button-icon) no-repeat center center;\n }\n\n #scan-button[hidden] {\n display: none;\n }\n\n ox-popup {\n position: fixed;\n\n width: 80vw;\n height: 80vh;\n transform: translate(10%, 10%);\n }\n\n video {\n width: 100%;\n height: 100%;\n }\n\n @media screen and (max-width: 460px) {\n ox-popup {\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n transform: translate(0%, 0%);\n }\n }\n "])))],Ib);(0,t.gn)([a({type:Boolean})],Lb.prototype,"scannable",void 0),(0,t.gn)([a({attribute:"without-enter",type:Boolean})],Lb.prototype,"withoutEnter",void 0),(0,t.gn)([a({type:String})],Lb.prototype,"value",void 0),(0,t.gn)([a({attribute:"english-only",type:Boolean})],Lb.prototype,"englishOnly",void 0),(0,t.gn)([a({attribute:"select-after-change",type:Boolean})],Lb.prototype,"selectAfterChange",void 0),(0,t.gn)([u()],Lb.prototype,"stream",void 0),(0,t.gn)([u()],Lb.prototype,"reader",void 0),(0,t.gn)([v("input")],Lb.prototype,"input",void 0),(0,t.gn)([v("ox-popup")],Lb.prototype,"popup",void 0),(0,t.gn)([v("video")],Lb.prototype,"video",void 0),Lb=(0,t.gn)([e("ox-input-barcode")],Lb);var jb,Vb,zb,Ub,Hb,Gb,qb,Wb=(t,e,r)=>{var n=t.filter,{englishOnly:i,selectAfterChange:o}=n.options||{};return nt(Bb||(Bb=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n <ox-input-barcode\n name=","\n ?english-only=","\n ?select-after-change=","\n .value=","\n @change=","\n ></ox-input-barcode>\n "])),t.name,i,o,null==e?"":e,(e=>{var r=e.target;r.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:r.value}}))}))},Yb=(t,e,r)=>{var n=t.filter,i=(null==n?void 0:n.type)||t.type;return nt(jb||(jb=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n <input\n type=","\n name=","\n .value=","\n @change=","\n />\n "])),i,t.name,null==e?"":e,(e=>{var r=e.target;r.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:r.value}}))}))},Xb=(t,e,r)=>{var n=t.filter,[i,o]=e instanceof Array?e:[],a=(null==n?void 0:n.type)||t.type;return"datetime"===a&&(a="datetime-local"),nt(Vb||(Vb=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n <input\n name=","\n type=","\n .value=","\n from\n @keyup=","\n />\n ~\n <input\n name=","\n type=","\n .value=","\n to\n @keyup=","\n />\n "])),t.name,a,i,(e=>{"Enter"===e.key&&e.target.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:Array.from(e.target.parentElement.querySelectorAll("input[from], input[to]")).map((t=>t.value))}}))}),t.name,a,o,(e=>{"Enter"===e.key&&e.target.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:Array.from(e.target.parentElement.querySelectorAll("input[from], input[to]")).map((t=>t.value))}}))}))},$b=(t,e,r)=>{var n=t.filter,[i,o]=((null==n?void 0:n.type)||t.type,e instanceof Array?e:[]);return nt(zb||(zb=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n <input\n name=",'\n type="number"\n placeholder="minimum"\n .value=',"\n from\n @keyup=","\n />\n ~\n <input\n name=",'\n type="number"\n placeholder="maximum"\n .value=',"\n to\n @keyup=","\n />\n "])),t.name,i,(e=>{"Enter"===e.key&&e.target.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:Array.from(e.target.parentElement.querySelectorAll("input[from], input[to]")).map((t=>t.value))}}))}),t.name,o,(e=>{"Enter"===e.key&&e.target.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:Array.from(e.target.parentElement.querySelectorAll("input[from], input[to]")).map((t=>t.value))}}))}))};function Qb(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Kb=((Ub=class extends sh{constructor(){super(...arguments),this.value=[],this.options=[],this.multiple=!1}render(){var t=this.options.filter((t=>!!t.value)),e=this.value instanceof Array?this.value:"string"==typeof this.value?[this.value]:[];return nt(Hb||(Hb=Qb(["\n ","\n "])),(t||[]).map((t=>{var{display:r,value:n}=t;return nt(Gb||(Gb=Qb(["\n <span data-value="," ?selected="," @click=","\n >","</span\n >\n "])),n,e.includes(n),(t=>this.onClick(t)),r)})))}onClick(t){t.stopPropagation();var e=t.target.getAttribute("data-value");if(this.multiple){var r=this.value instanceof Array?this.value:"string"==typeof this.value?[this.value]:[],n=(this.value||[]).indexOf(e);-1!=n?r.splice(n,1):r.push(e),this.value=[...r]}else this.value=this.value===e?void 0:e;this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:this.value}))}}).styles=S(qb||(qb=Qb(["\n :host {\n display: flex;\n flex-flow: row;\n flex-wrap: wrap;\n gap: var(--margin-default);\n }\n\n span {\n border-radius: 9999px;\n background-color: #efefef;\n padding: 2px 10px;\n }\n\n span[selected] {\n background-color: var(--focus-background-color, #38a25b);\n color: var(--focus-color, #efefef);\n }\n "]))),Ub);(0,t.gn)([a({type:Array})],Kb.prototype,"value",void 0),(0,t.gn)([a({type:Array})],Kb.prototype,"options",void 0),(0,t.gn)([a({type:Boolean})],Kb.prototype,"multiple",void 0),Kb=(0,t.gn)([e("ox-input-select-buttons")],Kb);var Zb,Jb,tw,ew,rw,nw=__webpack_require__(51266),iw=__webpack_require__(51266);function ow(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var aw,sw,cw,lw,uw,dw,hw,pw,fw,mw,gw,vw,yw,bw,ww,_w,Ew,xw={string:[Yb],text:[Yb],email:[Yb],tel:[Yb],integer:[Yb,$b],float:[Yb,$b],number:[Yb,$b],select:[(t,e,r)=>{var n=t.filter,i=null==n?void 0:n.operator,o=(null==n?void 0:n.options)||t.record.options||[];return"function"==typeof o&&((null==n?void 0:n.options)||iw.warn("ox-grist의 column.filter 속성에서는 column.record.options의 함수형 options을 사용할 수 없으므로, filter 속성에서 재지정해야한다."),o=o.call(t,r)),o=o.map((t=>{switch(typeof t){case"string":return{display:t,value:t};case"object":return{display:t.display,value:t.value};default:return t}})),"in"===i?nt(Jb||(Jb=ow(["\n ","\n "])),null==o?void 0:o.filter((t=>!!t)).map((t=>nt(tw||(tw=ow([" <ox-checkbox option value=",">","</ox-checkbox> "])),t.value,t.display)))):nt(ew||(ew=ow(["\n ","\n "])),null==o?void 0:o.map((t=>nt(rw||(rw=ow([" <div option value=",">","&nbsp;</div> "])),t.value,t.display))))}],"select-buttons":[(t,e,r)=>{var n=t.filter,i=null==n?void 0:n.operator,o=(null==n?void 0:n.options)||t.record.options||[];return"function"==typeof o&&((null==n?void 0:n.options)||nw.warn("ox-grist의 column.filter 속성에서는 column.record.options의 함수형 options을 사용할 수 없으므로, filter 속성에서 재지정해야한다."),o=o.call(t,r)),o=o.map((t=>{switch(typeof t){case"string":return{display:t,value:t};case"object":return{display:t.display,value:t.value};default:return t}})),nt(Zb||(Zb=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n <ox-input-select-buttons\n name=","\n .value=","\n .options=","\n ?multiple=","\n @change=","\n ></ox-input-select-buttons>\n "])),t.name,e,o,"in"===i,(e=>{e.target.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:t.name,operator:n.operator,value:e.target.value}}))}))}],boolean:[dh],checkbox:[dh],month:[Yb,Xb],week:[Yb,Xb],date:[Yb,Xb],time:[Yb,Xb],datetime:[Yb,Xb],color:[Yb],progress:[Yb,$b],link:[Yb],image:[Yb],json5:[Yb],scanner:[Wb],barcode:[Wb]};function Aw(t){return"function"==typeof t?t:xw[t||"text"]||[Yb]}function Cw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Sw,Dw,Ow,Pw=class extends At{constructor(){super(...arguments),this.columns=zd,this.data=Wd,this.sorters=[],this.filters=[]}connectedCallback(){super.connectedCallback();var t=("ox-grist",function t(e){return e&&e!==document&&e!==window?(e.assignedSlot&&(e=e.assignedSlot),e.closest("ox-grist")||t(e.getRootNode().host)):null}(this));null==this||this.addEventListener("filter-change",(e=>{var{name:r,operator:n,value:i}=e.detail,o=this.filters instanceof Array?[...this.filters]:[];if(null==i){var a=o.findIndex((t=>t.name===r));if(-1===a)return;o.splice(a,1)}else{var s=o.findIndex((t=>t.name===r));-1===s?o.push({name:r,operator:n,value:i}):o.splice(s,1,{name:r,operator:n,value:i})}null==t||t.dispatchEvent(new CustomEvent("fetch-params-change",{detail:{filters:o,from:"data-grid-header"}}))}))}render(){var t=this.columns||[];return nt(aw||(aw=Cw(["\n ","\n\n <div column></div>\n "])),t.map(((t,e)=>t.hidden?void 0:nt(sw||(sw=Cw(["\n <div ?gutter="," column>\n <span\n for-title\n @click=","\n @mouseover=","\n @mouseout=","\n >","\n </span>\n\n ","\n ","\n ","\n </div>\n "])),"gutter"==t.type,(e=>this._changeSort(t)),(t=>{var e=t.target;Gi(e)&&e.setAttribute("data-tooltip",e.textContent.trim())}),(t=>{t.target.removeAttribute("data-tooltip")}),this._renderHeader(t),t.sortable?nt(cw||(cw=Cw(["\n <span sorter @click=",">\n ","\n </span>\n "])),(e=>this._changeSort(t)),this._renderSortHeader(t)):void 0,t.filter&&"search"!==t.filter.operator?nt(lw||(lw=Cw([" <span filter> "," </span> "])),this._renderFilterHeader(t)):void 0,!1!==t.resizable?nt(uw||(uw=Cw(['\n <span splitter draggable="false" @mousedown=',"\n >&nbsp;</span\n >\n "])),(t=>this._mousedown(t,e))):void 0))))}_renderHeader(t){var{renderer:e}=t.header||{},r=e.call(this,t);return nt(dw||(dw=Cw([" "," "])),r)}_renderSortHeader(t){var e=this.sorters||[],r=e.find((e=>"gutter"!==t.type&&t.name==e.name));if(!r)return nt(hw||(hw=Cw([""])));if(e.length>1){var n=e.indexOf(r)+1;return r.desc?nt(pw||(pw=Cw([" <mwc-icon>keyboard_arrow_down</mwc-icon><sub>","</sub> "])),n):nt(fw||(fw=Cw([" <mwc-icon>keyboard_arrow_up</mwc-icon><sub>","</sub> "])),n)}return r.desc?nt(mw||(mw=Cw([" <mwc-icon>keyboard_arrow_down</mwc-icon> "]))):nt(gw||(gw=Cw([" <mwc-icon>keyboard_arrow_up</mwc-icon> "])))}_renderFilterHeader(t){var e,r=t.name,n=t.filter,i=n.type,o=null===(e=this.filters.find((t=>t.name===r)))||void 0===e?void 0:e.value,a="between"===n.operator?1:0,s=Aw(i)[a];return nt(vw||(vw=Cw(["\n <mwc-icon\n @click=","\n >filter_alt</mwc-icon\n >\n\n ","\n "])),(t=>{var e=t.target.closest("[column]"),r=e.querySelector("ox-popup, ox-popup-list"),n=e.offsetTop+e.offsetHeight,i=this.clientWidth-(e.offsetLeft+e.offsetWidth-this.scrollLeft);null==r||r.open({right:i,top:n})}),s?"select"!==i?nt(bw||(bw=Cw([" <ox-popup\n ><div filter-title><mwc-icon>filter_alt</mwc-icon> filter by <strong>","</strong></div>\n ","</ox-popup\n >"])),t.name,s(t,o,this)):"in"===n.operator?nt(ww||(ww=Cw(['<ox-popup-list\n multiple\n attr-selected="checked"\n .value=',"\n with-search\n @select=",'\n ><div filter-title slot="header">\n <mwc-icon>filter_alt</mwc-icon> filter by <strong>',"</strong>\n </div>\n ","</ox-popup-list\n >"])),o,(t=>{var e;return null===(e=t.target)||void 0===e?void 0:e.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:r,operator:n.operator,value:t.detail?t.detail instanceof Array&&0===t.detail.length?void 0:t.detail:void 0}}))}),t.name,s(t,o,this)):nt(_w||(_w=Cw(["<ox-popup-list\n .value=","\n with-search\n @select=",'\n ><div filter-title slot="header">\n <mwc-icon>filter_alt</mwc-icon> filter by <strong>',"</strong>\n </div>\n ","</ox-popup-list\n >"])),o,(t=>{var e;return null===(e=t.target)||void 0===e?void 0:e.dispatchEvent(new CustomEvent("filter-change",{bubbles:!0,composed:!0,detail:{name:r,operator:n.operator,value:t.detail?t.detail:void 0}}))}),t.name,s(t,o,this)):nt(yw||(yw=Cw([""]))))}_changeSort(t){if(t.sortable){var e=[...this.sorters],r=e.findIndex((e=>e.name==t.name));if(-1!==r){var n=e[r];n.desc?e.splice(r,1):n.desc=!0}else{var i={name:t.name};e.push(i)}this.sorters=e,this.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{sorters:this.sorters,from:"data-grid-header"}}))}}_accumalate(t){var e;return this._lastAccVal=(null!==(e=this._lastAccVal)&&void 0!==e?e:0)+t,this._lastAccVal}_notifyWidthChange(t,e){this._throttledNotifier||(this._throttledNotifier=Kd(((t,e)=>{this.dispatchEvent(new CustomEvent("column-width-change",{bubbles:!0,composed:!0,detail:{idx:t,width:e}})),this._lastAccVal=0}),100)),this._throttledNotifier(t,e)}_mousedown(t,e){t.stopPropagation(),t.preventDefault();var r=(t=>{t.stopPropagation(),t.preventDefault();var r=this.columns[e],n=Math.max(0,Number(r.width)+this._accumalate(t.movementX));0!=n&&this._notifyWidthChange(e,n)}).bind(this),n=(t=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",n),r(t)}).bind(this);document.addEventListener("mousemove",r),document.addEventListener("mouseup",n)}};function Iw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Pw.styles=[ah,cl,S(Ew||(Ew=Cw(["\n :host {\n display: grid;\n grid-template-columns: var(--grid-template-columns);\n\n overflow: hidden;\n }\n\n div[column] {\n display: flex;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: var(--grid-header-background-color);\n border-top: var(--grid-header-top-border);\n border-bottom: var(--grid-header-bottom-border);\n padding: var(--grid-header-padding);\n\n text-overflow: ellipsis;\n font: var(--grid-header-font);\n color: var(--grid-header-color);\n }\n\n div[gutter] {\n padding: var(--padding-default) 0 var(--padding-narrow) 0;\n text-align: center;\n }\n\n span {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n }\n\n span[for-title] {\n flex: 1;\n text-overflow: ellipsis;\n line-height: 1.6;\n text-transform: capitalize;\n }\n span[for-title] mwc-icon {\n font-size: var(--grid-record-fontsize);\n }\n\n span[sorter],\n span[filter] {\n padding: 0;\n border: 0;\n }\n span[sorter] mwc-icon {\n font-size: var(--grid-header-sorter-size);\n }\n\n span[filter] > mwc-icon {\n font-size: var(--fontsize-default);\n line-height: 20px;\n }\n\n span[splitter] {\n cursor: col-resize;\n border-right: var(--grid-header-splitter-border);\n margin-right: 0;\n }\n span[splitter]:hover {\n border-right: var(--grid-header-splitter-border-hover);\n }\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 0 0 0;\n zoom: var(--grist-input-zoom);\n }\n [filter-title] {\n color: var(--grid-header-filter-title-color);\n font: var(--grid-header-filter-title-font);\n text-transform: capitalize;\n }\n [filter-title] * {\n vertical-align: middle;\n }\n [filter-title] mwc-icon {\n opacity: 0.7;\n color: var(--grid-header-filter-title-icon-color);\n }\n [filter] input[type='checkbox'] {\n margin-left: 10px;\n margin-bottom: 5px;\n }\n\n @media print {\n :host {\n grid-template-columns: var(--grid-template-print-columns);\n }\n }\n "])))],(0,t.gn)([a({type:Array})],Pw.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],Pw.prototype,"data",void 0),(0,t.gn)([a({type:Object})],Pw.prototype,"sorters",void 0),(0,t.gn)([a({type:Object})],Pw.prototype,"filters",void 0),Pw=(0,t.gn)([e("ox-grid-header")],Pw);var kw="left",Tw=class extends At{constructor(){super(...arguments),this.align=kw,this.record={},this.column=Ud,this.rowIndex=0,this.columnIndex=0,this.editing=!1,this.value={},this.emphasized=!1,this._onFieldChange=t=>{},this._onKeydownInEditingMode=t=>{}}get isEditing(){return this.hasAttribute("editing")}render(){if(!this.column)return nt(Sw||(Sw=Iw([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i,editor:o}=e.record;return nt(Dw||(Dw=Iw(["\n ","\n "])),this.isEditing?null==o?void 0:o.call(this,t,e,r,n,this):null==i?void 0:i.call(this,t,e,r,n,this))}updated(t){var e;if(t.has("editing")&&(this.isEditing?(this._onKeydownInEditingMode=(t=>{"Esc"!==t.key&&"Escape"!==t.key||(this._editCancelled=!0)}).bind(this),this._onFieldChange=(t=>{this._editCancelled&&t.stopPropagation()}).bind(this),delete this._editCancelled,this.addEventListener("field-change",this._onFieldChange),this.addEventListener("keydown",this._onKeydownInEditingMode)):(this.removeEventListener("field-change",this._onFieldChange),this.removeEventListener("keydown",this._onKeydownInEditingMode))),t.has("column")){var r=this.column.record.align||kw;if(r!=kw){var n="center";"right"===r&&(n="flex-end"),this.style.setProperty("--data-grid-field-justify-content",n),this.style.setProperty("--data-grid-field-text-align",r)}}var i=(null===(e=this.column.record.classifier.call(this,this.record,this.rowIndex))||void 0===e?void 0:e.emphasized)||this.emphasized;if(i){if(this.setAttribute("emphasized-row",""),Symbol.iterator in Object(i)){var[o,a]=i;o&&this.style.setProperty("--grid-record-emphasized-background-color",o),a&&this.style.setProperty("--grid-record-emphasized-color",a)}}else this.removeAttribute("emphasized-row")}};function Rw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rw(Object(r),!0).forEach((function(e){Nw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Tw.styles=[cl,S(Ow||(Ow=Iw(["\n :host {\n display: flex;\n\n align-items: center;\n justify-content: var(--data-grid-field-justify-content, flex-start);\n position: relative;\n\n white-space: nowrap;\n background-color: var(--grid-record-background-color);\n padding: var(--grid-record-padding);\n border: 1px solid transparent;\n border-width: 1px 0;\n border-bottom: var(--grid-record-border-bottom);\n\n font-size: var(--grid-record-wide-fontsize);\n min-height: 19px;\n }\n :host([gutter]) {\n padding: var(--padding-default) 0;\n text-align: center;\n }\n :host([gutter]) * {\n cursor: default;\n }\n\n :host([editing]) {\n border-top: var(--grid-record-editing-border);\n border-bottom: var(--grid-record-editing-border);\n }\n\n :host([focused]) {\n --grid-record-border-bottom: var(--grid-record-focused-cell-border);\n }\n\n :host([dirty])::after {\n content: '';\n position: absolute;\n right: 0;\n top: 0;\n\n width: 0px;\n height: 0px;\n border-top: 9px solid red;\n border-left: 9px solid transparent;\n }\n\n span,\n pre {\n display: block;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n * {\n margin: 0;\n text-align: var(--data-grid-field-text-align);\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n\n input[type='checkbox'],\n input[type='radio'] {\n margin-top: 3px;\n zoom: var(--grist-input-zoom);\n }\n "])))],(0,t.gn)([a({type:String,attribute:!0})],Tw.prototype,"align",void 0),(0,t.gn)([a({type:Object})],Tw.prototype,"record",void 0),(0,t.gn)([a({type:Object})],Tw.prototype,"column",void 0),(0,t.gn)([a({type:Number})],Tw.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Number})],Tw.prototype,"columnIndex",void 0),(0,t.gn)([a({type:Boolean,attribute:"editing"})],Tw.prototype,"editing",void 0),(0,t.gn)([a({type:Object})],Tw.prototype,"value",void 0),(0,t.gn)([a({type:Boolean})],Tw.prototype,"emphasized",void 0),Tw=(0,t.gn)([e("ox-grid-field")],Tw);var Mw=function(t,e,r,n,i,o){var a=document.createElement("ox-record-view");return a.columns=t,a.record=e,a.rowIndex=r,document.dispatchEvent(new CustomEvent("open-popup",{detail:{template:a,options:Fw({backdrop:!0,size:"large",title:e.name},i),callback:t=>{a.addEventListener("field-change",(t=>{n.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:t.detail}))})),a.addEventListener("reset",(t=>{n.dispatchEvent(new CustomEvent("record-reset",{bubbles:!0,composed:!0,detail:{record:e,row:r}}))})),a.addEventListener("cancel",(i=>{n.dispatchEvent(new CustomEvent("record-reset",{bubbles:!0,composed:!0,detail:{record:e,row:r}})),t.close()})),a.addEventListener("ok",(e=>{t.close()})),t.onclosed=o}}})),a},Bw=!1;try{var Lw=Object.defineProperty({},"passive",{get:function(){Bw=!0}});window.addEventListener("testPassive",(()=>{}),Lw),window.removeEventListener("testPassive",(()=>{}),Lw)}catch(t){}var jw=__webpack_require__(41242),Vw=__webpack_require__.n(jw);const zw=function(t){return t==t&&!Qi(t)},Uw=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},Hw=function(t){var e=function(t){for(var e=bc(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,zw(i)]}return e}(t);return 1==e.length&&e[0][2]?Uw(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var s=r[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var c=(s=r[i])[0],l=t[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in t))return!1}else{var d=new Ds;if(n)var h=n(l,u,c,t,e,d);if(!(void 0===h?Hc(u,l,3,n,d):h))return!1}}return!0}(r,t,e)}};var Gw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qw=/^\w*$/;const Ww=function(t,e){if(Vo(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!fo(t))||qw.test(t)||!Gw.test(t)||null!=e&&t in Object(e)};function Yw(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Yw.Cache||Cs),r}Yw.Cache=Cs;const Xw=Yw;var $w=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qw=/\\(\\)?/g;const Kw=function(t){var e=Xw(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace($w,(function(t,r,n,i){e.push(n?i.replace(Qw,"$1"):r||t)})),e})),Zw=function(t,e){return Vo(t)?t:Ww(t,e)?[t]:Kw(Go(t))},Jw=function(t){if("string"==typeof t||fo(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},t_=function(t,e){for(var r=0,n=(e=Zw(e,t)).length;null!=t&&r<n;)t=t[Jw(e[r++])];return r&&r==n?t:void 0},e_=function(t,e){return null!=t&&e in Object(t)},r_=function(t,e){return null!=t&&function(t,e,r){for(var n=-1,i=(e=Zw(e,t)).length,o=!1;++n<i;){var a=Jw(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&ec(i)&&tc(a,i)&&(Vo(t)||Xs(t))}(t,e,e_)},n_=function(t,e){return Ww(t)&&zw(e)?Uw(Jw(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:t_(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?r_(r,t):Hc(e,n,3)}},i_=function(t){return t},o_=function(t){return Ww(t)?(e=Jw(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return t_(e,t)}}(t);var e},a_=function(){try{var t=gs(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var s_=Object.prototype.hasOwnProperty;const c_=function(t,e,r){var n=t[e];s_.call(t,e)&&Za(n,r)&&(void 0!==r||e in t)||function(t,e,r){"__proto__"==e&&a_?a_(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}(t,e,r)},l_=function(t,e,r,n){if(!Qi(t))return t;for(var i=-1,o=(e=Zw(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var c=Jw(e[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=a){var u=s[c];void 0===(l=n?n(u,c,s):void 0)&&(l=Qi(u)?u:tc(e[i+1])?[]:{})}c_(s,c,l),s=s[c]}return t},u_=fc(Object.getPrototypeOf,Object),d_=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Ls(e,Hs(t)),t=u_(t);return e}:Vs;var h_=Object.prototype.hasOwnProperty;const p_=function(t){if(!Qi(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=pc(t),r=[];for(var n in t)("constructor"!=n||!e&&h_.call(t,n))&&r.push(n);return r},f_=function(t){return yc(t)?dc(t,!0):p_(t)},m_=function(t,e){if(null==t)return{};var r,n=jo(function(t){return js(t,f_,d_)}(t),(function(t){return[t]}));return e="function"==typeof(r=e)?r:null==r?i_:"object"==typeof r?Vo(r)?n_(r[0],r[1]):Hw(r):o_(r),function(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],s=t_(t,a);r(s,a)&&l_(o,Zw(a,t),s)}return o}(t,n,(function(t,r){return e(t,r[0])}))};var g_,v_,y_,b_,w_,__,E_,x_=S(g_||(g_=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n :host {\n display: grid;\n grid-template-columns: var(--grid-template-columns);\n grid-auto-rows: var(--grid-record-height, min-content);\n\n overflow: auto;\n outline: none;\n color: var(--grid-record-color);\n position: relative;\n }\n\n [odd] {\n background-color: var(--grid-record-odd-background-color);\n }\n\n [selected-row] {\n background-color: var(--grid-record-selected-background-color);\n color: var(--grid-record-selected-color);\n }\n\n [focused-row] {\n box-shadow: var(--grid-record-focused-box-shadow);\n font-weight: bold;\n color: var(--grid-record-focused-color);\n background-image: var(--focused-background-image);\n background-blend-mode: darken;\n }\n\n [focused] {\n border: var(--grid-record-focused-cell-border);\n }\n\n [emphasized-row],\n [emphasized-row][focused] {\n background-color: var(--grid-record-emphasized-background-color);\n color: var(--grid-record-emphasized-color);\n }\n\n [editing] {\n background-color: var(--grid-record-editing-background-color);\n }\n\n @media print {\n :host {\n grid-template-columns: var(--grid-template-print-columns);\n }\n [focused] {\n border: none;\n }\n\n [selected-row] {\n background-color: transparent;\n }\n\n [emphasized-row] {\n background-color: transparent;\n color: initial;\n }\n\n [focused-row] {\n background-color: transparent;\n color: initial;\n }\n\n [editing] {\n background-color: transparent;\n }\n }\n"])));function A_(t){if(t.stopPropagation(),!this.editTarget){var e=t.target.closest("ox-grid-field"),{column:r,record:n,rowIndex:i,columnIndex:o}=e||{};if(r){if(r){var{click:a}=r.handlers;a&&a(this.columns,this.data,r,n,i,e)}var{click:s}=this.config.rows.handlers;s&&s(this.columns,this.data,r,n,i,e)}}}function C_(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function S_(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){C_(o,n,i,a,s,"next",t)}function s(t){C_(o,n,i,a,s,"throw",t)}a(void 0)}))}}function D_(t){return O_.apply(this,arguments)}function O_(){return(O_=S_((function*(t){if(t.stopPropagation(),!this.editTarget){var e=t.target.closest("ox-grid-field"),{column:r,record:n,rowIndex:i,columnIndex:o}=e||{};if(r){var{dblclick:a}=r.handlers;a&&a(this.columns,this.data,r,n,i,e);var{dblclick:s}=this.config.rows.handlers;s&&s(this.columns,this.data,r,n,i,e)}}}))).apply(this,arguments)}function P_(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function I_(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){P_(o,n,i,a,s,"next",t)}function s(t){P_(o,n,i,a,s,"throw",t)}a(void 0)}))}}function k_(t){return T_.apply(this,arguments)}function T_(){return(T_=I_((function*(t){var e=t.key,{row:r=0,column:n=0}=this.focused||{},{records:i=[]}=this.data||{},o=this.config.rows.appendable?i.length:i.length-1,a=(this.columns||[]).filter((t=>!t.hidden)).length-1;if(this.editTarget)switch(e){case"Escape":case"Esc":case"Enter":return this.editTarget=null,void this.focus();case"Tab":this.editTarget=null,n=t.shiftKey?Math.max(0,n-1):Math.min(a,n+1),this.focus();break;case"PageUp":case"PageDown":case"End":case"Home":break;default:if(t.metaKey||t.ctrlKey)switch(t.key){case"c":var s=window.getSelection();s&&s.anchorNode&&"Range"==s.type||(this.copy(),t.preventDefault());break;case"v":this.paste()}return}else switch(e){case"Up":case"ArrowUp":if(t.shiftKey){var{start:c}=this._selectBlock||{},l=this.focusedField;l&&l.rowIndex>0&&this.setSelectBlock(c||l,this.getFieldByIndex(l.rowIndex-1,l.columnIndex))}else this.setSelectBlock(),r=t.metaKey||t.ctrlKey?0:Math.max(0,r-1);break;case"Down":case"ArrowDown":if(t.shiftKey){var{start:u}=this._selectBlock||{},d=this.focusedField;if(d){var h=this.getFieldByIndex(d.rowIndex+1,d.columnIndex);h&&this.setSelectBlock(u||d,h)}}else this.setSelectBlock(),r=t.metaKey||t.ctrlKey?o:Math.min(o,r+1);break;case"Enter":return this.setSelectBlock(),void this.startEditTarget(r,n);case"Left":case"ArrowLeft":case"Backspace":if(t.shiftKey){var{start:p}=this._selectBlock||{},f=this.focusedField;f&&f.columnIndex>0&&this.setSelectBlock(p||f,this.getFieldByIndex(f.rowIndex,f.columnIndex-1))}else this.setSelectBlock(),n=t.metaKey||t.ctrlKey?0:Math.max(0,n-1);break;case"Right":case"ArrowRight":if(t.shiftKey){var{start:m}=this._selectBlock||{},g=this.focusedField;if(g){var v=this.getFieldByIndex(g.rowIndex,g.columnIndex+1,!1);v&&this.setSelectBlock(m||g,v)}}else this.setSelectBlock(),n=t.metaKey||t.ctrlKey?a:Math.min(a,n+1);break;case"Tab":this.editTarget=null,this.setSelectBlock(),n=t.shiftKey?Math.max(0,n-1):Math.min(a,n+1),this.focus();break;case"PageUp":this.setSelectBlock(),r=Math.max(0,r-10);break;case"PageDown":case" ":this.setSelectBlock(),r=Math.min(o,r+10);break;case"Esc":case"Escape":return void this.setSelectBlock();case"End":this.setSelectBlock(),r=o;break;case"Home":this.setSelectBlock(),r=0;break;default:if(t.metaKey||t.ctrlKey)switch(t.key){case"c":var y=window.getSelection();y&&y.anchorNode&&"Range"==y.type||(this.copy(),t.preventDefault());break;case"v":this.paste()}else 1===e.length&&(this.setSelectBlock(),this.startEditTarget(r,n));return}this.focused&&this.focused.row===r&&this.focused.column===n||this.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:r,column:n}})),t.preventDefault()}))).apply(this,arguments)}function R_(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function F_(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){R_(o,n,i,a,s,"next",t)}function s(t){R_(o,n,i,a,s,"throw",t)}a(void 0)}))}}function N_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var M_,B_,L_,j_={row:0,column:0},V_=class extends At{constructor(){super(...arguments),this.debounce=Eo(((t,e)=>{var r,n=Math.ceil(e/41),i=Math.max(0,Math.floor(t/41)-3*n),o=Math.min((null===(r=this.data.records)||void 0===r?void 0:r.length)||0,i+7*n);this.from=i,this.to=o}),300),this.config=Hd,this.columns=[],this.data=Wd,this.focused=j_,this.editTarget=null,this.from=-1,this.to=-1}resetEdit(){this.editTarget=null}handleOnScroll(t){var{scrollTop:e,clientHeight:r}=t.target;this.debounce(e,r)}render(){var{row:t,column:e}=this.focused||{},{row:r,column:n}=this.editTarget||{},i=this.columns.filter((t=>!t.hidden)),o=this.data,{records:a}=o,{appendable:s,classifier:c}=this.config.rows,{start:l,end:u}=this._selectBlock||{};return s&&(a=[...a,{__dirty__:"+"}]),nt(v_||(v_=N_(["\n ","\n ","\n <slot></slot>\n "])),a.map(((a,s)=>{var l=s===t,u=a.__selected__,d=s%2,h=a.__dirtyfields__||{},{emphasized:p}=c.call(null,a,s)||{};return nt(y_||(y_=N_(["\n ","\n <ox-grid-field\n .data=","\n .rowIndex=","\n .record=","\n .emphasized=","\n ?odd=","\n ?focused-row=","\n ?selected-row=","\n ></ox-grid-field>\n "])),i.map(((i,c)=>nt(b_||(b_=N_(["\n <ox-grid-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n .emphasized=","\n ?gutter=","\n ?odd=","\n ?focused-row=","\n ?selected-row=","\n ?focused=","\n ?editing=","\n .value=","\n ?dirty=","\n ></ox-grid-field>\n "])),o,s,c,i,a,p,"gutter"==i.type,d,l,u,s===t&&c===e,s===r&&c===n,a[i.name],!!h[i.name]))),o,s,a,p,d,l,u)})),nt(l&&u&&l!==u?w_||(w_=N_([" <div select-block></div> "])):__||(__=N_([""]))))}firstUpdated(){var t=this;this.setAttribute("tabindex","-1"),this.addEventListener("focusout",(t=>{this._focusedListener&&(this.removeEventListener("keydown",this._focusedListener),delete this._focusedListener)})),this.addEventListener("focusin",(t=>{this._focusedListener||(this._focusedListener=k_.bind(this),this.addEventListener("keydown",this._focusedListener))})),this.addEventListener("set-select-block",function(){var e=F_((function*(e){e.stopPropagation();var{startRow:r=-1,startColumn:n=-1,endRow:i=-1,endColumn:o=-1}=e.detail||{},a=t.getFieldByIndex(r,n),s=t.getFieldByIndex(i,o);t.setSelectBlock(a,s)}));return function(t){return e.apply(this,arguments)}}()),this.renderRoot.addEventListener("mousedown",(t=>{var e=t;if(this.setSelectBlock(),1===e.buttons){var r=e.target.closest("ox-grid-field"),{rowIndex:n,columnIndex:i}=r||{};this.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:n,column:i}})),isNaN(n)||isNaN(i)||this.startEditTarget(n,i)}})),this.renderRoot.addEventListener("mousemove",(t=>{var e=t;if(1===e.buttons){var r=e.target;if(this._selectBlock){var{start:n,end:i}=this._selectBlock||{};n&&i!==r&&(i=r,this.setSelectBlock(n,i))}else this.setSelectBlock(this.focusedField||r,this.focusedField||r)}})),this.renderRoot.addEventListener("mouseup",(t=>{})),this.renderRoot.addEventListener("click",A_.bind(this)),this.renderRoot.addEventListener("dblclick",D_.bind(this)),this.addEventListener("wheel",this._onWheelEvent.bind(this),!!Bw&&{passive:!0});var e=getComputedStyle(this).getPropertyValue("--primary-color");this.style.setProperty("--focused-background-image","url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'><rect fill='".concat(e,"' x='0' y='0' width='100%' height='100%' style='opacity:.3'/></svg>\")")),this.addEventListener("show-record-view",(t=>this.popupRecordView(t.detail)))}getFieldByIndex(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!(t<0)){var n=this.columns.filter((t=>!t.hidden)).length;if(r||!(e>=n))return this.renderRoot.children.item(t*(n+1)+(e+n)%n)}}_onWheelEvent(t){if(this.scrollHeight<=this.clientHeight){var e=Math.max(-1,Math.min(1,t.deltaY||0));this.scrollLeft=Math.max(0,this.scrollLeft-40*e),Bw||t.preventDefault()}}startEditTarget(t,e){var{editable:r}=this.columns.filter((t=>!t.hidden))[e].record;r&&(this.editTarget&&this.editTarget.row==t&&this.editTarget.column==e||(this.editTarget={row:t,column:e}))}shouldUpdate(t){return t.has("editTarget")||(this.editTarget=null),super.shouldUpdate(t)}updated(t){var e;if(t.has("focused")){var r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector("[focused]");if(!r)return;var{top:n,left:i}=function(t,e){var{top:r,left:n,right:i,bottom:o}=e.getBoundingClientRect(),{top:a,left:s,right:c,bottom:l}=t.getBoundingClientRect(),{scrollLeft:u,scrollTop:d}=t,h=t.clientWidth-t.offsetWidth,p=t.clientHeight-t.offsetHeight;return{left:n<s?u-(s-n):i>c?u-(c-i)-h:void 0,top:r<a?d-(a-r):o>l?d-(l-o)-p:void 0}}(this,r);void 0!==n&&(this.scrollTop=n),void 0!==i&&(this.scrollLeft=i)}this._recordView&&(this._recordView.record=this.data.records[this._recordViewRow])}focus(){if(super.focus(),this.focused===j_){var{records:t}=this.data,e=t.findIndex((t=>t.__selected__));this.focused={row:-1==e?0:e,column:0}}}popupRecordView(t){var{record:e,row:r}=t,n=this.config.list.fields[0]||"name",i=e[n];if("object"==typeof i){var o=this.config.columns.find((t=>t.name==n));i=null==o?void 0:o.record.renderer(i,o,e,r,this)}this._recordViewRow=r,this._recordView=Mw(this.config.columns,e,r,this,{title:i},(()=>{delete this._recordView,delete this._recordViewRow}))}getSelectedBlockValues(){var{start:t,end:e}=this._selectBlock||{};if(t&&e||(e=t=this.focusedField),t&&e){var r=t.rowIndex<e.rowIndex?t.rowIndex:e.rowIndex,n=t.rowIndex<e.rowIndex?e.rowIndex:t.rowIndex,i=t.columnIndex<e.columnIndex?t.columnIndex:e.columnIndex,o=t.columnIndex<e.columnIndex?e.columnIndex:t.columnIndex,a=new Array(o-i+1).fill(i),s=this.columns.filter((t=>!t.hidden));return"<table>"+new Array(n-r+1).fill(r).map(((t,e)=>{var r=t+e,n=this.data.records[r],i=a.map(((t,e)=>{var r=s[t+e],i=null==n?void 0:n[r.name],o=void 0===i?"":"object"==typeof i?JSON.stringify(i):i;return"<td>".concat(o,"</td>")})).join("");return"<tr>".concat(i,"</tr>")})).join("")+"</table>"}}copy(){var t=this;return F_((function*(){var e=t.getSelectedBlockValues();yield navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]);var r=t.selectBlock||t.focusedField;if(r){var n=r.style.backgroundColor,i=r.style.opacity;r.setAttribute("data-tooltip","copied to clipboard!"),r.style.backgroundColor="red",r.style.opacity="0.5",yield(500,new Promise((t=>setTimeout(t,500)))),r.removeAttribute("data-tooltip"),r.style.backgroundColor=n,r.style.opacity=i}}))()}paste(){var t=this;return F_((function*(){try{var e,r,n=window.getSelection(),i=yield navigator.clipboard.read();if(!i)return;for(var o of i){try{var a=yield o.getType("text/html");r=a&&(yield a.text()),e="text/html"}catch(t){try{r=(a=yield o.getType("text/plain"))&&(yield a.text()),e="text/plain"}catch(t){}}break}if(!r)return;var{row:s,column:c}=t.focused,{records:l}=t.data,u=t.columns.filter((t=>!t.hidden));if("text/html"===e){var d=document.createElement("div");d.innerHTML=r.trim();var h=d.querySelector("table");if(!h)return;return n&&(t.resetEdit(),n.removeAllRanges(),yield t.updateComplete),void h.querySelectorAll("tr").forEach(((e,r)=>{if(e instanceof HTMLTableRowElement){var n=l[s+r]||{__dirty__:"+"};s+r>=l.length&&l.push(n),e.querySelectorAll("td").forEach(((e,i)=>{var o=u[c+i];o&&!o.gutterName&&o.record.editable&&t.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:{before:n[o.name],after:e.textContent,column:o,record:n,row:s+r}}))}))}}))}if(!n&&"text/plain"===e){var p=l[s]||{__dirty__:"+"},f=u[c];f&&!f.gutterName&&f.record.editable&&t.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:{before:p[f.name],after:r,column:f,record:p,row:s}}))}}catch(t){}}))()}setSelectBlock(t,e){var r;if(this._selectBlock=t&&{start:t,end:e},t&&e){if(null===(r=window.getSelection())||void 0===r||r.removeAllRanges(),t!==e){var n=t.columnIndex<e.columnIndex?t:e,i=n===t?e:t,o=t.rowIndex<e.rowIndex?t:e,a=o===t?e:t,{offsetLeft:s}=n,{offsetTop:c}=o,l=i.offsetLeft-s+i.offsetWidth,u=a.offsetTop-c+a.offsetHeight;this.style.setProperty("--select-box-left",s-1+"px"),this.style.setProperty("--select-box-top",c-1+"px"),this.style.setProperty("--select-box-width",l+"px"),this.style.setProperty("--select-box-height",u+"px")}this.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:e.rowIndex,column:e.columnIndex}}))}}};function z_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}V_.styles=[cl,x_,S(E_||(E_=N_(["\n [select-block] {\n position: absolute;\n left: var(--select-box-left);\n top: var(--select-box-top);\n width: var(--select-box-width);\n height: var(--select-box-height);\n border: var(--grid-record-focused-cell-border);\n background-image: var(--focused-background-image);\n pointer-events: none;\n }\n "])))],(0,t.gn)([a({type:Object})],V_.prototype,"config",void 0),(0,t.gn)([a({type:Array})],V_.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],V_.prototype,"data",void 0),(0,t.gn)([a({type:Object})],V_.prototype,"focused",void 0),(0,t.gn)([a({type:Object})],V_.prototype,"editTarget",void 0),(0,t.gn)([a({type:Number})],V_.prototype,"from",void 0),(0,t.gn)([a({type:Number})],V_.prototype,"to",void 0),(0,t.gn)([u()],V_.prototype,"_selectBlock",void 0),(0,t.gn)([v("[select-block]")],V_.prototype,"selectBlock",void 0),(0,t.gn)([v("ox-grid-field[focused]")],V_.prototype,"focusedField",void 0),V_=(0,t.gn)([e("ox-grid-body")],V_);var U_,H_,G_,q_,W_,Y_,X_=class extends At{constructor(){super(...arguments),this.data=Wd,this.pagination={}}_gotoPage(t){var{pages:e=Yd}=this.pagination||{},{limit:r=e[0],total:n=0}=this.data;t>Math.ceil(n/r)||t<=0||this.dispatchEvent(new CustomEvent("page-change",{bubbles:!0,composed:!0,detail:t}))}_changeLimit(t){this.dispatchEvent(new CustomEvent("limit-change",{bubbles:!0,composed:!0,detail:t}))}render(){var{pages:t=Yd}=this.pagination||{},{records:e=[],page:r=1,limit:n=t[0],total:i=0}=this.data,o=0==e.length?0:n*(r-1)+1,a=0==e.length?0:o+e.length-1,s=Math.max(1,Math.ceil(i/n));return nt(M_||(M_=z_(["\n <a ?inactive="," @click=","><mwc-icon>skip_previous</mwc-icon></a>\n <a ?inactive="," @click=","><mwc-icon>navigate_before</mwc-icon></a>\n <span>page <strong>","</strong>&nbsp;/&nbsp;","</span>\n <a ?inactive="," @click=","><mwc-icon>navigate_next</mwc-icon></a>\n <a ?inactive="," @click=",'><mwc-icon>skip_next</mwc-icon></a>\n\n <span class="filler"></span>\n\n <span class="limit">\n ',"\n records\n </span>\n <span>&nbsp;</span>\n <span>"," - ","</span>\n <span>&nbsp;/&nbsp;</span>\n <span>total "," records.</span>\n "])),r<=1,(()=>this._gotoPage(1)),r<=1,(()=>this._gotoPage(r-1)),r,s,r>=s,(()=>this._gotoPage(r+1)),r>=s,(()=>this._gotoPage(s)),t.map((t=>nt(B_||(B_=z_(["\n <a ?selected="," @click=",">","</a>\n "])),n==t,(()=>this._changeLimit(t)),function(t){if(t<1e3)return t;var e,r=[{v:1e3,s:"K"},{v:1e6,s:"M"},{v:1e9,s:"B"},{v:1e12,s:"T"},{v:1e15,s:"P"},{v:1e18,s:"E"}];for(e=r.length-1;e>0&&!(t>=r[e].v);e--);return(t/r[e].v).toFixed(2).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+r[e].s}(t)))),o,a,i||0)}};function $_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Q_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$_(Object(r),!0).forEach((function(e){K_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function K_(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}X_.styles=[S(L_||(L_=z_(["\n :host {\n display: flex;\n flex-direction: row;\n overflow: hidden;\n\n padding: var(--grid-footer-padding);\n background-color: var(--grid-footer-background-color);\n font-size: var(--grid-footer-font-size);\n }\n\n :host * {\n white-space: nowrap;\n overflow: hidden;\n padding: 0 2px;\n\n text-overflow: ellipsis;\n text-align: center;\n color: var(--grid-footer-color);\n }\n\n .filler {\n flex: 1;\n }\n\n mwc-icon {\n font-size: 1.5em;\n vertical-align: middle;\n }\n\n .limit a {\n color: var(--grid-footer-limit-color);\n }\n\n .limit a[selected] {\n color: var(--grid-footer-color);\n font-weight: bold;\n text-decoration: underline;\n }\n\n a[inactive] * {\n color: var(--grid-footer-inactive-color);\n }\n "])))],(0,t.gn)([a()],X_.prototype,"data",void 0),(0,t.gn)([a()],X_.prototype,"pagination",void 0),X_=(0,t.gn)([e("ox-grid-footer")],X_);class Z_ extends At{constructor(){super(),this.config=Hd,this.data=Wd,this.sorters=[],this.filters=[],this.pagination={},this.addEventListener("select-record-change",(t=>{var{records:e,added:r=[],removed:n=[]}=t.detail;this.onSelectRecordChanged({selectedRecords:e,added:r,removed:n})})),this.addEventListener("field-change",(t=>{var{after:e,before:r,column:n,record:i,row:o}=t.detail;this.onFieldChange({after:e,before:r,column:n,record:i,row:o})})),this.addEventListener("record-reset",(t=>{var{record:e,row:r}=t.detail;this.onRecordChanged(e.__origin__,r,null)}))}onFieldChange(t){var{after:e,before:r,column:n,record:i,row:o}=t;if(e!==r){var a=n.validation;a&&"function"==typeof a&&!a.call(this,e,r,i,n)||this.onRecordChanged({[n.name]:e},o,n)}}onSelectRecordChanged(t){var{selectedRecords:e,added:r=[],removed:n=[]}=t,{records:i}=this.data||{},{selectable:o=!1}=this.config.rows||{};i&&o&&(o&&!o.multiple&&i.forEach((t=>t.__selected__=!1)),e?(i.forEach((t=>t.__selected__=!1)),e.forEach((t=>t.__selected__=!0))):(n.forEach((t=>t.__selected__=!1)),r.forEach((t=>t.__selected__=!0))),this.requestUpdate())}onRecordChanged(t,e,r){var n,i=this.data.records,o=i[e],a=!1,s=!1;if(t)if(o){var c=o.__dirty__;n=Q_(Q_(Q_({},o),t),{},"+"==c?{__dirty__:"+"}:{__dirty__:"M"})}else n=Q_(Q_({},t),{},{__dirty__:"+"}),s=!0;else{if(!o)return void this.requestUpdate();"+"==o.__dirty__?a=!0:n=Q_(Q_({},o),{},{__dirty__:"-"})}s?i.push(n):a?i.splice(e,1):i.splice(e,1,n),this.dispatchEvent(new CustomEvent("record-change",{bubbles:!0,composed:!0,detail:{before:o,after:n,column:r,row:e}})),this.requestUpdate()}}function J_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:Object})],Z_.prototype,"config",void 0),(0,t.gn)([a({type:Object})],Z_.prototype,"data",void 0),(0,t.gn)([a({type:Object})],Z_.prototype,"sorters",void 0),(0,t.gn)([a({type:Object})],Z_.prototype,"filters",void 0),(0,t.gn)([a({type:Object})],Z_.prototype,"pagination",void 0);var tE,eE,rE,nE=class extends Z_{firstUpdated(){this.header.addEventListener("scroll",(t=>{this.body.scrollLeft!==this.header.scrollLeft&&(this.body.scrollLeft=this.header.scrollLeft)})),this.body.addEventListener("scroll",(t=>{this.body.scrollLeft!==this.header.scrollLeft&&(this.header.scrollLeft=this.body.scrollLeft)})),this.header.addEventListener("wheel",this.onWheelEvent.bind(this)),this.footer&&this.footer.addEventListener("wheel",this.onWheelEvent.bind(this)),this.addEventListener("select-all-change",(t=>{if(0!=this.data.records.length){var{selected:e}=t.detail,{records:r}=this.data;r.forEach((t=>t.__selected__=e)),this.header.requestUpdate(),this.body.requestUpdate()}})),this.addEventListener("focus-change",(t=>{var{row:e,column:r}=t.detail||{};this.focused&&this.focused.row==e&&this.focused.column==r||(this.focused={row:e,column:r},this.focus(),this.requestUpdate())}))}onWheelEvent(t){var e=Math.max(-1,Math.min(1,t.deltaY||0));this.body.scrollLeft=Math.max(0,this.body.scrollLeft-30*e),Bw||t.preventDefault()}onSelectRecordChanged(t){var{selectedRecords:e,added:r,removed:n}=t;super.onSelectRecordChanged({selectedRecords:e,added:r,removed:n}),this.header.requestUpdate(),this.body.requestUpdate()}onRecordChanged(t,e,r){super.onRecordChanged(t,e,r),this.header.requestUpdate(),this.body.requestUpdate()}updated(t){if((t.has("config")||t.has("data"))&&(this.calculateWidths(this.config.columns),this.focused&&"row"in this.focused)){var{row:e=0,column:r=0}=this.focused,{records:n=[]}=t.get("data"),{records:i}=this.data,o=n[e];if(o&&o!==i[e]){var a=i.find((t=>o===t||"id"in o&&t.id==o.id||"name"in o&&t.name==o.name));this.focused={row:a?i.indexOf(a):e,column:r}}}}calculateWidths(t){this._widths=t.filter((t=>!t.hidden)).map((t=>{switch(typeof t.width){case"number":return t.width+"px";case"string":return t.width;case"function":return t.width.call(this,t);default:return"auto"}})).concat(["auto"]).join(" "),this.style.setProperty("--grid-template-columns",this._widths),this.style.setProperty("--grid-template-print-columns",this._widths.replace(/px/gi,"fr"))}render(){var{pagination:t={},columns:e=[]}=this.config,r=!t.infinite,n=this.data;return nt(U_||(U_=J_(["\n <ox-grid-header\n .columns=","\n .sorters=","\n .filters=","\n .data=","\n @column-width-change=","\n ></ox-grid-header>\n\n <ox-grid-body .config="," .columns="," .data="," .focused=",">\n ","\n </ox-grid-body>\n ","\n "])),e,this.sorters,this.filters,n,(t=>{var{idx:r,width:n}=t.detail;e[r].width=n,this.calculateWidths(e)}),this.config,e,n,this.focused,this.empty?nt(H_||(H_=J_(['\n <ox-empty-note\n icon="list"\n title="EMPTY LIST"\n description="There are no records to be shown"\n ></ox-empty-note>\n ']))):nt(G_||(G_=J_([""]))),r?nt(q_||(q_=J_([" <ox-grid-footer .data="," .pagination=","></ox-grid-footer> "])),n,this.pagination):nt(W_||(W_=J_([""]))))}focus(){super.focus(),this.body.focus()}get pullToRefreshTarget(){return this.body}};function iE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}nE.styles=[al,S(Y_||(Y_=J_(["\n :host {\n display: flex;\n flex-direction: column;\n\n overflow: hidden;\n\n border-width: var(--grid-container-border-width);\n }\n\n ox-grid-body {\n flex: 1;\n position: relative;\n }\n\n ox-empty-note {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n @media print {\n :host {\n zoom: 80%;\n }\n }\n "])))],(0,t.gn)([a({type:Object})],nE.prototype,"focused",void 0),(0,t.gn)([a({type:Boolean})],nE.prototype,"empty",void 0),(0,t.gn)([v("ox-grid-body",!0)],nE.prototype,"body",void 0),(0,t.gn)([v("ox-grid-header",!0)],nE.prototype,"header",void 0),(0,t.gn)([v("ox-grid-footer",!0)],nE.prototype,"footer",void 0),nE=(0,t.gn)([e("ox-grid")],nE);var oE,aE,sE,cE="left",lE=class extends At{constructor(){super(...arguments),this.record=Gd,this.column=Ud,this.rowIndex=-1}get isEditing(){return this.hasAttribute("editing")}render(){if(!this.column)return nt(tE||(tE=iE([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i}=e.record;return nt(eE||(eE=iE([" "," "])),i(t,e,r,n,this))}updated(t){if(t.has("column")){var e=this.column.record.align||cE;if(e!=cE){var r="center";"right"===e&&(r="flex-end"),this.style.setProperty("--data-list-gutter-justify-content",r)}}}};function uE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}lE.styles=[S(rE||(rE=iE(["\n :host {\n display: flex;\n align-items: center;\n justify-content: var(--data-list-gutter-justify-content, flex-start);\n position: relative;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: transparent;\n\n font-size: var(--grid-record-wide-fontsize);\n text-overflow: ellipsis;\n color: var(--grid-record-color);\n }\n\n * {\n flex: 1;\n margin: 0;\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n "])))],(0,t.gn)([a({attribute:!0})],lE.prototype,"align",void 0),(0,t.gn)([a({type:Object})],lE.prototype,"record",void 0),(0,t.gn)([a({type:Object})],lE.prototype,"column",void 0),(0,t.gn)([a({type:Number})],lE.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],lE.prototype,"value",void 0),lE=(0,t.gn)([e("ox-list-gutter")],lE);var dE,hE,pE,fE,mE=class extends At{constructor(){super(...arguments),this.record=Gd,this.column=Ud,this.rowIndex=-1}render(){var{value:t,column:e,record:r,rowIndex:n}=this,{label:i,record:{renderer:o}}=e;if("object"==typeof i){var{renderer:a}=i;return nt(oE||(oE=uE(["<label>","</label>",""])),a(),o(t,e,r,n,this))}return nt(aE||(aE=uE(["",""])),o(t,e,r,n,this))}};function gE(t){t.stopPropagation();var e=t.target;if(this.currentTarget&&(this.focus(),this.currentTarget.removeAttribute("editing")),"OX-GRID-FIELD"!==e.tagName||!e.column.record.editable)return this.focus(),void(this.currentTarget=null);this.currentTarget=e,e.setAttribute("editing","true")}function vE(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function yE(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){vE(o,n,i,a,s,"next",t)}function s(t){vE(o,n,i,a,s,"throw",t)}a(void 0)}))}}function bE(t){return wE.apply(this,arguments)}function wE(){return(wE=yE((function*(t){switch(t.key){case"Esc":case"Escape":case"Enter":this.focus(),this.currentTarget&&this.currentTarget.removeAttribute("editing"),this.currentTarget=null}}))).apply(this,arguments)}function _E(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}mE.styles=[cl,S(sE||(sE=uE(["\n :host {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n\n white-space: normal;\n padding: 1px 7px 1px 0;\n\n font: inherit;\n }\n\n :host > * {\n flex: 1;\n margin: 0;\n text-align: left;\n }\n\n :host > *[center] {\n flex: none;\n margin: 0 auto;\n }\n\n :host([thumbnail]) {\n flex-direction: column;\n justify-content: center;\n }\n\n :host([thumbnail]) > * {\n flex: unset;\n object-fit: contain;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n }\n\n label {\n flex: none;\n width: 33%;\n font: var(--data-list-item-etc-label-font);\n }\n\n input[type='checkbox'],\n input[type='radio'] {\n zoom: var(--grist-input-zoom);\n }\n\n @media only screen and (max-width: 460px) {\n *[center] {\n margin: initial;\n }\n }\n "])))],(0,t.gn)([a({attribute:!0})],mE.prototype,"align",void 0),(0,t.gn)([a({type:Object})],mE.prototype,"record",void 0),(0,t.gn)([a({type:Object})],mE.prototype,"column",void 0),(0,t.gn)([a({type:Number})],mE.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],mE.prototype,"value",void 0),mE=(0,t.gn)([e("ox-list-field")],mE);var EE,xE,AE,CE,SE,DE,OE=class extends At{constructor(){super(...arguments),this.columns=[],this.record=Gd,this.rowIndex=-1}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.renderRoot.addEventListener("keydown",bE.bind(this)),this.renderRoot.addEventListener("click",gE.bind(this))}render(){var t=this.columns.filter((t=>!t.hidden&&"gutter"!==t.type)),e=this.record,r=this.rowIndex;return nt(dE||(dE=_E(["\n ","\n "])),t.map((t=>{var{editable:n,mandatory:i}=t.record,o=e.__dirtyfields__||{};return nt(hE||(hE=_E(["\n <label ?editable=","\n ><span>","","</span> <mwc-icon>edit</mwc-icon></label\n >\n <ox-grid-field\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ?dirty=","\n ></ox-grid-field>\n "])),n,i?"*":"",this._renderLabel(t),r,t,e,e[t.name],!!o[t.name])})))}_renderLabel(t){var{renderer:e}=t.header,r=e.call(this,t);return nt(pE||(pE=_E([" "," "])),r)}};function PE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}OE.styles=[S(fE||(fE=_E(["\n :host {\n display: grid;\n grid-template-columns: 33% 67%;\n grid-auto-rows: min-content;\n grid-gap: var(--record-view-gap);\n padding: var(--record-view-padding);\n font-size: 16px; /* for ios safari */\n }\n\n label {\n display: flex;\n align-items: center;\n position: relative;\n text-transform: capitalize;\n\n padding: var(--record-view-item-padding);\n border-bottom: var(--record-view-border-bottom);\n font: var(--record-view-label-font);\n color: var(--record-view-label-color);\n }\n\n label mwc-icon {\n display: none;\n }\n\n label > span {\n font: var(--record-view-font);\n font-weight: bold;\n }\n\n label[editable] mwc-icon {\n display: inline-block;\n font-size: var(--record-view-label-icon-size);\n opacity: 0.5;\n }\n\n ox-grid-field {\n border-top: none;\n border-bottom: var(--record-view-border-bottom);\n font: var(--record-view-font);\n color: var(--record-view-color);\n background-color: transparent;\n }\n\n ox-grid-field[editing='true'] {\n border-bottom: var(--record-view-edit-border-bottom);\n }\n\n :first-child + ox-grid-field {\n color: var(--record-view-focus-color);\n font-weight: bold;\n }\n "])))],(0,t.gn)([a({type:Array})],OE.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],OE.prototype,"record",void 0),(0,t.gn)([a({type:Number})],OE.prototype,"rowIndex",void 0),OE=(0,t.gn)([e("ox-record-view-body")],OE);var IE,kE,TE=((EE=class extends sh{constructor(){super(...arguments),this.icon="upload",this.description="drop files here!",this.hideFileList=!1,this.attachFileList=!1}render(){var t=this.value||[];return nt(xE||(xE=PE(["\n <mwc-icon>","</mwc-icon>\n\n <span>",'</span>\n\n <input\n id="input-file"\n type="file"\n accept=',"\n ?multiple=",'\n hidden\n capture="environment"\n @change=','\n />\n\n <label for="input-file">',"</label>\n\n ","\n "])),this.icon||"upload",this.description||"drop files here!",this.accept,this.multiple,(t=>this._onChangeValue(t)),this.label||"select files",!this.hideFileList&&null!=t&&t.length?nt(AE||(AE=PE([" <ul>\n ","\n </ul>"])),t.map((e=>nt(CE||(CE=PE(["\n <li>\n - ","\n <mwc-icon\n @click=","\n >delete_outline</mwc-icon\n >\n </li>\n "])),e.name,(r=>{t.splice(t.indexOf(e),1),this.value=[...t],this._notifyChange()}))))):nt(SE||(SE=PE([""]))))}updated(t){!t.has("value")||this.value instanceof Array||(this.value=this.value?[this.value]:[])}firstUpdated(){Ui.set(this),this.addEventListener("file-drop",(t=>{var e=t.detail;this.value=this.multiple?e:e[0]?[e[0]]:[],this._notifyChange()}))}get files(){return this.value}reset(){this.fileInput.value="",this.value=[],this._notifyChange()}_onChangeValue(t){var e=t.currentTarget,r=this.value||[];this.value=this.attachFileList?[...r,...Array.from(e.files)]:[...Array.from(e.files)],e.files=null,this._notifyChange()}_notifyChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:this.value}))}}).styles=[al,S(DE||(DE=PE(["\n :host {\n display: flex;\n flex-direction: column;\n border-radius: var(--border-radius);\n align-items: center;\n justify-content: center;\n padding: var(--padding-default, 9px);\n min-height: 100px;\n text-transform: capitalize;\n\n border: var(--file-uploader-border);\n background-color: var(--main-section-background-color);\n font: var(--file-uploader-font) !important;\n color: var(--file-uploader-color);\n }\n :host > mwc-icon {\n color: var(--file-uploader-icon-color);\n --mdc-icon-size: var(--file-uploader-icon-size, 36px);\n }\n\n :host(.candrop) {\n background-color: var(--file-uploader-candrop-background-color);\n }\n\n #input-file {\n display: none;\n }\n\n label {\n position: relative;\n width: auto;\n border: none;\n text-transform: capitalize;\n\n padding: var(--file-uploader-label-padding);\n border-radius: var(--file-uploader-label-border-radius);\n background-color: var(--file-uploader-label-background-color);\n color: var(--file-uploader-label-color);\n font: var(--file-uploader-label-font) !important;\n }\n\n ul {\n max-width: 500px;\n width: 100%;\n list-style: none;\n margin: 5px 0 0 0;\n padding: 0;\n max-height: 46px;\n overflow: auto;\n background-color: rgba(var(--primary-color-rgb), 0.1);\n }\n li {\n text-align: left;\n\n padding: 3px 5px 2px 5px;\n border-bottom: var(--file-uploader-li-border-bottom);\n font: normal 14px var(--theme-font);\n }\n li mwc-icon {\n float: right;\n cursor: pointer;\n margin: var(--file-uploader-li-icon-margin);\n font-size: 1em;\n }\n li mwc-icon:hover,\n li mwc-icon:active {\n color: var(--file-uploader-li-icon-focus-color);\n }\n "])))],EE);function RE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:Boolean})],TE.prototype,"multiple",void 0),(0,t.gn)([a({type:String})],TE.prototype,"accept",void 0),(0,t.gn)([a({type:String})],TE.prototype,"icon",void 0),(0,t.gn)([a({type:String})],TE.prototype,"label",void 0),(0,t.gn)([a({type:String})],TE.prototype,"description",void 0),(0,t.gn)([a({type:Boolean,reflect:!0,attribute:"hide-filelist"})],TE.prototype,"hideFileList",void 0),(0,t.gn)([a({type:Boolean,reflect:!0,attribute:"attach-filelist"})],TE.prototype,"attachFileList",void 0),(0,t.gn)([v("#input-file")],TE.prototype,"fileInput",void 0),TE=(0,t.gn)([e("ox-input-file")],TE);var FE,NE,ME=class extends At{constructor(){super(...arguments),this.columns=[],this.record=Gd,this.rowIndex=-1}render(){return nt(IE||(IE=RE(["\n <ox-record-view-body .columns="," .record="," .rowIndex=",">\n </ox-record-view-body>\n <div footer>\n <button @click=","><mwc-icon>refresh</mwc-icon><span>Reset</span></button>\n <button @click=","><mwc-icon>clear</mwc-icon><span>Cancel</span></button>\n <button @click="," ok><mwc-icon>radio_button_unchecked</mwc-icon><span>OK</span></button>\n </div>\n "])),this.columns,this.record,this.rowIndex,this.onReset.bind(this),this.onCancel.bind(this),this.onOK.bind(this))}firstUpdated(){this.setAttribute("tabindex","0")}onReset(){this.focus(),this.dispatchEvent(new CustomEvent("reset",{detail:this.record}))}onCancel(){this.focus(),this.dispatchEvent(new CustomEvent("cancel",{detail:this.record}))}onOK(){this.focus(),this.dispatchEvent(new CustomEvent("ok",{detail:this.record}))}};function BE(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function LE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LE(Object(r),!0).forEach((function(e){VE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function VE(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}ME.styles=[al,S(kE||(kE=RE(["\n :host {\n display: flex;\n flex-direction: column;\n background-color: var(--record-view-background-color);\n }\n\n ox-record-view-body {\n flex: 1;\n overflow-y: auto;\n }\n\n [footer] {\n display: flex;\n text-align: right;\n background-color: var(--record-view-footer-background);\n box-shadow: var(--context-toolbar-shadow-line);\n }\n\n [footer] button {\n flex: 1;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background-color: transparent;\n border: var(--record-view-footer-button-border);\n border-width: var(--record-view-footer-button-border-width);\n color: var(--record-view-footer-button-color);\n font-size: var(--record-view-footer-button-font);\n line-height: 3;\n }\n\n [footer] button * {\n vertical-align: middle;\n }\n\n [footer] button mwc-icon {\n margin-top: -3px;\n margin-right: 5px;\n font-size: var(--record-view-footer-iconbutton-size);\n }\n\n [footer] button[ok] {\n background-color: var(--record-view-footer-focus-background);\n }\n "])))],(0,t.gn)([a({type:Array})],ME.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],ME.prototype,"record",void 0),(0,t.gn)([a({type:Number})],ME.prototype,"rowIndex",void 0),ME=(0,t.gn)([e("ox-record-view")],ME);var UE,HE,GE,qE,WE,YE,XE,$E,QE=class extends At{constructor(){super(),this.lightPopup=!1,this.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),this.lightPopup?this.lightPopupRecordView():this.popupRecordView()}))}connectedCallback(){super.connectedCallback(),this.grist=this.closest("ox-grist")}render(){return nt(FE||(FE=zE(["<slot></slot>"])))}lightPopupRecordView(){var t=this.grist.compiledConfig.columns,e=gl.open({template:nt(NE||(NE=zE(["\n <div title>","</div>\n <ox-record-view\n @field-change=","\n .columns=","\n .record=","\n .rowIndex=","\n @reset=","\n @cancel=","\n @ok=","\n ></ox-record-view>\n "])),"create",(t=>{var e=t.currentTarget,{after:r,before:n,column:i,record:o,row:a}=t.detail,s=i.validation;s&&"function"==typeof s&&!s.call(this,r,n,o,i)||(e.record=jE(jE({},o),{},{[i.name]:r}))}),t,{},-1,(t=>{t.currentTarget.record={}}),(t=>{e.close()}),(t=>{e.close();var r=t.currentTarget;this.dispatchEvent(new CustomEvent("ok",{bubbles:!0,composed:!0,detail:r.record}))})),parent:document.body})}popupRecordView(){var t=this,e=this.grist.compiledConfig.columns,r=document.createElement("ox-record-view");r.columns=e,r.record={},r.rowIndex=-1,document.dispatchEvent(new CustomEvent("open-popup",{detail:{template:r,options:{backdrop:!0,size:"large",title:"create"},callback:e=>{r.addEventListener("reset",(t=>{t.currentTarget.record={}})),r.addEventListener("cancel",(t=>{e.close()})),r.addEventListener("ok",function(){var r=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){BE(o,n,i,a,s,"next",t)}function s(t){BE(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(r){var n,i=r.currentTarget;(yield null===(n=t.callback)||void 0===n?void 0:n.call(t,i.record))&&e.close()}));return function(t){return r.apply(this,arguments)}}()),r.addEventListener("field-change",(t=>{var e=t.currentTarget,{after:r,before:n,column:i,record:o,row:a}=t.detail,s=i.validation;s&&"function"==typeof s&&!s.call(this,r,n,o,i)||(e.record=jE(jE({},o),{},{[i.name]:r}))})),e.onclosed=()=>{}}}}))}};function KE(t){t.stopPropagation();var e=t.target.closest("ox-list-field, ox-list-gutter"),{column:r,rowIndex:n}=e||{};if(r){var{click:i}=r.handlers;if(i)return void i(this.config.columns,this.data,r,this.record,n,e)}var{click:o}=this.config.rows.handlers;o?o(this.config.columns,this.data,r,this.record,n,e):this.popupRecordView()}function ZE(t){t.stopPropagation();var e=t.target.closest("ox-list-field, ox-list-gutter"),{column:r,record:n,rowIndex:i}=e||{};if(r&&"gutter"==r.type);else{var{dblclick:o}=this.config.rows.handlers;o&&o(this.config.columns,this.data,r,n,i,e)}}function JE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([u()],QE.prototype,"grist",void 0),(0,t.gn)([a({type:Object})],QE.prototype,"callback",void 0),(0,t.gn)([a({type:Boolean,attribute:"light-popup"})],QE.prototype,"lightPopup",void 0),QE=(0,t.gn)([e("ox-record-creator")],QE),new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1});var tx,ex,rx,nx,ix,ox,ax,sx=class extends At{constructor(){super(...arguments),this.config=Hd,this.data=Wd,this.record=Gd,this.rowIndex=-1,this.selectedRow=!1}attributeChangedCallback(t,e,r){super.attributeChangedCallback(t,e,r)}firstUpdated(){this.renderRoot.addEventListener("click",KE.bind(this)),this.renderRoot.addEventListener("dblclick",ZE.bind(this)),this.addEventListener("show-record-view",(()=>this.popupRecordView()))}updated(t){t.has("record")&&this._recordView&&(this._recordView.record=this.record)}render(){var t,e=this.record,r=this.rowIndex,{columns:n,list:i}=this.config,{thumbnail:o,fields:a,details:s}=i||{},c=[...a,...s].map((t=>n.find((e=>e.name==t)))).filter((t=>t))||[],l=(n||[]).filter((t=>"gutter"==t.type&&t.forList)),u=o?n.find((t=>t.name==o)):void 0;if(this.hasAttribute("dirty"))switch(this.record.__dirty__){case"M":t="done";break;case"+":t="add";break;case"-":t="remove"}return nt(UE||(UE=JE(["\n ","\n ","\n\n <div content>\n ","\n </div>\n ","\n "])),t?nt(HE||(HE=JE([" <mwc-icon dirty>","</mwc-icon> "])),t):nt(GE||(GE=JE([""]))),l.map((t=>nt(qE||(qE=JE(["\n <ox-list-gutter\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-list-gutter>\n "])),r,t,e,e[t.name]))),c.map(((t,n)=>nt(WE||(WE=JE(["\n <ox-list-field\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ?name=","\n ?desc=","\n ></ox-list-field>\n "])),r,t,e,e[(null==t?void 0:t.name)||""],0==n,1==n))),o?nt(YE||(YE=JE(["<div tail>\n <ox-list-field\n thumbnail\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-list-field>\n </div>"])),r,u,e,e[(null==u?void 0:u.name)||""]):nt(XE||(XE=JE([""]))))}popupRecordView(){var t=this.config.list.fields[0]||"name",e=this.record[t];if("object"==typeof e){var r=this.config.columns.find((e=>e.name==t));e=null==r?void 0:r.record.renderer(e,r,this.record,this.rowIndex,this)}this._recordView=Mw(this.config.columns,this.record,this.rowIndex,this,{title:e},(()=>{delete this._recordView}))}};function cx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}sx.styles=[S($E||($E=JE(["\n :host {\n display: flex;\n flex-direction: row;\n align-items: center;\n border-bottom: var(--data-list-item-border-bottom);\n position: relative;\n min-height: 42px;\n }\n\n :host([dirty])::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n\n width: 0px;\n height: 0px;\n border-top: var(--grid-record-dirty-border-top);\n border-right: var(--grid-record-dirty-border-left);\n }\n\n :host > * {\n margin: var(--data-list-item-margin);\n zoom: var(--grist-input-zoom);\n }\n\n :host [dirty] {\n position: absolute;\n margin: 0;\n height: 20px;\n font: var(--grid-record-dirty-icon-font);\n text-indent: 1px;\n left: 0;\n top: 0;\n color: var(--grid-record-dirty-color);\n }\n\n [content] {\n flex: auto;\n display: block;\n zoom: 1;\n }\n\n div[tail] {\n margin: 0;\n width: 100px;\n aspect-ratio: 1 / 1;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n\n div[tail] > ox-list-field {\n flex: 1;\n }\n\n ox-list-field {\n padding-top: 3px;\n font: var(--data-list-item-etc-font);\n color: var(--data-list-item-etc-color);\n }\n\n ox-list-field[name] {\n font: var(--data-list-item-name-font);\n color: var(--data-list-item-name-color);\n }\n\n ox-list-field[desc] {\n font: var(--data-list-item-disc-font);\n color: var(--data-list-item-disc-color);\n }\n "])))],(0,t.gn)([a({type:Object})],sx.prototype,"config",void 0),(0,t.gn)([a({type:Object})],sx.prototype,"data",void 0),(0,t.gn)([a({type:Object})],sx.prototype,"record",void 0),(0,t.gn)([a({type:Number})],sx.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Boolean,attribute:"selected-row"})],sx.prototype,"selectedRow",void 0),sx=(0,t.gn)([e("ox-record-partial")],sx);var lx,ux,dx,hx=class extends Z_{constructor(){super(...arguments),this._records=[],this.isTop=!1,this._total=0,this._limit=20,this._page=1}firstUpdated(t){this.isTop=!0,this.addEventListener("scroll",(t=>{if(this.scrollHeight<=this.offsetHeight+this.scrollTop+1){var e=Math.ceil(this._total/this._limit);this._page<e&&this.dispatchEvent(new CustomEvent("attach-page",{bubbles:!0,composed:!0}))}this.isTop=0==this.scrollTop}))}updated(t){t.has("config")&&(this._records=[],this._page=1),t.has("data")&&(this._records=this.data.records,this._total=this.data.total||0,this._limit=this.data.limit||20,this._page=this.data.page||0)}render(){var t=this._records||[];return this.config&&this.config.rows.appendable&&(t=[...t,{__dirty__:"+"}]),nt(tx||(tx=cx(["\n ","\n ","\n ","\n "])),t.map(((t,e)=>nt(ex||(ex=cx(["\n <ox-record-partial\n .config=","\n .data=","\n .record=","\n .rowIndex=","\n ?selected-row=","\n ?dirty=","\n ></ox-record-partial>\n "])),this.config,this.data,t,e,t.__selected__,t.__dirty__))),this.empty?nt(rx||(rx=cx(['\n <ox-empty-note\n icon="list"\n title="EMPTY LIST"\n description="There are no records to be shown"\n ></ox-empty-note>\n ']))):nt(nx||(nx=cx([""]))),this.isTop?nt(ix||(ix=cx([""]))):nt(ox||(ox=cx([' <mwc-icon id="upward" @click=',">arrow_upward</mwc-icon> "])),(t=>this.gotoTop(t))))}gotoTop(t){this.scrollTop=0,t.stopPropagation()}get pullToRefreshTarget(){return this}};function px(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}hx.styles=[S(ax||(ax=cx(["\n :host {\n background-color: var(--data-list-background-color);\n overflow-y: auto;\n }\n\n ox-record-partial:nth-child(even) {\n background-color: var(--theme-white-color);\n }\n\n [selected-row] {\n background-color: var(--data-list-selected-background-color);\n }\n\n #upward {\n --mdc-icon-size: 26px;\n position: absolute;\n top: var(--data-list-fab-position-vertical);\n right: var(--data-list-fab-position-horizontal);\n background-color: rgba(255, 255, 255, 0.7);\n border-radius: 20px;\n color: var(--data-list-fab-color);\n box-shadow: var(--data-list-fab-shadow);\n padding: 7px;\n }\n\n slot {\n width: 100%;\n }\n\n ox-empty-note {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n "])))],(0,t.gn)([a({type:Boolean})],hx.prototype,"empty",void 0),(0,t.gn)([u()],hx.prototype,"_records",void 0),(0,t.gn)([u()],hx.prototype,"isTop",void 0),hx=(0,t.gn)([e("ox-list")],hx);var fx,mx,gx,vx=class extends At{constructor(){super(...arguments),this.record=Gd,this.column=Ud,this.rowIndex=-1}render(){var{value:t,column:e,record:r,rowIndex:n}=this,{label:i,record:{renderer:o}}=e;if("object"==typeof i){var{renderer:a}=i;return nt(lx||(lx=px(["<label>","</label>",""])),a(),o(t,e,r,n,this))}return nt(ux||(ux=px(["",""])),o(t,e,r,n,this))}};function yx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}vx.styles=[cl,S(dx||(dx=px(["\n :host {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n position: relative;\n\n white-space: nowrap;\n\n font: inherit;\n }\n\n :host([thumbnail]) {\n flex-direction: column;\n justify-content: center;\n }\n\n :host([thumbnail]) > * {\n object-fit: contain;\n max-width: 100%;\n max-height: 100%;\n }\n\n :host > * {\n margin: 0;\n\n overflow: hidden;\n\n text-overflow: ellipsis;\n text-align: left;\n }\n\n :host > *[center] {\n flex: none;\n margin: 0 auto;\n }\n\n :host([name]) label {\n display: none;\n }\n\n label {\n flex: none;\n width: 33%;\n padding-bottom: 2px;\n font: var(--data-card-item-etc-label-font);\n text-transform: capitalize;\n }\n\n :host([name]) > span,\n label + a {\n display: block;\n min-width: 100%;\n }\n\n input[type='checkbox'],\n input[type='radio'] {\n zoom: var(--grist-input-zoom);\n }\n\n @media only screen and (max-width: 460px) {\n *[center] {\n margin: initial;\n }\n }\n "])))],(0,t.gn)([a({attribute:!0})],vx.prototype,"align",void 0),(0,t.gn)([a({type:Object})],vx.prototype,"record",void 0),(0,t.gn)([a({type:Object})],vx.prototype,"column",void 0),(0,t.gn)([a({type:Number})],vx.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],vx.prototype,"value",void 0),vx=(0,t.gn)([e("ox-card-field")],vx);var bx,wx,_x,Ex,xx="left",Ax=class extends At{constructor(){super(...arguments),this.record=Gd,this.column=Ud,this.rowIndex=-1}get isEditing(){return this.hasAttribute("editing")}render(){if(!this.column)return nt(fx||(fx=yx([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i}=e.record;return nt(mx||(mx=yx([" "," "])),i(t,e,r,n,this))}updated(t){if(t.has("column")){var e=this.column.record.align||xx;if(e!=xx){var r="center";"right"===e&&(r="flex-end"),this.style.setProperty("--data-card-gutter-justify-content",r)}}}};function Cx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Ax.styles=[S(gx||(gx=yx(["\n :host {\n background-color: transparent;\n\n font-size: var(--grid-record-wide-fontsize);\n text-overflow: ellipsis;\n color: var(--grid-record-color);\n }\n\n * {\n flex: 1;\n margin: 0;\n margin-bottom: 1px;\n border: var(--data-card-item-btn-border);\n border-radius: var(--data-card-item-btn-border-radius);\n padding: var(--data-card-item-btn-padding);\n font-size: var(--grid-record-fontsize);\n }\n\n *:hover {\n cursor: pointer;\n color: var(--grid-record-color-hover);\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n "])))],(0,t.gn)([a({attribute:!0})],Ax.prototype,"align",void 0),(0,t.gn)([a({type:Object})],Ax.prototype,"record",void 0),(0,t.gn)([a({type:Object})],Ax.prototype,"column",void 0),(0,t.gn)([a({type:Number})],Ax.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],Ax.prototype,"value",void 0),Ax=(0,t.gn)([e("ox-card-gutter")],Ax);var Sx,Dx,Ox,Px,Ix,kx,Tx,Rx,Fx,Nx,Mx,Bx,Lx,jx,Vx,zx=class extends At{render(){return nt(bx||(bx=Cx(["\n <mwc-icon @click=",">more_horiz</mwc-icon>\n <slot></slot>\n "])),(t=>this.open(t)))}menuRender(){return nt(wx||(wx=Cx(["\n ","\n "])),this.gutters.map((t=>nt(_x||(_x=Cx(["\n <ox-card-gutter\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n menu\n alive-on-select\n @click=","\n @dblclick=","\n ></ox-card-gutter>\n "])),this.rowIndex,t,this.record,this.record[t.name],(t=>{this.clickHandler(t)}),(t=>{this.dblclickHandler(t)})))))}open(t){t.stopPropagation();var e=this.icon.offsetHeight;gl.open({template:this.menuRender(),bottom:e,left:-4,parent:this})}};function Ux(t){t.stopPropagation();var e=t.target.closest("ox-card-field, ox-card-gutter"),{column:r,rowIndex:n}=e||{};if(r){var{click:i}=r.handlers;if(i)return void i(this.config.columns,this.data,r,this.record,n,e)}var{click:o}=this.config.rows.handlers;o?o(this.config.columns,this.data,r,this.record,n,e):this.popupRecordView()}function Hx(t){t.stopPropagation();var e=t.target.closest("ox-card-field, ox-card-gutter"),{column:r,record:n,rowIndex:i}=e||{};if(r&&"gutter"==r.type);else{var{dblclick:o}=this.config.rows.handlers;o&&o(this.config.columns,this.data,r,n,i,e)}}function Gx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}zx.styles=S(Ex||(Ex=Cx(["\n :host {\n position: relative;\n }\n\n ::slotted(ox-popup) {\n padding: 4px;\n }\n\n mwc-icon {\n flex: 1;\n margin: 0;\n margin-bottom: 1px;\n border: var(--data-card-item-btn-border);\n border-radius: var(--data-card-item-btn-border-radius);\n padding: var(--data-card-item-btn-padding);\n font-size: var(--grid-record-fontsize);\n }\n\n mwc-icon:hover {\n cursor: pointer;\n color: var(--grid-record-color-hover);\n }\n "]))),(0,t.gn)([a({type:Object})],zx.prototype,"gutters",void 0),(0,t.gn)([a({type:Number})],zx.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],zx.prototype,"record",void 0),(0,t.gn)([a()],zx.prototype,"clickHandler",void 0),(0,t.gn)([a()],zx.prototype,"dblclickHandler",void 0),(0,t.gn)([v("mwc-icon")],zx.prototype,"icon",void 0),zx=(0,t.gn)([e("ox-card-gutter-menu")],zx),new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1});var qx,Wx,Yx,Xx,$x,Qx,Kx,Zx=class extends At{constructor(){super(...arguments),this.config=Hd,this.data=Wd,this.record=Gd,this.rowIndex=-1,this.selectedRow=!1,this.clickHandler=Ux.bind(this),this.dblclickHandler=Hx.bind(this)}firstUpdated(){this.renderRoot.addEventListener("click",this.clickHandler),this.renderRoot.addEventListener("dblclick",this.dblclickHandler),this.addEventListener("show-record-view",(()=>this.popupRecordView()))}updated(t){t.has("record")&&this._recordView&&(this._recordView.record=this.record)}render(){var t,e=this.record,r=this.rowIndex,{columns:n,list:i}=this.config,{thumbnail:o,fields:a,details:s}=i||{},c=a.map((t=>n.find((e=>e.name==t)))).filter((t=>t))||[],l=s.map((t=>n.find((e=>e.name==t)))).filter((t=>t))||[],u=o?n.find((t=>t.name==o)):void 0,d=(n||[]).filter((t=>"gutter"==t.type&&t.forList)),h=d[0];if(this.hasAttribute("dirty"))switch(this.record.__dirty__){case"M":t="done";break;case"+":t="add";break;case"-":t="remove"}return nt(Sx||(Sx=Gx(["\n ","\n ","\n\n <div content>\n <div gutters>\n ","\n ","\n </div>\n\n <div brief>\n ","\n </div>\n ","\n </div>\n "])),t?nt(Dx||(Dx=Gx([" <mwc-icon dirty>","</mwc-icon> "])),t):nt(Ox||(Ox=Gx([""]))),u?nt(Px||(Px=Gx([" <ox-card-field\n thumbnail\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-card-field>"])),r,u,e,e[(null==u?void 0:u.name)||""]):nt(Ix||(Ix=Gx([""]))),h?nt(kx||(kx=Gx(["\n <ox-card-gutter\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-card-gutter>\n "])),r,h,e,e[h.name]):nt(Tx||(Tx=Gx([""]))),2===d.length?nt(Rx||(Rx=Gx(["\n <ox-card-gutter\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-card-gutter>\n "])),r,d[1],e,e[d[1].name]):d.length>2?nt(Fx||(Fx=Gx(["\n <ox-card-gutter-menu\n .gutters=","\n .rowIndex=","\n .record=","\n .clickHandler=","\n .dblclickHandler=","\n ></ox-card-gutter-menu>\n "])),d,r,e,this.clickHandler,this.dblclickHandler):nt(Nx||(Nx=Gx([""]))),c.map(((t,n)=>nt(Mx||(Mx=Gx(["\n <ox-card-field\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ?name=","\n ?desc=","\n ></ox-card-field>\n "])),r,t,e,e[(null==t?void 0:t.name)||""],0==n,1==n))),l.length>0?nt(Bx||(Bx=Gx(["\n <div detail>\n ","\n </div>\n "])),l.map(((t,n)=>nt(Lx||(Lx=Gx(["\n <ox-card-field\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-card-field>\n "])),r,t,e,e[(null==t?void 0:t.name)||""])))):nt(jx||(jx=Gx([""]))))}popupRecordView(){var t=this.config.list.fields[0]||"name",e=this.record[t];if("object"==typeof e){var r=this.config.columns.find((e=>e.name==t));e=null==r?void 0:r.record.renderer(e,r,this.record,this.rowIndex,this)}this._recordView=Mw(this.config.columns,this.record,this.rowIndex,this,{title:e},(()=>{delete this._recordView}))}};function Jx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Zx.styles=[S(Vx||(Vx=Gx(["\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: relative;\n }\n\n :host([dirty])::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n z-index: 1;\n\n width: 0px;\n height: 0px;\n border-top: var(--grid-record-dirty-border-top);\n border-right: var(--grid-record-dirty-border-left);\n }\n\n [dirty] {\n position: absolute;\n margin: 0;\n height: 20px;\n z-index: 2;\n\n font: var(--grid-record-dirty-icon-font);\n text-indent: 1px;\n left: 0;\n top: 0;\n color: var(--grid-record-dirty-color);\n }\n\n [thumbnail] {\n width: 100%;\n height: var(--data-card-thumbnail-height);\n border-top-left-radius: var(--data-card-record-card-border-radius);\n border-top-right-radius: var(--data-card-record-card-border-radius);\n border-bottom: var(--data-card-thumbnail-border-bottom);\n overflow: hidden;\n }\n\n [content] {\n display: grid;\n gap: 2px 7px;\n grid-template:\n 'brief gutters'\n 'detail detail';\n grid-template-columns: 1fr 35px;\n margin: var(--data-card-item-margin);\n }\n\n [brief] {\n display: flex;\n flex-direction: column;\n gap: 2px;\n grid-area: brief;\n }\n\n [gutters] {\n grid-area: gutters;\n }\n\n [detail] {\n grid-area: detail;\n }\n\n ox-card-gutter {\n flex: 0 0 14px;\n }\n\n ox-card-field {\n font: var(--data-card-item-etc-font);\n color: var(--data-card-item-etc-color);\n }\n\n ox-card-field[name] {\n font: var(--data-card-item-name-font);\n color: var(--data-card-item-name-color);\n }\n\n ox-card-field[desc] {\n font: var(--data-card-item-disc-font);\n color: var(--data-card-item-disc-color);\n }\n "])))],(0,t.gn)([a({type:Object})],Zx.prototype,"config",void 0),(0,t.gn)([a({type:Object})],Zx.prototype,"data",void 0),(0,t.gn)([a({type:Object})],Zx.prototype,"record",void 0),(0,t.gn)([a({type:Number})],Zx.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Boolean,attribute:"selected-row"})],Zx.prototype,"selectedRow",void 0),Zx=(0,t.gn)([e("ox-record-card")],Zx);var tA=class extends Z_{constructor(){super(...arguments),this._records=[],this.isTop=!1,this._total=0,this._limit=20,this._page=1}firstUpdated(t){this.isTop=!0,this.addEventListener("scroll",(t=>{if(this.scrollHeight<=this.offsetHeight+this.scrollTop+1){var e=Math.ceil(this._total/this._limit);this._page<e&&this.dispatchEvent(new CustomEvent("attach-page",{bubbles:!0,composed:!0}))}this.isTop=0==this.scrollTop}))}updated(t){t.has("config")&&(this._records=[],this._page=1),t.has("data")&&(this._records=this.data.records,this._total=this.data.total||0,this._limit=this.data.limit||20,this._page=this.data.page||0)}render(){var t=this._records||[];return this.config&&this.config.rows.appendable&&(t=[...t,{__dirty__:"+"}]),nt(qx||(qx=Jx(["\n ","\n ","\n ","\n "])),t.map(((t,e)=>nt(Wx||(Wx=Jx(["\n <ox-record-card\n .config=","\n .data=","\n .record=","\n .rowIndex=","\n ?selected-row=","\n ?dirty=","\n ></ox-record-card>\n "])),this.config,this.data,t,e,t.__selected__,t.__dirty__))),this.empty?nt(Yx||(Yx=Jx(['\n <ox-empty-note\n icon="list"\n title="EMPTY LIST"\n description="There are no records to be shown"\n ></ox-empty-note>\n ']))):nt(Xx||(Xx=Jx([""]))),this.isTop?nt($x||($x=Jx([""]))):nt(Qx||(Qx=Jx([' <mwc-icon id="upward" @click=',">arrow_upward</mwc-icon> "])),(t=>this.gotoTop(t))))}gotoTop(t){this.scrollTop=0,t.stopPropagation()}get pullToRefreshTarget(){return this}};tA.styles=[S(Kx||(Kx=Jx(["\n :host {\n background-color: var(--data-card-background-color);\n overflow-y: auto;\n padding: var(--padding-wide);\n\n display: grid;\n grid-template-columns: var(--data-card-template);\n grid-template-rows: min-content;\n\n grid-gap: var(--margin-wide);\n }\n\n ox-record-card {\n height: min-content;\n align-items: stretch;\n background-color: var(--data-card-record-card-background-color);\n border: var(--data-card-record-card-border);\n border-radius: var(--data-card-record-card-border-radius);\n }\n ox-record-card:hover {\n border: var(--data-card-record-card-border-hover);\n box-shadow: var(--data-card-record-card-boxshadow-hover);\n }\n\n [selected-row] {\n background-color: var(--data-card-record-card-selected-border);\n }\n\n #upward {\n --mdc-icon-size: 26px;\n position: absolute;\n top: var(--data-card-fab-position-vertical);\n right: var(--data-card-fab-position-horizontal);\n background-color: rgba(255, 255, 255, 0.7);\n border-radius: 20px;\n color: var(--data-card-fab-color);\n box-shadow: var(--data-card-fab-shadow);\n padding: 7px;\n }\n\n slot {\n width: 100%;\n }\n\n ox-empty-note {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n @media screen and (max-width: 460px) {\n #setting {\n grid-template-columns: 1fr;\n grid-template-rows: 1fr 1fr;\n }\n }\n "])))],(0,t.gn)([a({type:Boolean})],tA.prototype,"empty",void 0),(0,t.gn)([u()],tA.prototype,"_records",void 0),(0,t.gn)([u()],tA.prototype,"isTop",void 0),tA=(0,t.gn)([e("ox-card")],tA);var eA=Object.prototype.hasOwnProperty;const rA=function(t){if(null==t)return!0;if(yc(t)&&(Vo(t)||"string"==typeof t||"function"==typeof t.splice||Zs(t)||cc(t)||Xs(t)))return!t.length;var e=Bc(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(pc(t))return!vc(t).length;for(var r in t)if(eA.call(t,r))return!1;return!0};function nA(t,e,r){var n,i=function(){var t=!1;try{var e={get passive(){return t=!0,!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}(),o=!1,a=function(t){return(o=t)&&o.document&&function(t){return 9===t.nodeType}(o.document)?(r=(e=t).document,n=r.body,i=r.documentElement,{scrollHeight:function(){return Math.max(n.scrollHeight,i.scrollHeight,n.offsetHeight,i.offsetHeight,n.clientHeight,i.clientHeight)},height:function(){return e.innerHeight||i.clientHeight||n.clientHeight},scrollY:function(){return void 0!==e.pageYOffset?e.pageYOffset:(i||n.parentNode||n).scrollTop}}):function(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}(t);var e,r,n,i,o}(t),s=a.scrollY(),c={};function l(){var t=Math.round(a.scrollY()),n=a.height(),i=a.scrollHeight();c.scrollY=t,c.lastScrollY=s,c.direction=t>s?"down":"up",c.distance=Math.abs(t-s),c.isOutOfBounds=t<0||t+n>i,c.top=t<=e.offset[c.direction],c.bottom=t+n>=i,c.toleranceExceeded=c.distance>e.tolerance[c.direction],r(c),s=t,o=!1}function u(){o||(o=!0,n=requestAnimationFrame(l))}var d=!!i&&{passive:!0,capture:!1};return t.addEventListener("scroll",u,d),l(),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",u,d)}}}function iA(t){return t===Object(t)?t:{down:t,up:t}}class oA{constructor(t,e){e=e||{},Object.assign(this,oA.options,e),this.classes=Object.assign({},oA.options.classes,e.classes),this.elem=t,this.tolerance=iA(this.tolerance),this.offset=iA(this.offset),this.initialised=!1,this.frozen=!1}init(){return this.initialised||(this.addClass("initial"),this.initialised=!0,setTimeout((function(t){t.scrollTracker=nA(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))}),100,this)),this}destroy(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()}unpin(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))}pin(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))}freeze(){this.frozen=!0,this.addClass("frozen")}unfreeze(){this.frozen=!1,this.removeClass("frozen")}top(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))}notTop(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))}bottom(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))}notBottom(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))}shouldUnpin(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded}shouldPin(t){return"up"===t.direction&&t.toleranceExceeded||t.top}addClass(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))}removeClass(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))}hasClass(t){return this.classes[t].split(" ").every((function(t){return this.classList.contains(t)}),this.elem)}update(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}}oA.options={tolerance:{up:0,down:0},offset:0,scroller:window,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}};const aA=oA;var sA,cA;function lA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var uA=class extends At{render(){return nt(sA||(sA=lA(['\n <svg class="pull-to-refresh-material__icon" fill="#4285f4" width="24" height="24" viewBox="0 0 24 24">\n <path\n d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"\n />\n <path d="M0 0h24v24H0z" fill="none" />\n </svg>\n\n <svg class="pull-to-refresh-material__spinner" width="24" height="24" viewBox="25 25 50 50">\n <circle\n class="pull-to-refresh-material__path"\n cx="50"\n cy="50"\n r="20"\n fill="none"\n stroke="#4285f4"\n stroke-width="4"\n stroke-miterlimit="10"\n />\n </svg>\n '])))}pulling(t,e){var{threshold:r}=e,n=t/r;n>1?n=1:n*=n*n;var i=t/2.5;this.style.opacity=String(n),this.style.transform=i?"translate3d(-50%, ".concat(i,"px, 0) rotate(").concat(360*n,"deg)"):""}refreshing(t){var{threshold:e}=t;this.style.transition="transform 0.2s",this.style.transform="translate3d(-50%, ".concat(e/2.5,"px, 0)")}aborting(){return new Promise((t=>{this.style.transform?(this.style.transition="transform 0.3s, opacity 0.15s",this.style.transform="translate3d(-50%, 0, 0)",this.style.opacity="0",this.addEventListener("transitionend",(()=>{this.style.transition="",t()}))):t()}))}restoring(){return new Promise((t=>{this.style.transition="transform 0.3s",this.style.transform+=" scale(0.01)",this.addEventListener("transitionend",(()=>{this.style.transition="",t()}))}))}};function dA(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function hA(t){t=Object.assign({scrollable:document.body,threshold:150,onStateChange(){}},t);var{container:e,scrollable:r,threshold:n,refresh:i,onStateChange:o,animates:a}=t;a||(a=document.createElement("ox-pulltorefresh-control"),e.appendChild(a));var s,c=-1,l=-1;function u(t){a.classList.add("pull-to-refresh--"+t)}function d(t){a.classList.remove("pull-to-refresh--"+t)}return function(t){var e,r,n,i,{element:o,animates:a,onpanstart:s,onpanmove:c,onpanend:l}=t;function u(t){var i=Array.prototype.slice.call(t.changedTouches).filter((t=>t.identifier===e))[0];return!!i&&(t.deltaX=i.screenX-r,t.deltaY=i.screenY-n,!0)}function d(t){var i=t.changedTouches[0];e=i.identifier,r=i.screenX,n=i.screenY}function h(t){u(t)&&(s&&!i&&(s(t),i=!0),c(t))}function p(t){u(t)&&l(t)}return o.addEventListener("touchstart",d),c&&o.addEventListener("touchmove",h),l&&o.addEventListener("touchend",p),function(){o.removeEventListener("touchstart",d),c&&o.removeEventListener("touchmove",h),l&&o.removeEventListener("touchend",p),a&&a.remove()}}({element:e,animates:a,onpanmove(e){var i=e.deltaY;(!r||[window,document,document.body,document.documentElement].includes(r)?document.documentElement.scrollTop||document.body.scrollTop:r.scrollTop)>0||i<0&&!s||s in{aborting:1,refreshing:1,restoring:1}||(e.cancelable&&e.preventDefault(),-1==c&&(l=i,u(s="pulling"),o(s,t)),(i-=l)<0&&(i=0),c=i,(i>=n&&"reached"!==s||i<n&&"pulling"!==s)&&(d(s),u(s="reached"===s?"pulling":"reached"),o(s,t)),a.pulling(i,t))},onpanend:()=>function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){dA(o,n,i,a,s,"next",t)}function s(t){dA(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){""!=s&&("pulling"===s?(d(s),o(s="aborting"),u(s),yield a.aborting(t),d(s),c=-1,l=-1,o(s="")):"reached"===s&&(d(s),u(s="refreshing"),o(s,t),a.refreshing(t),yield i(),d(s),u(s="restoring"),o(s),yield a.restoring(t),d(s),c=-1,l=-1,o(s="")))}))()})}uA.styles=S(cA||(cA=lA(["\n :host {\n position: absolute;\n top: -50px;\n left: 50%;\n -webkit-transform: translate3d(-50%, 0, 0);\n transform: translate3d(-50%, 0, 0);\n width: 40px;\n height: 40px;\n justify-content: center;\n align-items: center;\n background: #fff;\n border-radius: 50%;\n box-shadow: 0 1px 6px rgba(0, 0, 0, 0.117647), 0 1px 4px rgba(0, 0, 0, 0.117647);\n display: none;\n\n z-index: 10000;\n\n will-change: transform;\n }\n\n :host(.pull-to-refresh--pulling),\n :host(.pull-to-refresh--aborting),\n :host(.pull-to-refresh--reached),\n :host(.pull-to-refresh--refreshing),\n :host(.pull-to-refresh--restoring) {\n display: flex;\n }\n\n :host(.pull-to-refresh--pulling) .pull-to-refresh-material__spinner,\n :host(.pull-to-refresh--aborting) .pull-to-refresh-material__spinner,\n :host(.pull-to-refresh--reached) .pull-to-refresh-material__spinner,\n :host(.pull-to-refresh--refreshing) .pull-to-refresh-material__icon,\n :host(.pull-to-refresh--restoring) .pull-to-refresh-material__icon {\n display: none;\n }\n\n .pull-to-refresh-material__spinner {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n -webkit-animation: pull-to-refresh-material-rotate 2s linear infinite;\n animation: pull-to-refresh-material-rotate 2s linear infinite;\n }\n\n .pull-to-refresh-material__path {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n -webkit-animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite;\n animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite;\n }\n\n .pull-to-refresh-material__path--colorful {\n -webkit-animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite,\n pull-to-refresh-material-colorful 6s ease-in-out infinite;\n animation: pull-to-refresh-material-dash 1.5s ease-in-out infinite,\n pull-to-refresh-material-colorful 6s ease-in-out infinite;\n }\n\n @-webkit-keyframes pull-to-refresh-material-rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @keyframes pull-to-refresh-material-rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n\n @-webkit-keyframes pull-to-refresh-material-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n }\n\n @keyframes pull-to-refresh-material-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n }\n\n @-webkit-keyframes pull-to-refresh-material-colorful {\n 100%,\n 0% {\n stroke: #4285f4;\n }\n 40% {\n stroke: #ea4335;\n }\n 66% {\n stroke: #fbbc05;\n }\n 80%,\n 90% {\n stroke: #34a853;\n }\n }\n\n @keyframes pull-to-refresh-material-colorful {\n 100%,\n 0% {\n stroke: #4285f4;\n }\n 40% {\n stroke: #ea4335;\n }\n 66% {\n stroke: #fbbc05;\n }\n 80%,\n 90% {\n stroke: #34a853;\n }\n }\n "]))),uA=(0,t.gn)([e("ox-pulltorefresh-control")],uA);var pA,fA,mA=function(){};function gA(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function vA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var yA,bA=S(pA||(pA=vA(["\n :host {\n display: flex;\n\n align-items: center;\n\n width: 100%;\n height: 100%;\n\n border: 0;\n background-color: transparent;\n\n overflow: hidden;\n justify-content: var(--data-grid-field-justify-content, flex-start);\n }\n\n :host > * {\n display: flex;\n\n width: 100%;\n height: 100%;\n\n border: 0;\n background-color: transparent;\n\n box-sizing: border-box;\n\n align-items: center;\n }\n\n :host > style {\n display: none;\n }\n\n :host > input[type='checkbox'] {\n width: initial;\n margin: 0;\n }\n input[type='checkbox'],\n input[type='radio'] {\n zoom: var(--grist-input-zoom);\n }\n *:focus {\n outline: none;\n }\n\n input[type='file'] {\n opacity: 0%;\n }\n\n @media screen and (max-width: 460px) {\n :host > * {\n border: initial;\n background-color: initial;\n }\n\n *:focus {\n outline: none;\n }\n\n input,\n select,\n textarea {\n font-size: 16px;\n }\n }\n"]))),wA=class extends At{constructor(){super(...arguments),this.column=Ud,this.record=Gd}render(){return this.editorTemplate}get editor(){return this.renderRoot.firstElementChild}firstUpdated(){var t=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){gA(o,n,i,a,s,"next",t)}function s(t){gA(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){t.renderRoot.addEventListener("change",t._onchange.bind(t)),t.renderRoot.addEventListener("focusout",t._onfocusout.bind(t)),t.addEventListener("click",t._onclick.bind(t)),t.addEventListener("dblclick",t._ondblclick.bind(t)),t.addEventListener("keydown",t._onkeydown.bind(t)),t.addEventListener("mousedown",(t=>t.stopPropagation())),t.addEventListener("mousemove",(t=>t.stopPropagation())),t.addEventListener("mouseup",(t=>t.stopPropagation()));var e=t.column.record.align;e&&(t.style.textAlign=e,t.style.textAlignLast=e);var r=t.column.name||"";t.value=t._dirtyValue=t.formatForEditor(t.record[r]),t.focus(),yield t.updateComplete,t.select()}))()}select(){var t;if(null===(t=this.editor)||void 0===t?void 0:t.select)return this.editor.select()}focus(){var t;null===(t=this.editor)||void 0===t||t.focus()}formatForEditor(t){return null==t?"":t}formatFromEditor(t){return t.target.value}_onfocusout(){this._dirtyValue!==this.value&&this.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:{before:this.value,after:this._dirtyValue,column:this.column,record:this.record,row:this.row}}))}_onchange(t){t.stopPropagation(),this._dirtyValue=this.formatFromEditor(t)}_onkeydown(t){}_onclick(t){t.stopPropagation()}_ondblclick(t){t.stopPropagation()}get editorTemplate(){return nt(fA||(fA=vA([""])))}};wA.styles=bA,(0,t.gn)([a({type:Object})],wA.prototype,"value",void 0),(0,t.gn)([a({type:Object})],wA.prototype,"column",void 0),(0,t.gn)([a({type:Object})],wA.prototype,"record",void 0),(0,t.gn)([a({type:Number})],wA.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],wA.prototype,"field",void 0),(0,t.gn)([a({type:Number})],wA.prototype,"row",void 0),wA=(0,t.gn)([e("ox-grist-editor")],wA);var _A,EA=class extends wA{formatFromEditor(t){return t.target.checked}get editorTemplate(){return nt(yA||(yA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="checkbox" .checked='," /> "])),!!this.value)}};EA=(0,t.gn)([e("ox-grist-editor-checkbox")],EA);var xA,AA=class extends wA{get editorTemplate(){return nt(_A||(_A=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="color" .value='," /> "])),this.value)}};AA=(0,t.gn)([e("ox-grist-editor-color")],AA);var CA,SA=class extends wA{get editorTemplate(){return nt(xA||(xA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="date" .value='," /> "])),this.value)}};SA=(0,t.gn)([e("ox-grist-editor-date")],SA);var DA,OA=class extends wA{formatForEditor(t){t||(t=Date.now());var e=6e4*new Date(t).getTimezoneOffset();return new Date(t-e).toISOString().slice(0,-1)}formatFromEditor(t){var e=t.target.value;return new Date(e).getTime()}get editorTemplate(){return nt(CA||(CA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="datetime-local" .value='," /> "])),this.value)}};OA=(0,t.gn)([e("ox-grist-editor-datetime")],OA);var PA,IA=class extends wA{get editorTemplate(){return nt(DA||(DA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="email" .value='," /> "])),this.value)}};IA=(0,t.gn)([e("ox-grist-editor-email")],IA);var kA,TA,RA,FA=class extends wA{formatFromEditor(t){return t.target.files}get editorTemplate(){return"string"==typeof this.value||this.value,nt(PA||(PA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input style="opacity: 1" type="file" /> '])))}};function NA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}FA=(0,t.gn)([e("ox-grist-editor-file")],FA);var MA,BA=new URL(__webpack_require__(63155),__webpack_require__.b).href,LA=(kA=class extends sh{render(){var t,e=this.value;return e?"string"==typeof e?t=e:(t=URL.createObjectURL(e),requestAnimationFrame((()=>URL.revokeObjectURL(t)))):t=BA,nt(TA||(TA=NA(["\n <img\n src=",'\n style="max-width: 100%;"\n onerror="this.src !== \'',"' && (this.src = '",'\')"\n />\n\n <div overlay>\n <label>\n <input\n id="input-file"\n type="file"\n accept="image/*"\n hidden\n capture="environment"\n @change=',"\n />\n <mwc-icon>upload</mwc-icon>\n </label>\n </div>\n "])),t,BA,BA,(t=>this._onChangeValue(t)))}firstUpdated(){Ui.set(this),this.addEventListener("file-drop",(t=>{var e=t.detail;this.value=e[0],this._notifyChange()}))}get file(){return this.value}reset(){this.fileInput.value="",this.value=[],this._notifyChange()}_onChangeValue(t){var e=t.currentTarget;this.value=[...Array.from(e.files)][0],e.files=null,this._notifyChange()}_notifyChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:this.value}))}},kA.styles=[al,S(RA||(RA=NA(["\n :host {\n position: relative;\n box-sizing: border-box;\n\n display: flex;\n flex-direction: column;\n place-content: center;\n border-radius: var(--border-radius);\n padding: var(--padding-default, 9px);\n min-height: 100px;\n text-transform: capitalize;\n\n border: var(--file-uploader-border);\n background-color: var(--main-section-background-color);\n font: var(--file-uploader-font) !important;\n color: var(--file-uploader-color);\n\n overflow: hidden;\n }\n\n :host(.candrop) {\n background-color: var(--file-uploader-candrop-background-color);\n }\n\n img {\n min-height: 100%;\n margin: auto;\n }\n\n [overlay] {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n opacity: 0%;\n background-color: white;\n\n display: flex;\n place-content: center;\n }\n\n [overlay]:hover {\n opacity: 50%;\n }\n\n #input-file {\n display: none;\n }\n\n label {\n border: none;\n flex: 1;\n display: flex;\n place-content: center;\n }\n\n mwc-icon {\n align-self: center;\n\n color: var(--file-uploader-icon-color, black);\n --mdc-icon-size: var(--file-uploader-icon-size, 36px);\n }\n "])))],kA);(0,t.gn)([v("#input-file")],LA.prototype,"fileInput",void 0),LA=(0,t.gn)([e("ox-input-image")],LA);var jA,VA=class extends wA{get editorTemplate(){return nt(MA||(MA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([" <ox-input-image .value=","></ox-input-image> "])),this.value)}_onchange(t){t.stopPropagation(),this._dirtyValue=this.formatFromEditor(t),this._onfocusout()}formatFromEditor(t){var e,r=t.target;return(null===(e=r.files)||void 0===e?void 0:e[0])?r.files[0]:r.value}};VA=(0,t.gn)([e("ox-grist-editor-image")],VA);var zA,UA=class extends wA{get editorTemplate(){return nt(jA||(jA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="month" .value='," /> "])),this.value)}};UA=(0,t.gn)([e("ox-grist-editor-month")],UA);var HA,GA=class extends wA{formatFromEditor(t){var e=t.target.value;switch(this.column.type){case"float":return Number.parseFloat(e);case"integer":return Number.parseInt(e);default:return Number(e)}}get editorTemplate(){var{min:t=-1/0,max:e=1/0}=this.column.record.options||{};return nt(zA||(zA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="number" .value='," .min="," .max="," /> "])),this.value,Number(t),Number(e))}};GA=(0,t.gn)([e("ox-grist-editor-number")],GA);var qA,WA,YA=class extends wA{get editorTemplate(){return nt(HA||(HA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="password" .value='," /> "])),this.value)}};function XA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}YA=(0,t.gn)([e("ox-grist-editor-password")],YA);var $A,QA=class extends wA{get editorTemplate(){var t=this.record[this.column.record.rowOptionField||""],{options:e=[]}=t||this.column.record;return"function"==typeof e&&(e=e.call(null,this.value,this.column,this.record,this.rowIndex,this.field)),e=e.map((t=>{switch(typeof t){case"string":return{display:t,value:t};case"object":return{display:t.display,value:t.value};default:return t}})),nt(qA||(qA=XA(["\n <select>\n ","\n </select>\n "])),e.map((t=>nt(WA||(WA=XA(["\n <option ?selected="," value=",">","</option>\n "])),t.value==this.value,t.value,t.display))))}};QA=(0,t.gn)([e("ox-grist-editor-select")],QA);var KA,ZA=class extends wA{get editorTemplate(){return nt($A||($A=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="tel" .value='," /> "])),this.value)}};ZA=(0,t.gn)([e("ox-grist-editor-tel")],ZA);var JA,tC=class extends wA{get editorTemplate(){return nt(KA||(KA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="text" .value='," /> "])),this.value)}};tC=(0,t.gn)([e("ox-grist-editor-text")],tC);var eC,rC=class extends wA{get editorTemplate(){return nt(JA||(JA=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="time" .value='," /> "])),this.value)}};rC=(0,t.gn)([e("ox-grist-editor-time")],rC);var nC=class extends wA{get editorTemplate(){return nt(eC||(eC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([' <input type="week" .value='," /> "])),this.value)}};nC=(0,t.gn)([e("ox-grist-editor-week")],nC);var iC,oC,aC,sC,cC,lC,uC,dC,hC={string:tC,text:tC,email:IA,tel:ZA,password:YA,integer:GA,float:GA,number:GA,select:QA,boolean:EA,checkbox:EA,month:UA,week:nC,date:SA,time:rC,datetime:OA,color:AA,progress:GA,link:tC,image:VA,file:FA};function pC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function fC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var mC=class extends At{render(){switch(this.value){case"+":return nt(aC||(aC=fC([" <mwc-icon style="," center add>add</mwc-icon> "])),yC);case"-":return nt(sC||(sC=fC([" <mwc-icon style="," center remove>remove</mwc-icon> "])),yC);case"M":return nt(cC||(cC=fC([" <mwc-icon style="," center done>done</mwc-icon> "])),yC);default:return""}}};mC.styles=S(lC||(lC=fC(["\n :host {\n display: block;\n text-align: center !important;\n }\n mwc-icon {\n width: var(--grid-record-dirty-icon-size);\n height: var(--grid-record-dirty-icon-size);\n border-radius: 50%;\n opacity: 0.8;\n }\n [add] {\n background-color: var(--status-success-color);\n }\n [remove] {\n background-color: var(--status-danger-color);\n }\n [done] {\n background-color: var(--status-info-color);\n }\n "]))),(0,t.gn)([a({type:String})],mC.prototype,"value",void 0),mC=(0,t.gn)([e("ox-gutter-dirty-element")],mC);var gC,vC,yC="font-size: var(--grid-record-fontsize);vertical-align: middle; color: var(--grid-record-dirty-color)";function bC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function wC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _C(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var EC,xC={sequence:class{static instance(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wC(Object(r),!0).forEach((function(e){_C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({type:"gutter",name:"__seq__",getterType:"sequence",width:function(t){if(this.data)var{limit:e=0,page:r=1,records:n=[]}=this.data||{},i=(r-1)*e+n.length;else i=100;return"".concat(Math.max(String(i).length,2),"ch")},resizable:!1,sortable:!1,header:"#",record:{renderer:function(t,e,r,n,i){return t},align:"right"},forGrid:!0,forList:!1,forCard:!1,handlers:{dblclick:(t,e,r,n,i,o)=>{o.dispatchEvent(new CustomEvent("set-select-block",{bubbles:!0,composed:!0,detail:{startRow:i,startColumn:0,endRow:i,endColumn:-1}}))}}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},"row-selector":class{static instance(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({},{type:"gutter",name:"__selected__",gutterType:"row-selector",width:30,resizable:!1,sortable:!1,header:{renderer:function(t){var e=((this.data||{}).records||[]).find((t=>t.__selected__));return nt(gC||(gC=bC(['\n <input\n type="checkbox"\n .checked=',"\n @change=","\n />\n "])),e,(e=>{var r=!!t.multiple&&e.target.checked;this.dispatchEvent(new CustomEvent("select-all-change",{bubbles:!0,composed:!0,detail:{selected:r}})),e.stopPropagation()}))}},record:{align:"center",renderer:function(t,e,r,n,i){return nt(vC||(vC=bC(["\n <input\n type=","\n .checked=","\n @click=","\n @change=","\n />\n "])),e.multiple?"checkbox":"radio",!!t,(t=>{t.stopPropagation()}),(t=>{var n=t.target.checked,o=e.multiple?{added:n?[r]:[],removed:n?[]:[r]}:{records:n?[r]:[]};i.dispatchEvent(new CustomEvent("select-record-change",{bubbles:!0,composed:!0,detail:o})),t.stopPropagation()}))}},forGrid:!0,forList:!0,forCard:!0},t)}},button:class{static instance(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{icon:e="edit",title:r}=t,n="function"==typeof e?e:()=>e;return Object.assign({},{type:"gutter",gutterType:"button",width:26,resizable:!1,sortable:!1,header:{renderer:function(t){return nt(iC||(iC=pC([" <mwc-icon style="," title=",">","</mwc-icon> "])),"font-size: var(--grid-record-fontsize);margin-top:1px;",r,n())}},record:{align:"center",renderer:function(t,e,i,o,a){return nt(oC||(oC=pC([" <mwc-icon style="," title=",">","</mwc-icon> "])),"font-size: var(--grid-record-fontsize);margin-top:1px;",r,n(i))}},forGrid:!0,forList:!0,forCard:!0},t)}},dirty:class{static instance(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"gutter",name:"__dirty__"};return Object.assign({},{type:"gutter",name:"__dirty__",gutterType:"dirty",width:30,resizable:!1,sortable:!1,header:"",record:{renderer:function(t,e,r,n,i){return t?nt(uC||(uC=fC([" <ox-gutter-dirty-element value=","></ox-gutter-dirty-element> "])),t):nt(dC||(dC=fC([""])))}},forGrid:!0,forList:!1,forCard:!1,handlers:{dblclick:(t,e,r,n,i,o)=>{o.dispatchEvent(new CustomEvent("set-select-block",{bubbles:!0,composed:!0,detail:{startRow:i,startColumn:0,endRow:i,endColumn:-1}}))}}},t)}}},AC={"record-view":function(t,e,r,n,i,o){o.dispatchEvent(new CustomEvent("show-record-view",{bubbles:!0,composed:!0,detail:{record:n,row:i}}))},"select-row":function(t,e,r,n,i,o){o.dispatchEvent(new CustomEvent("select-record-change",{bubbles:!0,composed:!0,detail:{added:[n]}}))},"select-row-toggle":function(t,e,r,n,i,o){o.dispatchEvent(new CustomEvent("select-record-change",{bubbles:!0,composed:!0,detail:n.__selected__?{removed:[n]}:{added:[n]}}))},"move-up":function(t,e,r,n,i,o){var a=i-1,s=e.records.length;i>=s||a<0||a>=s||(e.records.splice(i,1),e.records.splice(a,0,n),o.dispatchEvent(new CustomEvent("record-change",{bubbles:!0,composed:!0})),o.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:a,column:r}})))},"move-down":function(t,e,r,n,i,o){var a=i+1,s=e.records.length;i>=s||a<0||a>=s||(e.records.splice(i,1),e.records.splice(a,0,n),o.dispatchEvent(new CustomEvent("record-change",{bubbles:!0,composed:!0})),o.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:a,column:r}})))},"record-copy":function(t,e,r,n,i,o){if(!(i>=e.records.length)){var a={__dirty__:"+"};t.filter((t=>t.record.editable)).forEach((t=>{a[t.name]=n[t.name]})),e.records.splice(i+1,0,a),o.dispatchEvent(new CustomEvent("record-change",{bubbles:!0,composed:!0}))}}};function CC(t){return"function"==typeof t?t:AC[t]}var SC,DC,OC,PC,IC,kC,TC,RC,FC,NC,MC=(t,e,r,n,i)=>nt(EC||(EC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n <input\n type="checkbox"\n .checked=',"\n ?disabled=","\n @click=","\n />\n "])),!!t,!e.record.editable,(o=>{i.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:{before:t,after:o.target.checked,column:e,record:r,row:n}}))})),BC={datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},time:{hour:"numeric",minute:"numeric",second:"numeric"},date:{year:"numeric",month:"numeric",day:"numeric"}},LC=(t,e,r,n,i)=>{if(!t)return"";isNaN(Number(t))||(t=Number(t));var o=e.record.options||BC[e.type],a=new Intl.DateTimeFormat(navigator.language,o);switch(e.type){case"datetime":case"date":t=a.format(new Date(t))}return nt(DC||(DC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span>","</span>"])),t)},jC=new URL(__webpack_require__(17699),__webpack_require__.b).href;function VC(t){var e,r=t.target;try{e=Vw().parse(r.textContent)}catch(t){}r.setAttribute("data-tooltip",Vw().stringify(e,null,2))}function zC(t){t.target.removeAttribute("data-tooltip")}function UC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function HC(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function GC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var qC,WC,YC=S(FC||(FC=GC([""]))),XC=class extends At{constructor(){super(...arguments),this.column=Ud,this.record=Gd}render(){return this.rendererTemplate}firstUpdated(){var t=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){HC(o,n,i,a,s,"next",t)}function s(t){HC(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){var e=t.column.record.align;e&&(t.style.textAlign=e)}))()}get rendererTemplate(){return nt(NC||(NC=GC([""])))}};function $C(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}XC.styles=YC,(0,t.gn)([a({type:Object})],XC.prototype,"value",void 0),(0,t.gn)([a({type:Object})],XC.prototype,"column",void 0),(0,t.gn)([a({type:Object})],XC.prototype,"record",void 0),(0,t.gn)([a({type:Number})],XC.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],XC.prototype,"field",void 0),(0,t.gn)([a({type:Number})],XC.prototype,"row",void 0),XC=(0,t.gn)([e("ox-grist-renderer")],XC);var QC=class extends XC{get rendererTemplate(){var{min:t=0,max:e=100}=this.column.record.options||{},r=Number(this.value),n=isNaN(r)?0:Math.min(100,Math.max(0,100*(r-t)/(e-t)));return nt(qC||(qC=$C(['\n <div id="border"></div>\n <div id="bar" style="width:','%">&nbsp;',"</div>\n "])),n,n)}};QC.styles=S(WC||(WC=$C(["\n :host {\n display: block;\n position: relative;\n\n width: 100%;\n }\n\n #border {\n display: block;\n position: absolute;\n\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n\n border: var(--grist-input-progress-border);\n background-color: var(--grist-input-progress-background);\n }\n\n #bar {\n background-color: var(--grist-input-progress-bar-background);\n text-align: left;\n color: var(--grist-input-progress-bar-color);\n }\n "]))),QC=(0,t.gn)([e("ox-grist-progress-renderer")],QC);var KC,ZC,JC,tS=__webpack_require__(51266);function eS(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function rS(t){var e=t.target;Gi(e)&&e.setAttribute("data-tooltip",e.textContent)}function nS(t){t.target.removeAttribute("data-tooltip")}var iS=(t,e,r,n,i)=>{var{format:o}=e.record||{},a=null==t?"":t;return o&&(a=function(t,e){if(!t||isNaN(+e))return e;var r,n,i,o,a,s,c,l,u,d=t.length,h=t.search(/[0-9\-\+#]/),p=h>0?t.substring(0,h):"",f=t.split("").reverse().join(""),m=f.search(/[0-9\-\+#]/),g=d-m,v=t.substring(g,g+1),y=g+("."===v||","===v?1:0),b=m>0?t.substring(y,d):"";if(r=(e="-"===(t=t.substring(h,y)).charAt(0)?-e:+e)<0?e=-e:0,i=(n=t.match(/[^\d\-\+#]/g))&&n[1]&&n[0]||",",t=t.split("."),e=+(e=e.toFixed(t[1]&&t[1].length))+"",a=t[1]&&t[1].lastIndexOf("0"),(!(c=e.split("."))[1]||c[1]&&c[1].length<=a)&&(e=(+e).toFixed(a+1)),l=t[0].split(i),t[0]=l.join(""),(o=t[0]&&t[0].indexOf("0"))>-1)for(;c[0].length<t[0].length-o;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((e=e.split("."))[0]=c[0],s=l[1]&&l[l.length-1].length){for(f="",g=(u=e[0]).length%s,d=u.length,y=0;y<d;y++)f+=u.charAt(y),!((y-g+1)%s)&&y<d-s&&(f+=i);e[0]=f}return e[1]=t[1]&&e[1]?"."+e[1]:"","0"!==(n=e.join(""))&&""!==n||(r=!1),p+("+"==t[0].substring(0,1)?r?"-":"+":r?"-":"")+n+b}(o,a)),nt(JC||(JC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span @mouseover="," @mouseout=",">","</span>"])),rS,nS,a)},oS={string:iS,text:iS,email:iS,tel:iS,password:(t,e,r,n,i)=>nt(RC||(RC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span>********</span>"]))),integer:iS,float:iS,number:iS,select:(t,e,r,n,i)=>{if(null==t)return"";var o=e.record.rowOptionField&&r[e.record.rowOptionField],a=(null==o?void 0:o.options)?o.options:e.record.options;a?"function"==typeof a&&(a=a.call(null,t,e,r,n,i)):tS.error("options value for select '".concat(e.name,"' column is mandatory."));var s=a?a.filter((e=>e.value==String(null==t?"":t))):[];return s.length?nt(KC||(KC=eS(["<span>","</span>"])),s[0].display):nt(ZC||(ZC=eS(["<span>","</span>"])),t)},boolean:MC,checkbox:MC,month:iS,week:iS,date:LC,time:LC,datetime:LC,color:(t,e,r,n,i)=>(t=null==t?"#000":t,nt(SC||(SC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['\n <div\n style="display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:',';"\n >\n <p>',"</p>\n </div>\n "])),t,t)),progress:QC,link:(t,e,r,n,i)=>{var{href:o,target:a}=e.record.options||{};return t=null==t?"":t,"function"==typeof o&&(o=o(t,e,r,n,i)),a?nt(kC||(kC=UC([' <a style="text-decoration:none;color:inherit" href='," target=",">","</a> "])),o||t,a,t):nt(TC||(TC=UC([' <a style="text-decoration:none;color:inherit" href=',">","</a> "])),o||t,t)},image:(t,e,r,n,i)=>{var o;t?"string"==typeof t?o=t:(o=URL.createObjectURL(t),requestAnimationFrame((()=>URL.revokeObjectURL(o)))):o=jC;var{width:a,height:s}=e.record.options||{};return nt(PC||(PC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}([" <img\n src=","\n width=","\n height=",'\n style="object-fit: contain; max-width: 100%;"\n onerror="this.src !== \'',"' && (this.src = '","')\"\n />"])),o,a,s,jC,jC)},file:(t,e,r,n,i)=>{var o;return o=t?"string"==typeof t?t:t[0].name:"",nt(OC||(OC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span>","</span>"])),o)},json5:(t,e,r,n,i)=>{var o=t;if("string"==typeof t)try{o=Vw().parse(t)}catch(t){}var a=null==o?"":Vw().stringify(o);return nt(IC||(IC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<pre @mouseover="," @mouseout=",">","</pre>"])),VC,zC,a)}};function aS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aS(Object(r),!0).forEach((function(e){cS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cS(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lS=t=>{var e=sS({},t);"gutter"==t.type&&(e=(t=>{var e=xC[t.gutterName||""];if(e)return e.instance(t)})(t));var{name:r,header:n,record:i,handlers:o,label:a,filter:s}=e;if("string"==typeof n&&(e.header={renderer:()=>n}),a)switch(typeof a){case"boolean":var c="string"==typeof n?n:r;e.label={renderer:()=>c};break;case"string":e.label={renderer:()=>a};break;default:e.label=a}else e.label=!1;var l,{renderer:u,editor:d,editable:h,classifier:p}=i||{};if(u=function(t){if("function"==typeof t)return t;var e,r=oS[t||"text"]||iS;return"function"==typeof(e=r)&&/^class\s/.test(Function.prototype.toString.call(e))?function(t,e,n,i,o){var a=new r;return a.value=t,a.record=n,a.column=e,a.row=i,a.field=o,a}:r}(u||t.type),h&&"function"!=typeof d&&(d="function"==typeof(l=t.type)?l:function(t,e,r,n,i){var o=new(hC[l||"text"]||tC);return o.value=t,o.record=r,o.column=e,o.row=n,o.field=i,o}),"function"!=typeof p&&(p=mA),e.record=sS(sS({},i),{},{classifier:p,renderer:u,editor:d}),s)switch(typeof s){case"boolean":e.filter={type:t.type,operator:"eq"};break;case"string":e.filter={type:t.type,operator:s};break;default:e.filter=sS({type:t.type,operator:"eq"},s)}var{click:f,dblclick:m}=o||{};return e.handlers={click:f&&CC(f),dblclick:m&&CC(m)},e};function uS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dS(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hS=t=>function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uS(Object(r),!0).forEach((function(e){dS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({fields:["name","description","updatedAt"],details:[]},t),pS=t=>{var{appendable:e=!0,insertable:r=!1,selectable:n,groups:i=[],totals:o=[],classifier:a}=t,{click:s,dblclick:c}=t.handlers||{};return"function"!=typeof a&&(a=mA),{appendable:e,insertable:r,selectable:n,groups:i,totals:o,handlers:{click:CC(s),dblclick:CC(c)},classifier:a}};function fS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fS(Object(r),!0).forEach((function(e){gS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gS(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vS=t=>{var{columns:e=[],rows:r={},pagination:n,sorters:i,list:o,imex:a}=t;return mS(mS({},t),{},{columns:e.map((t=>lS(t))),rows:pS(r),pagination:n,sorters:i,list:hS(o),imex:a})};function yS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yS(Object(r),!0).forEach((function(e){wS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wS(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _S(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function ES(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){_S(o,n,i,a,s,"next",t)}function s(t){_S(o,n,i,a,s,"throw",t)}a(void 0)}))}}function xS(){return{total:0,records:[]}}class AS{constructor(t){this.page=1,this.limit=20,this.total=0,this.records=[],this._pageChangeHandler=this.onPageChange.bind(this),this._limitChangeHandler=this.onLimitChange.bind(this),this._fetchParamsChangeHandler=this.onFetchParamsChange.bind(this),this._recordChangeHandler=this.onRecordChange.bind(this),this._attachPageHandler=this.onAttachPage.bind(this),this.consumer=t,this.fetchHandler=t.fetchHandler,this.consumer.addEventListener("attach-page",this._attachPageHandler),this.consumer.addEventListener("page-change",this._pageChangeHandler),this.consumer.addEventListener("limit-change",this._limitChangeHandler),this.consumer.addEventListener("fetch-params-change",this._fetchParamsChangeHandler),this.consumer.addEventListener("record-change",this._recordChangeHandler)}dispose(){var t,e,r,n,i;null===(t=this.consumer)||void 0===t||t.removeEventListener("attach-page",this._attachPageHandler),null===(e=this.consumer)||void 0===e||e.removeEventListener("page-change",this._pageChangeHandler),null===(r=this.consumer)||void 0===r||r.removeEventListener("limit-change",this._limitChangeHandler),null===(n=this.consumer)||void 0===n||n.removeEventListener("fetch-params-change",this._fetchParamsChangeHandler),null===(i=this.consumer)||void 0===i||i.removeEventListener("record-change",this._recordChangeHandler)}onAttachPage(){this.attach()}onPageChange(t){var e=t.detail;this.fetch({page:e})}onLimitChange(t){var e=t.detail;this.fetch({limit:e})}onFetchParamsChange(t){var e,{sorters:r,filters:n,from:i}=t.detail||{};r&&(this.sorters=r),n&&(this.filters=n),"GRID"!==(null===(e=this.consumer)||void 0===e?void 0:e.mode)&&(this.page=0),"config"!==i&&this.fetch()}onRecordChange(t){var e;null===(e=this.consumer)||void 0===e||e.checkDirties()}get fetchOptions(){return this._fetchOptions}set fetchOptions(t){this._fetchOptions=t,this.fetch()}get fetchHandler(){var t=this;return this._fetchHandlerWrap||(this._fetchHandlerWrap=function(){var e=ES((function*(e){var r,n;if(t._fetchHandler)try{return null===(r=t.consumer)||void 0===r||r.showSpinner(),yield(t._fetchHandler||xS)(e)}finally{null===(n=t.consumer)||void 0===n||n.hideSpinner()}}));return function(t){return e.apply(this,arguments)}}()),this._fetchHandlerWrap}set fetchHandler(t){this._fetchHandler=t,delete this._fetchHandlerWrap}get sorters(){return this._sorters}set sorters(t){this._sorters=t}get sortings(){return this._sorters}set sortings(t){this._sorters=t}get filters(){return this._filters}set filters(t){this._filters=t}attach(){var t=arguments,e=this;return ES((function*(){var r,n=t.length>0&&void 0!==t[0]&&t[0],{page:i=0,limit:o=20}=e;return n?(e.records=qd,i=1):(e.records=(null===(r=e.consumer)||void 0===r?void 0:r._data)?e.consumer._data.records:qd,i+=1),e._update(bS({limit:o,page:i},yield e.fetchHandler.call(null,{page:i,limit:o,sorters:e.sorters,sortings:e.sorters,filters:e.filters,options:e.fetchOptions})),n)}))()}fetch(){var t=arguments,e=this;return ES((function*(){var{page:r=e.page,limit:n=e.limit,sorters:i,sortings:o,filters:a}=t.length>0&&void 0!==t[0]?t[0]:{};return e.records=qd,i=i||o||e.sorters,a=a||e.filters,e.sorters=i,e._update(bS({limit:n,page:r},yield e.fetchHandler.call(null,{page:r,limit:n,sorters:i,sortings:i,filters:a,options:e.fetchOptions})))}))()}_update(t,e){var r=this;return ES((function*(){var{page:e,limit:n,total:i,records:o}=t,a=function(t,e){return Math.max(1,Math.ceil(e/t))}(n,i);if(a<e)return yield r.fetch({page:a,limit:n});if(r.page=r.page||e,r.limit=r.limit||n,o){if(r.records===qd)r.records=o;else{if(!(r.page<e))return;r.records=[...r.records,...o]}r.limit=n,r.total=i,r.page=e,r.consumer&&(r.consumer.data={page:r.page,limit:r.limit,total:r.total,records:r.records})}}))()}}var CS,SS,DS,OS,PS,IS=__webpack_require__(51266);function kS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function TS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kS(Object(r),!0).forEach((function(e){RS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function RS(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FS(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function NS(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function MS(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){NS(o,n,i,a,s,"next",t)}function s(t){NS(o,n,i,a,s,"throw",t)}a(void 0)}))}}var BS,LS,jS,VS,zS,US,HS,GS,qS,WS,YS,XS,$S,QS,KS,ZS=class extends At{constructor(){super(...arguments),this.mode="GRID",this.data=Wd,this.explicitFetch=!1,this._data=Wd,this._config=Hd,this._showSpinner=!1,this.lastLocation={},this._popstateEventHandler=(t=>{var{origin:e,pathname:r,search:n}=window.location;if(!this.lastLocation.origin||this.lastLocation.origin===e&&this.lastLocation.pathname===r&&this.lastLocation.search!==n){this.lastLocation={origin:e,pathname:r,search:n};var i,{filters:o=[],sorters:a=[]}=(i=new URLSearchParams(n),m_({filters:Vw().parse(i.get("filters")||"[]"),sorters:Vw().parse(i.get("sorters")||"[]"),pagination:m_({page:Number(i.get("page")),limit:Number(i.get("limit"))},(t=>!isNaN(t)))},(t=>void 0!==t&&!("object"==typeof t&&0==Object.keys(t).length))));try{Gc(o,this.filters)&&Gc(a,this.sorters)||this.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{filters:o,sorters:a,from:"url-parameter"}}))}catch(t){IS.error("invalid fetch params on URL query string : ".concat(t))}}}).bind(this),this._fetchParamsChangeEventHandler=(t=>{var{sorters:e,filters:r,from:n}=t.detail;if(e&&(this.sorters=e),r&&(this.filters=r),this.urlParamsSensitive&&"url-parameter"!==n){var i=function(t){var{filters:e,sorters:r,page:n,limit:i,base:o}=t,a=new URLSearchParams(o);return r&&(r.length>0?a.set("sorters",Vw().stringify(r)):a.delete("sorters")),e&&(e.length>0?a.set("filters",Vw().stringify(e)):a.delete("filters")),isNaN(n)||a.set("page",String(n)),isNaN(i)||a.set("limit",String(i)),String(a)}({filters:r,sorters:e,base:window.location.search});this.lastLocation.search=i?"?".concat(i):"";var o="".concat(window.location.pathname).concat(this.lastLocation.search);history.pushState({},document.title,o)}}).bind(this)}connectedCallback(){var t=()=>super.connectedCallback,e=this;return MS((function*(){t().call(e),e.dataProvider=new AS(e),e._timeCapsule=new $i(10),e._snapshotTaker=new Co(e,e._timeCapsule),e.addEventListener("fetch-params-change",e._fetchParamsChangeEventHandler),yield e.updateComplete}))()}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("fetch-params-change",this._fetchParamsChangeEventHandler),this._timeCapsule&&this._timeCapsule.dispose(),this._snapshotTaker&&this._snapshotTaker.dispose(),delete this._timeCapsule,delete this._snapshotTaker,null===(t=this.dataProvider)||void 0===t||t.dispose(),this._resetPullToRefresh()}_resetPullToRefresh(){this._pulltorefreshHandle&&(this._pulltorefreshHandle(),delete this._pulltorefreshHandle)}_setPullToRefresh(){var t=this;return MS((function*(){t._resetPullToRefresh(),t.fetchHandler&&(t._pulltorefreshHandle=hA({container:yield t.wrap,scrollable:t.grist.pullToRefreshTarget,refresh:()=>t.fetch(!0)}))}))()}_setHeadroom(){var t;if(null===(t=this._headroom)||void 0===t||t.destroy(),this.grist&&this.head&&"none"!==this.head.style.display){var e=getComputedStyle(this.grist);this.orginPaddingTop=e.paddingTop||"0",this.originMarginTop=e.marginTop||"0",this._headroom=new aA(this.head,{scroller:this.grist,onTop:()=>{this.grist.style.paddingTop=this.orginPaddingTop,this.originMarginTop=this.grist.style.marginTop,this.grist.style.marginTop=this.head.clientHeight+"px"},onNotTop:()=>{this.grist.style.marginTop=this.originMarginTop,this.orginPaddingTop=this.grist.style.paddingTop,this.grist.style.paddingTop=this.head.clientHeight+"px"}}),this._headroom.init()}else this.orginPaddingTop&&(this.grist.style.paddingTop=this.orginPaddingTop,this.grist.style.marginTop=this.originMarginTop)}render(){var t=!this._showSpinner&&0==this._data.records.length;return nt(CS||(CS=FS(['\n <div id="wrap" @keydown=',">\n ",'\n </div>\n\n <div id="spinner" ?show=','></div>\n\n <slot name="headroom"> </slot>\n '])),(t=>this.onKeydown(t)),"GRID"==this.mode?nt(SS||(SS=FS(['\n <ox-grid\n id="grist"\n .config=',"\n .data=","\n .sorters=","\n .filters=","\n .pagination=","\n ?empty=","\n >\n </ox-grid>\n "])),this.compiledConfig,this._data,this.sorters,this.filters,this.pagination,t):"CARD"==this.mode?nt(DS||(DS=FS(['\n <ox-card\n id="grist"\n .config=',"\n .data=","\n .sorters=","\n .filters=","\n ?empty=","\n >\n </ox-card>\n "])),this.compiledConfig,this._data,this.sorters,this.filters,t):nt(OS||(OS=FS(['\n <ox-list\n id="grist"\n .config=',"\n .data=","\n .sorters=","\n .filters=","\n ?empty=","\n >\n </ox-list>\n "])),this.compiledConfig,this._data,this.sorters,this.filters,t),this._showSpinner)}onKeydown(t){"z"===t.key&&(t.metaKey||t.ctrlKey)&&(t.shiftKey?this.redo():this.undo())}get state(){return JSON.stringify(this._data)}undo(){var t,e;(null===(t=this._timeCapsule)||void 0===t?void 0:t.backwardable)&&(this._data=JSON.parse(null===(e=this._timeCapsule)||void 0===e?void 0:e.backward()))}redo(){var t,e;(null===(t=this._timeCapsule)||void 0===t?void 0:t.forwardable)&&(this._data=JSON.parse(null===(e=this._timeCapsule)||void 0===e?void 0:e.forward()))}fetch(){var t=arguments,e=this;return MS((function*(){var r,n,i=!(t.length>0&&void 0!==t[0])||t[0];if(e.compiledConfig){if(i&&e.grist&&(e.grist.scrollTop=0),e.dataProvider){var{limit:o,page:a,infinite:s}=e.compiledConfig.pagination||{},{limit:c=o||Xd.limit,page:l=a||Xd.page}=e.dataProvider;s||"GRID"!==e.mode?yield e.dataProvider.attach(i):yield e.dataProvider.fetch({limit:c,page:l,sorters:e.sorters||(null===(r=e.compiledConfig)||void 0===r?void 0:r.sorters),sortings:e.sorters||(null===(n=e.compiledConfig)||void 0===n?void 0:n.sorters),filters:e.filters})}}else IS.warn("grist is not configured yet.")}))()}updated(t){var e=this;return MS((function*(){var r,n,i=!1;if(t.has("filters")&&(yield e.requestUpdate()),t.has("sorters")&&(yield e.requestUpdate()),t.has("config")){if(e._config=vS(TS({},e.config)),e.dispatchEvent(new CustomEvent("config-change",{bubbles:!0,composed:!0,detail:e.compiledConfig})),e.pagination=e.compiledConfig.pagination||{},!e.urlParamsSensitive){var o=null===(r=e.compiledConfig)||void 0===r?void 0:r.sorters,a=null===(n=e.compiledConfig)||void 0===n?void 0:n.columns.filter((t=>t.filter&&"value"in t.filter&&t.filter.value)).map((t=>{var e=t.filter;return{name:t.name,operator:e.operator,value:e.value}}));e.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{filters:a,sorters:o,from:"config"}}))}if(e.dataProvider){var{limit:s,pages:c=Yd}=e._config.pagination||Xd;e.dataProvider.page=1,e.dataProvider.limit=s||c[0]||Yd[0]}e.urlParamsSensitive||e.explicitFetch||e.fetch()}if(t.has("fetchHandler")&&(e.dataProvider&&(e.dataProvider.fetchHandler=e.fetchHandler),i=!0),t.has("fetchOptions")&&e.dataProvider&&(e.dataProvider.fetchOptions=e.fetchOptions),t.has("data")&&e.reset(),t.has("mode")&&("GRID"===e.mode?e.style.removeProperty("--ox-grist-padding"):e.style.setProperty("--ox-grist-padding","0"),i=!0,e._setHeadroom()),t.has("selectedRecords")){var{records:l}=e.data||[],u=e.selectedRecords||[],d=e._data.records;u.forEach((t=>{var e=l.indexOf(t),r=d[e];r&&(r.__selected__=!0)})),e.refresh()}t.has("urlParamsSensitive")&&(e.urlParamsSensitive?(e._popstateEventHandler(),window.addEventListener("popstate",e._popstateEventHandler)):window.removeEventListener("popstate",e._popstateEventHandler)),i&&(yield e._setPullToRefresh())}))()}get compiledConfig(){return this._config}get dirtyData(){var t;return(null===(t=this.grist)||void 0===t?void 0:t.data)||{}}get dirtyRecords(){var{records:t=[]}=this.dirtyData;return t.filter((t=>t.__dirty__))}exportPatchList(t){var{flagName:e="patchFlag",addedFlag:r="+",deletedFlag:n="-",modifiedFlag:i="M",idField:o="id"}=t,a=this.dirtyRecords;return a&&0!=a.length?a.map((t=>{var a=t.__dirty__,s={[e]:"M"==a?i:"+"==a?r:n};for(var c in o in t&&t[o]&&(s[o]=t[o]),t.__dirtyfields__)s[c]=t[c];return s})):[]}exportRecords(){var{ifSelectedOnly:t=!0,includeHiddenField:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t?this.selected:this.data.records;!t||r&&0!=r.length||(r=this.data.records);var n=this.compiledConfig.columns.filter((t=>"gutter"!==t.type));e||(n=n.filter((t=>!t.hidden)));var i=n.map((t=>t.name));return r.map((t=>i.reduce(((e,r)=>(e[r]=t[r],e)),{})))}get selected(){var t,{records:e=[]}=null===(t=this.grist)||void 0===t?void 0:t.data;return e.filter((t=>t.__selected__))}set selected(t){this.grist?(t.forEach((t=>t.__selected__=!0)),this.refresh()):IS.warn("grist not ready")}select(t){var e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{records:n=[]}=null===(e=this.grist)||void 0===e?void 0:e.data;r&&this.selected.forEach((t=>t.__selected__=!1)),n.filter((e=>t(e))).forEach((t=>t.__selected__=!0)),this.refresh()}showSpinner(){this._showSpinner=!0}hideSpinner(){this._showSpinner=!1}focus(){super.focus(),this.grist.focus()}commit(){var{page:t,total:e,limit:r,records:n}=this.grist.data;this.data={page:t,total:e,limit:r,records:n.map((t=>{var e=TS({},t);return delete e.__seq__,delete e.__dirty__,delete e.__selected__,delete e.__changes__,delete e.__dirtyfields__,delete e.__origin__,e}))}}toggleHeadroom(){if(this.head){var t=this.head.style.display;this.head.style.display="none"!==t?"none":"block",this._setHeadroom()}}refresh(){this._data=TS({},this._data)}reset(){var t,e,{limit:r=Xd.limit,page:n=Xd.page,total:i=Xd.total,records:o=[]}=this.data||Xd;o=o.map(((t,e)=>TS(TS({},t),{},{__seq__:"GRID"==this.mode?(n-1)*r+e+1:e+1,__origin__:t}))),this._data={limit:r,page:n,total:i,records:o},null===(t=this._timeCapsule)||void 0===t||t.reset(),null===(e=this._snapshotTaker)||void 0===e||e.take(!0)}checkDirties(){var t,e=this.dirtyRecords,{columns:r=[]}=this.compiledConfig||{};for(var n of e||[]){var i=n.__origin__||{},o=n.__dirtyfields__=r.filter((t=>"gutter"!==t.type&&!Gc(i[t.name],n[t.name]))).reduce(((t,e)=>{var r=e.name;return t[r]={before:i[r],after:n[r]},t}),{});"M"==n.__dirty__&&rA(o)&&delete n.__dirty__}this._data=TS({},this._data),null===(t=this._snapshotTaker)||void 0===t||t.touch()}cloneSelectedRecords(){(this.selected||[]).forEach((t=>{var e={__dirty__:"+"};this.compiledConfig.columns.filter((t=>t.record.editable)).forEach((r=>{e[r.name]=t[r.name]}));var r=this._data.records.findIndex((e=>e===t));this._data.records.splice(r+1,0,e)})),this.checkDirties()}deleteSelectedRecords(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(this.selected||[]).forEach((e=>{t&&(e.__dirty__="-");var r=this._data.records.findIndex((t=>t===e));this._data.records.splice(r,1)})),this.checkDirties()}get searchText(){var t,e,r,n;return(null===(n=null===(r=null===(e=null===(t=this.filters)||void 0===t?void 0:t.find((t=>"search"===t.operator)))||void 0===e?void 0:e.value)||void 0===r?void 0:r.match(/^\%(.*)\%$/))||void 0===n?void 0:n[1])||""}set searchText(t){var e=(this.filters||[]).filter((t=>"search"!==t.operator));t&&(e=[...this.compiledConfig.columns.filter((t=>!!t.filter)).filter((t=>"search"===t.filter.operator)).map((e=>{var{name:r}=e;return{name:r,operator:"search",value:"%".concat(t,"%")}})),...e]),this.grist.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{filters:e}}))}};function JS(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function tD(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}ZS.styles=[al,ol,sl,S(PS||(PS=FS(["\n :host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background-color: var(--grist-background-color);\n min-height: 120px;\n\n overflow: hidden;\n\n /* for pulltorefresh controller */\n position: relative;\n\n padding: var(--ox-grist-padding);\n\n --mdc-icon-size: var(--grid-record-wide-fontsize);\n }\n\n #wrap {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: auto;\n }\n\n ox-grid {\n flex: 1;\n }\n\n slot[name='headroom'] {\n display: block;\n\n position: absolute;\n top: 0;\n left: 0;\n\n width: 100%;\n box-sizing: border-box;\n }\n "])))],(0,t.gn)([a()],ZS.prototype,"mode",void 0),(0,t.gn)([a()],ZS.prototype,"config",void 0),(0,t.gn)([a()],ZS.prototype,"data",void 0),(0,t.gn)([a()],ZS.prototype,"selectedRecords",void 0),(0,t.gn)([a({type:Boolean,attribute:"explicit-fetch"})],ZS.prototype,"explicitFetch",void 0),(0,t.gn)([a()],ZS.prototype,"fetchHandler",void 0),(0,t.gn)([a()],ZS.prototype,"fetchOptions",void 0),(0,t.gn)([a()],ZS.prototype,"filters",void 0),(0,t.gn)([a()],ZS.prototype,"sorters",void 0),(0,t.gn)([a()],ZS.prototype,"pagination",void 0),(0,t.gn)([a({type:Boolean,attribute:"url-params-sensitive"})],ZS.prototype,"urlParamsSensitive",void 0),(0,t.gn)([u()],ZS.prototype,"_data",void 0),(0,t.gn)([u()],ZS.prototype,"_config",void 0),(0,t.gn)([u()],ZS.prototype,"_showSpinner",void 0),(0,t.gn)([v("slot[name=headroom]")],ZS.prototype,"head",void 0),(0,t.gn)([v("#grist")],ZS.prototype,"grist",void 0),(0,t.gn)([b("#wrap")],ZS.prototype,"wrap",void 0),ZS=(0,t.gn)([e("ox-grist")],ZS);var eD,rD,nD,iD=class extends At{constructor(){super(...arguments),this.config=Hd,this.columns=[],this.data=Wd}_onWheelEvent(t){var e=Math.max(-1,Math.min(1,t.deltaY||0));this.scrollLeft=Math.max(0,this.scrollLeft-40*e),Bw||t.preventDefault()}firstUpdated(){this.addEventListener("wheel",this._onWheelEvent.bind(this),!!Bw&&{passive:!0})}updated(t){var e=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){tD(o,n,i,a,s,"next",t)}function s(t){tD(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){t.has("config")&&(e._sorters=e.config.sorters||[])}))()}render(){var t=this.columns||[];return nt(BS||(BS=JS(["\n ","\n\n <div></div>\n "])),t.map(((t,e)=>t.hidden?nt(HS||(HS=JS([""]))):nt(LS||(LS=JS(["\n <div @dragstart=",">\n <span titler @click=",">"," </span>\n\n ","\n ","\n </div>\n "])),(t=>this._dragStart(t,e)),(e=>this._changeSort(t)),this._renderHeader(t),t.sortable?nt(jS||(jS=JS(["\n <span sorter @click=",">\n ","\n </span>\n "])),(e=>this._changeSort(t)),this._renderSortHeader(t)):nt(VS||(VS=JS([""]))),!1!==t.resizable?nt(zS||(zS=JS([' <span splitter draggable="true">&nbsp;</span> ']))):nt(US||(US=JS([""])))))))}_renderHeader(t){var{renderer:e}=t.header||{},r=e.call(this,t);return nt(GS||(GS=JS([" "," "])),r)}_renderSortHeader(t){if(t.hidden)return nt(qS||(qS=JS([""])));var e=this._sorters||[],r=e.find((e=>"gutter"!==t.type&&t.name==e.name));if(!r)return nt(WS||(WS=JS([""])));if(e.length>1){var n=e.indexOf(r)+1;return r.desc?nt(YS||(YS=JS([" &#9660;<sub>","</sub> "])),n):nt(XS||(XS=JS([" &#9650;<sub>","</sub> "])),n)}return r.desc?nt($S||($S=JS([" &#9660; "]))):nt(QS||(QS=JS([" &#9650; "])))}_changeSort(t){if(t.sortable){var e=[...this._sorters||[]],r=e.findIndex((e=>e.name==t.name));if(-1!==r){var n=e[r];n.desc?e.splice(r,1):n.desc=!0}else{var i={name:t.name};e.push(i)}this._sorters=e,this.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{sorters:this._sorters,from:"data-report-header"}}))}}_notifyWidthChange(t,e){this.throttledNotifier||(this.throttledNotifier=Kd(((t,e)=>{this.dispatchEvent(new CustomEvent("column-width-change",{bubbles:!0,composed:!0,detail:{idx:t,width:e}}))}),100)),this.throttledNotifier(t,e)}_dragStart(t,e){var r=t.currentTarget,n=t.offsetX,i=(t=>{var r=this.columns[e],i=Math.max(0,Number(r.width)+t.offsetX-n);0!=i&&this._notifyWidthChange(e,i)}).bind(this),o=(t=>{r.removeEventListener("drag",i),r.removeEventListener("dragend",o),i(t)}).bind(this);r.addEventListener("drag",i),r.addEventListener("dragend",o)}};function oD(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}iD.styles=[S(KS||(KS=JS(["\n :host {\n display: grid;\n grid-template-columns: var(--report-template-columns);\n\n overflow: hidden;\n }\n\n div {\n display: flex;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: var(--report-header-background-color, gray);\n border: 1px solid var(--report-header-border-color);\n border-width: 1px 1px 1px 0;\n padding: var(--report-header-padding);\n\n text-overflow: ellipsis;\n text-align: center;\n font-size: var(--report-header-fontsize, 1em);\n color: var(--report-header-color);\n }\n\n span {\n white-space: nowrap;\n overflow: hidden;\n\n text-align: center;\n }\n\n span[titler] {\n flex: 1;\n text-overflow: ellipsis;\n font: var(--report-header-font);\n color: var(--report-header-color);\n text-transform: capitalize;\n }\n\n span[sorter] {\n padding: 0;\n border: 0;\n font-size: 10px;\n }\n\n span[splitter] {\n cursor: col-resize;\n }\n\n @media print {\n :host {\n grid-template-columns: var(--report-template-print-columns);\n }\n }\n "])))],(0,t.gn)([a({type:Object})],iD.prototype,"config",void 0),(0,t.gn)([a({type:Array})],iD.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],iD.prototype,"data",void 0),(0,t.gn)([a({type:Array})],iD.prototype,"_sorters",void 0),iD=(0,t.gn)([e("ox-report-header")],iD);var aD,sD="left",cD=class extends At{constructor(){super(...arguments),this.record=Gd,this.column=Ud,this.rowIndex=-1,this.columnIndex=-1}render(){if(!this.column)return nt(eD||(eD=oD([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i}=e.record;return nt(rD||(rD=oD([" "," "])),i(t,e,r,n,this))}updated(t){if(t.has("column")){var e=this.column.record&&this.column.record.align||sD;if(e!=sD){var r="center";"right"===e&&(r="flex-end"),this.style.setProperty("--data-report-field-justify-content",r),this.style.setProperty("--data-report-field-text-align",e)}}}};cD.styles=[S(nD||(nD=oD(["\n :host {\n display: flex;\n align-items: center;\n justify-content: var(--data-report-field-justify-content, flex-start);\n position: relative;\n\n white-space: nowrap;\n overflow: hidden;\n background-color: var(--report-record-background-color);\n padding: var(--report-record-field-padding);\n border: 1px solid transparent;\n border-bottom: var(--report-record-field-border-bottom);\n\n font-size: var(--report-record-wide-fontsize);\n text-overflow: ellipsis;\n\n min-height: 19px;\n }\n\n :host([gutter]) * {\n cursor: default;\n }\n\n * {\n flex: 1;\n margin: 0;\n text-align: var(--data-report-field-text-align);\n }\n\n *[center] {\n flex: none;\n margin: 0 auto;\n }\n "])))],(0,t.gn)([a({attribute:!0})],cD.prototype,"align",void 0),(0,t.gn)([a({type:Object})],cD.prototype,"record",void 0),(0,t.gn)([a({type:Object})],cD.prototype,"column",void 0),(0,t.gn)([a({type:Number})],cD.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Number})],cD.prototype,"columnIndex",void 0),(0,t.gn)([a({type:Object})],cD.prototype,"value",void 0),cD=(0,t.gn)([e("ox-report-field")],cD);var lD,uD,dD,hD,pD,fD,mD,gD,vD,yD,bD,wD=S(aD||(aD=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n :host {\n display: grid;\n grid-template-columns: var(--report-template-columns);\n grid-auto-rows: var(--report-record-height, min-content);\n\n overflow: auto;\n outline: none;\n }\n\n :host > [focused] {\n border: var(--report-record-focused-border);\n }\n\n :host > [focused-row] {\n background-color: var(--report-record-focused-background-color);\n }\n\n :host > [totalized] {\n background-color: var(--report-totalized-background-color);\n border-top: var(--report-totalized-border);\n border-bottom: var(--report-totalized-border);\n color: var(--report-totalized-color);\n\n font-weight: 700;\n }\n\n :host > [grouped] {\n background-color: var(--report-grouped-background-color);\n border-right: var(--report-grouped-border);\n border-bottom: var(--report-grouped-border);\n color: var(--report-grouped-color);\n\n font-weight: 600;\n }\n\n @media print {\n :host {\n -webkit-print-color-adjust: exact;\n grid-template-columns: var(--report-template-print-columns);\n }\n :host > [focused] {\n border-width: 0 1px 1px 0;\n border-right: var(--report-grouped-border);\n border-bottom: var(--report-grouped-border);\n }\n\n :host > [focused-row] {\n background-color: initial;\n color: #000;\n }\n :host > [grouped] {\n background-color: var(--report-grouped-background-color);\n }\n }\n"]))),_D=__webpack_require__(51266);function ED(t){t.stopPropagation();var e=t.target,{column:r,record:n,rowIndex:i,columnIndex:o}=e;if(r){isNaN(i)||isNaN(o)?_D.error("should not be here."):this.focused&&i===this.focused.row&&o===this.focused.column?this.requestUpdate():this.focused={row:i,column:o};var{click:a}=r.handlers;a&&a(this.columns,this.data,r,n,i,e);var{click:s}=this.config.rows.handlers;s&&s(this.columns,this.data,r,n,i,e)}}function xD(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function AD(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){xD(o,n,i,a,s,"next",t)}function s(t){xD(o,n,i,a,s,"throw",t)}a(void 0)}))}}function CD(t){return SD.apply(this,arguments)}function SD(){return(SD=AD((function*(t){t.stopPropagation();var e=t.target,{record:r,rowIndex:n,column:i}=e;if(i){var{dblclick:o}=i.handlers;o&&o(this.columns,this.data,i,r,n,e);var{dblclick:a}=this.config.rows.handlers;a&&a(this.columns,this.data,i,r,n,e)}}))).apply(this,arguments)}function DD(t){var e,r=t.key,{row:n=0,column:i=0}=this.focused||{},{records:o=[]}=this.data||{},a=(null===(e=this.config.rows)||void 0===e?void 0:e.appendable)?o.length:o.length-1,s=(this.columns||[]).filter((t=>!t.hidden)).length-1;switch(r){case"Up":case"ArrowUp":n=Math.max(0,n-1);break;case"Down":case"ArrowDown":n=Math.min(a,n+1);break;case"Enter":s>i?i++:a>n&&n++;break;case"Left":case"ArrowLeft":case"Backspace":i=Math.max(0,i-1);break;case"Right":case"ArrowRight":case"Tab":i=Math.min(s,i+1);break;case"PageUp":n=Math.max(0,n-10);break;case"PageDown":n=Math.min(a,n+10);break;default:return}this.focused&&this.focused.row===n&&this.focused.column===i||(this.focused={row:n,column:i}),t.preventDefault()}function OD(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var PD,ID,kD=class extends At{constructor(){super(...arguments),this.config=Hd,this.columns=[],this.data=Wd}render(){var{rows:t}=this.config,{groups:e}=t||{},r=t=>this.columns.filter((t=>!t.hidden)).findIndex((e=>e.name==t)),n=t=>this.columns.find((e=>e.name==t)),{row:i=0,column:o=0}=this.focused||{},a=(this.columns||[]).filter((t=>!t.hidden&&-1==e.map((t=>t.column)).indexOf(t.name))),s=this.data,{records:c=[]}=s;return nt(lD||(lD=OD(["\n ","\n "])),c.map(((t,c)=>{var l=c===i,u=t["*"],d=u&&("*"==u.groupName?n(e[0].column):n(u.groupName));return nt(uD||(uD=OD(["\n ","\n ","\n "])),!u||u&&u.value?nt(dD||(dD=OD(["\n ","\n <ox-report-field\n .data=","\n .rowIndex=","\n .record=","\n ?focused-row=","\n ?totalized=","\n ></ox-report-field>\n "])),a.map((e=>{var n=r(e.name);return nt(hD||(hD=OD(["\n <ox-report-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n ?gutter=","\n ?focused-row=","\n ?focused=","\n ?totalized=","\n .value=","\n ></ox-report-field>\n "])),s,c,n,e,t,"gutter"==e.type,l,l&&n===o,u,t[e.name])})),s,c,t,l,u):nt(pD||(pD=OD([""]))),u?nt(mD||(mD=OD(["\n ","\n ","\n "])),"*"==u.groupName?nt(gD||(gD=OD([""]))):nt(vD||(vD=OD(["\n <ox-report-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n ?focused-row=","\n ?focused=","\n ?grouped=","\n .value=",'\n .style="grid-area: '," / "," / span ",' / span 1;"\n ></ox-report-field>\n '])),s,u.row-1,u.column-1,d,t,u.row-1<=i&&u.row-1+u.rowspan>i,u.row-1===i&&u.column-1===o,!0,t[u.groupName],u.row,u.column,u.rowspan),u.value?nt(bD||(bD=OD(["\n <ox-report-field\n .data=","\n .rowIndex=","\n .columnIndex=","\n .column=","\n .record=","\n ?focused-row=","\n ?focused=","\n ?grouped=","\n .value=",'\n .style="grid-area: '," / "," / span 1 / span ",';"\n ></ox-report-field>\n '])),s,c,u.column-1,u.titleColumn,t,l,c===i&&u.column-1===o,!0,u.value,u.row+u.rowspan,u.column,u.colspan):nt(yD||(yD=OD([""])))):nt(fD||(fD=OD([""]))))})))}firstUpdated(){this.setAttribute("tabindex","-1"),this.addEventListener("focusout",(t=>{this._focusedListener&&(window.removeEventListener("keydown",this._focusedListener),delete this._focusedListener)})),this.addEventListener("focusin",(t=>{this._focusedListener||(this._focusedListener=DD.bind(this),window.addEventListener("keydown",this._focusedListener))})),this.renderRoot.addEventListener("click",ED.bind(this)),this.renderRoot.addEventListener("dblclick",CD.bind(this))}updated(t){if(t.has("focused")){var e=this.renderRoot.querySelector("[focused]");if(!e)return;var{top:r,left:n}=function(t,e){var{top:r,left:n,right:i,bottom:o}=e.getBoundingClientRect(),{top:a,left:s,right:c,bottom:l}=t.getBoundingClientRect(),{scrollLeft:u,scrollTop:d}=t,h=t.clientWidth-t.offsetWidth,p=t.clientHeight-t.offsetHeight;return{left:n<s?u-(s-n):i>c?u-(c-i)-h:void 0,top:r<a?d-(a-r):o>l?d-(l-o)-p:void 0}}(this,e);void 0!==r&&(this.scrollTop=r),void 0!==n&&(this.scrollLeft=n)}}focus(){super.focus(),this.focused&&null!=this.focused.row||(this.focused={row:0,column:0})}};function TD(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}kD.styles=[wD],(0,t.gn)([a({type:Object})],kD.prototype,"config",void 0),(0,t.gn)([a({type:Array})],kD.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],kD.prototype,"data",void 0),(0,t.gn)([a({type:Object})],kD.prototype,"focused",void 0),kD=(0,t.gn)([e("ox-report-body")],kD);var RD=class extends At{constructor(){super(...arguments),this.config=Hd,this.data=Wd,this._widths=""}firstUpdated(){var t,e;null===(t=this.header)||void 0===t||t.addEventListener("scroll",(t=>{var e=this.body,r=this.header;e&&r&&e.scrollLeft!==r.scrollLeft&&(e.scrollLeft=r.scrollLeft)})),null===(e=this.body)||void 0===e||e.addEventListener("scroll",(t=>{var e=this.body,r=this.header;e&&r&&e.scrollLeft!==r.scrollLeft&&(r.scrollLeft=e.scrollLeft)}))}updated(t){(t.has("config")||t.has("data"))&&this.calculateWidths(this.config&&this.config.columns)}calculateWidths(t){this._widths=t.filter((t=>!t.hidden)).map((t=>{switch(typeof t.width){case"number":return t.width+"px";case"string":return t.width;case"function":return t.width.call(this,t);default:return"auto"}})).concat(["auto"]).join(" "),this.style.setProperty("--report-template-columns",this._widths),this.style.setProperty("--report-template-print-columns",this._widths.replace(/px/gi,"fr"))}render(){var{columns:t}=this.config,e=this.data;return nt(PD||(PD=TD(["\n <ox-report-header\n .config=","\n .columns=","\n .data=","\n @column-width-change=","\n ></ox-report-header>\n\n <ox-report-body .config="," .columns="," .data=","></ox-report-body>\n "])),this.config,t,e,(e=>{var{idx:r,width:n}=e.detail;t[r].width=n,this.calculateWidths(t)}),this.config,t,e)}focus(){super.focus(),this.body.focus()}get pullToRefreshTarget(){return this.body}};RD.styles=[al,S(ID||(ID=TD(["\n :host {\n display: flex;\n flex-direction: column;\n\n overflow: hidden;\n\n border: 1px solid var(--report-header-border-color);\n border-radius: var(--report-component-border-radius);\n }\n\n ox-report-body {\n flex: 1;\n }\n\n @media print {\n :host {\n zoom: 80%;\n }\n }\n "])))],(0,t.gn)([a({type:Object})],RD.prototype,"config",void 0),(0,t.gn)([a({type:Object})],RD.prototype,"data",void 0),(0,t.gn)([v("ox-report-body",!0)],RD.prototype,"body",void 0),(0,t.gn)([v("ox-report-header",!0)],RD.prototype,"header",void 0),RD=(0,t.gn)([e("ox-report-component")],RD);var FD,ND,MD,BD,LD=__webpack_require__(51266);function jD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function VD(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jD(Object(r),!0).forEach((function(e){zD(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jD(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zD(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UD(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function HD(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function GD(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){HD(o,n,i,a,s,"next",t)}function s(t){HD(o,n,i,a,s,"throw",t)}a(void 0)}))}}var qD,WD,YD,XD=class extends At{constructor(){super(...arguments),this.data=Wd,this.autoFetch=!1,this._data=Wd,this._config=Hd,this._showSpinner=!1}get mode(){return"REPORT"}connectedCallback(){super.connectedCallback(),this.dataProvider=new AS(this)}disconnectedCallback(){var t;super.disconnectedCallback(),this.resetPullToRefresh(),null===(t=this.dataProvider)||void 0===t||t.dispose()}resetPullToRefresh(){this.pulltorefreshHandle&&(this.pulltorefreshHandle(),delete this.pulltorefreshHandle)}setPullToRefresh(){var t=this;return GD((function*(){t.resetPullToRefresh(),t.fetchHandler&&(t.pulltorefreshHandle=hA({container:yield t.wrap,scrollable:t.report.pullToRefreshTarget,refresh:()=>t.fetch(!0)}))}))()}firstUpdated(){var t=this;return GD((function*(){t.fetchHandler&&t.autoFetch&&(yield t.requestUpdate(),t.fetch(!0))}))()}render(){var t=!(this._showSpinner||this._data&&this._data.records&&0!=this._data.records.length);return nt(FD||(FD=UD(["\n ",'\n\n <div id="wrap">\n <ox-report-component id="report" .config='," .data=",'> </ox-report-component>\n </div>\n\n <div id="spinner" ?show=',"></div>\n "])),nt(t?ND||(ND=UD(['\n <ox-empty-note\n icon="list"\n title="EMPTY LIST"\n description="There are no records to be shown"\n ></ox-empty-note>\n '])):MD||(MD=UD([""]))),this._config,this._data,this._showSpinner)}fetch(){var t=arguments,e=this;return GD((function*(){var r=!(t.length>0&&void 0!==t[0])||t[0];e._config?(r&&(e.report.scrollTop=0),e.dataProvider&&(yield e.dataProvider.attach(r))):LD.warn("report is not configured yet.")}))()}updated(t){var e=this;return GD((function*(){t.has("config")&&(e._config=vS(VD({},e.config)),e.dataProvider&&(e.dataProvider.sorters=e._config.sorters),e.fetch()),t.has("fetchHandler")&&(e.dataProvider&&(e.dataProvider.fetchHandler=e.fetchHandler),yield e.setPullToRefresh()),t.has("fetchOptions")&&e.dataProvider&&(e.dataProvider.fetchOptions=e.fetchOptions),t.has("data")&&e.reset()}))()}get dirtyData(){var t;return(null===(t=this.report)||void 0===t?void 0:t.data)||{}}showSpinner(){this._showSpinner=!0}hideSpinner(){this._showSpinner=!1}focus(){var t;super.focus(),null===(t=this.report)||void 0===t||t.focus()}refresh(){this.requestUpdate()}reset(){var{limit:t=Xd.limit,page:e=Xd.page,total:r=Xd.total,records:n=[]}=this.data;this._data={limit:t,page:e,total:r,records:this.sortByGroups(n).map(((r,n)=>VD(VD({},r),{},{__seq__:(e-1)*t+n+1})))}}sortByGroups(t){var e,r,n,{groups:i,totals:o}=this._config.rows,{columns:a}=this._config,s=t=>a.filter((t=>!t.hidden)).findIndex((e=>e.name==t)),c=[{column:"*",title:di.exists("text.ox-data-report-grand-total")?di.t("text.ox-data-report-grand-total"):"grand total",align:"right",rowspan:1},...i].map((t=>VD(VD({},t),{},{titleColumn:lS({record:{align:t.align||"right"}})}))),l=[],u=t[0]?(()=>{var e=t[0],r=o.reduce(((t,r)=>{var n;return t[r]=(null===(n=a.find((t=>t.name==r)))||void 0===n?void 0:n.rowCount)&&(0===e[r]||e[r])?1:e[r],t}),{}),n={};return c.map(((t,o)=>(n[t.column]=e[t.column],VD(VD(VD({},r),n),{},{[t.column]:e[t.column],"*":{titleColumn:t.titleColumn,value:t.title,groupName:t.column,row:1,rowspan:1,column:"*"!==t.column?s(t.column)+1:s(i[0].column)+1,colspan:"*"!==t.column?c.length-o:c.length-1}}))))})():[{"*":{titleColumn:c[0].titleColumn,value:di.exists("text.ox-data-report-grand-total")?di.t("text.ox-data-report-grand-total"):"grand total",groupName:"*",row:1,rowspan:1,column:1,colspan:0}}],d=0,h=function(t){var n=i.reduce(((e,r)=>(e[r.column]=t[r.column],e)),{}),h=!0,p=[],f={};if(d++,r){var m=function(){var i=c[g],l=u[g];if(f[i.column]=t[i.column],"*"==i.column||h&&n[i.column]===r[i.column]){var m=function(r){l[r]+=(null===(e=a.find((t=>t.name==r)))||void 0===e?void 0:e.rowCount)&&(0===t[r]||t[r])?1:t[r]};for(var v of o)m(v);return l["*"].rowspan++,"continue"}o.forEach((t=>{l[t]=Math.round(100*l[t])/100})),h=!1,p.push({idx:g,record:o.reduce(((e,r)=>{var n;return e[r]=(null===(n=a.find((t=>t.name==r)))||void 0===n?void 0:n.rowCount)&&(0===t[r]||t[r])?1:t[r],e}),VD(VD({},f),{},{[i.column]:t[i.column],"*":{titleColumn:i.titleColumn,groupName:i.column,value:i.title,row:d,rowspan:1,column:s(i.column)+1,colspan:u[g]["*"].colspan}}))})};for(var g in c)m();p.reverse().map((t=>{var{record:e,idx:r}=t;return l.push(u[Number(r)]),u[Number(r)]={},e["*"].value&&(u.forEach((t=>t["*"]&&t["*"].rowspan++)),d++),{record:e,idx:r}})).forEach((t=>{var{record:e,idx:r}=t;e["*"].row=d,u[Number(r)]=e}))}l.push(t),r=n};for(var p of t)h(p);for(;n=u.pop();)o.forEach((t=>{n[t]=Math.round(100*n[t])/100})),l.push(n),n["*"].value&&u.forEach((t=>t["*"].rowspan++));return l}checkDirties(){}};function $D(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function QD(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function KD(t){var e=t.target;Gi(e)&&e.setAttribute("data-tooltip",e.textContent)}function ZD(t){t.target.removeAttribute("data-tooltip")}XD.styles=[al,sl,S(BD||(BD=UD(["\n :host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n background-color: var(--report-background-color);\n padding: var(--report-padding);\n min-height: 120px;\n\n overflow: hidden;\n\n /* for pulltorefresh controller */\n position: relative;\n }\n\n #wrap {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow: auto;\n }\n\n ox-report-component {\n flex: 1;\n }\n\n ox-empty-note {\n display: block;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n "])))],(0,t.gn)([a()],XD.prototype,"config",void 0),(0,t.gn)([a()],XD.prototype,"data",void 0),(0,t.gn)([a()],XD.prototype,"fetchHandler",void 0),(0,t.gn)([a()],XD.prototype,"fetchOptions",void 0),(0,t.gn)([a({type:Boolean,attribute:"auto-fetch"})],XD.prototype,"autoFetch",void 0),(0,t.gn)([u()],XD.prototype,"_data",void 0),(0,t.gn)([u()],XD.prototype,"_config",void 0),(0,t.gn)([u()],XD.prototype,"_showSpinner",void 0),(0,t.gn)([v("#report")],XD.prototype,"report",void 0),(0,t.gn)([b("#wrap")],XD.prototype,"wrap",void 0),XD=(0,t.gn)([e("ox-report")],XD);var JD,tO,eO,rO=(qD=class extends sh{constructor(){super(...arguments),this.name="",this.placeholder="",this.label=""}render(){var t,e=(this.label instanceof Array?this.label.join(", "):null===(t=this.label)||void 0===t?void 0:t.trim())||this.value||this.placeholder||"";return nt(WD||(WD=QD(["\n <div @click=",">\n <span @mouseover="," @mouseout=",">","</span>\n <mwc-icon>expand_more</mwc-icon>\n </div>\n\n <slot></slot>\n "])),this.expand,KD,ZD,e)}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("select",(t=>{this.value=t.detail,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:this.value}))})),this.addEventListener("keydown",(t=>{t.preventDefault()," "!==t.key&&"Spacebar"!==t.key&&"ArrowDown"!==t.key||this.expand()}))}updated(t){var e=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){$D(o,n,i,a,s,"next",t)}function s(t){$D(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){if(t.has("value")){var r=e.querySelector("ox-popup-list");r.value=e.value,yield e.requestUpdate(),e.label=r.getSelectedLabels()}}))()}expand(){var t=this.querySelector("ox-popup-list");if(t){t.style.width="".concat(this.offsetWidth,"px");var e=t.hasAttribute("align-left")?"left":"right",r={top:this.offsetHeight,[e]:0};t.open(r)}}},qD.styles=[cl,S(YD||(YD=QD(["\n :host {\n display: block;\n position: relative;\n border-bottom: var(--border-dark-color);\n }\n\n div {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: var(--input-padding);\n font: var(--input-font);\n color: var(--primary-text-color);\n }\n\n span {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n mwc-icon {\n display: block;\n width: 24px;\n text-align: right;\n font-size: 18px;\n color: var(--theme-primary-text-color, #3c3938);\n opacity: 0.7;\n }\n div:hover mwc-icon {\n color: var(--primary-color);\n }\n\n ::slotted(ox-popup-list) {\n width: 100%;\n }\n "])))],qD);function nO(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:String})],rO.prototype,"name",void 0),(0,t.gn)([a({type:String})],rO.prototype,"placeholder",void 0),(0,t.gn)([u()],rO.prototype,"label",void 0),rO=(0,t.gn)([e("ox-select")],rO);var iO,oO,aO,sO,cO,lO,uO,dO,hO=((JD=class extends sh{constructor(){super(...arguments),this.dispatchChangeEventDebouncer=Eo((t=>this.dispatchChangeEvent(t)),100)}render(){return nt(tO||(tO=nO(["\n <mwc-icon @click=",'>search</mwc-icon>\n <input\n type="text"\n .value=',"\n .placeholder=","\n @change=","\n @keydown=","\n />\n "])),(t=>this._onClickSearch(t)),this.value||"",this.placeholder||"",(t=>{t.stopPropagation(),this.dispatchChangeEvent(t.target.value)}),(t=>{"Enter"===t.key&&t.target.value==this.value&&(t.preventDefault(),this.input.dispatchEvent(new CustomEvent("change",{detail:t.target.value})))}))}firstUpdated(){this.autofocus&&this.input.focus()}dispatchChangeEvent(t){this.value=t,this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:t})),this.selectAfterChange&&requestAnimationFrame((()=>{this.input.select()}))}_onClickSearch(t){this._form?(t.stopPropagation(),this._form.requestSubmit()):this.input.dispatchEvent(new CustomEvent("change",{detail:this.input.value}))}}).styles=[S(eO||(eO=nO(["\n :host {\n display: flex;\n position: relative;\n align-items: center;\n\n --mdc-icon-size: 20px;\n }\n\n [type='text'] {\n flex: 1;\n background-color: transparent;\n border: 0;\n border-bottom: var(--input-search-border-bottom, var(--border-dark-color));\n padding: var(--input-search-padding, var(--input-padding));\n padding-left: 25px;\n font: var(--input-search-font, var(--input-font));\n color: var(--primary-text-color);\n }\n\n [type='text']:focus {\n outline: none;\n border-bottom: var(--input-search-focus-border-bottom, 1px solid var(--primary-color));\n }\n\n mwc-icon {\n position: absolute;\n color: var(--secondary-color);\n }\n "])))],JD);function pO(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function fO(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function mO(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){fO(o,n,i,a,s,"next",t)}function s(t){fO(o,n,i,a,s,"throw",t)}a(void 0)}))}}(0,t.gn)([a({type:String})],hO.prototype,"placeholder",void 0),(0,t.gn)([a({attribute:"select-after-change",type:Boolean})],hO.prototype,"selectAfterChange",void 0),(0,t.gn)([v("input")],hO.prototype,"input",void 0),hO=(0,t.gn)([e("ox-input-search")],hO);var gO,vO,yO,bO,wO,_O,EO,xO=class extends At{constructor(){super(...arguments),this.value=[],this.withoutSearch=!1,this.filterColumns=[],this.searchColumns=[]}connectedCallback(){var t=this;super.connectedCallback();var e=this.closest("ox-grist");e&&(this.config=e.compiledConfig,this.value=e.filters||[],e.addEventListener("config-change",(t=>{this.config=t.detail})),e.addEventListener("fetch-params-change",(t=>{var{filters:e,from:r}=t.detail||{};"filters-form"!==r&&(this.value=e)})),this.renderRoot.addEventListener("change",function(){var e=mO((function*(e){t.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{filters:yield t.getQueryFilters(),from:"filters-form"}}))}));return function(t){return e.apply(this,arguments)}}()))}updated(t){if(t.has("config")){var e=this.config.columns.filter((t=>!!t.filter));this.filterColumns=e.filter((t=>"search"!==t.filter.operator)),this.searchColumns=e.filter((t=>"search"===t.filter.operator))}}render(){var t,e,r,n,i=(null===(n=null===(r=null===(e=null===(t=this.value)||void 0===t?void 0:t.find((t=>"search"===t.operator)))||void 0===e?void 0:e.value)||void 0===r?void 0:r.match(/^\%(.*)\%$/))||void 0===n?void 0:n[1])||"";return nt(iO||(iO=pO(["\n <form\n @submit=","\n >\n ","\n ","\n </form>\n "])),(t=>{t.stopPropagation(),t.preventDefault();var e=this.closest("ox-grist");e&&e.fetch()}),0===this.searchColumns.length||this.withoutSearch?nt(oO||(oO=pO([""]))):nt(aO||(aO=pO(['\n <ox-input-search name="search" .value='," ?autofocus=","></ox-input-search>\n "])),i,this.autofocus),this.filterColumns.map((t=>{var e,r,{name:n,header:i,label:o,filter:a}=t,s=a.type,c=a.operator,l=a.label,u=void 0!==l?l:"object"==typeof o&&o.renderer?o.renderer():i.renderer(t)||n,d="between"===c?1:0,h=Aw("like"===c||"i_like"===c||"i_nlike"===c||"nlike"===c?"text":s)[d],p=null===(r=null===(e=this.value)||void 0===e?void 0:e.find((t=>t.name==n)))||void 0===r?void 0:r.value;return h?"select"!==s&&u?nt(cO||(cO=pO(["<label filter-title><span>","</span> "," </label> "])),u,h(t,p,this)):"select"===s||u?nt("in"===c?lO||(lO=pO(["\n <ox-select\n name=","\n placeholder=","\n .value=","\n @change=",'\n >\n <ox-popup-list multiple attr-selected="checked" with-search>\n ',"\n </ox-popup-list>\n </ox-select>\n "])):uO||(uO=pO(["\n <ox-select\n name=","\n placeholder=","\n .value=","\n @change=","\n >\n <ox-popup-list with-search> "," </ox-popup-list>\n </ox-select>\n "])),n,u,p,(t=>{var e;return null===(e=t.target)||void 0===e?void 0:e.dispatchEvent(new CustomEvent("filter-change",{detail:{name:n,operator:c,value:t.detail}}))}),h(t,p,this)):h(t,p,this):nt(sO||(sO=pO([""])))})))}getQueryFilters(){var t=this;return mO((function*(){var e,r=new FormData(yield t.form),n=null===(e=r.get("search"))||void 0===e?void 0:e.toString(),i=t.filterColumns.map((t=>{var{name:e,type:n,filter:i}=t,o=i.operator,a=r.getAll(e);if(0!=a.length&&-1!==a.findIndex((t=>""!==t))){var s=a.map((t=>{var e=t.toString();switch(n){case"integer":case"float":case"number":case"progress":case"checkbox":case"boolean":return e?JSON.parse(e):void 0;default:return e}}));return{name:e,operator:o,value:1===s.length?s[0]:s}}})).filter((t=>void 0!==t));return n&&(i=i.concat(t.searchColumns.map((t=>{var{name:e}=t;return{name:e,operator:"search",value:"%".concat(n,"%")}})))),i}))()}setInputValue(t,e){var r=this.renderRoot.querySelector('form [name="'.concat(t,'"]'));r&&(r.value=e,r.dispatchEvent(new Event("change",{bubbles:!0})))}getInputValue(t){var e=this.renderRoot.querySelector('form [name="'.concat(t,'"]'));return null==e?void 0:e.value}};function AO(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}xO.styles=[ah,S(dO||(dO=pO(["\n :host {\n display: flex;\n }\n\n form {\n flex: 1;\n\n display: flex;\n flex-flow: row wrap;\n gap: var(--ox-filters-form-gap);\n }\n\n form > * {\n display: flex;\n align-items: center;\n }\n\n @media only screen and (max-width: 460px) {\n form {\n flex-direction: column;\n }\n\n label,\n label span,\n ox-select {\n display: block;\n }\n }\n "])))],(0,t.gn)([a({type:Object})],xO.prototype,"value",void 0),(0,t.gn)([a({type:Boolean,attribute:"without-search"})],xO.prototype,"withoutSearch",void 0),(0,t.gn)([u()],xO.prototype,"config",void 0),(0,t.gn)([u()],xO.prototype,"filterColumns",void 0),(0,t.gn)([u()],xO.prototype,"searchColumns",void 0),(0,t.gn)([b("form")],xO.prototype,"form",void 0),xO=(0,t.gn)([e("ox-filters-form")],xO);var CO=class extends At{constructor(){super(...arguments),this.columns=[],this.sorters=[]}connectedCallback(){super.connectedCallback();var t=this.closest("ox-grist");t&&(this.config=t.compiledConfig,t.addEventListener("config-change",(t=>{this.config=t.detail})),t.addEventListener("fetch-params-change",(t=>{var{sorters:e,from:r}=t.detail||{};"sorters-control"!==r&&e&&(this.sorters=e)})))}updated(t){t.has("config")&&(this.columns=this.config.columns.filter((t=>t.sortable)),this.sorters=this.sorters||this.config.sorters||[])}render(){var t=this.columns,e=this.sorters||[];return nt(gO||(gO=AO(["\n ","\n "])),t.map((t=>{var{name:r}=t,n=e.findIndex((t=>t.name===r))+1,i=0!==n?e[n-1].desc:null;return e.length<=1&&(n=0),nt(vO||(vO=AO(["\n <div\n option\n @click=","\n >\n <span>","</span>\n ","\n </div>\n "])),(t=>{this.onChangeSort(r)}),t.header.renderer.call(this,t),null===i?nt(yO||(yO=AO([""]))):nt(bO||(bO=AO(["\n <mwc-icon>","</mwc-icon>\n ","\n "])),i?"keyboard_arrow_down":"keyboard_arrow_up",0===n?nt(wO||(wO=AO([""]))):nt(_O||(_O=AO(["<sub>","</sub>"])),n)))})))}onChangeSort(t){var e=[...this.sorters],r=e.findIndex((e=>e.name==t));if(-1!==r){var n=e[r];n.desc?e.splice(r,1):n.desc=!0}else{var i={name:t};e.push(i)}this.sorters=e,this.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{sorters:this.sorters,from:"sorters-control"}}))}};CO.styles=[S(EO||(EO=AO(["\n :host {\n display: flex;\n flex-direction: column;\n white-space: nowrap;\n }\n\n [option] {\n flex: 1;\n\n display: flex;\n justify-content: center;\n align-items: center;\n border-bottom: 1px solid rgba(0, 0, 0, 0.05);\n padding: 3px var(--padding-narrow);\n }\n\n [option] > span {\n margin-right: auto;\n text-transform: capitalize;\n user-select: none;\n }\n [option] mwc-icon {\n margin-left: var(--margin-default);\n --mdc-icon-size: var(--fontsize-large);\n color: var(--primary-color);\n }\n [option] sub {\n color: var(--primary-color);\n }\n "])))],(0,t.gn)([u()],CO.prototype,"config",void 0),(0,t.gn)([u()],CO.prototype,"columns",void 0),(0,t.gn)([u()],CO.prototype,"sorters",void 0),CO=(0,t.gn)([e("ox-sorters-control")],CO);var SO,DO,OO=__webpack_require__(16682),PO=__webpack_require__(85709),IO=__webpack_require__.n(PO);function kO(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function TO(t){return"object"===kO(t)}function RO(t,e){return t.length<124?t:e}function FO(t){if(!TO(t))throw new Error(`Message is expected to be an object, but got ${kO(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof t.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${kO(t.type)}`);switch(t.type){case DO.ConnectionInit:case DO.ConnectionAck:case DO.Ping:case DO.Pong:if("payload"in t&&!TO(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or missing, but got "${t.payload}"`);break;case DO.Subscribe:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${kO(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!TO(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${kO(t.payload)}`);if("string"!=typeof t.payload.query)throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${kO(t.payload.query)}`);if(null!=t.payload.variables&&!TO(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${kO(t.payload.variables)}`);if(null!=t.payload.operationName&&"string"!==kO(t.payload.operationName))throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${kO(t.payload.operationName)}`);if(null!=t.payload.extensions&&!TO(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${kO(t.payload.extensions)}`);break;case DO.Next:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${kO(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!TO(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${kO(t.payload)}`);break;case DO.Error:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${kO(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(e=t.payload,!(Array.isArray(e)&&e.length>0&&e.every((t=>"message"in t))))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break;case DO.Complete:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${kO(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${t.type}"`)}var e;return t}function NO(t,e){return FO(t),JSON.stringify(t,e)}!function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(SO||(SO={})),function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"}(DO||(DO={}));var MO=__webpack_require__(51266);function BO(t){return TO(t)&&"code"in t&&"reason"in t}var LO=__webpack_require__(36232),jO=__webpack_require__(64638),VO=__webpack_require__(41822),zO=__webpack_require__(56344),UO=__webpack_require__(71996),HO=__webpack_require__(49657),GO=__webpack_require__(64059);function qO(t){return new jO.i((function(e,r){return new GO.y((function(n){var i,o,a;try{i=r(e).subscribe({next:function(i){i.errors&&(a=t({graphQLErrors:i.errors,response:i,operation:e,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=t({operation:e,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){t({networkError:i,operation:e,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function r(t){var r=e.call(this)||this;return r.link=qO(t),r}(0,t.ZT)(r,e),r.prototype.request=function(t,e){return this.link.request(t,e)}}(jO.i);var WO,YO,XO,$O,QO=__webpack_require__(54585),KO=__webpack_require__(32345),ZO=__webpack_require__(93869),JO=function(e){function r(t){var r=e.call(this)||this;return r.client=t,r}return(0,t.ZT)(r,e),r.prototype.request=function(e){var r=this;return new GO.y((function(n){return r.client.subscribe((0,t.pi)((0,t.pi)({},e),{query:(0,QO.S)(e.query)}),{next:n.next.bind(n),complete:n.complete.bind(n),error:function(t){return t instanceof Error?n.error(t):(e=t,(0,KO.s)(e)&&"code"in e&&"reason"in e?n.error(new Error("Socket closed with event ".concat(t.code," ").concat(t.reason||""))):n.error(new ZO.c({graphQLErrors:Array.isArray(t)?t:[t]})));var e}})}))},r}(jO.i),tP=__webpack_require__(7122),eP="/graphql",rP=eP,nP=new LO.h({addTypename:!1}),iP={uri:eP,credentials:"include",headers:{"Apollo-Require-Preflight":"true"}},oP=jO.i.split((t=>t.getContext().hasUpload),IO()(iP),new VO.u(iP)),aP=new JO(function(t){const{url:e,connectionParams:r,lazy:n=!0,onNonLazyError:i=MO.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:c=0,retryAttempts:l=5,retryWait:u=async function(t){let e=1e3;for(let r=0;r<t;r++)e*=2;await new Promise((t=>setTimeout(t,e+Math.floor(2700*Math.random()+300))))},shouldRetry:d=BO,isFatalConnectionProblem:h,on:p,webSocketImpl:f,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},jsonMessageReplacer:g,jsonMessageReviver:v}=t;let y;if(f){if(!("function"==typeof(b=f)&&"constructor"in b&&"CLOSED"in b&&"CLOSING"in b&&"CONNECTING"in b&&"OPEN"in b))throw new Error("Invalid WebSocket implementation provided");y=f}else"undefined"!=typeof WebSocket?y=WebSocket:void 0!==__webpack_require__.g?y=__webpack_require__.g.WebSocket||__webpack_require__.g.MozWebSocket:"undefined"!=typeof window&&(y=window.WebSocket||window.MozWebSocket);var b;if(!y)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const w=y,_=(()=>{const t=(()=>{const t={};return{on:(e,r)=>(t[e]=r,()=>{delete t[e]}),emit(e){var r;"id"in e&&(null===(r=t[e.id])||void 0===r||r.call(t,e))}}})(),e={connecting:(null==p?void 0:p.connecting)?[p.connecting]:[],opened:(null==p?void 0:p.opened)?[p.opened]:[],connected:(null==p?void 0:p.connected)?[p.connected]:[],ping:(null==p?void 0:p.ping)?[p.ping]:[],pong:(null==p?void 0:p.pong)?[p.pong]:[],message:(null==p?void 0:p.message)?[t.emit,p.message]:[t.emit],closed:(null==p?void 0:p.closed)?[p.closed]:[],error:(null==p?void 0:p.error)?[p.error]:[]};return{onMessage:t.on,on(t,r){const n=e[t];return n.push(r),()=>{n.splice(n.indexOf(r),1)}},emit(t,...r){for(const n of[...e[t]])n(...r)}}})();function E(t){const e=[_.on("error",(r=>{e.forEach((t=>t())),t(r)})),_.on("closed",(r=>{e.forEach((t=>t())),t(r)}))]}let x,A,C=0,S=!1,D=0,O=!1;async function P(){clearTimeout(A);const[t,n]=await(null!=x?x:x=new Promise(((t,n)=>(async()=>{if(S){if(await u(D),!C)return x=void 0,n({code:1e3,reason:"All Subscriptions Gone"});D++}_.emit("connecting");const i=new w("function"==typeof e?await e():e,"graphql-transport-ws");let o,l;function d(){isFinite(a)&&a>0&&(clearTimeout(l),l=setTimeout((()=>{i.readyState===w.OPEN&&(i.send(NO({type:DO.Ping})),_.emit("ping",!1,void 0))}),a))}E((t=>{x=void 0,clearTimeout(o),clearTimeout(l),n(t),BO(t)&&4499===t.code&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)})),i.onerror=t=>_.emit("error",t),i.onclose=t=>_.emit("closed",t),i.onopen=async()=>{try{_.emit("opened",i);const t="function"==typeof r?await r():r;if(i.readyState!==w.OPEN)return;i.send(NO(t?{type:DO.ConnectionInit,payload:t}:{type:DO.ConnectionInit},g)),isFinite(c)&&c>0&&(o=setTimeout((()=>{i.close(SO.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),c)),d()}catch(t){_.emit("error",t),i.close(SO.InternalClientError,RO(t instanceof Error?t.message:new Error(t).message,"Internal client error"))}};let h=!1;i.onmessage=({data:e})=>{try{const r=function(t,e){return FO("string"==typeof t?JSON.parse(t,e):t)}(e,v);if(_.emit("message",r),"ping"===r.type||"pong"===r.type)return _.emit(r.type,!0,r.payload),void("pong"===r.type?d():s||(i.send(NO(r.payload?{type:DO.Pong,payload:r.payload}:{type:DO.Pong})),_.emit("pong",!1,r.payload)));if(h)return;if(r.type!==DO.ConnectionAck)throw new Error(`First message cannot be of type ${r.type}`);clearTimeout(o),h=!0,_.emit("connected",i,r.payload),S=!1,D=0,t([i,new Promise(((t,e)=>E(e)))])}catch(t){i.onmessage=null,_.emit("error",t),i.close(SO.BadResponse,RO(t instanceof Error?t.message:new Error(t).message,"Bad response"))}}})())));t.readyState===w.CLOSING&&await n;let i=()=>{};const l=new Promise((t=>i=t));return[t,i,Promise.race([l.then((()=>{if(!C){const e=()=>t.close(1e3,"Normal Closure");isFinite(o)&&o>0?A=setTimeout((()=>{t.readyState===w.OPEN&&e()}),o):e()}})),n])]}function I(t){if(BO(t)&&(e=t.code,![1e3,1001,1006,1005,1012,1013,1013].includes(e)&&e>=1e3&&e<=1999||[SO.InternalServerError,SO.InternalClientError,SO.BadRequest,SO.BadResponse,SO.Unauthorized,SO.SubprotocolNotAcceptable,SO.SubscriberAlreadyExists,SO.TooManyInitialisationRequests].includes(t.code)))throw t;var e;if(O)return!1;if(BO(t)&&1e3===t.code)return C>0;if(!l||D>=l)throw t;if(!d(t))throw t;if(null==h?void 0:h(t))throw t;return S=!0}return n||(async()=>{for(C++;;)try{const[,,t]=await P();await t}catch(t){try{if(!I(t))return}catch(t){return null==i?void 0:i(t)}}})(),{on:_.on,subscribe(t,e){const r=m(t);let n=!1,i=!1,o=()=>{C--,n=!0};return(async()=>{for(C++;;)try{const[a,s,c]=await P();if(n)return s();const l=_.onMessage(r,(t=>{switch(t.type){case DO.Next:return void e.next(t.payload);case DO.Error:return i=!0,n=!0,e.error(t.payload),void o();case DO.Complete:return n=!0,void o()}}));return a.send(NO({id:r,type:DO.Subscribe,payload:t},g)),o=()=>{n||a.readyState!==w.OPEN||a.send(NO({id:r,type:DO.Complete},g)),C--,n=!0,s()},void await c.finally(l)}catch(t){if(!I(t))return}})().then((()=>{i||e.complete()})).catch((t=>{e.error(t)})),()=>{n||o()}},async dispose(){if(O=!0,x){const[t]=await x;t.close(1e3,"Normal Closure")}},terminate(){x&&_.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}({url:location.origin.replace(/^http/,"ws")+rP,keepAlive:1e4,retryAttempts:1e6,shouldRetry:t=>!0,connectionParams:{headers:{referer:location.href}}})),sP=new zO.f({defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}},cache:nP,link:(0,UO.V)((t=>{var{query:e}=t,r=(0,tP.p$)(e);return"OperationDefinition"===r.kind&&"subscription"===r.operation}),aP,(0,HO.D)([qO((t=>{var{operation:e,graphQLErrors:r,networkError:n}=t;if(r&&document.dispatchEvent(new CustomEvent("notify",{detail:{level:"error",message:r[0].message,ex:r}})),n)switch(n.statusCode){case void 0:document.dispatchEvent(new CustomEvent("notify",{detail:{level:"error",message:n.message,ex:n}}));break;case 401:document.dispatchEvent(new CustomEvent("auth-required"));break;case 403:document.dispatchEvent(new CustomEvent("domain-required"));break;default:var{name:i,response:o,statusCode:a,bodyText:s,message:c}=n;c="ServerParseError"==i?"[ ".concat(a||""," : ").concat(o.statusText," ] ").concat(s):"[ ".concat(a||""," : ").concat(o.statusText," ] ").concat(c),document.dispatchEvent(new CustomEvent("notify",{detail:{level:"error",message:c,ex:n}}))}})),oP]))});function cP(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function lP(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var uP,dP,hP,pP,fP=class extends At{constructor(){super(...arguments),this.histories=[]}render(){var t;if(!(null===(t=this.histories)||void 0===t?void 0:t.length))return nt(WO||(WO=lP([""])));var e={rows:{appendable:!1},pagination:{infinite:!0},columns:[{type:"gutter",gutterName:"sequence"},{type:"object",name:"accessDomain",header:mi.t("field.domain"),record:{editable:!1},width:200},{type:"datetime",name:"accessedAt",header:mi.t("field.accessed_at"),record:{editable:!1},width:200},{type:"string",name:"accessorIp",header:mi.t("field.ip_address"),record:{editable:!1},width:200}]};return nt(YO||(YO=lP(["\n <ox-grist\n .mode=","\n .config=",'\n .data="','"\n ></ox-grist>\n '])),window.matchMedia("(max-width: 767px)").matches?"LIST":"GRID",e,{records:this.histories})}firstUpdated(){this.fetchLoginHistories()}fetchLoginHistories(){var t=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){cP(o,n,i,a,s,"next",t)}function s(t){cP(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){var e;try{var r=yield sP.query({query:(0,OO.ZP)(XO||(XO=lP(["\n query myLoginHistories($limit: Float!) {\n myLoginHistories(limit: $limit) {\n accessDomain {\n name\n }\n accessorIp\n accessedAt\n }\n }\n "]))),variables:{limit:t.limit||10}});if(null===(e=r.errors)||void 0===e?void 0:e.length)return;t.histories=r.data.myLoginHistories.map((t=>Object.assign(Object.assign({},t),{accessedAt:t.accessedAt-60*(new Date).getTimezoneOffset()*1e3})))}catch(e){t.showToast("message"in e?e.message:e)}}))()}showToast(t){document.dispatchEvent(new CustomEvent("notify",{detail:{message:t}}))}};function mP(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function gP(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){mP(o,n,i,a,s,"next",t)}function s(t){mP(o,n,i,a,s,"throw",t)}a(void 0)}))}}function vP(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}fP.styles=S($O||($O=lP(["\n :host {\n display: flex;\n flex-direction: column;\n background-color: var(--main-section-background-color);\n padding: var(--padding-wide);\n overflow: auto;\n }\n ox-grist {\n flex: 1;\n }\n "]))),(0,t.gn)([a({type:Array}),(0,t.w6)("design:type",Array)],fP.prototype,"histories",void 0),(0,t.gn)([a({type:Number}),(0,t.w6)("design:type",Number)],fP.prototype,"limit",void 0),fP=(0,t.gn)([e("my-login-history")],fP);var yP,bP=class extends(gi(mi)(At)){firstUpdated(){Di.on("profile",(t=>{var{credential:e}=t;this.setCredential(e)})),this.setCredential(Di.credential)}setCredential(t){t?(this.name=t.name,this.email=t.email):(this.name="",this.email="")}render(){return nt(uP||(uP=vP(['\n <div class="wrap">\n <div class="user">','</div>\n\n <label for="name"><ox-i18n slot="title" msgid="label.name"></ox-i18n></label>\n <input id="name" @change='," .value=",' />\n\n <hr />\n\n <label for="locale"><ox-i18n slot="title" msgid="label.language"></ox-i18n></label>\n <ox-i18n-selector id="locale" @change=','></ox-i18n-selector>\n\n <hr />\n\n <label for="change-password">\n <ox-i18n msgid="label.password"></ox-i18n>\n </label>\n\n <change-password id="change-password"></change-password>\n\n <div class="button-container">\n <mwc-button\n id="login-history-button"\n label=',"\n raised\n @click=","\n ></mwc-button>\n </div>\n </div>\n "])),this.email||"",(t=>this.onNameChanged(t.target.value)),this.name||"",(t=>this.onLocaleChanged(t.detail)),mi.t("label.login_history"),this.openLoginHistory.bind(this))}onNameChanged(t){var e=this;return gP((function*(){if(t){var r=e.name;try{fu({level:"info",message:yield Di.updateProfile({name:t})})}catch(t){e.nameEl.value=r||"",fu({level:"error",message:"message"in t?t.message:t})}}}))()}onLocaleChanged(t){var e=this;return gP((function*(){if(t){var r=mi.language;try{var n=yield Di.updateProfile({locale:t});mi.changeLanguage(t),fu({level:"info",message:n})}catch(t){e.localeEl.value=r,fu({level:"error",message:"message"in t?t.message:t})}}}))()}openLoginHistory(){au(nt(dP||(dP=vP([" <my-login-history></my-login-history> "]))),{title:mi.t("label.login_history")})}deleteUser(){au(nt(hP||(hP=vP([" <delete-user-popup></delete-user-popup> "]))),{title:mi.t("label.delete account")})}};bP.styles=[S(pP||(pP=vP(["\n :host {\n display: block;\n background-color: var(--main-section-background-color);\n padding: 15px 0;\n }\n .wrap {\n max-width: var(--profile-wrap-max-width, 400px);\n margin: auto;\n display: grid;\n grid-template-columns: 1fr 1fr;\n }\n\n * {\n box-sizing: border-box;\n }\n\n *:focus {\n outline: none;\n }\n\n input {\n margin: var(--change-password-field-margin);\n border: var(--input-field-border);\n padding: var(--input-padding);\n border-radius: var(--border-radius);\n font: var(--input-font);\n width: var(--change-password-field-width);\n }\n input:focus {\n border: 1px solid var(--focus-background-color);\n }\n\n .user {\n background: url(/assets/images/icon-profile.png) center top no-repeat;\n margin: var(--profile-icon-margin);\n padding: 180px 20px 20px 20px;\n color: var(--secondary-color);\n font: var(--header-bar-title);\n text-align: center;\n }\n\n hr {\n width: 100%;\n border: dotted 1px rgba(0, 0, 0, 0.1);\n }\n\n .wrap * {\n grid-column: span 2;\n }\n\n label {\n font: bold 14px var(--theme-font);\n color: var(--primary-color);\n text-transform: capitalize;\n grid-column: 1;\n }\n\n .wrap *.inline {\n grid-column: unset;\n }\n\n i18n-selector {\n --i18n-selector-field-width: var(--auth-input-field-width);\n --i18n-selector-field-margin: var(--change-password-field-margin);\n --i18n-selector-field-padding: var(--padding-default);\n --i18n-selector-field-border-radius: var(--border-radius);\n margin: var(--change-password-field-margin);\n }\n\n [danger] {\n --mdc-theme-primary: var(--mdc-danger-button-primary-color);\n }\n .button-container {\n display: flex;\n gap: var(--padding-default);\n }\n .button-container > mwc-button:first-child {\n margin: auto 0px auto auto;\n }\n "])))],(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],bP.prototype,"email",void 0),(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],bP.prototype,"name",void 0),(0,t.gn)([v("#name"),(0,t.w6)("design:type",HTMLInputElement)],bP.prototype,"nameEl",void 0),(0,t.gn)([v("#locale"),(0,t.w6)("design:type",HTMLInputElement)],bP.prototype,"localeEl",void 0),bP=(0,t.gn)([e("profile-component")],bP);var wP,_P,EP,xP,AP=S(yP||(yP=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n :host {\n display: flex;\n background-color: var(--auth-background);\n }\n\n :host *:focus {\n outline: none;\n }\n\n :host * {\n box-sizing: border-box;\n }\n\n ::placeholder {\n color: var(--opacity-light-color);\n font: var(--auth-input-font);\n }\n .wrap {\n display: block;\n width: 450px;\n min-width: 350px;\n margin: 0 auto;\n padding-bottom: 100px;\n text-align: center;\n }\n .auth-brand {\n color: #fff;\n }\n .auth-brand img {\n margin: 15% auto 5px auto;\n width: 100px;\n border: 3px solid var(--theme-white-color);\n border-radius: 25px;\n box-shadow: var(--box-shadow);\n }\n .name {\n display: block;\n font: var(--auth-brand-name);\n text-shadow: var(--auth-brand-name-shadow);\n }\n .auth-brand .welcome-msg {\n font: var(--auth-brand-welcome-msg);\n }\n .auth-form {\n display: grid;\n grid-gap: var(--margin-default);\n grid-template-columns: 1fr 1fr;\n }\n\n form {\n grid-column: 1 / -1;\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: var(--margin-default);\n align-items: center;\n }\n\n h3 {\n grid-column: 1 / -1;\n margin: 50px 0 0 0;\n font: var(--auth-title-font);\n color: var(--auth-title-color);\n text-transform: uppercase;\n }\n\n .field {\n grid-column: 1 / -1;\n text-align: left;\n }\n\n .field mwc-textfield {\n width: 100%;\n --mdc-theme-primary: var(--auth-input-color);\n --mdc-theme-error: #fdd55f;\n --mdc-text-field-fill-color: transparent;\n --mdc-text-field-ink-color: var(--auth-input-color);\n --mdc-text-field-label-ink-color: var(--auth-input-color);\n --mdc-text-field-idle-line-color: var(--auth-input-color);\n --mdc-text-field-hover-line-color: var(--auth-input-color);\n font: var(--auth-input-font);\n }\n\n mwc-button {\n --mdc-theme-primary: var(--auth-button-background-color);\n --mdc-theme-on-primary: var(--primary-color);\n --mdc-button-horizontal-padding: var(--padding-default);\n --mdc-button-ink-color: var(--primary-color);\n grid-column: 1 / -1;\n }\n\n .wrap .link {\n text-decoration: none;\n justify-self: flex-start;\n color: var(--auth-title-color);\n }\n\n .wrap .link > mwc-button {\n --mdc-theme-primary: var(--auth-title-color);\n }\n\n #locale-area {\n display: flex;\n grid-column: 1 / -1;\n padding: 0 var(--padding-default);\n }\n\n #locale-area > label {\n display: flex;\n align-items: center;\n color: var(--theme-white-color);\n --mdc-icon-size: 16px;\n }\n\n #locale-selector {\n font-size: 16px;\n width: 100%;\n }\n\n #locale-selector {\n --i18n-selector-field-border: none;\n --i18n-selector-field-background-color: none;\n --i18n-selector-field-font-size: 14px;\n --i18n-selector-field-color: var(--theme-white-color);\n }\n\n .lottie-container {\n width: 100%;\n height: 300px;\n position: absolute;\n left: 0;\n bottom: 0;\n pointer-events: none;\n }\n .lottie-container lottie-player {\n position: absolute;\n bottom: -6%;\n width: 100%;\n height: auto;\n }\n\n @media (max-width: 450px) {\n .wrap {\n width: 85%;\n min-width: 320px;\n }\n .auth-form {\n grid-template-columns: 1fr;\n }\n .auth-brand img {\n margin: 12% auto 5px auto;\n width: 75px;\n }\n h3 {\n margin: 15px 0 0 0;\n }\n .lottie-container {\n overflow: hidden;\n height: 200px;\n pointer-events: none;\n }\n .lottie-container lottie-player {\n width: 1200px;\n left: -30%;\n }\n }\n\n @media screen and (min-width: 1400px) {\n .wrap {\n padding-bottom: 150px;\n }\n }\n @media screen and (min-width: 2500px) {\n .wrap {\n padding-bottom: 280px;\n }\n }\n"])));function CP(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}class SP extends At{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new Zt((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderRipple(){return this.shouldRenderRipple?nt(wP||(wP=CP(['\n <mwc-ripple\n .disabled="','"\n unbounded>\n </mwc-ripple>'])),this.disabled):""}focus(){var t=this.buttonElement;t&&(this.rippleHandlers.startFocus(),t.focus())}blur(){var t=this.buttonElement;t&&(this.rippleHandlers.endFocus(),t.blur())}render(){return nt(_P||(_P=CP(['<button\n class="mdc-icon-button mdc-icon-button--display-flex"\n aria-label="','"\n aria-haspopup="','"\n ?disabled="','"\n @focus="','"\n @blur="','"\n @mousedown="','"\n @mouseenter="','"\n @mouseleave="','"\n @touchstart="','"\n @touchend="','"\n @touchcancel="','"\n >',"\n ","\n <span\n ><slot></slot\n ></span>\n </button>"])),this.ariaLabel||this.icon,ie(this.ariaHasPopup),this.disabled,this.handleRippleFocus,this.handleRippleBlur,this.handleRippleMouseDown,this.handleRippleMouseEnter,this.handleRippleMouseLeave,this.handleRippleTouchStart,this.handleRippleDeactivate,this.handleRippleDeactivate,this.renderRipple(),this.icon?nt(EP||(EP=CP(['<i class="material-icons">',"</i>"])),this.icon):"")}handleRippleMouseDown(t){var e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}(0,t.gn)([a({type:Boolean,reflect:!0})],SP.prototype,"disabled",void 0),(0,t.gn)([a({type:String})],SP.prototype,"icon",void 0),(0,t.gn)([Kt,a({type:String,attribute:"aria-label"})],SP.prototype,"ariaLabel",void 0),(0,t.gn)([Kt,a({type:String,attribute:"aria-haspopup"})],SP.prototype,"ariaHasPopup",void 0),(0,t.gn)([v("button")],SP.prototype,"buttonElement",void 0),(0,t.gn)([b("mwc-ripple")],SP.prototype,"ripple",void 0),(0,t.gn)([u()],SP.prototype,"shouldRenderRipple",void 0),(0,t.gn)([g({passive:!0})],SP.prototype,"handleRippleMouseDown",null),(0,t.gn)([g({passive:!0})],SP.prototype,"handleRippleTouchStart",null);var DP,OP,PP,IP,kP,TP,RP,FP,NP,MP,BP=S(xP||(xP=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(['.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}']))),LP=class extends SP{};function jP(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function VP(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}LP.styles=[BP],LP=(0,t.gn)([e("mwc-icon-button")],LP);class zP extends(gi(mi)(At)){render(){var{icon:t,title:e,description:r}=this.applicationMeta;return nt(DP||(DP=VP(['\n <div class="content">\n <div class="wrap">\n <div class="auth-brand">\n <img src=',' />\n <strong class="name">','</strong>\n <span class="welcome-msg">','</span>\n </div>\n\n <div class="auth-form">\n <h3><ox-i18n msgid="title.','"></ox-i18n></h3>\n\n <form\n id="form"\n action="','"\n method="POST"\n @keypress=',"\n >\n ","\n </form>\n ",'\n <div id="locale-area">\n <label for="locale-selector"><mwc-icon>language</mwc-icon></label>\n <ox-i18n-selector\n id="locale-selector"\n value=',"\n @change=",'\n ></ox-i18n-selector>\n </div>\n </div>\n </div>\n\n <mwc-icon-button home icon="home" @click=','></mwc-icon-button>\n <ox-snack-bar id="snackbar" level="error" .message=',"></ox-snack-bar>\n\n ","\n </div>\n "])),t,e,r,this.pageName,this.actionUrl,(t=>{"Enter"==t.key&&this._onSubmit(t)}),this.formfields,this.links,mi.language||"en-US",(t=>{var e=t.detail;e&&mi.changeLanguage(e)}),(t=>window.location.href="/"),this.message,Hi()?nt(OP||(OP=VP([""]))):nt(PP||(PP=VP(['\n <div class="lottie-container">\n <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>\n </div>\n ']))))}firstUpdated(){setTimeout((()=>{this.renderRoot.querySelector("mwc-textfield").focus()}),100),this.formEl.reset=()=>{this.formElements.filter((t=>!(t.hidden||"hidden"==t.type))).forEach((t=>t.value=""))}}updated(t){t.has("data")&&this.data&&(this.message=this.data.message,this.redirectTo=this.data.redirectTo)}get formElements(){return Array.from(this.formEl.querySelectorAll("[name]"))}get formfields(){var t,e=(null===(t=this.data)||void 0===t?void 0:t.email)||"";return nt(IP||(IP=VP(['\n <input id="redirectTo" type="hidden" name="redirectTo" .value=',' />\n\n <div class="field">\n <mwc-textfield\n name="email"\n type="email"\n label=',"\n required\n .value=","\n .validationMessage=",'\n autocomplete="username"\n autocapitalize="off"\n ></mwc-textfield>\n </div>\n <div class="field">\n <mwc-textfield\n name="password"\n type="password"\n label=','\n autocomplete="current-password"\n required\n ></mwc-textfield>\n </div>\n\n <mwc-button class="ui" type="submit" raised @click=','>\n <ox-i18n msgid="field.','"> </ox-i18n>\n </mwc-button>\n '])),this.redirectTo||"/",mi.t("field.email"),e,mi.t("text.invalid-email"),mi.t("field.password"),(t=>this._onSubmit(t)),this.pageName)}get links(){return nt(kP||(kP=VP(['\n <a class="link" href="/auth/signup">\n <mwc-button icon="add_task"><ox-i18n msgid="field.sign up"></ox-i18n></mwc-button>\n </a>\n <a class="link" href="/auth/forgot-password">\n <mwc-button icon="lock_open"><ox-i18n msgid="field.forgot-password"></ox-i18n></mwc-button>\n </a>\n '])))}_onSubmit(t){var e=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){jP(o,n,i,a,s,"next",t)}function s(t){jP(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){e.checkValidity()&&e.submit()}))()}checkValidity(){return this.formElements.every((t=>t.checkValidity()))}showSnackbar(){var{level:t,message:e,timer:r=3e3}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.renderRoot.querySelector("#snackbar");t&&(n.level=t),e&&(n.message=e),n.active=!0,r>-1&&setTimeout((()=>{this.hideSnackbar()}),r)}hideSnackbar(){this.renderRoot.querySelector("#snackbar").active=!1}get applicationMeta(){if(!this._applicationMeta){var t=document.querySelector('link[rel="application-icon"]'),e=document.querySelector('meta[name="application-name"]'),r=document.querySelector('meta[name="application-description"]');this._applicationMeta={icon:(null==t?void 0:t.href)||"",title:(null==e?void 0:e.content)||"Things Factory",description:(null==r?void 0:r.content)||"Reimagining Software"}}return this._applicationMeta}}function UP(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function HP(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}zP.styles=[al,S(TP||(TP=VP(["\n :host {\n position: relative;\n overflow: hidden;\n\n display: flex;\n flex-direction: row;\n\n width: 100vw;\n height: 100vh;\n }\n .content {\n flex: 1;\n overflow: auto;\n }\n\n [home] {\n position: absolute;\n top: 10px;\n left: 10px;\n font-size: 2em;\n color: white;\n }\n\n [hidden] {\n display: none;\n }\n\n #snackbar {\n width: 100%;\n z-index: 10;\n }\n\n @media print {\n :host {\n width: 100%;\n height: 100%;\n min-height: 100vh;\n }\n }\n "]))),AP],(0,t.gn)([a({type:Object}),(0,t.w6)("design:type",Object)],zP.prototype,"data",void 0),(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],zP.prototype,"message",void 0),(0,t.gn)([a({type:Object}),(0,t.w6)("design:type",Object)],zP.prototype,"detail",void 0),(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],zP.prototype,"redirectTo",void 0),(0,t.gn)([v("#form"),(0,t.w6)("design:type",HTMLFormElement)],zP.prototype,"formEl",void 0);class GP extends zP{constructor(){super(...arguments),this.passwordPattern="",this.passwordHelp=""}render(){var{icon:t,title:e,description:r}=this.applicationMeta;return nt(RP||(RP=HP(['\n <div class="wrap">\n <div class="auth-brand">\n <img src=',' />\n <strong class="name">','</strong>\n <span class="welcome-msg">','</span>\n </div>\n\n <div class="auth-form">\n <h3><ox-i18n msgid="title.','"></ox-i18n></h3>\n <form\n id="form"\n action="','"\n method="POST"\n @keypress=','\n >\n <input name="token" type="hidden" .value=',' required />\n <div class="field">\n <mwc-textfield\n name="password"\n type="password"\n label=',"\n .pattern=","\n helper=","\n helperPersistent\n @input=",'\n required\n ></mwc-textfield>\n </div>\n\n <div class="field">\n <mwc-textfield\n id="confirm-password"\n name="confirm-password"\n type="password"\n label=','\n required\n ></mwc-textfield>\n </div>\n\n <mwc-button id="submit-button" type="submit" raised @click=','>\n <ox-i18n msgid="','"></ox-i18n>\n </mwc-button>\n\n <div id="locale-area">\n <label for="locale-selector"><mwc-icon>language</mwc-icon></label>\n <ox-i18n-selector\n id="locale-selector"\n value=',"\n @change=",'\n ></ox-i18n-selector>\n </div>\n </form>\n </div>\n </div>\n <ox-snack-bar id="snackbar" level="error" .message=',"></ox-snack-bar>\n\n ","\n "])),t,e,r,this.title,this.actionUrl,(t=>{"Enter"==t.key&&this._onSubmit(t)}),this.token,mi.t("label.password"),this.passwordPattern,this.passwordHelp,(t=>{var e=t.target.value;this.confirmPass.setAttribute("pattern",e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"[$&]"))}),mi.t("field.confirm password"),(t=>this._onSubmit(t)),this.submitButtonLabel,mi.language||"en-US",(t=>{var e=t.detail;e&&mi.changeLanguage(e)}),this.message,Hi()?nt(FP||(FP=HP([""]))):nt(NP||(NP=HP(['\n <div class="lottie-container">\n <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>\n </div>\n ']))))}updated(t){super.updated(t),t.has("data")&&(this.token=this.data.token),t.has("message")&&(this.message?this.showSnackbar({timer:-1}):this.hideSnackbar())}languageUpdated(){this.passwordPattern=function(){var{lowerCase:t=!0,upperCase:e=!0,digit:r=!0,specialCharacter:n=!0,allowRepeat:i=!1,useTightPattern:o=!0,useLoosePattern:a=!1,tightCharacterLength:s=8,looseCharacterLength:c=15}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=o?[t?"(?=.*[a-z])":"",e?"(?=.*[A-Z])":"",r?"(?=.*\\d)":"",n?"(?=.*[!@#$%^&*()])":"",i?"":"(?!.*(.)\\1(?=\\1{1,}))",".{".concat(s,",}")]:[],u=a?[".{".concat(c,",}")]:[],d=["^",...l,l.length&&u.length?"|":"",...u,"$"];return new RegExp(d.join(""))}(this.data.passwordRule).source,this.passwordHelp=function(){var{lowerCase:t=!0,upperCase:e=!0,digit:r=!0,specialCharacter:n=!0,allowRepeat:i=!1,useTightPattern:o=!0,useLoosePattern:a=!1,tightCharacterLength:s=8,looseCharacterLength:c=15}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=[];return a&&l.push("more than ".concat(c," characters")),o&&(!a&&l.push(mi.t("text.pattern_minimum_charaters",{length:s})),t&&l.push(mi.t("text.pattern_atleast_1_lowercase")),e&&l.push(mi.t("text.pattern_atleast_1_uppercase")),r&&l.push(mi.t("text.pattern_atleast_1_digit")),n&&l.push(mi.t("text.pattern_atleast_1_special")),!i&&l.push(mi.t("text.pattern_not_allowed"))),l.join(", ")}(this.data.passwordRule)}submit(){var t=this;return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){UP(o,n,i,a,s,"next",t)}function s(t){UP(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){t.formEl.submit()}))()}}GP.styles=[S(MP||(MP=HP(["\n :host {\n position: relative;\n overflow: hidden;\n\n display: flex;\n flex-direction: row;\n\n width: 100vw;\n height: 100vh;\n }\n\n @media print {\n :host {\n width: 100%;\n height: 100%;\n min-height: 100vh;\n }\n }\n "]))),AP],(0,t.gn)([a({type:Object}),(0,t.w6)("design:type",Object)],GP.prototype,"data",void 0),(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],GP.prototype,"token",void 0),(0,t.gn)([v("#confirm-password"),(0,t.w6)("design:type",HTMLElement)],GP.prototype,"confirmPass",void 0);var qP=class extends GP{get pageName(){return"unlock user"}get actionUrl(){return"/auth/unlock-user"}get submitButtonLabel(){return"label.unlock account"}get title(){return"unlock account"}};qP=(0,t.gn)([e("unlock-user")],qP)})()})();