@things-factory/reference-app 6.0.25 → 6.0.28

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 (923) hide show
  1. package/attachments/311f5a1f-9a28-4f45-b335-11f8bbb12317.png +0 -0
  2. package/attachments/4bff6789-9d9a-4b61-acfd-75e419eb9bf3.png +0 -0
  3. package/attachments/5f4b08bc-7574-461d-a54f-bd0462c3bd37.jpeg +0 -0
  4. package/attachments/8c562e28-85e9-4cff-a055-5a08a4e57b88.jpeg +0 -0
  5. package/attachments/a2f74466-cc49-47fb-8c2b-7b0cf23a644d.jpeg +0 -0
  6. package/attachments/da8aaec2-ad03-4eec-adfb-8a9812c8330a.jpeg +0 -0
  7. package/client/pages/data-entry/data-entry-generator-popup.js +1 -1
  8. package/client/pages/data-set/data-set-list-page.js +13 -0
  9. package/config.development.js +7 -32
  10. package/config.production.js +55 -0
  11. package/db.sqlite +0 -0
  12. package/dist-client/033a8a362e39e81521c5.png +0 -0
  13. package/dist-client/04d0a0b4f98288ff2746.png +0 -0
  14. package/dist-client/0567329dce1421547133.png +0 -0
  15. package/dist-client/08bbd147bbaa98b332db.png +0 -0
  16. package/dist-client/0aed78d02c1b6c64de60.png +0 -0
  17. package/dist-client/1212.js +1 -0
  18. package/dist-client/1442.js +1 -0
  19. package/dist-client/1550.js +1 -0
  20. package/dist-client/1593.js +1 -0
  21. package/dist-client/1689.js +1 -0
  22. package/dist-client/1733.js +1 -0
  23. package/dist-client/1766.js +1 -0
  24. package/dist-client/190b9d948ce6d6a87e94.png +0 -0
  25. package/dist-client/1c0dbf70fa46fc25deb8.png +0 -0
  26. package/dist-client/1c555219c119d1c496df.png +0 -0
  27. package/dist-client/1f4e2dcff0657747fad0.png +0 -0
  28. package/dist-client/2098.js +1 -0
  29. package/dist-client/2142.js +1 -0
  30. package/dist-client/2265.js +1 -0
  31. package/dist-client/22cf3c62ad9582d39c28.png +0 -0
  32. package/dist-client/23bb06ca921d23b125ba.png +0 -0
  33. package/dist-client/2418.js +1 -0
  34. package/dist-client/2568.js +1 -0
  35. package/dist-client/258.js +1 -0
  36. package/dist-client/27c4af6600f89bc8aa4c.png +0 -0
  37. package/dist-client/2878.js +1 -0
  38. package/dist-client/2883.js +1 -0
  39. package/dist-client/2990.js +1 -0
  40. package/dist-client/2d144601a82af822ac30.png +0 -0
  41. package/dist-client/3098662927a30fdb8a4d.png +0 -0
  42. package/dist-client/3127ee8dd683ba59bd7b.png +0 -0
  43. package/dist-client/337c5d211682e431be6c.png +0 -0
  44. package/dist-client/3513.js +1 -0
  45. package/dist-client/3557.js +1 -0
  46. package/dist-client/3565.js +1 -0
  47. package/dist-client/3594.js +1 -0
  48. package/dist-client/3734.js +2 -0
  49. package/dist-client/3734.js.LICENSE.txt +11 -0
  50. package/dist-client/3746.js +1 -0
  51. package/dist-client/383.js +2 -0
  52. package/dist-client/383.js.LICENSE.txt +9 -0
  53. package/dist-client/3872.js +1 -0
  54. package/dist-client/3910.js +1 -0
  55. package/dist-client/3955.js +1 -0
  56. package/dist-client/4083.js +1 -0
  57. package/dist-client/411cbf41ec0faa4535ff.png +0 -0
  58. package/dist-client/4141.js +2 -0
  59. package/dist-client/4141.js.LICENSE.txt +11 -0
  60. package/dist-client/4162710af8eacb02b3d0.png +0 -0
  61. package/dist-client/4184cd4ea6a8d7349e21.png +0 -0
  62. package/dist-client/427c4cb716f8c30bbd1e.png +0 -0
  63. package/dist-client/4327.js +1 -0
  64. package/dist-client/4365cff2c5809bcf52d9.png +0 -0
  65. package/dist-client/4447.js +1 -0
  66. package/dist-client/4511.js +2 -0
  67. package/dist-client/4511.js.LICENSE.txt +345 -0
  68. package/dist-client/4516.js +1 -0
  69. package/dist-client/4575.js +1 -0
  70. package/dist-client/4820.js +1 -0
  71. package/dist-client/4e16d62bc1e459fc5b25.png +0 -0
  72. package/dist-client/5085.js +2 -0
  73. package/dist-client/5085.js.LICENSE.txt +11 -0
  74. package/dist-client/526ad807daa9d0c4a816.png +0 -0
  75. package/dist-client/5407.js +1 -0
  76. package/dist-client/5562.js +1 -0
  77. package/dist-client/556db371e2df3f29cea0.png +0 -0
  78. package/dist-client/55772bbc827ad7017d35.png +0 -0
  79. package/dist-client/5665.js +1 -0
  80. package/dist-client/5671.js +1 -0
  81. package/dist-client/574.js +2 -0
  82. package/dist-client/574.js.LICENSE.txt +11 -0
  83. package/dist-client/5761.js +1 -0
  84. package/dist-client/5824.js +1 -0
  85. package/dist-client/5873.js +1 -0
  86. package/dist-client/591.js +1 -0
  87. package/dist-client/5beb3d1071d94d67b73b.png +0 -0
  88. package/dist-client/5c45b501555a5bcaf6bd.png +0 -0
  89. package/dist-client/5e63fb5c3d72a5c3854d.png +0 -0
  90. package/dist-client/6067.js +1 -0
  91. package/dist-client/6100.js +1 -0
  92. package/dist-client/6163.js +1 -0
  93. package/dist-client/6204.js +1 -0
  94. package/dist-client/6264682326a8907cc922.png +0 -0
  95. package/dist-client/6283.js +1 -0
  96. package/dist-client/6331.js +1 -0
  97. package/dist-client/64224c44c766e71e3253.png +0 -0
  98. package/dist-client/6466.js +1 -0
  99. package/dist-client/6671.js +1 -0
  100. package/dist-client/6791e5773eac3f253e24.png +0 -0
  101. package/dist-client/689d645de355b5bf70e9.png +0 -0
  102. package/dist-client/68fa02818b287fa99811.png +0 -0
  103. package/dist-client/6955.js +2 -0
  104. package/dist-client/6955.js.LICENSE.txt +649 -0
  105. package/dist-client/6fbc47ded1e56a97b6a9.png +0 -0
  106. package/dist-client/70ef12050d5c2bc1d18b.png +0 -0
  107. package/dist-client/7263.js +1 -0
  108. package/dist-client/73d122c80f6803d982ae.png +0 -0
  109. package/dist-client/7462.js +1 -0
  110. package/dist-client/7471.js +2 -0
  111. package/dist-client/7471.js.LICENSE.txt +20 -0
  112. package/dist-client/7528.js +2 -0
  113. package/dist-client/7528.js.LICENSE.txt +29 -0
  114. package/dist-client/7566.js +1 -0
  115. package/dist-client/7627.js +1 -0
  116. package/dist-client/763.js +2 -0
  117. package/dist-client/763.js.LICENSE.txt +11 -0
  118. package/dist-client/77407838ded3346a802e.png +0 -0
  119. package/dist-client/7793.js +1 -0
  120. package/dist-client/7809.js +1 -0
  121. package/dist-client/7862.js +1 -0
  122. package/dist-client/7953.js +1 -0
  123. package/dist-client/7a8893ef51203b1d41ba.png +0 -0
  124. package/dist-client/7bcfa66864686ddce32a.png +0 -0
  125. package/dist-client/7ca1e30e518e350cff5a.png +0 -0
  126. package/dist-client/7d9596c5140e7290967f.png +0 -0
  127. package/dist-client/8085.js +1 -0
  128. package/dist-client/8184.js +1 -0
  129. package/dist-client/8299.js +1 -0
  130. package/dist-client/8317.js +1 -0
  131. package/dist-client/8645.js +1 -0
  132. package/dist-client/8653.js +1 -0
  133. package/dist-client/8654.js +1 -0
  134. package/dist-client/8695.js +1 -0
  135. package/dist-client/8733.js +2 -0
  136. package/dist-client/8733.js.LICENSE.txt +3 -0
  137. package/dist-client/8752.js +1 -0
  138. package/dist-client/8795.js +1 -0
  139. package/dist-client/8818.js +1 -0
  140. package/dist-client/8848.js +2 -0
  141. package/dist-client/8848.js.LICENSE.txt +11 -0
  142. package/dist-client/8852.js +1 -0
  143. package/dist-client/8957.js +1 -0
  144. package/dist-client/8cf3afd5f21703b894da.png +0 -0
  145. package/dist-client/8f04bd1494e66102676e.png +0 -0
  146. package/dist-client/8f778f433221cc09f419.png +0 -0
  147. package/dist-client/9041.js +1 -0
  148. package/dist-client/9092.js +1 -0
  149. package/dist-client/9193.js +2 -0
  150. package/dist-client/9193.js.LICENSE.txt +8 -0
  151. package/dist-client/9251.js +1 -0
  152. package/dist-client/9288819b91c1e64a752d.png +0 -0
  153. package/dist-client/9313.js +2 -0
  154. package/dist-client/9313.js.LICENSE.txt +6 -0
  155. package/dist-client/9454482d54ddf8bb8f60.png +0 -0
  156. package/dist-client/9550.js +1 -0
  157. package/dist-client/960ff955855910a0f418.png +0 -0
  158. package/dist-client/9659.js +1 -0
  159. package/dist-client/9726.js +1 -0
  160. package/dist-client/9864.js +1 -0
  161. package/dist-client/9a6591477d12befc59d2.png +0 -0
  162. package/dist-client/9bac8829b2e3a98d04f5.png +0 -0
  163. package/dist-client/9d136a4324aad2667a79.png +0 -0
  164. package/dist-client/9d14a3b8c05bd19fde84.png +0 -0
  165. package/dist-client/aa152d1b3d3fd105c1e6.png +0 -0
  166. package/dist-client/assets/data-report.jpg +0 -0
  167. package/dist-client/assets/data-samples.jpg +0 -0
  168. package/dist-client/assets/diagram.jpg +0 -0
  169. package/dist-client/assets/editorjs-demo.css +415 -0
  170. package/dist-client/assets/favicon.ico +0 -0
  171. package/dist-client/assets/glue-table-indices.png +0 -0
  172. package/dist-client/assets/helps/index.md +1 -0
  173. package/dist-client/assets/images/add-user-1.png +0 -0
  174. package/dist-client/assets/images/add-user-2.png +0 -0
  175. package/dist-client/assets/images/add-user-3.png +0 -0
  176. package/dist-client/assets/images/add-user-4.png +0 -0
  177. package/dist-client/assets/images/background-animation.json +1 -0
  178. package/dist-client/assets/images/bg-auth-ui.png +0 -0
  179. package/dist-client/assets/images/bg-blue.png +0 -0
  180. package/dist-client/assets/images/bg-green.png +0 -0
  181. package/dist-client/assets/images/bg-input-select.png +0 -0
  182. package/dist-client/assets/images/bg-rail.png +0 -0
  183. package/dist-client/assets/images/create-policy-1.png +0 -0
  184. package/dist-client/assets/images/create-policy-2.png +0 -0
  185. package/dist-client/assets/images/create-policy-3.png +0 -0
  186. package/dist-client/assets/images/create-s3-bucket-1.png +0 -0
  187. package/dist-client/assets/images/create-s3-bucket-2.png +0 -0
  188. package/dist-client/assets/images/forklift.png +0 -0
  189. package/dist-client/assets/images/hatiolab-logo.png +0 -0
  190. package/dist-client/assets/images/home.png +0 -0
  191. package/dist-client/assets/images/icon-activate.png +0 -0
  192. package/dist-client/assets/images/icon-backinfo.png +0 -0
  193. package/dist-client/assets/images/icon-brand.png +0 -0
  194. package/dist-client/assets/images/icon-close.png +0 -0
  195. package/dist-client/assets/images/icon-congratulations.png +0 -0
  196. package/dist-client/assets/images/icon-domain.png +0 -0
  197. package/dist-client/assets/images/icon-editor-gradient-direction.png +0 -0
  198. package/dist-client/assets/images/icon-mobile-brand.png +0 -0
  199. package/dist-client/assets/images/icon-nametag.png +0 -0
  200. package/dist-client/assets/images/icon-profile.png +0 -0
  201. package/dist-client/assets/images/icon-properties-label.png +0 -0
  202. package/dist-client/assets/images/icon-properties-line-type.png +0 -0
  203. package/dist-client/assets/images/icon-properties-table.png +0 -0
  204. package/dist-client/assets/images/icon-resource-select.png +0 -0
  205. package/dist-client/assets/images/icon-result.png +0 -0
  206. package/dist-client/assets/images/icon-setting.png +0 -0
  207. package/dist-client/assets/images/invitation.png +0 -0
  208. package/dist-client/assets/images/person.png +0 -0
  209. package/dist-client/assets/images/profile.png +0 -0
  210. package/dist-client/assets/images/spinner.png +0 -0
  211. package/dist-client/assets/manifest/apple-1024.png +0 -0
  212. package/dist-client/assets/manifest/apple-120.png +0 -0
  213. package/dist-client/assets/manifest/apple-152.png +0 -0
  214. package/dist-client/assets/manifest/apple-167.png +0 -0
  215. package/dist-client/assets/manifest/apple-180.png +0 -0
  216. package/dist-client/assets/manifest/apple-touch-icon.png +0 -0
  217. package/dist-client/assets/manifest/badge-128x128.png +0 -0
  218. package/dist-client/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
  219. package/dist-client/assets/manifest/chrome-touch-icon-192x192.png +0 -0
  220. package/dist-client/assets/manifest/icon-128x128.png +0 -0
  221. package/dist-client/assets/manifest/icon-192x192.png +0 -0
  222. package/dist-client/assets/manifest/icon-512x512.png +0 -0
  223. package/dist-client/assets/manifest/icon-72x72.png +0 -0
  224. package/dist-client/assets/manifest/icon-96x96.png +0 -0
  225. package/dist-client/assets/manifest/image-metaog.png +0 -0
  226. package/dist-client/assets/manifest/maskable_icon.png +0 -0
  227. package/dist-client/assets/manifest/ms-icon-144x144.png +0 -0
  228. package/dist-client/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
  229. package/dist-client/assets/manifest.json +27 -0
  230. package/dist-client/auth/activate.js +2 -0
  231. package/dist-client/auth/activate.js.LICENSE.txt +162 -0
  232. package/dist-client/auth/checkin.js +2 -0
  233. package/dist-client/auth/checkin.js.LICENSE.txt +83 -0
  234. package/dist-client/auth/forgot-password.js +2 -0
  235. package/dist-client/auth/forgot-password.js.LICENSE.txt +122 -0
  236. package/dist-client/auth/reset-password.js +2 -0
  237. package/dist-client/auth/reset-password.js.LICENSE.txt +122 -0
  238. package/dist-client/auth/result.js +2 -0
  239. package/dist-client/auth/result.js.LICENSE.txt +93 -0
  240. package/dist-client/auth/signin.js +2 -0
  241. package/dist-client/auth/signin.js.LICENSE.txt +122 -0
  242. package/dist-client/auth/signup.js +2 -0
  243. package/dist-client/auth/signup.js.LICENSE.txt +122 -0
  244. package/dist-client/auth/unlock-user.js +2 -0
  245. package/dist-client/auth/unlock-user.js.LICENSE.txt +122 -0
  246. package/dist-client/b62c2497caa3978e4cdc.png +0 -0
  247. package/dist-client/b640388996621bd3040e.png +0 -0
  248. package/dist-client/bac71281339c69e63421.png +0 -0
  249. package/dist-client/bb346e05d6b711d2ed8d.png +0 -0
  250. package/dist-client/c077fa0074e73452db46.png +0 -0
  251. package/dist-client/c62cd64b1413e4d1e652.png +0 -0
  252. package/dist-client/c81c6f2c0e82b3796b6e.png +0 -0
  253. package/dist-client/c9269a93bb18ae06affd.png +0 -0
  254. package/dist-client/ccd36ed4e050b84e523c.png +0 -0
  255. package/dist-client/cf23c1dc8743cf26dc75.png +0 -0
  256. package/dist-client/d39c2ce57a8c38e27e56.png +0 -0
  257. package/dist-client/d40282055a8309c96c4c.png +0 -0
  258. package/dist-client/d74f294abfe31d14964e.png +0 -0
  259. package/dist-client/d9b6b3243cd4bf2e63a8.png +0 -0
  260. package/dist-client/daacdd8ee024ac5b0379.png +0 -0
  261. package/dist-client/de7b6dfdbf9dfde49467.png +0 -0
  262. package/dist-client/e3466c7d8a49da978517.png +0 -0
  263. package/dist-client/e3efea6b1e596f2ceda3.png +0 -0
  264. package/dist-client/e433275c03dc4c240f48.png +0 -0
  265. package/dist-client/e6b1f9447b8d520a2f21.png +0 -0
  266. package/dist-client/e8af6dc62316e5759a73.png +0 -0
  267. package/dist-client/e8f855ba4a7793d0e0a4.png +0 -0
  268. package/dist-client/ed4ff0096ff238659d69.png +0 -0
  269. package/dist-client/f157b0233d3f083166e3.png +0 -0
  270. package/dist-client/f7183d9fb4a53537e50b.png +0 -0
  271. package/dist-client/fa33c0372723348a71c5.png +0 -0
  272. package/dist-client/fcdcd3b1851ab73ff6a0.png +0 -0
  273. package/dist-client/fd251baa5700266586a0.png +0 -0
  274. package/dist-client/fe12850d008bc2190ee7.png +0 -0
  275. package/dist-client/fffbf4ec108e494462bb.png +0 -0
  276. package/dist-client/headless-scene-components.js +2 -0
  277. package/dist-client/headless-scene-components.js.LICENSE.txt +688 -0
  278. package/dist-client/helps/about/components.md +3 -0
  279. package/dist-client/helps/about/framework/redirection.md +45 -0
  280. package/dist-client/helps/about/framework/typegraphql.md +74 -0
  281. package/dist-client/helps/about/framework.md +10 -0
  282. package/dist-client/helps/about/modules.md +7 -0
  283. package/dist-client/helps/about/things-factory.en.md +255 -0
  284. package/dist-client/helps/about/things-factory.ko.md +258 -0
  285. package/dist-client/helps/auth/appliance.en.md +22 -0
  286. package/dist-client/helps/auth/appliance.ko.md +40 -0
  287. package/dist-client/helps/auth/application.en.md +33 -0
  288. package/dist-client/helps/auth/images/app-binding.png +0 -0
  289. package/dist-client/helps/auth/images/appliance-generate-key.png +0 -0
  290. package/dist-client/helps/auth/images/appliance-sandbox-auth-1.png +0 -0
  291. package/dist-client/helps/auth/images/appliance-sandbox-auth-2.png +0 -0
  292. package/dist-client/helps/auth/images/appliance-sandbox-auth-3.png +0 -0
  293. package/dist-client/helps/auth/images/application-hub.png +0 -0
  294. package/dist-client/helps/auth/images/authorization-postman.png +0 -0
  295. package/dist-client/helps/auth/images/create-button2.png +0 -0
  296. package/dist-client/helps/auth/images/create-role.png +0 -0
  297. package/dist-client/helps/auth/images/flowchart-appliance-registration.jpg +0 -0
  298. package/dist-client/helps/auth/images/flowchart-role-management.jpg +0 -0
  299. package/dist-client/helps/auth/images/flowchart-user-account.jpg +0 -0
  300. package/dist-client/helps/auth/images/invite-user.png +0 -0
  301. package/dist-client/helps/auth/images/owner-transfer-confirm.png +0 -0
  302. package/dist-client/helps/auth/images/owner-transfer.png +0 -0
  303. package/dist-client/helps/auth/images/postman.png +0 -0
  304. package/dist-client/helps/auth/images/register-appliance-new.png +0 -0
  305. package/dist-client/helps/auth/images/register-appliance.png +0 -0
  306. package/dist-client/helps/auth/images/register-application.png +0 -0
  307. package/dist-client/helps/auth/images/registered-role.png +0 -0
  308. package/dist-client/helps/auth/images/role-list.png +0 -0
  309. package/dist-client/helps/auth/images/role-privilage.png +0 -0
  310. package/dist-client/helps/auth/images/role-privileges.png +0 -0
  311. package/dist-client/helps/auth/images/save-button2.png +0 -0
  312. package/dist-client/helps/auth/images/save-button3.png +0 -0
  313. package/dist-client/helps/auth/images/transfer-owner.png +0 -0
  314. package/dist-client/helps/auth/images/update-roles.png +0 -0
  315. package/dist-client/helps/auth/images/user-delete.png +0 -0
  316. package/dist-client/helps/auth/images/user-error.png +0 -0
  317. package/dist-client/helps/auth/images/user-invite.png +0 -0
  318. package/dist-client/helps/auth/images/user-roles.png +0 -0
  319. package/dist-client/helps/auth/roles.en.md +59 -0
  320. package/dist-client/helps/auth/roles.ko.md +42 -0
  321. package/dist-client/helps/auth/users.en.md +33 -0
  322. package/dist-client/helps/auth/users.ko.md +54 -0
  323. package/dist-client/helps/board-modeller/accessor.ko.md +4 -0
  324. package/dist-client/helps/board-modeller/accessor.md +4 -0
  325. package/dist-client/helps/board-modeller/accessor.zh.md +4 -0
  326. package/dist-client/helps/board-modeller/data-binding.ko.md +100 -0
  327. package/dist-client/helps/board-modeller/data-binding.md +100 -0
  328. package/dist-client/helps/board-modeller/data-binding.zh.md +89 -0
  329. package/dist-client/helps/board-modeller/data-spread.ko.md +57 -0
  330. package/dist-client/helps/board-modeller/data-spread.md +57 -0
  331. package/dist-client/helps/board-modeller/data-spread.zh.md +55 -0
  332. package/dist-client/helps/board-modeller/effects/animation.ko.md +46 -0
  333. package/dist-client/helps/board-modeller/effects/animation.md +47 -0
  334. package/dist-client/helps/board-modeller/effects/animation.zh.md +47 -0
  335. package/dist-client/helps/board-modeller/effects/hover-event.ko.md +55 -0
  336. package/dist-client/helps/board-modeller/effects/hover-event.md +57 -0
  337. package/dist-client/helps/board-modeller/effects/hover-event.zh.md +55 -0
  338. package/dist-client/helps/board-modeller/effects/retention.ko.md +4 -0
  339. package/dist-client/helps/board-modeller/effects/retention.md +4 -0
  340. package/dist-client/helps/board-modeller/effects/retention.zh.md +4 -0
  341. package/dist-client/helps/board-modeller/effects/shadow.ko.md +18 -0
  342. package/dist-client/helps/board-modeller/effects/shadow.md +21 -0
  343. package/dist-client/helps/board-modeller/effects/shadow.zh.md +19 -0
  344. package/dist-client/helps/board-modeller/effects/tap-event.ko.md +86 -0
  345. package/dist-client/helps/board-modeller/effects/tap-event.md +74 -0
  346. package/dist-client/helps/board-modeller/effects/tap-event.zh.md +74 -0
  347. package/dist-client/helps/board-modeller/images/animation-01.gif +0 -0
  348. package/dist-client/helps/board-modeller/images/animation-02.gif +0 -0
  349. package/dist-client/helps/board-modeller/images/animation-03.gif +0 -0
  350. package/dist-client/helps/board-modeller/images/animation-04.gif +0 -0
  351. package/dist-client/helps/board-modeller/images/animation-05.gif +0 -0
  352. package/dist-client/helps/board-modeller/images/animation-06.gif +0 -0
  353. package/dist-client/helps/board-modeller/images/animation-07.gif +0 -0
  354. package/dist-client/helps/board-modeller/images/animation-08.gif +0 -0
  355. package/dist-client/helps/board-modeller/images/animation-09.gif +0 -0
  356. package/dist-client/helps/board-modeller/images/animation-10.gif +0 -0
  357. package/dist-client/helps/board-modeller/images/common-property-text-align-horizontal.png +0 -0
  358. package/dist-client/helps/board-modeller/images/common-property-text-align-vertical.png +0 -0
  359. package/dist-client/helps/board-modeller/images/common-property-text-margin.png +0 -0
  360. package/dist-client/helps/board-modeller/images/component-3D.png +0 -0
  361. package/dist-client/helps/board-modeller/images/component-arrow.png +0 -0
  362. package/dist-client/helps/board-modeller/images/component-chart-gauge.png +0 -0
  363. package/dist-client/helps/board-modeller/images/component-container.png +0 -0
  364. package/dist-client/helps/board-modeller/images/component-datasource.png +0 -0
  365. package/dist-client/helps/board-modeller/images/component-etc.png +0 -0
  366. package/dist-client/helps/board-modeller/images/component-form.png +0 -0
  367. package/dist-client/helps/board-modeller/images/component-gauge.png +0 -0
  368. package/dist-client/helps/board-modeller/images/component-image.png +0 -0
  369. package/dist-client/helps/board-modeller/images/component-iot.png +0 -0
  370. package/dist-client/helps/board-modeller/images/component-line.png +0 -0
  371. package/dist-client/helps/board-modeller/images/component-shape.png +0 -0
  372. package/dist-client/helps/board-modeller/images/component-table.png +0 -0
  373. package/dist-client/helps/board-modeller/images/component-text-media.png +0 -0
  374. package/dist-client/helps/board-modeller/images/component-toolbar.png +0 -0
  375. package/dist-client/helps/board-modeller/images/component-warehouse.png +0 -0
  376. package/dist-client/helps/board-modeller/images/control-toolbar-02.png +0 -0
  377. package/dist-client/helps/board-modeller/images/control-toolbar-03.png +0 -0
  378. package/dist-client/helps/board-modeller/images/control-toolbar-04.png +0 -0
  379. package/dist-client/helps/board-modeller/images/control-toolbar-05.png +0 -0
  380. package/dist-client/helps/board-modeller/images/control-toolbar-06.png +0 -0
  381. package/dist-client/helps/board-modeller/images/control-toolbar-07.png +0 -0
  382. package/dist-client/helps/board-modeller/images/control-toolbar-08.png +0 -0
  383. package/dist-client/helps/board-modeller/images/control-toolbar-09.png +0 -0
  384. package/dist-client/helps/board-modeller/images/control-toolbar-10.png +0 -0
  385. package/dist-client/helps/board-modeller/images/control-toolbar-11.png +0 -0
  386. package/dist-client/helps/board-modeller/images/control-toolbar-12.png +0 -0
  387. package/dist-client/helps/board-modeller/images/control-toolbar-13.png +0 -0
  388. package/dist-client/helps/board-modeller/images/control-toolbar-14.png +0 -0
  389. package/dist-client/helps/board-modeller/images/control-toolbar-15.png +0 -0
  390. package/dist-client/helps/board-modeller/images/control-toolbar-16.png +0 -0
  391. package/dist-client/helps/board-modeller/images/control-toolbar-17.png +0 -0
  392. package/dist-client/helps/board-modeller/images/control-toolbar-18.png +0 -0
  393. package/dist-client/helps/board-modeller/images/control-toolbar-19.png +0 -0
  394. package/dist-client/helps/board-modeller/images/control-toolbar-20.png +0 -0
  395. package/dist-client/helps/board-modeller/images/control-toolbar-21.png +0 -0
  396. package/dist-client/helps/board-modeller/images/control-toolbar-22.png +0 -0
  397. package/dist-client/helps/board-modeller/images/control-toolbar-23.png +0 -0
  398. package/dist-client/helps/board-modeller/images/control-toolbar-24.png +0 -0
  399. package/dist-client/helps/board-modeller/images/control-toolbar-25.png +0 -0
  400. package/dist-client/helps/board-modeller/images/control-toolbar-26.png +0 -0
  401. package/dist-client/helps/board-modeller/images/control-toolbar-27.png +0 -0
  402. package/dist-client/helps/board-modeller/images/control-toolbar-28.png +0 -0
  403. package/dist-client/helps/board-modeller/images/control-toolbar-29.png +0 -0
  404. package/dist-client/helps/board-modeller/images/control-toolbar-30.png +0 -0
  405. package/dist-client/helps/board-modeller/images/control-toolbar-31.png +0 -0
  406. package/dist-client/helps/board-modeller/images/control-toolbar-32.png +0 -0
  407. package/dist-client/helps/board-modeller/images/control-toolbar.png +0 -0
  408. package/dist-client/helps/board-modeller/images/effect-property.png +0 -0
  409. package/dist-client/helps/board-modeller/images/hover-01.png +0 -0
  410. package/dist-client/helps/board-modeller/images/join-type-bevel.png +0 -0
  411. package/dist-client/helps/board-modeller/images/join-type-miter.png +0 -0
  412. package/dist-client/helps/board-modeller/images/join-type-round.png +0 -0
  413. package/dist-client/helps/board-modeller/images/modeler-layout-01.png +0 -0
  414. package/dist-client/helps/board-modeller/images/property-window.png +0 -0
  415. package/dist-client/helps/board-modeller/images/shadow-02.png +0 -0
  416. package/dist-client/helps/board-modeller/images/shadow-03.png +0 -0
  417. package/dist-client/helps/board-modeller/images/shadow-04.png +0 -0
  418. package/dist-client/helps/board-modeller/images/shadow-05.png +0 -0
  419. package/dist-client/helps/board-modeller/images/shape-property.png +0 -0
  420. package/dist-client/helps/board-modeller/images/specific-property.png +0 -0
  421. package/dist-client/helps/board-modeller/images/style-property.png +0 -0
  422. package/dist-client/helps/board-modeller/images/target-property.png +0 -0
  423. package/dist-client/helps/board-modeller/images/variable-property.png +0 -0
  424. package/dist-client/helps/board-modeller/initial-data.ko.md +8 -0
  425. package/dist-client/helps/board-modeller/initial-data.md +8 -0
  426. package/dist-client/helps/board-modeller/initial-data.zh.md +8 -0
  427. package/dist-client/helps/board-modeller/modeller.ko.md +244 -0
  428. package/dist-client/helps/board-modeller/modeller.md +206 -0
  429. package/dist-client/helps/board-modeller/modeller.zh.md +241 -0
  430. package/dist-client/helps/board-modeller/shapes/3dish.ko.md +17 -0
  431. package/dist-client/helps/board-modeller/shapes/3dish.md +17 -0
  432. package/dist-client/helps/board-modeller/shapes/3dish.zh.md +17 -0
  433. package/dist-client/helps/board-modeller/shapes/print-option.ko.md +26 -0
  434. package/dist-client/helps/board-modeller/shapes/print-option.md +26 -0
  435. package/dist-client/helps/board-modeller/shapes/print-option.zh.md +26 -0
  436. package/dist-client/helps/board-modeller/shapes/shapes.ko.md +19 -0
  437. package/dist-client/helps/board-modeller/shapes/shapes.md +21 -0
  438. package/dist-client/helps/board-modeller/shapes/shapes.zh.md +19 -0
  439. package/dist-client/helps/board-modeller/shapes/size.ko.md +8 -0
  440. package/dist-client/helps/board-modeller/shapes/size.md +8 -0
  441. package/dist-client/helps/board-modeller/shapes/size.zh.md +8 -0
  442. package/dist-client/helps/board-modeller/shapes/text-box.ko.md +16 -0
  443. package/dist-client/helps/board-modeller/shapes/text-box.md +16 -0
  444. package/dist-client/helps/board-modeller/shapes/text-box.zh.md +16 -0
  445. package/dist-client/helps/board-modeller/shapes/viewer-option.ko.md +9 -0
  446. package/dist-client/helps/board-modeller/shapes/viewer-option.md +9 -0
  447. package/dist-client/helps/board-modeller/shapes/viewer-option.zh.md +9 -0
  448. package/dist-client/helps/board-modeller/styles/fill-style.ko.md +18 -0
  449. package/dist-client/helps/board-modeller/styles/fill-style.md +18 -0
  450. package/dist-client/helps/board-modeller/styles/fill-style.zh.md +18 -0
  451. package/dist-client/helps/board-modeller/styles/line-style.ko.md +19 -0
  452. package/dist-client/helps/board-modeller/styles/line-style.md +23 -0
  453. package/dist-client/helps/board-modeller/styles/line-style.zh.md +19 -0
  454. package/dist-client/helps/board-modeller/styles/opacity.ko.md +3 -0
  455. package/dist-client/helps/board-modeller/styles/opacity.md +3 -0
  456. package/dist-client/helps/board-modeller/styles/opacity.zh.md +3 -0
  457. package/dist-client/helps/board-modeller/styles/text-style.ko.md +8 -0
  458. package/dist-client/helps/board-modeller/styles/text-style.md +8 -0
  459. package/dist-client/helps/board-modeller/styles/text-style.zh.md +8 -0
  460. package/dist-client/helps/components/oops-progress.md +73 -0
  461. package/dist-client/helps/contact/contact.md +160 -0
  462. package/dist-client/helps/dataset/data-archive.md +9 -0
  463. package/dist-client/helps/dataset/data-entry-list.md +2 -0
  464. package/dist-client/helps/dataset/data-key-set.md +10 -0
  465. package/dist-client/helps/dataset/data-ooc.md +11 -0
  466. package/dist-client/helps/dataset/data-report-list.md +4 -0
  467. package/dist-client/helps/dataset/data-sample-search.md +2 -0
  468. package/dist-client/helps/dataset/data-sample.md +11 -0
  469. package/dist-client/helps/dataset/data-sensor.md +13 -0
  470. package/dist-client/helps/dataset/data-set.md +28 -0
  471. package/dist-client/helps/dataset/ui/data-item-list.md +19 -0
  472. package/dist-client/helps/dataset/ui/data-key-item-list.md +2 -0
  473. package/dist-client/helps/index.md +1 -0
  474. package/dist-client/helps/integration/concept/connection.md +27 -0
  475. package/dist-client/helps/integration/concept/data-accessor.ko.md +11 -0
  476. package/dist-client/helps/integration/concept/data-accessor.md +11 -0
  477. package/dist-client/helps/integration/concept/data-accessor.zh.md +11 -0
  478. package/dist-client/helps/integration/concept/pending-queue.md +32 -0
  479. package/dist-client/helps/integration/concept/scenario-context.md +83 -0
  480. package/dist-client/helps/integration/concept/scenario-engine.md +10 -0
  481. package/dist-client/helps/integration/concept/scenario.md +4 -0
  482. package/dist-client/helps/integration/concept/task.md +25 -0
  483. package/dist-client/helps/integration/connector/mqtt-connector.md +17 -0
  484. package/dist-client/helps/integration/connector/mssql-connector.md +38 -0
  485. package/dist-client/helps/integration/connector/oracle-connector.md +66 -0
  486. package/dist-client/helps/integration/connector/postgresql-connector.md +34 -0
  487. package/dist-client/helps/integration/connector/sqlite-connector.md +17 -0
  488. package/dist-client/helps/integration/index.md +37 -0
  489. package/dist-client/helps/integration/task/book-up-scenario.md +24 -0
  490. package/dist-client/helps/integration/task/end.md +3 -0
  491. package/dist-client/helps/integration/task/floating-point.md +34 -0
  492. package/dist-client/helps/integration/task/goto.md +8 -0
  493. package/dist-client/helps/integration/task/graphql-mutate.md +44 -0
  494. package/dist-client/helps/integration/task/graphql-query.md +44 -0
  495. package/dist-client/helps/integration/task/local-graphql-mutate.md +44 -0
  496. package/dist-client/helps/integration/task/local-graphql-query.md +44 -0
  497. package/dist-client/helps/integration/task/log.md +14 -0
  498. package/dist-client/helps/integration/task/mqtt-publish.md +10 -0
  499. package/dist-client/helps/integration/task/mqtt-subscribe.md +15 -0
  500. package/dist-client/helps/integration/task/pick-pending-scenario.md +13 -0
  501. package/dist-client/helps/integration/task/publish.md +16 -0
  502. package/dist-client/helps/integration/task/script.md +39 -0
  503. package/dist-client/helps/integration/task/sleep.md +8 -0
  504. package/dist-client/helps/integration/task/throw.md +12 -0
  505. package/dist-client/helps/integration/task/variables.md +37 -0
  506. package/dist-client/helps/integration/ui/connection.md +16 -0
  507. package/dist-client/helps/integration/ui/crontab-editor.md +9 -0
  508. package/dist-client/helps/integration/ui/integration-monitor.md +29 -0
  509. package/dist-client/helps/integration/ui/scenario-detail.md +35 -0
  510. package/dist-client/helps/integration/ui/scenario.md +35 -0
  511. package/dist-client/helps/module/api.md +117 -0
  512. package/dist-client/helps/module/dashboard.md +27 -0
  513. package/dist-client/helps/module/help.md +40 -0
  514. package/dist-client/helps/module/lite-menu.md +112 -0
  515. package/dist-client/helps/module/notification-images/config-app-1.png +0 -0
  516. package/dist-client/helps/module/notification-images/config-app-2.png +0 -0
  517. package/dist-client/helps/module/notification-images/config-server-key.png +0 -0
  518. package/dist-client/helps/module/notification-images/config-service-account.png +0 -0
  519. package/dist-client/helps/module/notification-images/config-vapidkey-1.png +0 -0
  520. package/dist-client/helps/module/notification-images/config-vapidkey-2-get-public-key.png +0 -0
  521. package/dist-client/helps/module/notification-images/config-vapidkey-3-get-private-key.png +0 -0
  522. package/dist-client/helps/module/notification-images/element-notification-badge.png +0 -0
  523. package/dist-client/helps/module/notification-images/element-notification-list.png +0 -0
  524. package/dist-client/helps/module/notification-images/element-notification-setting-let.png +0 -0
  525. package/dist-client/helps/module/notification-images/push-test-on-chrome-1.png +0 -0
  526. package/dist-client/helps/module/notification-images/push-test-on-chrome-2.png +0 -0
  527. package/dist-client/helps/module/notification-images/push-test-on-firebase-1.png +0 -0
  528. package/dist-client/helps/module/notification-images/push-test-on-firebase-2.png +0 -0
  529. package/dist-client/helps/module/notification-images/push-test-on-firebase-3.png +0 -0
  530. package/dist-client/helps/module/notification-images/push-test-on-firebase-4.png +0 -0
  531. package/dist-client/helps/module/notification.md +161 -0
  532. package/dist-client/helps/oauth2-client/code-verifier.md +5 -0
  533. package/dist-client/helps/oauth2-client/credentials.md +160 -0
  534. package/dist-client/helps/oauth2-client/grant-type.md +33 -0
  535. package/dist-client/helps/organization/department.md +160 -0
  536. package/dist-client/helps/organization/employee.md +160 -0
  537. package/dist-client/helps/scene/component/analog-clock.ko.md +6 -0
  538. package/dist-client/helps/scene/component/analog-clock.md +8 -0
  539. package/dist-client/helps/scene/component/analog-clock.zh.md +6 -0
  540. package/dist-client/helps/scene/component/arrow.ko.md +9 -0
  541. package/dist-client/helps/scene/component/arrow.md +9 -0
  542. package/dist-client/helps/scene/component/arrow.zh.md +9 -0
  543. package/dist-client/helps/scene/component/audio.ko.md +1 -0
  544. package/dist-client/helps/scene/component/audio.md +1 -0
  545. package/dist-client/helps/scene/component/audio.zh.md +1 -0
  546. package/dist-client/helps/scene/component/both-arrow.ko.md +9 -0
  547. package/dist-client/helps/scene/component/both-arrow.md +9 -0
  548. package/dist-client/helps/scene/component/both-arrow.zh.md +9 -0
  549. package/dist-client/helps/scene/component/chartjs.ko.md +332 -0
  550. package/dist-client/helps/scene/component/chartjs.md +333 -0
  551. package/dist-client/helps/scene/component/chartjs.zh.md +331 -0
  552. package/dist-client/helps/scene/component/color-image.ko.md +9 -0
  553. package/dist-client/helps/scene/component/color-image.md +9 -0
  554. package/dist-client/helps/scene/component/color-image.zh.md +9 -0
  555. package/dist-client/helps/scene/component/container.ko.md +7 -0
  556. package/dist-client/helps/scene/component/container.md +9 -0
  557. package/dist-client/helps/scene/component/container.zh.md +8 -0
  558. package/dist-client/helps/scene/component/donut.ko.md +14 -0
  559. package/dist-client/helps/scene/component/donut.md +17 -0
  560. package/dist-client/helps/scene/component/donut.zh.md +18 -0
  561. package/dist-client/helps/scene/component/dotted-line.ko.md +7 -0
  562. package/dist-client/helps/scene/component/dotted-line.md +9 -0
  563. package/dist-client/helps/scene/component/dotted-line.zh.md +7 -0
  564. package/dist-client/helps/scene/component/ellipse.ko.md +11 -0
  565. package/dist-client/helps/scene/component/ellipse.md +11 -0
  566. package/dist-client/helps/scene/component/ellipse.zh.md +10 -0
  567. package/dist-client/helps/scene/component/gauge-circle.ko.md +168 -0
  568. package/dist-client/helps/scene/component/gauge-circle.md +167 -0
  569. package/dist-client/helps/scene/component/gauge-circle.zh.md +164 -0
  570. package/dist-client/helps/scene/component/gauge-horizon.ko.md +145 -0
  571. package/dist-client/helps/scene/component/gauge-horizon.md +145 -0
  572. package/dist-client/helps/scene/component/gauge-horizon.zh.md +145 -0
  573. package/dist-client/helps/scene/component/gauge-vertical.ko.md +12 -0
  574. package/dist-client/helps/scene/component/gauge-vertical.md +9 -0
  575. package/dist-client/helps/scene/component/gauge-vertical.zh.md +10 -0
  576. package/dist-client/helps/scene/component/gif-view.ko.md +10 -0
  577. package/dist-client/helps/scene/component/gif-view.md +10 -0
  578. package/dist-client/helps/scene/component/gif-view.zh.md +10 -0
  579. package/dist-client/helps/scene/component/global-ref.ko.md +1 -0
  580. package/dist-client/helps/scene/component/global-ref.md +1 -0
  581. package/dist-client/helps/scene/component/global-ref.zh.md +1 -0
  582. package/dist-client/helps/scene/component/gray-image.ko.md +9 -0
  583. package/dist-client/helps/scene/component/gray-image.md +9 -0
  584. package/dist-client/helps/scene/component/gray-image.zh.md +8 -0
  585. package/dist-client/helps/scene/component/indoor-map.ko.md +65 -0
  586. package/dist-client/helps/scene/component/indoor-map.md +65 -0
  587. package/dist-client/helps/scene/component/indoor-map.zh.md +65 -0
  588. package/dist-client/helps/scene/component/info-window.ko.md +1 -0
  589. package/dist-client/helps/scene/component/info-window.md +1 -0
  590. package/dist-client/helps/scene/component/info-window.zh.md +1 -0
  591. package/dist-client/helps/scene/component/input.ko.md +59 -0
  592. package/dist-client/helps/scene/component/input.md +59 -0
  593. package/dist-client/helps/scene/component/input.zh.md +58 -0
  594. package/dist-client/helps/scene/component/line.ko.md +9 -0
  595. package/dist-client/helps/scene/component/line.md +9 -0
  596. package/dist-client/helps/scene/component/line.zh.md +7 -0
  597. package/dist-client/helps/scene/component/local-ref.ko.md +1 -0
  598. package/dist-client/helps/scene/component/local-ref.md +1 -0
  599. package/dist-client/helps/scene/component/local-ref.zh.md +1 -0
  600. package/dist-client/helps/scene/component/marker.ko.md +15 -0
  601. package/dist-client/helps/scene/component/marker.md +15 -0
  602. package/dist-client/helps/scene/component/marker.zh.md +15 -0
  603. package/dist-client/helps/scene/component/news-ticker.ko.md +27 -0
  604. package/dist-client/helps/scene/component/news-ticker.md +27 -0
  605. package/dist-client/helps/scene/component/news-ticker.zh.md +27 -0
  606. package/dist-client/helps/scene/component/polygon.ko.md +9 -0
  607. package/dist-client/helps/scene/component/polygon.md +9 -0
  608. package/dist-client/helps/scene/component/polygon.zh.md +9 -0
  609. package/dist-client/helps/scene/component/polyline.ko.md +10 -0
  610. package/dist-client/helps/scene/component/polyline.md +10 -0
  611. package/dist-client/helps/scene/component/polyline.zh.md +10 -0
  612. package/dist-client/helps/scene/component/popup.ko.md +27 -0
  613. package/dist-client/helps/scene/component/popup.md +27 -0
  614. package/dist-client/helps/scene/component/progress-circle.ko.md +41 -0
  615. package/dist-client/helps/scene/component/progress-circle.md +42 -0
  616. package/dist-client/helps/scene/component/progress-circle.zh.md +39 -0
  617. package/dist-client/helps/scene/component/progress-horizontal.ko.md +37 -0
  618. package/dist-client/helps/scene/component/progress-horizontal.md +31 -0
  619. package/dist-client/helps/scene/component/progress-horizontal.zh.md +31 -0
  620. package/dist-client/helps/scene/component/progress-vertical.ko.md +23 -0
  621. package/dist-client/helps/scene/component/progress-vertical.md +24 -0
  622. package/dist-client/helps/scene/component/progress-vertical.zh.md +23 -0
  623. package/dist-client/helps/scene/component/rack.ko.md +17 -0
  624. package/dist-client/helps/scene/component/rack.md +15 -0
  625. package/dist-client/helps/scene/component/rack.zh.md +16 -0
  626. package/dist-client/helps/scene/component/random.ko.md +12 -0
  627. package/dist-client/helps/scene/component/random.md +11 -0
  628. package/dist-client/helps/scene/component/random.zh.md +11 -0
  629. package/dist-client/helps/scene/component/rect.ko.md +17 -0
  630. package/dist-client/helps/scene/component/rect.md +16 -0
  631. package/dist-client/helps/scene/component/rect.zh.md +16 -0
  632. package/dist-client/helps/scene/component/simple-switch.ko.md +20 -0
  633. package/dist-client/helps/scene/component/simple-switch.md +19 -0
  634. package/dist-client/helps/scene/component/simple-switch.zh.md +19 -0
  635. package/dist-client/helps/scene/component/star.ko.md +19 -0
  636. package/dist-client/helps/scene/component/star.md +19 -0
  637. package/dist-client/helps/scene/component/star.zh.md +19 -0
  638. package/dist-client/helps/scene/component/tab-container.ko.md +58 -0
  639. package/dist-client/helps/scene/component/tab-container.md +57 -0
  640. package/dist-client/helps/scene/component/tab-container.zh.md +59 -0
  641. package/dist-client/helps/scene/component/tab.ko.md +14 -0
  642. package/dist-client/helps/scene/component/tab.md +13 -0
  643. package/dist-client/helps/scene/component/tab.zh.md +13 -0
  644. package/dist-client/helps/scene/component/text-clock.ko.md +25 -0
  645. package/dist-client/helps/scene/component/text-clock.md +22 -0
  646. package/dist-client/helps/scene/component/text-clock.zh.md +22 -0
  647. package/dist-client/helps/scene/component/text.ko.md +9 -0
  648. package/dist-client/helps/scene/component/text.md +9 -0
  649. package/dist-client/helps/scene/component/text.zh.md +9 -0
  650. package/dist-client/helps/scene/component/top-rounded-ractangle.ko.md +15 -0
  651. package/dist-client/helps/scene/component/top-rounded-ractangle.md +15 -0
  652. package/dist-client/helps/scene/component/top-rounded-ractangle.zh.md +15 -0
  653. package/dist-client/helps/scene/component/triangle.ko.md +9 -0
  654. package/dist-client/helps/scene/component/triangle.md +9 -0
  655. package/dist-client/helps/scene/component/triangle.zh.md +9 -0
  656. package/dist-client/helps/scene/images/both-arrow-01.png +0 -0
  657. package/dist-client/helps/scene/images/button-evnet-mapping-01.png +0 -0
  658. package/dist-client/helps/scene/images/button-evnet-mapping-02.png +0 -0
  659. package/dist-client/helps/scene/images/button-evnet-mapping-03.png +0 -0
  660. package/dist-client/helps/scene/images/chart-bar-01.png +0 -0
  661. package/dist-client/helps/scene/images/chart-bar-02.png +0 -0
  662. package/dist-client/helps/scene/images/chart-bar-03.png +0 -0
  663. package/dist-client/helps/scene/images/chart-bar-08.png +0 -0
  664. package/dist-client/helps/scene/images/chart-bar-12.png +0 -0
  665. package/dist-client/helps/scene/images/chart-data-01.png +0 -0
  666. package/dist-client/helps/scene/images/chart-data-04.png +0 -0
  667. package/dist-client/helps/scene/images/chart-doughnut-01.png +0 -0
  668. package/dist-client/helps/scene/images/chart-horizontal-bar-01.png +0 -0
  669. package/dist-client/helps/scene/images/chart-line-01.png +0 -0
  670. package/dist-client/helps/scene/images/chart-mix-01.png +0 -0
  671. package/dist-client/helps/scene/images/chart-mix-02.png +0 -0
  672. package/dist-client/helps/scene/images/chart-pie-01.png +0 -0
  673. package/dist-client/helps/scene/images/chart-polar-01.png +0 -0
  674. package/dist-client/helps/scene/images/chart-radar-01.png +0 -0
  675. package/dist-client/helps/scene/images/clock-analog-01.png +0 -0
  676. package/dist-client/helps/scene/images/clock-text-01.png +0 -0
  677. package/dist-client/helps/scene/images/clock-text-02.png +0 -0
  678. package/dist-client/helps/scene/images/clock-text-03.png +0 -0
  679. package/dist-client/helps/scene/images/clock-text-04.png +0 -0
  680. package/dist-client/helps/scene/images/container-01.png +0 -0
  681. package/dist-client/helps/scene/images/container-03.png +0 -0
  682. package/dist-client/helps/scene/images/container-04.png +0 -0
  683. package/dist-client/helps/scene/images/dash-01.png +0 -0
  684. package/dist-client/helps/scene/images/donut-01.png +0 -0
  685. package/dist-client/helps/scene/images/donut-02.png +0 -0
  686. package/dist-client/helps/scene/images/ellipse-01.png +0 -0
  687. package/dist-client/helps/scene/images/gauge-circle-01.png +0 -0
  688. package/dist-client/helps/scene/images/gauge-circle-02.png +0 -0
  689. package/dist-client/helps/scene/images/gauge-circle-03.png +0 -0
  690. package/dist-client/helps/scene/images/gauge-circle-04.png +0 -0
  691. package/dist-client/helps/scene/images/gauge-circle-05.png +0 -0
  692. package/dist-client/helps/scene/images/gauge-circle-06.png +0 -0
  693. package/dist-client/helps/scene/images/gauge-circle-07.png +0 -0
  694. package/dist-client/helps/scene/images/gauge-circle-08.png +0 -0
  695. package/dist-client/helps/scene/images/gauge-circle-09.png +0 -0
  696. package/dist-client/helps/scene/images/gauge-circle-10.png +0 -0
  697. package/dist-client/helps/scene/images/gauge-circle-11.png +0 -0
  698. package/dist-client/helps/scene/images/gauge-circle-12.png +0 -0
  699. package/dist-client/helps/scene/images/gauge-circle-13.png +0 -0
  700. package/dist-client/helps/scene/images/gauge-circle-14.png +0 -0
  701. package/dist-client/helps/scene/images/gauge-circle-15.png +0 -0
  702. package/dist-client/helps/scene/images/gauge-circle-16.png +0 -0
  703. package/dist-client/helps/scene/images/gauge-circle-17.png +0 -0
  704. package/dist-client/helps/scene/images/gauge-circle-18.png +0 -0
  705. package/dist-client/helps/scene/images/gauge-circle-19.png +0 -0
  706. package/dist-client/helps/scene/images/gauge-circle-20.png +0 -0
  707. package/dist-client/helps/scene/images/gauge-circle-21.png +0 -0
  708. package/dist-client/helps/scene/images/gauge-horizontal-01.png +0 -0
  709. package/dist-client/helps/scene/images/gauge-vertical-01.png +0 -0
  710. package/dist-client/helps/scene/images/gauge-vertical-02.png +0 -0
  711. package/dist-client/helps/scene/images/gauge-vertical-03.png +0 -0
  712. package/dist-client/helps/scene/images/gauge-vertical-04.png +0 -0
  713. package/dist-client/helps/scene/images/gauge-vertical-05.png +0 -0
  714. package/dist-client/helps/scene/images/gauge-vertical-06.png +0 -0
  715. package/dist-client/helps/scene/images/gauge-vertical-07.png +0 -0
  716. package/dist-client/helps/scene/images/gauge-vertical-08.png +0 -0
  717. package/dist-client/helps/scene/images/gauge-vertical-09.png +0 -0
  718. package/dist-client/helps/scene/images/gauge-vertical-10.png +0 -0
  719. package/dist-client/helps/scene/images/gauge-vertical-11.png +0 -0
  720. package/dist-client/helps/scene/images/gauge-vertical-12.png +0 -0
  721. package/dist-client/helps/scene/images/gauge-vertical-13.png +0 -0
  722. package/dist-client/helps/scene/images/gauge-vertical-14.png +0 -0
  723. package/dist-client/helps/scene/images/gauge-vertical-15.png +0 -0
  724. package/dist-client/helps/scene/images/gauge-vertical-16.png +0 -0
  725. package/dist-client/helps/scene/images/gauge-vertical-17.png +0 -0
  726. package/dist-client/helps/scene/images/gauge-vertical-18.png +0 -0
  727. package/dist-client/helps/scene/images/half-round-rect-01.png +0 -0
  728. package/dist-client/helps/scene/images/half-round-rect-02.png +0 -0
  729. package/dist-client/helps/scene/images/indoor-button-finish-01.gif +0 -0
  730. package/dist-client/helps/scene/images/indoor-create-01.png +0 -0
  731. package/dist-client/helps/scene/images/indoor-create-02.png +0 -0
  732. package/dist-client/helps/scene/images/indoor-create-03.png +0 -0
  733. package/dist-client/helps/scene/images/indoor-setting-01.png +0 -0
  734. package/dist-client/helps/scene/images/line-01.png +0 -0
  735. package/dist-client/helps/scene/images/marker-01.png +0 -0
  736. package/dist-client/helps/scene/images/marker-02.png +0 -0
  737. package/dist-client/helps/scene/images/media-01.png +0 -0
  738. package/dist-client/helps/scene/images/media-02.png +0 -0
  739. package/dist-client/helps/scene/images/news_ticker_1.png +0 -0
  740. package/dist-client/helps/scene/images/news_ticker_2.png +0 -0
  741. package/dist-client/helps/scene/images/news_ticker_3.png +0 -0
  742. package/dist-client/helps/scene/images/news_ticker_video_1.gif +0 -0
  743. package/dist-client/helps/scene/images/news_ticker_video_2.gif +0 -0
  744. package/dist-client/helps/scene/images/polygon-01.png +0 -0
  745. package/dist-client/helps/scene/images/polyline-01.png +0 -0
  746. package/dist-client/helps/scene/images/progress-circle-01.png +0 -0
  747. package/dist-client/helps/scene/images/progress-circle-02.png +0 -0
  748. package/dist-client/helps/scene/images/progress-circle-03.png +0 -0
  749. package/dist-client/helps/scene/images/progress-circle-04.png +0 -0
  750. package/dist-client/helps/scene/images/progress-circle-05.png +0 -0
  751. package/dist-client/helps/scene/images/progress-horizontal-01.png +0 -0
  752. package/dist-client/helps/scene/images/progress-horizontal-02.png +0 -0
  753. package/dist-client/helps/scene/images/progress-horizontal-03.png +0 -0
  754. package/dist-client/helps/scene/images/progress-horizontal-04.png +0 -0
  755. package/dist-client/helps/scene/images/progress-vertical-01.png +0 -0
  756. package/dist-client/helps/scene/images/progress-vertical-02.png +0 -0
  757. package/dist-client/helps/scene/images/progress-vertical-03.png +0 -0
  758. package/dist-client/helps/scene/images/rect-01.png +0 -0
  759. package/dist-client/helps/scene/images/rect-02.png +0 -0
  760. package/dist-client/helps/scene/images/single-arrow-01.png +0 -0
  761. package/dist-client/helps/scene/images/star-01.png +0 -0
  762. package/dist-client/helps/scene/images/star-02.png +0 -0
  763. package/dist-client/helps/scene/images/star-03.png +0 -0
  764. package/dist-client/helps/scene/images/tab-button-finish-01.gif +0 -0
  765. package/dist-client/helps/scene/images/tab-container-03.png +0 -0
  766. package/dist-client/helps/scene/images/tab-container-create-01.png +0 -0
  767. package/dist-client/helps/scene/images/tab-container-create-02.png +0 -0
  768. package/dist-client/helps/scene/images/tab-container-create-03.png +0 -0
  769. package/dist-client/helps/scene/images/tab-container-setting-01.png +0 -0
  770. package/dist-client/helps/scene/images/text-01.png +0 -0
  771. package/dist-client/helps/scene/images/triangle-01.png +0 -0
  772. package/dist-client/helps/setting/images/confirm-button.PNG +0 -0
  773. package/dist-client/helps/setting/images/delete-button.png +0 -0
  774. package/dist-client/helps/setting/images/error-setting.png +0 -0
  775. package/dist-client/helps/setting/images/export-button.png +0 -0
  776. package/dist-client/helps/setting/images/flowchart-setting-management.jpg +0 -0
  777. package/dist-client/helps/setting/images/partner-setting.png +0 -0
  778. package/dist-client/helps/setting/images/partners-list.PNG +0 -0
  779. package/dist-client/helps/setting/images/save-button.png +0 -0
  780. package/dist-client/helps/setting/images/select-button.PNG +0 -0
  781. package/dist-client/helps/setting/images/setting-board.png +0 -0
  782. package/dist-client/helps/setting/images/upload-button.png +0 -0
  783. package/dist-client/helps/setting/partner-setting.en.md +19 -0
  784. package/dist-client/helps/setting/settings.en.md +26 -0
  785. package/dist-client/helps/setting/settings.ko.md +4 -0
  786. package/dist-client/index.html +40 -0
  787. package/dist-client/main.js +2 -0
  788. package/dist-client/main.js.LICENSE.txt +53 -0
  789. package/dist-client/modules.js +2 -0
  790. package/dist-client/modules.js.LICENSE.txt +3 -0
  791. package/dist-client/node_modules/@hatiolab/things-scene/babel.config.js +1 -0
  792. package/dist-client/node_modules/@hatiolab/things-scene/package.json +89 -0
  793. package/dist-client/node_modules/@hatiolab/things-scene/rollup.config.js +1 -0
  794. package/dist-client/node_modules/@hatiolab/things-scene/things-board.js +1 -0
  795. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js +2 -0
  796. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-ie.js.LICENSE.txt +3 -0
  797. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js +2 -0
  798. package/dist-client/node_modules/@hatiolab/things-scene/things-scene-min.js.LICENSE.txt +3 -0
  799. package/dist-client/node_modules/@hatiolab/things-scene/tsconfig.json +9 -0
  800. package/dist-client/node_modules/@webcomponents/webcomponentsjs/CHANGELOG.md +71 -0
  801. package/dist-client/node_modules/@webcomponents/webcomponentsjs/LICENSE.md +19 -0
  802. package/dist-client/node_modules/@webcomponents/webcomponentsjs/README.md +259 -0
  803. package/dist-client/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js +2 -0
  804. package/dist-client/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js.LICENSE.txt +9 -0
  805. package/dist-client/node_modules/@webcomponents/webcomponentsjs/package.json +51 -0
  806. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +175 -0
  807. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +2 -0
  808. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.LICENSE.txt +9 -0
  809. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +1 -0
  810. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +2 -0
  811. package/dist-client/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js.LICENSE.txt +9 -0
  812. package/dist-client/node_modules/web-animations-js/web-animations-next.min.js +1 -0
  813. package/dist-client/node_modules/web-animations-js/web-animations-next.min.js.map +1 -0
  814. package/dist-client/oauth2/oauth2-decision-error-page.js +2 -0
  815. package/dist-client/oauth2/oauth2-decision-error-page.js.LICENSE.txt +70 -0
  816. package/dist-client/oauth2/oauth2-decision-page.js +2 -0
  817. package/dist-client/oauth2/oauth2-decision-page.js.LICENSE.txt +104 -0
  818. package/dist-client/openapi/unstable/scenario.yaml +240 -0
  819. package/dist-client/openapi/unstable.yaml +41 -0
  820. package/dist-client/profile.js +1 -0
  821. package/dist-client/public/home.js +2 -0
  822. package/dist-client/public/home.js.LICENSE.txt +81 -0
  823. package/dist-client/scene-player.js +2 -0
  824. package/dist-client/scene-player.js.LICENSE.txt +822 -0
  825. package/dist-client/scene-viewer.js +2 -0
  826. package/dist-client/scene-viewer.js.LICENSE.txt +822 -0
  827. package/dist-client/service-worker.js +2 -0
  828. package/dist-client/service-worker.js.LICENSE.txt +6 -0
  829. package/dist-client/theme.css +17 -0
  830. package/dist-client/translations/en.json +1242 -0
  831. package/dist-client/translations/ko.json +1245 -0
  832. package/dist-client/translations/ms.json +1210 -0
  833. package/dist-client/translations/zh.json +1192 -0
  834. package/dist-client/views/auth-page.html +96 -0
  835. package/dist-client/views/dependencies-view-graphviz.html +75 -0
  836. package/dist-client/views/dependencies-view.html +139 -0
  837. package/dist-client/views/internal-board-full-feature-view.html +61 -0
  838. package/dist-client/views/internal-board-service-view.html +65 -0
  839. package/dist-client/views/internal-label-command-view.html +300 -0
  840. package/dist-client/views/oauth2-page.html +90 -0
  841. package/dist-client/views/public/home.html +87 -0
  842. package/dist-client/views/public/html-editor-editorjs.html +269 -0
  843. package/dist-client/views/public/html-editor-jodit.html +31 -0
  844. package/dist-client/views/public/html-editor-tui.html +54 -0
  845. package/dist-client/views/scenario-view.html +64 -0
  846. package/dist-client/views/template.html +21 -0
  847. package/dist-server/tsconfig.tsbuildinfo +1 -1
  848. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +24 -49
  849. package/logs/.18d091b2bdb152ebed6b3b89b64872d0259f255d-audit.json +20 -0
  850. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +12 -32
  851. package/logs/application-2022-04-25-13.log +3 -0
  852. package/logs/application-2022-04-25-17.log +9 -0
  853. package/logs/application-2022-04-26-10.log +28 -0
  854. package/logs/application-2022-04-26-11.log +13 -0
  855. package/logs/application-2022-04-26-13.log +9 -0
  856. package/logs/application-2023-01-17-09.log +7 -0
  857. package/logs/application-2023-01-17-18.log +2 -0
  858. package/logs/application-2023-01-19-00.log +3 -0
  859. package/logs/application-2023-01-19-01.log +3 -0
  860. package/logs/application-2023-01-19-08.log +3 -0
  861. package/logs/application-2023-01-19-09.log +1 -0
  862. package/logs/application-2023-01-19-10.log +1 -0
  863. package/logs/application-2023-01-19-17.log +1 -0
  864. package/logs/connections-2022-04-18-20.log +0 -0
  865. package/logs/connections-2022-04-25-13.log +0 -0
  866. package/logs/connections-2022-04-25-17.log +0 -0
  867. package/logs/connections-2022-04-26-10.log +0 -0
  868. package/logs/connections-2022-04-26-11.log +0 -0
  869. package/logs/connections-2022-04-26-13.log +0 -0
  870. package/logs/connections-2023-01-17-09.log +0 -0
  871. package/logs/connections-2023-01-19-00.log +0 -0
  872. package/logs/connections-2023-01-19-01.log +0 -0
  873. package/logs/connections-2023-01-19-08.log +0 -0
  874. package/logs/system/.277b657c3d28ef3f7f13e894f05f9a5b78225124-audit.json +15 -0
  875. package/logs/system/.48785e489f583edb47e5bfd3d5cf6ac2a7e0bf3a-audit.json +15 -0
  876. package/logs/system/.4f2031dfc4e0de16454872a65d0a8b59646970f7-audit.json +15 -0
  877. package/logs/system/.6da447827b9a5ea2ccd1f5f28a0b784317582531-audit.json +20 -0
  878. package/logs/system/.8d440e4a6e875d88d938061d3d3037e6b0d7dc58-audit.json +15 -0
  879. package/logs/system/.b295089be805f3597aa7380952ce4f2670ac8e21-audit.json +20 -0
  880. package/logs/system/scenario-MAIN-2022-03-04-16.log +190 -0
  881. package/logs/system/scenario-PUBLISH-2022-03-16-13.log +8 -0
  882. package/logs/system/scenario-PUBLISH-2023-01-19-08.log +36 -0
  883. package/logs/system/scenario-SCALER-TEST-2022-02-25-11.log +14 -0
  884. package/logs/system/scenario-SCHEDULE-TESt-2022-03-02-12.log +66 -0
  885. package/logs/system/scenario-SCHEDULE-TESt-2022-03-02-13.log +1396 -0
  886. package/logs/system/scenario-pubsub-2-2022-04-11-23.log +12 -0
  887. package/logs/system/scenario-pubsub-2-2022-04-12-14.log +12 -0
  888. package/logs/system/scenario-pubsub-2022-04-11-23.log +277 -0
  889. package/package.json +34 -34
  890. package/attachments/03e21709-60c1-4796-bb0b-9920148ce2c6.png +0 -0
  891. package/attachments/1c5f7b4e-45f7-47dc-94e2-6d4aa04c331d.png +0 -0
  892. package/attachments/5c7f2330-a93d-4c48-bcca-6b2a10974386.png +0 -0
  893. package/attachments/97e18c62-6e73-4407-a062-276cd25de43a.png +0 -0
  894. package/attachments/9c6e1599-a4e2-483e-833d-c67e336b27e5.png +0 -0
  895. package/attachments/9d1d12ea-0140-46cc-8eba-b1ab475bfd98.png +0 -0
  896. package/attachments/a727d8fa-5afe-47b3-9b29-97a1f26637f3.png +0 -0
  897. package/attachments/b713c6b6-15e3-4c80-a288-b0e8eba5e091.png +0 -0
  898. package/attachments/c7b6e18b-fd21-49c5-8a38-9b2455957c2a.png +0 -0
  899. package/attachments/dabc0a7e-bb5b-46a3-b73c-d310c95f0832.png +0 -0
  900. package/attachments/f099313a-c616-4753-b2d7-33db2ac29b3b.png +0 -0
  901. package/attachments/f90a4af7-5555-4078-8960-2c978363ac42.png +0 -0
  902. package/logs/application-2023-03-19-07.log +0 -11
  903. package/logs/application-2023-03-19-08.log +0 -4
  904. package/logs/application-2023-03-19-10.log +0 -5
  905. package/logs/application-2023-03-19-11.log +0 -10
  906. package/logs/application-2023-03-19-12.log +0 -5
  907. package/logs/application-2023-03-19-16.log +0 -3
  908. package/logs/application-2023-03-19-19.log +0 -1
  909. package/logs/application-2023-03-19-20.log +0 -2
  910. package/logs/application-2023-03-19-21.log +0 -1
  911. package/logs/application-2023-03-21-03.log +0 -15
  912. package/logs/application-2023-03-21-04.log +0 -15
  913. package/logs/application-2023-03-21-12.log +0 -3
  914. package/logs/application-2023-03-21-13.log +0 -3
  915. /package/{attachments/92a49294-725c-445c-8fe3-98d328d6d0a5.png → dist-client/assets/images/image-api.png} +0 -0
  916. /package/{logs/connections-2023-03-13-10.log → dist-client/helps/scene/component/image-view.md} +0 -0
  917. /package/{logs/connections-2023-03-13-11.log → dist-client/theme.js} +0 -0
  918. /package/logs/{connections-2023-03-19-07.log → connections-2022-04-12-14.log} +0 -0
  919. /package/logs/{connections-2023-03-19-10.log → connections-2022-04-12-16.log} +0 -0
  920. /package/logs/{connections-2023-03-19-11.log → connections-2022-04-14-13.log} +0 -0
  921. /package/logs/{connections-2023-03-19-12.log → connections-2022-04-14-17.log} +0 -0
  922. /package/logs/{connections-2023-03-21-03.log → connections-2022-04-15-08.log} +0 -0
  923. /package/logs/{connections-2023-03-21-04.log → connections-2022-04-18-10.log} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see result.js.LICENSE.txt */
2
+ (()=>{var __webpack_modules__={36974:(t,e,r)=>{"use strict";r.d(e,{g7:()=>u});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),u=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}());u.bind,u.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 u(t,e)}finally{s.clear()}}function u(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(f(t,e))return!0;var h=l(t),d=l(e),m=h.length;if(m!==d.length)return!1;for(var g=0;g<m;++g)if(!o.call(e,h[g]))return!1;for(g=0;g<m;++g){var v=h[g];if(!u(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(f(t,e))return!0;for(var y=t.entries(),b="[object Map]"===c;;){var w=y.next();if(w.done)break;var E=w.value,_=E[0],A=E[1];if(!e.has(_))return!1;if(b&&!u(A,e.get(_)))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 C=t.byteLength;if(C===e.byteLength)for(;C--&&t[C]===e[C];);return-1===C;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var S=a.call(t);return S===a.call(e)&&(n=p,!((s=(r=S).length-n.length)>=0&&r.indexOf(n,s)===s))}return!1}function l(t){return Object.keys(t).filter(h,t)}function h(t){return void 0!==this[t]}var p="{ [native code] }";function f(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:u,parseAndCheckHttpResponse:l,rewriteURIForGET:h,selectHttpOptionsAndBody:p,selectURI:f,serializeFetchParameter:d}=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:E,includeExtensions:_}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A={http:{includeExtensions:_},options:b,credentials:w,headers:E};return new a((a=>{var g=a.getContext(),{clientAwareness:{name:v,version:b}={},headers:w}=g,E={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:_,body:C}=p(a,u,A,E),{clone:S,files:x}=m(C,"",r),D=f(a,t);if(x.size){delete _.headers["content-type"];var O=new(n||FormData);O.append("operations",d(S,"Payload"));var P={},I=0;x.forEach((t=>{P[++I]=t})),O.append("map",JSON.stringify(P)),I=0,x.forEach(((t,e)=>{o(O,++I,e)})),_.body=O}else if(e&&!a.query.definitions.some((t=>"OperationDefinition"===t.kind&&"mutation"===t.operation))&&(_.method="GET"),"GET"===_.method){var{newURI:k,parseError:T}=h(D,C);if(T)return new s((t=>{t.error(T)}));D=k}else _.body=d(S,"Payload");var{controller:R}=c();R&&(_.signal&&(_.signal.aborted?R.abort():_.signal.addEventListener("abort",(()=>{R.abort()}),{once:!0})),_.signal=R.signal);var F=y||fetch;return new s((t=>{var e;return F(D,_).then((t=>(a.setContext({response:t}),t))).then(l(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,u=c.ERR_AMBIGUOUS_ARGUMENT,l=c.ERR_INVALID_ARG_TYPE,h=c.ERR_INVALID_ARG_VALUE,p=c.ERR_INVALID_RETURN_VALUE,f=c.ERR_MISSING_ARGS,d=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 E(){var t=r(79377);a=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var _=!1,A=t.exports=D,C={};function S(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function x(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 d({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];x.apply(void 0,[D,e.length].concat(e))}A.fail=function t(e,r,o,a,s){var c,u=arguments.length;if(0===u)c="Failed";else if(1===u)o=e,e=void 0;else{if(!1===_){_=!0;var l=n.emitWarning?n.emitWarning:i.warn.bind(i);l("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===u&&(a="!=")}if(o instanceof Error)throw o;var h={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==o&&(h.message=o);var p=new d(h);throw c&&(p.message=c,p.generatedMessage=!0),p},A.AssertionError=d,A.ok=D,A.equal=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");e!=r&&S({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},A.notEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");e==r&&S({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},A.deepEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),a(e,r)||S({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},A.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),a(e,r)&&S({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},A.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),s(e,r)||S({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},A.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===a&&E(),s(e,r)&&S({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},A.strictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");w(e,r)||S({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},A.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");w(e,r)&&S({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),u=new d({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=t,u.expected=e,u.operator=o.name,u}S({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 l("expected",["Function","RegExp"],e);if("object"!==o(t)||null===t){var i=new d({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 h("error",e,"may not be an empty object");return void 0===a&&E(),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 l("fn","Function",t);try{t()}catch(t){return t}return C}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 p("instance of Promise","promiseFn",e)}else{if(!T(t))throw new l("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return C})).catch((function(t){return t}))}))}function F(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===o(e)&&null!==e){if(e.message===r)throw new u("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new u("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 l("error",["Object","Error","Function","RegExp"],r);if(e===C){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";S({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 M(t,e,r,n){if(e!==C){if("string"==typeof r&&(n=r,r=void 0),!r||I(e,r)){var i=n?": ".concat(n):".",o="doesNotReject"===t.name?"rejection":"exception";S({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 N(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];x.apply(void 0,[N,e.length].concat(e))}A.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))},A.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))}))},A.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];M.apply(void 0,[t,k(e)].concat(n))},A.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 M.apply(void 0,[t,e].concat(n))}))},A.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 d({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 u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},A.strict=b(N,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.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"!==f(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 l(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,t)},c(t)}function u(){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 l(t,e,r){return l=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&h(i,r.prototype),i},l.apply(null,arguments)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t){return f="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},f(t)}var d=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="",E={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 _(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 A(t){return d(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var C=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"!==f(t)||null===t)throw new m("options","Object",t);var i=t.message,o=t.operator,c=t.stackStartFn,u=t.actual,l=t.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=a(this,p(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"===f(u)&&null!==u&&"object"===f(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=_(u),l=_(l)),"deepStrictEqual"===o||"strictEqual"===o)r=a(this,p(e).call(this,function(t,e,r){var i="",o="",a=0,s="",c=!1,u=A(t),l=u.split("\n"),h=A(e).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===f(t)&&"object"===f(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===h.length&&l[0]!==h[0]){var m=l[0].length+h[0].length;if(m<=10){if(!("object"===f(t)&&null!==t||"object"===f(e)&&null!==e||0===t&&0===e))return"".concat(E[r],"\n\n")+"".concat(l[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===h[0][p];)p++;p>2&&(d="\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)}(" ",p),"^"),p=0)}}for(var _=l[l.length-1],C=h[h.length-1];_===C&&(p++<2?s="\n ".concat(_).concat(s):i=_,l.pop(),h.pop(),0!==l.length&&0!==h.length);)_=l[l.length-1],C=h[h.length-1];var S=Math.max(l.length,h.length);if(0===S){var x=u.split("\n");if(x.length>30)for(x[26]="".concat(v,"...").concat(w);x.length>27;)x.pop();return"".concat(E.notIdentical,"\n\n").concat(x.join("\n"),"\n")}p>3&&(s="\n".concat(v,"...").concat(w).concat(s),c=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var D=0,O=E[r]+"\n".concat(y,"+ actual").concat(w," ").concat(b,"- expected").concat(w),P=" ".concat(v,"...").concat(w," Lines skipped");for(p=0;p<S;p++){var I=p-a;if(l.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(v,"...").concat(w),c=!0):I>3&&(o+="\n ".concat(h[p-2]),D++),o+="\n ".concat(h[p-1]),D++),a=p,i+="\n".concat(b,"-").concat(w," ").concat(h[p]),D++;else if(h.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(v,"...").concat(w),c=!0):I>3&&(o+="\n ".concat(l[p-2]),D++),o+="\n ".concat(l[p-1]),D++),a=p,o+="\n".concat(y,"+").concat(w," ").concat(l[p]),D++;else{var k=h[p],T=l[p],R=T!==k&&(!g(T,",")||T.slice(0,-1)!==k);R&&g(k,",")&&k.slice(0,-1)===T&&(R=!1,T+=","),R?(I>1&&p>2&&(I>4?(o+="\n".concat(v,"...").concat(w),c=!0):I>3&&(o+="\n ".concat(l[p-2]),D++),o+="\n ".concat(l[p-1]),D++),a=p,o+="\n".concat(y,"+").concat(w," ").concat(T),i+="\n".concat(b,"-").concat(w," ").concat(k),D+=2):(o+=i,i="",1!==I&&0!==p||(o+="\n ".concat(T),D++))}if(D>20&&p<S-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(d)}(u,l,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var d=E[o],C=A(u).split("\n");if("notStrictEqual"===o&&"object"===f(u)&&null!==u&&(d=E.notStrictEqualObject),C.length>30)for(C[26]="".concat(v,"...").concat(w);C.length>27;)C.pop();r=1===C.length?a(this,p(e).call(this,"".concat(d," ").concat(C[0]))):a(this,p(e).call(this,"".concat(d,"\n\n").concat(C.join("\n"),"\n")))}else{var S=A(u),x="",D=E[o];"notDeepEqual"===o||"notEqual"===o?(S="".concat(E[o],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(x="".concat(A(l)),S.length>512&&(S="".concat(S.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===o||"equal"===o?S="".concat(D,"\n\n").concat(S,"\n\nshould equal\n\n"):x=" ".concat(o," ").concat(x)),r=a(this,p(e).call(this,"".concat(S).concat(x)))}return Error.stackTraceLimit=h,r.generatedMessage=!i,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=l,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&&h(t,e)}(e,t),r=e,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(t,e){return d(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=C},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 u(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 l(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))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,s,c,u,h;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(l(e,"type"));else{var p=("number"!=typeof h&&(h=0),h+".".length>(u=t).length||-1===u.indexOf(".",h)?"argument":"property");c='The "'.concat(t,'" ').concat(p," ").concat(o," ").concat(l(e,"type"))}return c+". Received type ".concat(n(i))}),TypeError),u("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),u("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),u("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),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(62183);function h(t){return t.call.bind(t)}var p=h(Object.prototype.hasOwnProperty),f=h(Object.prototype.propertyIsEnumerable),d=h(Object.prototype.toString),m=r(17396).types,g=m.isAnyArrayBuffer,v=m.isArrayBufferView,y=m.isDate,b=m.isMap,w=m.isRegExp,E=m.isSet,_=m.isNativeError,A=m.isBoxedPrimitive,C=m.isNumberObject,S=m.isStringObject,x=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(u(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&&l(t)&&l(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,u,h,p=d(t);if(p!==d(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var f=T(t),m=T(e);return f.length===m.length&&N(t,e,r,n,1,f)}if("[object Object]"===p&&(!b(t)&&b(e)||!E(t)&&E(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)||(u=t,h=e,!(o?u.source===h.source&&u.flags===h.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(h))))return!1}else if(_(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&&N(t,e,r,n,0,k)}if(E(t))return!(!E(e)||t.size!==e.size)&&N(t,e,r,n,2);if(b(t))return!(!b(e)||t.size!==e.size)&&N(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(A(t)&&!function(t,e){return C(t)?C(e)&&c(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):S(t)?S(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):x(t)?x(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 N(t,e,r,n,0)}function M(t,e){return e.filter((function(e){return f(t,e)}))}function N(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(!p(e,o[s]))return!1;if(r&&5===arguments.length){var c=u(t);if(0!==c.length){var l=0;for(s=0;s<c.length;s++){var h=c[s];if(f(t,h)){if(!f(e,h))return!1;o.push(h),l++}else if(f(e,h))return!1}var d=u(e);if(c.length!==d.length&&M(e,d).length!==l)return!1}else{var m=u(e);if(0!==m.length&&0!==M(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 j(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function L(t,e,r){var n=j(r);return null!=n?n:e.has(n)&&!t.has(n)}function V(t,e,r,n,i){var o=j(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 u=s[c];if(F(r,u,i,o)&&F(n,e.get(u),i,o))return t.delete(u),!0}return!1}function U(t,e,r,o,c,u){var l=0;if(2===u){if(!function(t,e,r,n){for(var o=null,s=a(t),c=0;c<s.length;c++){var u=s[c];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!e.has(u)){if(r)return!1;if(!L(t,e,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var l=a(e),h=0;h<l.length;h++){var p=l[h];if("object"===i(p)&&null!==p){if(!B(o,p,r,n))return!1}else if(!r&&!t.has(p)&&!B(o,p,r,n))return!1}return 0===o.size}return!0}(t,e,r,c))return!1}else if(3===u){if(!function(t,e,r,o){for(var a=null,c=s(t),u=0;u<c.length;u++){var l=n(c[u],2),h=l[0],p=l[1];if("object"===i(h)&&null!==h)null===a&&(a=new Set),a.add(h);else{var f=e.get(h);if(void 0===f&&!e.has(h)||!F(p,f,r,o)){if(r)return!1;if(!V(t,e,h,p,o))return!1;null===a&&(a=new Set),a.add(h)}}}if(null!==a){for(var d=s(e),m=0;m<d.length;m++){var g=n(d[m],2),v=(h=g[0],g[1]);if("object"===i(h)&&null!==h){if(!z(a,t,h,v,r,o))return!1}else if(!(r||t.has(h)&&F(t.get(h),v,!1,o)||z(a,t,h,v,!1,o)))return!1}return 0===a.size}return!0}(t,e,r,c))return!1}else if(1===u)for(;l<t.length;l++){if(!p(t,l)){if(p(e,l))return!1;for(var h=Object.keys(t);l<h.length;l++){var f=h[l];if(!p(e,f)||!F(t[f],e[f],r,c))return!1}return h.length===Object.keys(e).length}if(!p(e,l)||!F(t[l],e[l],r,c))return!1}for(l=0;l<o.length;l++){var d=o[l];if(!F(t[d],e[d],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],u=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),l=0,h=s>0?a-4:a;for(r=0;r<h;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)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[l++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},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(u(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 u(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),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=s(n,a,arguments);if(c&&u){var r=c(e,"length");r.configurable&&u(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var h=function(){return s(n,o,arguments)};u?u(t.exports,"apply",{value:h}):t.exports.apply=h},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 u=[[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"]],l=0;l<u.length;l++){var h=u[l],p=h[0],f=h[1];a[f]||(a[f]=p)}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)(),u=s&&c,l=function(t,e,r,n){var i;(!(e in t)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(u?s(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},h=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)l(t,o[s],e[o[s]],r[o[s]])};h.supportsDescriptors=!!u,t.exports=h},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],u=Object.getOwnPropertyDescriptor(i,c);void 0!==u&&u.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 u=Array.isArray(t)||"undefined"!=typeof FileList&&t instanceof FileList,l=t&&t.constructor===Object;if(u||l){var h=o.has(t);if(h?s=o.get(t):(s=u?[]:{},o.set(t,s)),!n.has(t)){var p=e?"".concat(e,"."):"",f=new Set(n).add(t);if(u){var d=0;for(var m of t){var g=a(m,p+d++,f);h||s.push(g)}}else for(var v in t){var y=a(t[v],p+v,f);h||(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)))},u=Math.max(0,o.length-s.length),l=[],h=0;h<u;h++)l.push("$"+h);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),o.prototype){var p=function(){};p.prototype=o.prototype,a.prototype=new p,p.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 u=function(){throw new a},l=c?function(){try{return u}catch(t){try{return c(arguments,"callee").get}catch(t){return u}}}():u,h=r(44439)(),p=Object.getPrototypeOf||function(t){return t.__proto__},f={},d="undefined"==typeof Uint8Array?n:p(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%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%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h?p((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&&h?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?p(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":d,"%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=p(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),E=y.call(Function.apply,Array.prototype.splice),_=y.call(Function.call,String.prototype.replace),A=y.call(Function.call,String.prototype.slice),C=y.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,D=function(t){var e=A(t,0,1),r=A(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 _(t,S,(function(t,e,r,i){n[n.length]=r?_(i,x,"$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===f&&(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===C(/^%?[^%]*%?$/,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,u=o.value,l=!1,h=o.alias;h&&(n=h[0],E(r,w([0,1],h)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],g=A(d,0,1),v=A(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==d&&f||(l=!0),b(m,s="%"+(n+="."+d)+"%"))u=m[s];else if(null!=u){if(!(d in u)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var y=c(u,d);u=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[d]}else f=b(u,d),u=u[d];f&&!l&&(m[s]=u)}}return u}},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:()=>f,J9:()=>g,Ps:()=>p,ZP:()=>A,_t:()=>d,wO:()=>m});var n=r(171),i=r(54509),o=r(51266),a=new Map,s=new Map,c=!0,u=!1;function l(t){return t.replace(/[\s,]+/g," ").trim()}function h(t){var e,r,h,p=l(t);if(!a.has(p)){var f=(0,i.Qc)(t,{experimentalFragmentVariables:u,allowLegacyFragmentVariables:u});if(!f||"Document"!==f.kind)throw new Error("Not a valid GraphQL document.");a.set(p,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=f,r=new Set,h=[],e.definitions.forEach((function(t){if("FragmentDefinition"===t.kind){var e=t.name.value,n=l((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),h.push(t))}else h.push(t);var a})),(0,n.pi)((0,n.pi)({},e),{definitions:h}))))}return a.get(p)}function p(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]})),h(n)}function f(){a.clear(),s.clear()}function d(){c=!1}function m(){u=!0}function g(){u=!1}var v,y=p,b=f,w=d,E=m,_=g;(v=p||(p={})).gql=y,v.resetCaches=b,v.disableFragmentWarnings=w,v.enableExperimentalFragmentVariables=E,v.disableExperimentalFragmentVariables=_,p.default=p;const A=p},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,u=c>>1,l=-7,h=r?i-1:0,p=r?-1:1,f=t[e+h];for(h+=p,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+h],h+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,d=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=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+h>=1?p/c:p*Math.pow(2,1-h))*c>=2&&(a++,c/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*c-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+f]=255&s,f+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+f]=255&a,f+=d,a/=256,u-=8);t[r+f-d]|=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,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(h=function(t){if((l||!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(h(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(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)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),u="undefined"==typeof globalThis?r.g:globalThis,l=i(),h=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},p=o("String.prototype.slice"),f={},d=Object.getPrototypeOf;s&&c&&d&&n(l,(function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=c(r,Symbol.toStringTag);if(!n){var i=d(r);n=c(i,Symbol.toStringTag)}f[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=p(a(t),8,-1);return h(l,e)>-1}return!!c&&function(t){var e=!1;return n(f,(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,u=i(c)&&i(c.createElement),l=!s&&!a((function(){return 7!=Object.defineProperty((t="div",u?c.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),h=Object.defineProperty,p={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),l)try{return h(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}},f=s?function(t,e,r){return p.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},d={}.hasOwnProperty,m=function(t,e){return d.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")||f(i,"name",r)),t[r]!==i&&(s&&(m(i,n)||f(i,n,t[r]?""+t[r]:o.join(String(r)))),t===e?t[r]=i:a?t[r]?t[r]=i:f(t,r,i):(delete t[r],f(t,r,i)))})(Function.prototype,i,(function(){return"function"==typeof this&&this[n]||b.call(this)}))})),E=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)}},_="prototype",A=function(t,n,i){var o,a,s,c,u=t&A.F,l=t&A.G,h=t&A.S,p=t&A.P,d=t&A.B,m=l?e:h?e[n]||(e[n]={}):(e[n]||{})[_],g=l?r:r[n]||(r[n]={}),v=g[_]||(g[_]={});for(o in l&&(i=n),i)s=((a=!u&&m&&void 0!==m[o])?m:i)[o],c=d&&a?E(s,e):p&&"function"==typeof s?E(Function.call,s):s,m&&w(m,o,s,t&A.U),g[o]!=s&&f(g,o,c),p&&v[o]!=s&&(v[o]=s)};e.core=r,A.F=1,A.G=2,A.S=4,A.P=8,A.B=16,A.W=32,A.U=64,A.R=128;var C=A,S=Math.ceil,x=Math.floor,D=function(t){return isNaN(t=+t)?0:(t>0?x:S)(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});C(C.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;C(C.S+C.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,M,N,B,j,L,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?(j++,L=0):t?L+=t.length:L++,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[M]();nt()},comment:function(){switch(Y){case"*":return nt(),void(H="multiLineComment");case"/":return nt(),void(H="singleLineComment")}throw ht(nt())},multiLineComment:function(){switch(Y){case"*":return nt(),void(H="multiLineCommentAsterisk");case void 0:throw ht(nt())}nt()},multiLineCommentAsterisk:function(){switch(Y){case"*":return void nt();case"/":return nt(),void(H="default");case void 0:throw ht(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 ht(nt())},identifierNameStartEscape:function(){if("u"!==Y)throw ht(nt());nt();var t=st();switch(t){case"$":case"_":break;default:if(!Q(t))throw ft()}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 ht(nt());nt();var t=st();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!K(t))throw ft()}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 ht(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 ht(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 ht(nt())},decimalExponentSign:function(){if(Z(Y))return G+=nt(),void(H="decimalExponentInteger");throw ht(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 ht(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 ht(nt());return"\0";case"x":return nt(),function(){var t="",e=rt();if(!J(e))throw ht(nt());if(t+=nt(),e=rt(),!J(e))throw ht(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 ht(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 ht(nt());case"\u2028":case"\u2029":!function(t){n.warn("JSON5: '"+dt(t)+"' in strings is not valid ECMAScript; consider escaping")}(Y);break;case void 0:throw ht(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 ht(nt())},afterPropertyName:function(){if(":"===Y)return ot("punctuator",nt());throw ht(nt())},beforePropertyValue:function(){H="value"},afterPropertyValue:function(){switch(Y){case",":case"}":return ot("punctuator",nt())}throw ht(nt())},beforeArrayValue:function(){if("]"===Y)return ot("punctuator",nt());H="value"},afterArrayValue:function(){switch(Y){case",":case"]":return ot("punctuator",nt())}throw ht(nt())},end:function(){throw ht(nt())}};function ot(t,e){return{type:t,value:e,line:j,column:L}}function at(t){for(var e=0,r=t;e<r.length;e+=1){var n=r[e];if(rt()!==n)throw ht(nt());nt()}}function st(){for(var t="",e=4;e-- >0;){var r=rt();if(!J(r))throw ht(nt());t+=nt()}return String.fromCodePoint(parseInt(t,16))}var ct={start:function(){if("eof"===V.type)throw pt();ut()},beforePropertyName:function(){switch(V.type){case"identifier":case"string":return z=V.value,void(M="afterPropertyName");case"punctuator":return void lt();case"eof":throw pt()}},afterPropertyName:function(){if("eof"===V.type)throw pt();M="beforePropertyValue"},beforePropertyValue:function(){if("eof"===V.type)throw pt();ut()},beforeArrayValue:function(){if("eof"===V.type)throw pt();"punctuator"!==V.type||"]"!==V.value?ut():lt()},afterPropertyValue:function(){if("eof"===V.type)throw pt();switch(V.value){case",":return void(M="beforePropertyName");case"}":lt()}},afterArrayValue:function(){if("eof"===V.type)throw pt();switch(V.value){case",":return void(M="beforeArrayValue");case"]":lt()}},end:function(){}};function ut(){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=N[N.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)N.push(t),M=Array.isArray(t)?"beforeArrayValue":"beforePropertyName";else{var r=N[N.length-1];M=null==r?"end":Array.isArray(r)?"afterArrayValue":"afterPropertyValue"}}function lt(){N.pop();var t=N[N.length-1];M=null==t?"end":Array.isArray(t)?"afterArrayValue":"afterPropertyValue"}function ht(t){return mt(void 0===t?"JSON5: invalid end of input at "+j+":"+L:"JSON5: invalid character '"+dt(t)+"' at "+j+":"+L)}function pt(){return mt("JSON5: invalid end of input at "+j+":"+L)}function ft(){return mt("JSON5: invalid identifier character at "+j+":"+(L-=5))}function dt(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=j,e.columnNumber=L,e}return{parse:function(t,e){F=String(t),M="start",N=[],B=0,j=1,L=0,V=void 0,z=void 0,U=void 0;do{V=et(),ct[M]()}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 u=0,l=e;u<l.length;u+=1){var h=l[u],p=void 0;"string"==typeof h?p=h:("number"==typeof h||h instanceof String||h instanceof Number)&&(p=String(h)),void 0!==p&&n.indexOf(p)<0&&n.push(p)}}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)),f("",{"":t});function f(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?d(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=f(String(i),t);n.push(void 0!==o?o:"null")}if(0===n.length)r="[]";else if(""===c)r="["+n.join(",")+"]";else{var u=",\n"+s,l=n.join(u);r="[\n"+s+l+",\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=[],u=0,l=n||Object.keys(t);u<l.length;u+=1){var h=l[u],p=f(h,t);if(void 0!==p){var d=m(h)+":";""!==c&&(d+=" "),d+=p,o.push(d)}}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 d(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 d(t);var e=String.fromCodePoint(t.codePointAt(0));if(!Q(e))return d(t);for(var r=e.length;r<t.length;r++)if(!K(String.fromCodePoint(t.codePointAt(r))))return d(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,u,l;switch(c=r*(1-e),u=r*(1-(s=6*t-(a=Math.floor(6*t)))*e),l=r*(1-(1-s)*e),a%6){case 0:n=r,i=l,o=c;break;case 1:n=u,i=r,o=c;break;case 2:n=c,i=r,o=l;break;case 3:n=c,i=u,o=r;break;case 4:n=l,i=c,o=r;break;case 5:n=r,i=c,o=u}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,u,l,h,p,f=i.length;for(s=0;s<f;s+=1)if("ks"in(a=i[s])&&!a.completed){if(a.completed=!0,a.hasMask){var d=a.masksProperties;for(u=d.length,c=0;c<u;c+=1)if(d[c].pt.k.i)n(d[c].pt.k);else for(h=d[c].pt.k.length,l=0;l<h;l+=1)d[c].pt.k[l].s&&n(d[c].pt.k[l].s[0]),d[c].pt.k[l].e&&n(d[c].pt.k[l].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===(p=a).t.a.length&&p.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)}}}(),u=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)}}}(),l=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 u=r.masksProperties;for(o=u.length,i=0;i<o;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(s=u[i].pt.k.length,a=0;a<s;a+=1)u[i].pt.k[a].s&&(u[i].pt.k[a].s[0].c=u[i].cl),u[i].pt.k[a].e&&(u[i].pt.k[a].e[0].c=u[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 h={completeData:function(r){r.__complete||(u(r),a(r),s(r),c(r),l(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 h.checkColors=u,h.checkChars=s,h.checkPathProperties=c,h.checkShapes=l,h.completeLayers=t,h}()),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||l()),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 h(o,t),o.setData(t,r),o}function u(){i+=1,d()}function l(){i-=1}function h(t,r){t.addEventListener("destroy",s),t.addEventListener("_active",u),t.addEventListener("_idle",l),e.push({elem:r,animation:t}),n+=1}function p(t){var s,c=t-r;for(s=0;s<n;s+=1)e[s].animation.advanceTime(c);r=t,i&&!a?window.requestAnimationFrame(p):o=!0}function f(t){r=t,window.requestAnimationFrame(p)}function d(){!a&&i&&o&&(window.requestAnimationFrame(f),o=!1)}return t.registerAnimation=c,t.loadAnimation=function(t){var e=new AnimationItem;return h(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,d()},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 u([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 u(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return u.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 u=o+(t-i[--a])/(i[a+1]-i[a])*r,l=c(u,e,n);return l>=.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,u,e,n):0===l?u: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,u,l=getDefaultCurveSegments(),h=0,p=[],f=[],d=bezierLengthPool.newElement();for(a=r.length,i=0;i<l;i+=1){for(c=i/(l-1),u=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],p[o]=s,null!==f[o]&&(u+=bmPow(p[o]-f[o],2)),f[o]=p[o];u&&(h+=u=bmSqrt(u)),d.percents[i]=c,d.lengths[i]=h}return d.addedLength=h,d};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 u,l,h,p,f,d,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(h=a.length,u=0;u<g;u+=1){for(m=createSizedArray(h),f=u/(g-1),d=0,l=0;l<h;l+=1)p=bmPow(1-f,3)*t[l]+3*bmPow(1-f,2)*f*(t[l]+a[l])+3*(1-f)*bmPow(f,2)*(r[l]+s[l])+bmPow(f,3)*r[l],m[l]=p,null!==y&&(d+=bmPow(m[l]-y[l],2));v+=d=bmSqrt(d),b.points[u]=new i(d,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,u=!0;u;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),u=!1):o+=c,o<0||o>=i-1){if(o===i-1)return r[o];u=!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,u=n.lengths,l=0;for(e=0;e<c-1;e+=1)u[e]=r(o[e],o[e+1],a[e],s[e+1]),l+=u[e].addedLength;return i&&c&&(u[e]=r(o[e],o[0],a[e],s[0]),l+=u[e].addedLength),n.totalLength=l,n},getNewSegment:function(e,r,n,i,o,a,u){o<0?o=0:o>1&&(o=1);var l,h=s(o,u),p=s(a=a>1?1:a,u),f=e.length,d=1-h,m=1-p,g=d*d*d,v=h*d*d*3,y=h*h*d*3,b=h*h*h,w=d*d*m,E=h*d*m+d*h*m+d*d*p,_=h*h*m+d*h*p+h*d*p,A=h*h*p,C=d*m*m,S=h*m*m+d*p*m+d*m*p,x=h*p*m+d*p*p+h*m*p,D=h*p*p,O=m*m*m,P=p*m*m+m*p*m+m*m*p,I=p*p*m+m*p*p+p*m*p,k=p*p*p;for(l=0;l<f;l+=1)c[4*l]=t.round(1e3*(g*e[l]+v*n[l]+y*i[l]+b*r[l]))/1e3,c[4*l+1]=t.round(1e3*(w*e[l]+E*n[l]+_*i[l]+A*r[l]))/1e3,c[4*l+2]=t.round(1e3*(C*e[l]+S*n[l]+x*i[l]+D*r[l]))/1e3,c[4*l+3]=t.round(1e3*(O*e[l]+P*n[l]+I*i[l]+k*r[l]))/1e3;return c},getPointInSegment:function(e,r,n,i,o,a){var c=s(o,a),u=1-c;return[t.round(1e3*(u*u*u*e[0]+(c*u*u+u*c*u+u*u*c)*n[0]+(c*c*u+u*c*c+c*u*c)*i[0]+c*c*c*r[0]))/1e3,t.round(1e3*(u*u*u*e[1]+(c*u*u+u*c*u+u*u*c)*n[1]+(c*c*u+u*c*c+c*u*c)*i[1]+c*c*c*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(r,n,i,o,a,s,c,u,l){if(0===i&&0===s&&0===l)return e(r,n,o,a,c,u);var h,p=t.sqrt(t.pow(o-r,2)+t.pow(a-n,2)+t.pow(s-i,2)),f=t.sqrt(t.pow(c-r,2)+t.pow(u-n,2)+t.pow(l-i,2)),d=t.sqrt(t.pow(c-o,2)+t.pow(u-a,2)+t.pow(l-s,2));return(h=p>f?p>d?p-f-d:d-f-p:d>f?d-f-p:f-p-d)>-1e-4&&h<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,u,l,h,p,f,d=e.lastIndex,m=d,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),d=0;break}if(a.t-i>t){d=m;break}m<g-1?m+=1:(d=0,v=!1)}s=this.keyframesMetadata[m]||{};var y,b,w,E,_,A,C,S,x,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(u=I.points[k].point.length,c=0;c<u;c+=1)r[c]=I.points[k].point[c]}else{s.__fnct?f=s.__fnct:(f=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,s.__fnct=f),l=f((t-P)/(O-P));var T,R=I.segmentLength*l,F=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(p=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,v=!0,h=I.points.length;v;){if(F+=I.points[p].partialLength,0===R||0===l||p===I.points.length-1){for(u=I.points[p].point.length,c=0;c<u;c+=1)r[c]=I.points[p].point[c];break}if(R>=F&&R<F+I.points[p+1].partialLength){for(T=(R-F)/I.points[p+1].partialLength,u=I.points[p].point.length,c=0;c<u;c+=1)r[c]=I.points[p].point[c]+(I.points[p+1].point[c]-I.points[p].point[c])*T;break}p<h-1?p+=1:v=!1}e._lastPoint=p,e._lastAddedLength=F-I.points[p].partialLength,e._lastKeyframeIndex=m}}else{var M,N,B,j,L;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=[],u=t[0],l=t[1],h=t[2],p=t[3],f=e[0],d=e[1],m=e[2],g=e[3];return(i=u*f+l*d+h*m+p*g)<0&&(i=-i,f=-f,d=-d,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*u+s*f,c[1]=a*l+s*d,c[2]=a*h+s*m,c[3]=a*p+s*g,c}(n(o.s),n(y),(t-P)/(O-P)),E=w[0],_=w[1],A=w[2],C=w[3],S=Math.atan2(2*_*C-2*E*A,1-2*_*_-2*A*A),x=Math.asin(2*E*_+2*A*C),D=Math.atan2(2*E*C-2*_*A,1-2*E*E-2*A*A),b[0]=S/degToRads,b[1]=x/degToRads,b[2]=D/degToRads}else for(m=0;m<g;m+=1)1!==o.h&&(t>=O?l=1:t<P?l=0:(o.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[m]?f=s.__fnct[m]:(M=void 0===o.o.x[m]?o.o.x[0]:o.o.x[m],N=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],j=void 0===o.i.y[m]?o.i.y[0]:o.i.y[m],f=BezierFactory.getBezierEasing(M,N,B,j).get,s.__fnct[m]=f)):s.__fnct?f=s.__fnct:(M=o.o.x,N=o.o.y,B=o.i.x,j=o.i.y,f=BezierFactory.getBezierEasing(M,N,B,j).get,o.keyframeMetadata=f),l=f((t-P)/(O-P)))),y=a.s||o.e,L=1===o.h?o.s[m]:o.s[m]+(y[m]-o.s[m])*l,"multidimensional"===this.propType?r[m]=L:r=L}return e.lastIndex=d,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),u=Math.sin(n/2);return[s*c*a+i*o*u,s*o*a+i*c*u,i*c*a-s*o*u,i*o*a-s*c*u]}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 u(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 l(e,n,c,u){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=u,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 h(e,n,c,u){var l;this.propType="multidimensional";var h,p,f,d,m=n.k.length;for(l=0;l<m-1;l+=1)n.k[l].to&&n.k[l].s&&n.k[l+1]&&n.k[l+1].s&&(h=n.k[l].s,p=n.k[l+1].s,f=n.k[l].to,d=n.k[l].ti,(2===h.length&&(h[0]!==p[0]||h[1]!==p[1])&&bez.pointOnLine2D(h[0],h[1],p[0],p[1],h[0]+f[0],h[1]+f[1])&&bez.pointOnLine2D(h[0],h[1],p[0],p[1],p[0]+d[0],p[1]+d[1])||3===h.length&&(h[0]!==p[0]||h[1]!==p[1]||h[2]!==p[2])&&bez.pointOnLine3D(h[0],h[1],h[2],p[0],p[1],p[2],h[0]+f[0],h[1]+f[1],h[2]+f[2])&&bez.pointOnLine3D(h[0],h[1],h[2],p[0],p[1],p[2],p[0]+d[0],p[1]+d[1],p[2]+d[2]))&&(n.k[l].to=null,n.k[l].ti=null),h[0]===p[0]&&h[1]===p[1]&&0===f[0]&&0===f[1]&&0===d[0]&&0===d[1]&&(2===h.length||h[2]===p[2]&&0===f[2]&&0===d[2])&&(n.k[l].to=null,n.k[l].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=u,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),l=0;l<g;l+=1)this.v[l]=t,this.pv[l]=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 u(t,e,n,i);else switch(r){case 0:o=new l(t,e,n,i);break;case 1:o=new h(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,u,l,h,p=r.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)n=f[0].s[0],o=!0,p=0;else if(t>=f[f.length-1].t-this.offsetTime)n=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],o=!0;else{for(var d,m,g,v=p,y=f.length-1,b=!0;b&&(d=f[v],!((m=f[v+1]).t-this.offsetTime>t));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},p=v,!(o=1===d.h)){if(t>=m.t-this.offsetTime)l=1;else if(t<d.t-this.offsetTime)l=0;else{var w;g.__fnct?w=g.__fnct:(w=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,g.__fnct=w),l=w((t-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))}i=m.s?m.s[0]:d.e[0]}n=d.s[0]}for(c=e._length,u=n.i[0].length,r.lastIndex=p,a=0;a<c;a+=1)for(s=0;s<u;s+=1)h=o?n.i[a][s]:n.i[a][s]+(i.i[a][s]-n.i[a][s])*l,e.i[a][s]=h,h=o?n.o[a][s]:n.o[a][s]+(i.o[a][s]-n.o[a][s])*l,e.o[a][s]=h,h=o?n.v[a][s]:n.v[a][s]+(i.v[a][s]-n.v[a][s])*l,e.v[a][s]=h}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 u=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}(),l=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,u=this.os.v,l=this.is.v,h=2*Math.PI*s/(2*i),p=2*Math.PI*c/(2*i),f=-Math.PI/2;f+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){r=a?u:l,n=a?h:p;var m=(e=a?s:c)*Math.cos(f),g=e*Math.sin(f),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*d,g-y*n*r*d,m+v*n*r*d,g+y*n*r*d,t,!0),a=!a,f+=o*d}},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),u=n*Math.sin(a),l=0===c&&0===u?0:u/Math.sqrt(c*c+u*u),h=0===c&&0===u?0:-c/Math.sqrt(c*c+u*u);c+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(c,u,c-l*o*i*s,u-h*o*i*s,c+l*o*i*s,u+h*o*i*s,t,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),h=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 h(t,e):6===r?n=new u(t,e):7===r&&(n=new l(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 u(t,e){return this._t(1,e,t,1,0,0)}function l(t,e){return this.shear(r(t),r(e))}function h(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 p(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 f(t,e,r,n,i,o,a,s,c,u,l,h,p,f,d,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]=u,this.props[10]=l,this.props[11]=h,this.props[12]=p,this.props[13]=f,this.props[14]=d,this.props[15]=m,this}function d(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,u,l,h,p,f,d,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===u&&1===l&&0===h)return g[12]=g[12]*t+g[15]*p,g[13]=g[13]*o+g[15]*f,g[14]=g[14]*l+g[15]*d,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],w=g[3],E=g[4],_=g[5],A=g[6],C=g[7],S=g[8],x=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*p,g[1]=v*e+y*o+b*u+w*f,g[2]=v*r+y*a+b*l+w*d,g[3]=v*n+y*s+b*h+w*m,g[4]=E*t+_*i+A*c+C*p,g[5]=E*e+_*o+A*u+C*f,g[6]=E*r+_*a+A*l+C*d,g[7]=E*n+_*s+A*h+C*m,g[8]=S*t+x*i+D*c+O*p,g[9]=S*e+x*o+D*u+O*f,g[10]=S*r+x*a+D*l+O*d,g[11]=S*n+x*s+D*h+O*m,g[12]=P*t+I*i+k*c+T*p,g[13]=P*e+I*o+k*u+T*f,g[14]=P*r+I*a+k*l+T*d,g[15]=P*n+I*s+k*h+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 E(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function _(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function A(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function C(){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 S(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function x(t){var e,r=t.length,n=[];for(e=0;e<r;e+=1)n[e]=S(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],u=this.props[13];n[0]=t[0]*i+t[1]*a+c,n[1]=t[0]*o+t[1]*s+u,n[2]=e[0]*i+e[1]*a+c,n[3]=e[0]*o+e[1]*s+u,n[4]=r[0]*i+r[1]*a+c,n[5]=r[0]*o+r[1]*s+u}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=l,this.skewFromAxis=h,this.shear=u,this.scale=p,this.setTransform=f,this.translate=d,this.transform=m,this.applyToPoint=w,this.applyToX=E,this.applyToY=_,this.applyToZ=A,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=x,this.inversePoint=S,this.getInverseMatrix=C,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=[],u=o.length;for(a=0;a<u;a+=1){var l,h;(s=o[a]).e*i<n||s.s*i>n+r||(l=s.s*i<=n?0:(s.s*i-n)/r,h=s.e*i>=n+r?1:(s.e*i-n)/r,c.push([l,h]))}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,u,l,h,p=this.shapes.length,f=0;if(r===e)for(i=0;i<p;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<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var d,m,g=[];for(i=0;i<p;i+=1)if((d=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(c=(n=d.shape.paths)._length,h=0,!d.shape._mdf&&d.pathsData.length)h=d.totalShapeLength;else{for(u=this.releasePathsData(d.pathsData),s=0;s<c;s+=1)l=bez.getSegmentsLength(n.shapes[s]),u.push(l),h+=l.totalLength;d.totalShapeLength=h,d.pathsData=u}f+=h,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var v,y=e,b=r,w=0;for(i=p-1;i>=0;i-=1)if((d=this.shapes[i]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&p>1?(v=this.calculateShapeEdges(e,r,d.totalShapeLength,w,f),w+=d.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:d.totalShapeLength*y,e:d.totalShapeLength*b}):y>=1?g.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(b-1)}):(g.push({s:d.totalShapeLength*y,e:d.totalShapeLength}),g.push({s:0,e:d.totalShapeLength*(b-1)}));var E=this.addShapes(d,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var _=E.pop();this.addPaths(E,m),E=this.addShapes(d,g[1],_)}else this.addPaths(E,m),E=this.addShapes(d,g[1]);this.addPaths(E,m)}}d.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,u,l,h=t.pathsData,p=t.shape.paths.shapes,f=t.shape.paths._length,d=0,m=[],g=!0;for(r?(s=r._length,l=r._length):(r=shapePool.newElement(),s=0,l=0),m.push(r),n=0;n<f;n+=1){for(c=h[n].lengths,r.c=p[n].c,o=p[n].c?c.length:c.length+1,i=1;i<o;i+=1)if(d+(a=c[i-1]).addedLength<e.s)d+=a.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[i],p[n].v[i],r,s,g),g=!1):(u=bez.getNewSegment(p[n].v[i-1],p[n].v[i],p[n].o[i-1],p[n].i[i],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,c[i-1]),this.addSegmentFromArray(u,r,s,g),g=!1,r.c=!1),d+=a.addedLength,s+=1}if(p[n].c&&c.length){if(a=c[i-1],d<=e.e){var v=c[i-1].addedLength;e.s<=d&&e.e>=d+v?(this.addSegment(p[n].v[i-1],p[n].o[i-1],p[n].i[0],p[n].v[0],r,s,g),g=!1):(u=bez.getNewSegment(p[n].v[i-1],p[n].v[0],p[n].o[i-1],p[n].i[0],(e.s-d)/v,(e.e-d)/v,c[i-1]),this.addSegmentFromArray(u,r,s,g),g=!1,r.c=!1)}else r.c=!1;d+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[l][0],r.v[l][1],"i",l),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;n<f-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,u,l,h,p=shapePool.newElement();for(p.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,u=t.o[o][1]+(n[1]-t.o[o][1])*-r,l=t.i[o][0]+(n[0]-t.i[o][0])*-r,h=t.i[o][1]+(n[1]-t.i[o][1])*-r,p.setTripleAt(a,s,c,u,l,h,o);return p},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,u=e[0]+Math.cos(r)*n*i,l=e[1]-Math.sin(r)*n*i;t.setTripleAt(u,l,u+Math.cos(s)*o,l-Math.sin(s)*o,u+Math.cos(c)*a,l-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],u=e.v[0===r?e._length-1:r-1],l=e.v[(r+1)%e._length],h=2===o?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,p=2===o?Math.sqrt(Math.pow(c[0]-l[0],2)+Math.pow(c[1]-l[1],2)):0;setPoint(t,e.v[r%e._length],s,a,n,p/(2*(i+1)),h/(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,u=e.normalAngle(s);setPoint(t,e.point(s),u,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 u=lineIntersection(r,n,i,o);null===u&&(u=n);var l=lineIntersection(a,s,i,o);return null===l&&(l=a),new PolynomialBezier(r,u,l,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,u=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),l=u?pointDistance(u,o):pointDistance(o,a)/2,h=polarOffset(o,s,2*l*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(a,c,2*l*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],h[0],h[1],t.length()),a}var p=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 p&&pointDistance(p,o)<i?(t.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],t.length()),p):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 u={it:this.cloneElements(this._elements),ty:"gr"};u.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,u),this._groups.splice(0,0,u),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 l=this.elemsData[n].it,h=l[l.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}o+=1}this._currentCopies=c;var p=this.o.v,f=p%1,d=p>0?Math.floor(p):Math.ceil(p),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(p>0){for(;w<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),w+=f)}else if(p<0){for(;w>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),w-=f)}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,u,l,h,p,f,d,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],u=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,e)/c:0,l=d=i[0]+(s[0]-i[0])*u,h=m=i[1]-(i[1]-s[1])*u,p=l-(l-i[0])*roundCorner,f=h-(h-i[1])*roundCorner,n.setTripleAt(l,h,p,f,d,m,v),v+=1,s=r===g-1?t.v[0]:t.v[r+1],u=(c=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(c/2,e)/c:0,l=p=i[0]+(s[0]-i[0])*u,h=f=i[1]+(s[1]-i[1])*u,d=l-(l-i[0])*roundCorner,m=h-(h-i[1])*roundCorner,n.setTripleAt(l,h,p,f,d,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,u=Math.max(0,Math.round(this.frequency.v)),l=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,u,l));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 u=[];for(o=0;o<c;o+=1)s=PolynomialBezier.shapeSegment(t,o),u.push(offsetSegmentSplit(s,e));if(!t.c)for(o=c-1;o>=0;o-=1)s=PolynomialBezier.shapeSegmentInverted(t,o),u.push(offsetSegmentSplit(s,e));u=pruneIntersections(u);var l=null,h=null;for(o=0;o<u.length;o+=1){var p=u[o];for(h&&(l=joinLines(i,h,p[0],r,n)),h=p[p.length-1],a=0;a<p.length;a+=1)s=p[a],l&&pointEqual(s.points[0],l)?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()),l=s.points[3]}return u.length&&joinLines(i,h,u[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,u=this.miterLimit.v,l=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,l,u));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,u,l=!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&&(l=!1),l){var h=createTag("style");h.setAttribute("f-forigin",n[r].fOrigin),h.setAttribute("f-origin",n[r].origin),h.setAttribute("f-family",n[r].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[r].fFamily+"; font-style: normal; src: url('"+n[r].fPath+"');}",e.appendChild(h)}}else if("g"===n[r].fOrigin||1===n[r].origin){for(c=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<c.length;u+=1)-1!==c[u].href.indexOf(n[r].fPath)&&(l=!1);if(l){var p=createTag("link");p.setAttribute("f-forigin",n[r].fOrigin),p.setAttribute("f-origin",n[r].origin),p.type="text/css",p.rel="stylesheet",p.href=n[r].fPath,document.body.appendChild(p)}}else if("t"===n[r].fOrigin||2===n[r].origin){for(c=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<c.length;u+=1)n[r].fPath===c[u].src&&(l=!1);if(l){var f=createTag("link");f.setAttribute("f-forigin",n[r].fOrigin),f.setAttribute("f-origin",n[r].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",n[r].fPath),e.appendChild(f)}}}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,u,l,h,p,f=this.masksProperties,d=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(n=0;n<a;n+=1)if(("a"!==f[n].mode&&"n"!==f[n].mode||f[n].inv||100!==f[n].o.k||f[n].o.x)&&(v="mask",y="mask"),"s"!==f[n].mode&&"i"!==f[n].mode||0!==d?u=null:((u=createNS("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),m.push(u)),i=createNS("path"),"n"===f[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),elem:i,lastPath:""},o.appendChild(i);else{var b;if(d+=1,i.setAttribute("fill","s"===f[n].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==f[n].x.k?(v="mask",y="mask",p=PropertyFactory.getProp(this.element,f[n].x,0,null,this.element),b=createElementID(),(l=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),l.appendChild(h),o.appendChild(l),i.setAttribute("stroke","s"===f[n].mode?"#000000":"#ffffff")):(h=null,p=null),this.storedData[n]={elem:i,x:p,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===f[n].mode){c=m.length;var w=createNS("g");for(s=0;s<c;s+=1)w.appendChild(m[s]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",g+"_"+d),E.appendChild(i),o.appendChild(E),w.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+d+")"),m.length=0,m.push(w)}else m.push(i);f[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,f[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[n],3),invRect:u},this.viewData[n].prop.k||this.drawPath(f[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]);d>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 u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),r.appendChild(u);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),u.appendChild(l),this.globalData.defs.appendChild(r);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),c.appendChild(h),(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(h),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 u=createNS(1===t.t?"linearGradient":"radialGradient");u.setAttribute("id",s),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var l=this.stops;for(n=4*t.g.p;n<i;n+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(r),l.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=u,this.ms=o,this.ost=l,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,u,l,h,p,f,d,m,g=n.styles.length,v=n.lvl;for(l=0;l<g;l+=1){if(c=n.sh._mdf||i,n.styles[l].lvl<v){for(p=e.reset(),d=v-n.styles[l].lvl,m=n.transformers.length-1;!c&&d>0;)c=n.transformers[m].mProps._mdf||c,d-=1,m-=1;if(c)for(d=v-n.styles[l].lvl,m=n.transformers.length-1;d>0;)f=n.transformers[m].mProps.v.props,p.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),d-=1,m-=1}else p=t;if(a=(h=n.sh.paths)._length,c){for(s="",o=0;o<a;o+=1)(u=h.shapes[o])&&u._length&&(s+=buildShapeString(u,u._length,u.c,p));n.caches[l]=s}else s=n.caches[l];n.styles[l].d+=!0===r.hd?"":s,n.styles[l]._mdf=c||n.styles[l]._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,u=e.g._hasOpacity,l=e.s.v,h=e.e.v;if(e.o._mdf||r){var p="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(p,e.o.v)}if(e.s._mdf||r){var f=1===t.t?"x1":"cx",d="x1"===f?"y1":"cy";c.setAttribute(f,l[0]),c.setAttribute(d,l[1]),u&&!e.g._collapsable&&(e.of.setAttribute(f,l[0]),e.of.setAttribute(d,l[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(u&&(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",h[0]),c.setAttribute("y2",h[1]),u&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||r)&&(s=Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)),c.setAttribute("r",s),u&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||r){s||(s=Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)));var v=Math.atan2(h[1]-l[1],h[0]-l[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+l[0],E=Math.sin(v+e.a.v)*b+l[1];c.setAttribute("fx",w),c.setAttribute("fy",E),u&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",E))}}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,u,l,h,p,f=[].concat(o),d=t.length-1,m=[],g=[];for(s=d;s>=0;s-=1){if((p=this.searchProcessedElement(t[s]))?e[s]=r[p-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)p?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(p)for(u=e[s].it.length,c=0;c<u;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,f,a),t[s]._render&&e[s].gr.parentNode!==n&&n.appendChild(e[s].gr)}else"tr"===t[s].ty?(p||(e[s]=this.createTransformElement(t[s],n)),l=e[s].transform,f.push(l)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(p||(e[s]=this.createShapeElement(t[s],f,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?(p?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===t[s].ty&&(p?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),a=!1),g.push(h));this.addProcessedElement(t[s],s+1)}for(d=m.length,s=0;s<d;s+=1)m[s].closed=!0;for(d=g.length,s=0;s<d;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,u=this.data,l=[],h=0,p=u.m.g,f=0,d=0,m=0,g=[],v=0,y=0,b=c.getFontByName(t.f),w=0,E=getFontProperties(b);t.fWeight=E.weight,t.fStyle=E.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var _,A=t.tr/1e3*t.finalSize;if(t.sz)for(var C,S,x=!0,D=t.sz[0],O=t.sz[1];x;){C=0,v=0,r=(S=this.buildFinalText(t.t)).length,A=t.tr/1e3*t.finalSize;var P=-1;for(e=0;e<r;e+=1)_=S[e].charCodeAt(0),n=!1," "===S[e]?P=e:13!==_&&3!==_||(v=0,n=!0,C+=t.finalLineHeight||1.2*t.finalSize),c.chars?(s=c.getCharData(S[e],b.fStyle,b.fFamily),w=n?0:s.w*t.finalSize/100):w=c.measureText(S[e],t.f,t.finalSize),v+w>D&&" "!==S[e]?(-1===P?r+=1:e=P,C+=t.finalLineHeight||1.2*t.finalSize,S.splice(e,P===e?1:0,"\r"),P=-1,v=0):(v+=w,v+=A);C+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&O<C?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=S,r=t.finalText.length,x=!1)}v=-A,w=0;var I,k=0;for(e=0;e<r;e+=1)if(n=!1,13===(_=(I=t.finalText[e]).charCodeAt(0))||3===_?(k=0,g.push(v),y=v>y?v:y,v=-2*A,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+A:(v+=w+A+k,k=0),l.push({l:w,an:w,add:f,n,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==p){if(f+=w,""===i||" "===i||e===r-1){for(""!==i&&" "!==i||(f-=w);d<=e;)l[d].an=f,l[d].ind=h,l[d].extra=w,d+=1;h+=1,f=0}}else if(3==p){if(f+=w,""===i||e===r-1){for(""===i&&(f-=w);d<=e;)l[d].an=f,l[d].ind=h,l[d].extra=w,d+=1;f=0,h+=1}}else l[h].ind=h,l[h].extra=0,h+=1;if(t.l=l,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,M,N=u.a;a=N.length;var B=[];for(o=0;o<a;o+=1){for((T=N[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),M=0,F=T.s.b,e=0;e<r;e+=1)(R=l[e]).anIndexes[o]=M,(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(M),M+=1);u.a[o].s.totalChars=M;var j,L=-1;if(1===T.s.rn)for(e=0;e<r;e+=1)L!=(R=l[e]).anIndexes[o]&&(L=R.anIndexes[o],j=B.splice(Math.floor(Math.random()*B.length),1)[0]),R.anIndexes[o]=j}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,u=0,l=this.finalS,h=this.finalE,p=this.data.sh;if(2===p)u=c(u=h===l?n>=h?1:0:t(0,e(.5/(h-l)+(n-l)/(h-l),1)));else if(3===p)u=c(u=h===l?n>=h?0:1:1-t(0,e(.5/(h-l)+(n-l)/(h-l),1)));else if(4===p)h===l?u=0:(u=t(0,e(.5/(h-l)+(n-l)/(h-l),1)))<.5?u*=2:u=1-2*(u-.5),u=c(u);else if(5===p){if(h===l)u=0;else{var f=h-l,d=-f/2+(n=e(t(0,n+.5-l),h-l)),m=f/2;u=Math.sqrt(1-d*d/(m*m))}u=c(u)}else 6===p?(h===l?u=0:(n=e(t(0,n+.5-l),h-l),u=(1+Math.cos(Math.PI+2*Math.PI*n/(h-l)))/2),u=c(u)):(n>=r(l)&&(u=t(0,e(n-l<0?e(h,1)-(l-n):h-n,1))),u=c(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;u<v?u=0:(u=(u-v)/g)>1&&(u=1)}return u*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,u,l,h,p,f,d,m,g,v,y,b,w,E=this._moreOptions.alignment.v,_=this._animatorsData,A=this._textData,C=this.mHelper,S=this._renderType,x=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,p=0,h=1,u=0,l=!0,m=a.segments,s<0&&w.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),h=(d=m[p=m.length-1].points).length-1;s<0;)s+=d[h].partialLength,(h-=1)<0&&(h=(d=m[p-=1].points).length-1);f=(d=m[p].points)[h-1],g=(c=d[h]).partialLength}o=D.length,r=0,n=0;var I,k,T,R,F,M=1.2*t.finalSize*.714,N=!0;T=_.length;var B,j,L,V,z,U,H,G,q,W,Y,X,$=-1,Q=s,K=p,Z=h,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=_[k].a).t.propType&&(at&&2===t.j&&(nt+=I.t.v*it),(F=_[k].s.getMult(D[i].anIndexes[k],A.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(C.reset(),V=1,D[i].n)r=0,n+=t.yOffset,n+=N?1:0,s=Q,N=!1,this._hasMaskedPath&&(h=Z,f=(d=m[p=K].points)[h-1],g=(c=d[h]).partialLength,u=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+=E[0]*D[i].an*.005;var st=0;for(k=0;k<T;k+=1)(I=_[k].a).p.propType&&((F=_[k].s.getMult(D[i].anIndexes[k],A.a[k].s.totalChars)).length?st+=I.p.v[0]*F[0]:st+=I.p.v[0]*F),I.a.propType&&((F=_[k].s.getMult(D[i].anIndexes[k],A.a[k].s.totalChars)).length?st+=I.a.v[0]*F[0]:st+=I.a.v[0]*F);for(l=!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);l;)u+g>=s+st||!d?(y=(s+st-u)/c.partialLength,j=f.point[0]+(c.point[0]-f.point[0])*y,L=f.point[1]+(c.point[1]-f.point[1])*y,C.translate(-E[0]*D[i].an*.005,-E[1]*M*.01),l=!1):d&&(u+=c.partialLength,(h+=1)>=d.length&&(h=0,m[p+=1]?d=m[p].points:w.v.c?(h=0,d=m[p=0].points):(u-=c.partialLength,d=null)),d&&(f=c,g=(c=d[h]).partialLength));B=D[i].an/2-D[i].add,C.translate(-B,0,0)}else B=D[i].an/2-D[i].add,C.translate(-B,0,0),C.translate(-E[0]*D[i].an*.005,-E[1]*M*.01,0);for(k=0;k<T;k+=1)(I=_[k].a).t.propType&&(F=_[k].s.getMult(D[i].anIndexes[k],A.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=_[k].a).a.propType&&((F=_[k].s.getMult(D[i].anIndexes[k],A.a[k].s.totalChars)).length?C.translate(-I.a.v[0]*F[0],-I.a.v[1]*F[1],I.a.v[2]*F[2]):C.translate(-I.a.v[0]*F,-I.a.v[1]*F,I.a.v[2]*F));for(k=0;k<T;k+=1)(I=_[k].a).s.propType&&((F=_[k].s.getMult(D[i].anIndexes[k],A.a[k].s.totalChars)).length?C.scale(1+(I.s.v[0]-1)*F[0],1+(I.s.v[1]-1)*F[1],1):C.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=_[k].a,F=_[k].s.getMult(D[i].anIndexes[k],A.a[k].s.totalChars),I.sk.propType&&(F.length?C.skewFromAxis(-I.sk.v*F[0],I.sa.v*F[1]):C.skewFromAxis(-I.sk.v*F,I.sa.v*F)),I.r.propType&&(F.length?C.rotateZ(-I.r.v*F[2]):C.rotateZ(-I.r.v*F)),I.ry.propType&&(F.length?C.rotateY(I.ry.v*F[1]):C.rotateY(I.ry.v*F)),I.rx.propType&&(F.length?C.rotateX(I.rx.v*F[0]):C.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=_[k].a).p.propType&&(F=_[k].s.getMult(D[i].anIndexes[k],A.a[k].s.totalChars),this._hasMaskedPath?F.length?C.translate(0,I.p.v[1]*F[0],-I.p.v[2]*F[1]):C.translate(0,I.p.v[1]*F,-I.p.v[2]*F):F.length?C.translate(I.p.v[0]*F[0],I.p.v[1]*F[1],-I.p.v[2]*F[2]):C.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(C.translate(0,-t.ls),C.translate(0,E[1]*M*.01+n,0),this._pathData.p.v){b=(c.point[1]-f.point[1])/(c.point[0]-f.point[0]);var ct=180*Math.atan(b)/Math.PI;c.point[0]<f.point[0]&&(ct+=180),C.rotate(-ct*Math.PI/180)}C.translate(j,L,0),s-=E[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(C.translate(r,n,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(D[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[i].line]),0,0);break;case 2:C.translate(D[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[i].line])/2,0,0)}C.translate(0,-t.ls),C.translate(B,0,0),C.translate(E[0]*D[i].an*.005,E[1]*M*.01,0),r+=D[i].l+.001*t.tr*t.finalSize}"html"===S?tt=C.toCSS():"svg"===S?tt=C.to2dCSS():et=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],X=V}x<=i?(R=new LetterProps(X,q,W,Y,tt,et),this.renderedLetters.push(R),x+=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 u=this.mHelper,l=this.data.singleShape,h=0,p=0,f=!0,d=.001*r.tr*r.finalSize;if(!l||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||!l||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(u.reset(),l&&(s[t].n&&(h=-d,p+=r.yOffset,p+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(r,u,s[t].line,h,p),h+=s[t].l||0,h+=d),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 l&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}l&&a&&a.setAttribute("d","")}else{var E=this.textContainer,_="start";switch(r.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}E.setAttribute("text-anchor",_),E.setAttribute("letter-spacing",d);var A=this.buildTextContents(r.finalText);for(e=A.length,p=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=A[t],a.setAttribute("x",0),a.setAttribute("y",p),a.style.display="inherit",E.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,p+=r.finalLineHeight;this.layerElement.appendChild(E)}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,u,l,h=t.length-1,p=[],f=[],d=[].concat(i);for(o=h;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],d),p.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,d)}else"tr"===t[o].ty?(c||(l=this.createTransformElement(t[o]),e[o]=l),d.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?(u=e[o]).closed=!1:((u=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=u,this.shapeModifiers.push(u)),f.push(u)):"rp"===t[o].ty&&(c?(u=e[o]).closed=!0:(u=ShapeModifiers.getModifier(t[o].ty),e[o]=u,u.init(this,t,o,e),this.shapeModifiers.push(u),n=!1),f.push(u));this.addProcessedElement(t[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),h=f.length,o=0;o<h;o+=1)f[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,u=this.stylesList.length,l=this.globalData.renderer,h=this.globalData.canvasContext;for(t=0;t<u;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(l.save(),o=c.elements,"st"===s||"gs"===s?(h.strokeStyle="st"===s?c.co:c.grd,h.lineWidth=c.wi,h.lineCap=c.lc,h.lineJoin=c.lj,h.miterLimit=c.ml||0):h.fillStyle="fl"===s?c.co:c.grd,l.ctxOpacity(c.coOp),"st"!==s&&"gs"!==s&&h.beginPath(),l.ctxTransform(c.preTransforms.finalTransform.props),r=o.length,e=0;e<r;e+=1){for("st"!==s&&"gs"!==s||(h.beginPath(),c.da&&(h.setLineDash(c.da),h.lineDashOffset=c.do)),i=(a=o[e].trNodes).length,n=0;n<i;n+=1)"m"===a[n].t?h.moveTo(a[n].p[0],a[n].p[1]):"c"===a[n].t?h.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]):h.closePath();"st"!==s&&"gs"!==s||(h.stroke(),c.da&&h.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&h.fill(c.r),l.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 u=a.shapes[i];if(u&&u.v){for(n=u._length,r=1;r<n;r+=1)1===r&&o.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),o.push({t:"c",pts:c.applyToTriplePoints(u.o[r-1],u.i[r],u.v[r])});1===n&&o.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&n&&(o.push({t:"c",pts:c.applyToTriplePoints(u.o[r-1],u.i[0],u.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 u=Math.sqrt(Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)),l=Math.atan2(c[1]-s[1],c[0]-s[0]),h=e.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var p=u*h,f=Math.cos(l+e.a.v)*p+s[0],d=Math.sin(l+e.a.v)*p+s[1];n=a.createRadialGradient(f,d,0,s[0],s[1],u)}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,u,l,h,p,f,d,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,E=0,_=!0,A=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,E+=t.yOffset,E+=_?1:0,_=!1),h=(u=a.shapes?a.shapes[0].it:[]).length,v.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,v,g[n].line,w,E),f=createSizedArray(h-1);var C=0;for(l=0;l<h;l+=1)if("sh"===u[l].ty){for(c=u[l].ks.k.i.length,p=u[l].ks.k,d=[],s=1;s<c;s+=1)1===s&&d.push(v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),d.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[s][0],p.i[s][1],0),v.applyToY(p.i[s][0],p.i[s][1],0),v.applyToX(p.v[s][0],p.v[s][1],0),v.applyToY(p.v[s][0],p.v[s][1],0));d.push(v.applyToX(p.o[s-1][0],p.o[s-1][1],0),v.applyToY(p.o[s-1][0],p.o[s-1][1],0),v.applyToX(p.i[0][0],p.i[0][1],0),v.applyToY(p.i[0][0],p.i[0][1],0),v.applyToX(p.v[0][0],p.v[0][1],0),v.applyToY(p.v[0][0],p.v[0][1],0)),f[C]=d,C+=1}y&&(w+=g[n].l,w+=b),this.textSpans[A]?this.textSpans[A].elem=f:this.textSpans[A]={elem:f},A+=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,u=this.textProperty.currentData.l;e=u.length;var l,h,p=null,f=null,d=null;for(t=0;t<e;t+=1)if(!u[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?p!==s.fc&&(p=s.fc,a.fillStyle=s.fc):p!==this.values.fill&&(p=this.values.fill,a.fillStyle=this.values.fill),n=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(h=l[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?d!==s.sw&&(d=s.sw,a.lineWidth=s.sw):d!==this.values.sWidth&&(d=this.values.sWidth,a.lineWidth=this.values.sWidth),s&&s.sc?f!==s.sc&&(f=s.sc,a.strokeStyle=s.sc):f!==this.values.stroke&&(f=this.values.stroke,a.strokeStyle=this.values.stroke),n=(l=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<n;r+=1)for(o=(h=l[r]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<o;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[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",u=c.substr(0,4),l=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"===u&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===u&&(o<i&&"meet"===s||o>i&&"slice"===s)?(r-this.transformCanvas.w*(n/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(o>i&&"meet"===s||o<i&&"slice"===s)?(n-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(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,u=s._length;if(!(u<=1)){for(r=0;r<u-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,u,l,h=[[t[0],n[0]],[t[1],n[1]]],p=0;p<2;++p)o=6*t[p]-12*e[p]+6*r[p],i=-3*t[p]+9*e[p]-9*r[p]+3*n[p],a=3*e[p]-3*t[p],o|=0,a|=0,0==(i|=0)&&0===o||(0===i?(s=-a/o)>0&&s<1&&h[p].push(this.calculateF(s,t,e,r,n,p)):(c=o*o-4*a*i)>=0&&((u=(-o+bmSqrt(c))/(2*i))>0&&u<1&&h[p].push(this.calculateF(u,t,e,r,n,p)),(l=(-o-bmSqrt(c))/(2*i))>0&&l<1&&h[p].push(this.calculateF(l,t,e,r,n,p))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[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,u,l,h=t.l;i=h.length;var p,f=this.mHelper,d="",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]?l=(u=this.textSpans[m]).children[0]:((u=createTag("div")).style.lineHeight=0,(l=createNS("svg")).appendChild(c),styleDiv(u)))):this.isMasked?c=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(u=this.textSpans[m],c=this.textPaths[m]):(styleDiv(u=createTag("span")),styleDiv(c=createTag("span")),u.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,f.reset(),g&&g.shapes&&g.shapes.length&&(p=g.shapes[0].it,f.scale(t.finalSize/100,t.finalSize/100),d=this.createPathShape(f,p),c.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(u),g&&g.shapes){document.body.appendChild(l);var y=l.getBBox();l.setAttribute("width",y.width+2),l.setAttribute("height",y.height+2),l.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=l.style,w="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=w,b.webkitTransform=w,h[n].yOffset=y.y-1}else l.setAttribute("width",1),l.setAttribute("height",1);u.appendChild(l)}}else if(c.textContent=h[n].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(u);var E=c.style,_="translate3d(0,"+-t.finalSize/1.2+"px,0)";E.transform=_,E.webkitTransform=_}this.isMasked?this.textSpans[m]=c:this.textSpans[m]=u,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,u=this.textProperty.currentData.l;for(n=u.length,r=0;r<n;r+=1)u[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 l=this.innerElem.getBBox();if(this.currentBBox.w!==l.width&&(this.currentBBox.w=l.width,this.svgElement.setAttribute("width",l.width)),this.currentBBox.h!==l.height&&(this.currentBBox.h=l.height,this.svgElement.setAttribute("height",l.height)),this.currentBBox.w!==l.width+2||this.currentBBox.h!==l.height+2||this.currentBBox.x!==l.x-1||this.currentBBox.y!==l.y-1){this.currentBBox.w=l.width+2,this.currentBBox.h=l.height+2,this.currentBBox.x=l.x-1,this.currentBBox.y=l.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=h,t.webkitTransform=h}}}},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),u=Math.atan2(a[0],-a[2]);this.mat.rotateY(u).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 l=!this._prevMat.equals(this.mat);if((l||this.pe._mdf)&&this.comp.threeDElements){var h,p,f;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(h=this.comp.threeDElements[t]).type){if(l){var d=this.mat.toCSS();(f=h.container.style).transform=d,f.webkitTransform=d}this.pe._mdf&&((p=h.perspectiveElem.style).perspective=this.pe.v+"px",p.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(u){var l;function h(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return l;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=a,h.applyPoint=o,h.toWorld=r,h.toWorldVec=e,h.fromWorld=i,h.fromWorldVec=n,h.toComp=r,h.fromComp=s,h.sampleImage=c,h.sourceRectAtTime=u.sourceRectAtTime.bind(u),h._elem=u;var p=getDescriptor(l=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(l,"rotation"),scale:getDescriptor(l,"scale"),position:getDescriptor(l,"position"),opacity:getDescriptor(l,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return l}},active:{get:function(){return u.isInRange}}}),h.startTime=u.data.st,h.index=u.data.ind,h.source=u.data.refId,h.height=0===u.data.ty?u.data.h:100,h.width=0===u.data.ty?u.data.w:100,h.inPoint=u.data.ip/u.comp.globalData.frameRate,h.outPoint=u.data.op/u.comp.globalData.frameRate,h._name=u.data.nm,h.registerMaskInterface=function(t){h.mask=new MaskManagerInterface(t,u)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),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?u[n]:u[n]();n+=1}throw new Error}var s,c=propertyGroupFactory(a,i),u=[],l=r.ef.length;for(s=0;s<l;s+=1)5===r.ef[s].ty?u.push(t(r.ef[s],n.effectElements[s],n.effectElements[s].propertyGroup,o)):u.push(e(n.effectElements[s],r.ef[s].ty,o,c));return"ADBE Color Control"===r.mn&&Object.defineProperty(a,"color",{get:function(){return u[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,p){var f,d=[],m=t?t.length:0;for(f=0;f<m;f+=1)"gr"===t[f].ty?d.push(e(t[f],a[f],p)):"fl"===t[f].ty?d.push(r(t[f],a[f],p)):"st"===t[f].ty?d.push(i(t[f],a[f],p)):"tm"===t[f].ty?d.push(o(t[f],a[f],p)):"tr"===t[f].ty||("el"===t[f].ty?d.push(s(t[f],a[f],p)):"sr"===t[f].ty?d.push(c(t[f],a[f],p)):"sh"===t[f].ty?d.push(ShapePathInterface(t[f],a[f],p)):"rc"===t[f].ty?d.push(u(t[f],a[f],p)):"rd"===t[f].ty?d.push(l(t[f],a[f],p)):"rp"===t[f].ty?d.push(h(t[f],a[f],p)):"gf"===t[f].ty?d.push(n(t[f],a[f],p)):d.push((t[f],a[f],function(){return null})));return d}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(u,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 u(t){return"Color"===t||"color"===t?u.color:"Opacity"===t||"opacity"===t?u.opacity:"Stroke Width"===t||"stroke width"===t?u.strokeWidth:null}return Object.defineProperties(u,{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)),u}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 u(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 l(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 h(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 u(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 l(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function h(t,e){var r,n=[],i=_typeof$1(t);if(e&&"object"==i)for(r in t)try{n.push(h(t[r],e-1))}catch(t){}return n.length?n:"string"==i?t:t+"\0"}function p(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 f(e)}function f(t){return String.fromCharCode.apply(0,t)}e["seed"+i]=function(c,d,m){var g=[],v=p(h((d=!0===d?{entropy:!0}:d||{}).entropy?[c,f(t)]:null===c?function(){try{var e=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(e),f(e)}catch(e){var i=r.navigator,o=i&&i.plugins;return[+new Date,r,o,r.screen,f(t)]}}():c,3),g),y=new u(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,p(f(y.S),t),(d.pass||m||function(t,r,n,o){return o&&(o.S&&l(o,y),t.state=function(){return l(y,{})}),n?(e[i]=t,r):t})(b,v,"global"in d?d.global:this==e,d.state)},p(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 u=a-s;switch(r=c>.5?u/(2-a-s):u/(a+s),a){case n:e=(i-o)/u+(i<o?6:0);break;case i:e=(o-n)/u+2;break;case o:e=(n-i)/u+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,u=createTypedArray("float32",c);for(a=0;a<c;a+=1)u[a]=n[a]+(i[a]-n[a])*s;return u}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,u=[0,0];for(i=0;i<o;i+=1)s=e&&e[i]?e[i]:u,c=r&&r[i]?r[i]:u,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),u=createTypedArray("float32",i);if(i>1){for(n=0;n<i;n+=1)u[n]=this.pv[n]+o[n]+(-e+2*e*BMMath.random())*c;return u}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,u=createTypedArray("float32",c);for(s=0;s<c;s+=1)u[s]=(o[s]-i[s])*a+i[s];return u}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,u=this.keyframes,l=u[u.length-1].t;if(c<=l)return this.pv;if(r?i=l-(n=e?Math.abs(l-this.elem.comp.globalData.frameRate*e):Math.max(0,l-this.elem.data.ip)):((!e||e>u.length-1)&&(e=u.length-1),n=l-(i=u[u.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 h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(l/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((c-i)%n+i)/this.comp.globalData.frameRate,0),d=Math.floor((c-i)/n);if(this.pv.length){for(a=(s=new Array(h.length)).length,o=0;o<a;o+=1)s[o]=(p[o]-h[o])*d+f[o];return s}return(p-h)*d+f}if("continue"===t){var m=this.getValueAtTime(l/this.comp.globalData.frameRate,0),g=this.getValueAtTime((l-.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-l)/this.comp.globalData.frameRate)/5e-4;return s}return m+(c-l)/.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,u=this.keyframes,l=u[0].t;if(c>=l)return this.pv;if(r?i=l+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-l)):((!e||e>u.length-1)&&(e=u.length-1),n=(i=u[e].t)-l),"pingpong"===t){if(Math.floor((l-c)/n)%2==0)return this.getValueAtTime(((l-c)%n+l)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(l/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime((n-(l-c)%n+l)/this.comp.globalData.frameRate,0),d=Math.floor((l-c)/n)+1;if(this.pv.length){for(a=(s=new Array(h.length)).length,o=0;o<a;o+=1)s[o]=f[o]-(p[o]-h[o])*d;return s}return f-(p-h)*d}if("continue"===t){var m=this.getValueAtTime(l/this.comp.globalData.frameRate,0),g=this.getValueAtTime((l+.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])*(l-c)/.001;return s}return m+(m-g)*(l-c)/.001}}return this.getValueAtTime((n-((l-c)%n+l))/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),u=this.rx.getValueAtTime(t),l=this.or.getValueAtTime(t);e.rotateZ(-s*this.rz.mult).rotateY(c*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-l[2]*this.or.mult).rotateY(l[1]*this.or.mult).rotateX(l[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(t),p=this.py.getValueAtTime(t);if(this.data.p.z){var f=this.pz.getValueAtTime(t);e.translate(h*this.px.mult,p*this.py.mult,-f*this.pz.mult)}else e.translate(h*this.px.mult,p*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[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 u=a(n,i,o,s,c);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=t,u.loopIn=e,u.smooth=r,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===i.a?i.k.length:0,u.propertyIndex=i.ix;var l=0;return 0!==o&&(l=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:l},expressionHelpers.searchExpressions(n,i,u),u.k&&c.addDynamicProperty(u),u};var s=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.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,u=0;s<c;){if(u+o[s].addedLength>a){var l=s,h=r.c&&s===c-1?0:s+1,p=(a-u)/o[s].addedLength;n=bez.getPointInSegment(r.v[l],r.v[h],r.o[l],r.i[h],p,o[s]);break}u+=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([u],s),extendPrototype([u],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 l=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,n,i){var o=l(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 u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=u,t.appendChild(u);var l=createNS("feComposite");l.setAttribute("in",n+"_drop_shadow_3"),l.setAttribute("in2",n+"_drop_shadow_2"),l.setAttribute("operator","in"),l.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(l);var h=this.createMergeNode(n,[n+"_drop_shadow_4",i]);t.appendChild(h)}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 u,l=c*(s-a),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(l/h);for(u=0;u<p;u+=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 f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[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),u=Math.max(t,e),l=Array.call(null,{length:256}),h=0,p=i-n,f=e-t;s<=256;)a=(o=s/256)<=c?f<0?i:n:o>=u?f<0?n:i:n+p*Math.pow((o-t)/f,1/r),l[h]=a,h+=1,s+=256/255;return l.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=u,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,u.prototype),e}function u(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 p(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.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 d(e.buffer,e.byteOffset,e.byteLength)}return f(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 d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Q(t,SharedArrayBuffer)||t&&Q(t.buffer,SharedArrayBuffer)))return d(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 u.from(n,e,r);var i=function(t){if(u.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):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.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 h(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 p(t){return h(t),c(t<0?0:0|m(t))}function f(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 d(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,u.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(u.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 x(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=u.from(e,n)),u.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 u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var h=!0,p=0;p<c;p++)if(u(t,o+p)!==u(e,p)){h=!1;break}if(h)return o}return-1}function E(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 _(t,e,r,n){return $(Y(e,t.length-r),t,r,n)}function A(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 C(t,e,r,n){return $(X(e),t,r,n)}function S(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 x(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,u=void 0,l=void 0,h=void 0;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(c=t[i+1]))&&(h=(31&o)<<6|63&c)>127&&(a=h);break;case 3:c=t[i+1],u=t[i+2],128==(192&c)&&128==(192&u)&&(h=(15&o)<<12|(63&c)<<6|63&u)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:c=t[i+1],u=t[i+2],l=t[i+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(h=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&h<1114112&&(a=h)}}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)}u.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}}(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return h(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)},u.allocUnsafe=function(t){return p(t)},u.allocUnsafeSlow=function(t){return p(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(Q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.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},u.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}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(Q(o,Uint8Array))i+o.length>n.length?(u.isBuffer(o)||(o=u.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else{if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.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},u.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},u.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},u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?D(this,0,t):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.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&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(Q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.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),l=t.slice(e,r),h=0;h<s;++h)if(c[h]!==l[h]){o=c[h],a=l[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},u.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 E(this,t,e,r);case"utf8":case"utf-8":return _(this,t,e,r);case"ascii":case"latin1":case"binary":return A(this,t,e,r);case"base64":return C(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.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(!u.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 M(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 N(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 j(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 L(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}u.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,u.prototype),n},u.prototype.readUintLE=u.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},u.prototype.readUintBE=u.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},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.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]},u.prototype.readUint32BE=u.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])},u.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))})),u.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)})),u.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},u.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},u.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.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},u.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},u.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},u.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]},u.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))})),u.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)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.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},u.prototype.writeUintBE=u.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},u.prototype.writeUint8=u.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},u.prototype.writeUint16LE=u.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},u.prototype.writeUint16BE=u.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},u.prototype.writeUint32LE=u.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},u.prototype.writeUint32BE=u.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},u.prototype.writeBigUInt64LE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return N(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.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},u.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},u.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},u.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},u.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},u.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},u.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},u.prototype.writeBigInt64LE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=J((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return N(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return j(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return j(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.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},u.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&&!u.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=u.isBuffer(t)?t:u.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"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$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},f=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(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),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(s&&t.length>0&&!i.call(t,0))for(var m=0;m<t.length;++m)p.push(String(m));if(n&&t.length>0)for(var g=0;g<t.length;++g)p.push(String(g));else for(var v in t)d&&"prototype"===v||!i.call(t,v)||p.push(String(v));if(c)for(var y=function(t){if("undefined"==typeof window||!f)return h(t);try{return h(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)y&&"constructor"===l[b]||!i.call(t,l[b])||p.push(l[b]);return p}}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,u=Object.prototype.hasOwnProperty,l=void 0===(a=Array.from)?function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e}:a;function h(t){var e=t.unsubscribe;"function"==typeof e&&(t.unsubscribe=void 0,e())}var p=[];function f(t,e){if(!t)throw new Error(e||"assertion failure")}function d(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 f(!this.recomputing,"already recomputing"),g(this),y(this)?function(t,e){return S(t),c.withValue(t,v,[t,e]),function(t,e){if("function"==typeof t.subscribe)try{h(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),d(t.value)}(this,t):d(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this),h(this))},t.prototype.dispose=function(){var t=this;this.setDirty(),S(this),E(this,(function(e,r){e.setDirty(),x(e,t)}))},t.prototype.forget=function(){this.dispose()},t.prototype.dependOn=function(t){t.add(this),this.deps||(this.deps=p.pop()||new Set),this.deps.add(t)},t.prototype.forgetDeps=function(){var t=this;this.deps&&(l(this.deps).forEach((function(e){return e.delete(t)})),this.deps.clear(),p.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,t):A(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){E(t,_)}function w(t){E(t,A)}function E(t,e){var r=t.parents.size;if(r)for(var n=l(t.parents),i=0;i<r;++i)e(n[i],t)}function _(t,e){f(t.childValues.has(e)),f(y(e));var r=!y(t);if(t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=p.pop()||new Set;t.dirtyChildren.add(e),r&&b(t)}function A(t,e){f(t.childValues.has(e)),f(!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()),C(t,e),y(t)||w(t)}function C(t,e){var r=t.dirtyChildren;r&&(r.delete(e),0===r.size&&(p.length<100&&p.push(r),t.dirtyChildren=null))}function S(t){t.childValues.size>0&&t.childValues.forEach((function(e,r){x(t,r)})),t.forgetDeps(),f(null===t.dirtyChildren)}function x(t,e){e.parents.delete(t),t.childValues.delete(e),C(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&&(h(i),i.unsubscribe=r(t))}}return n.dirty=function(t,r){var n=e.get(t);if(n){var i=r&&u.call(D,r)?r:"setDirty";l(n).forEach((function(t){return t[i]()})),e.delete(t),h(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 u(t){var e=r.get(t);if(e)return e.peek()}function l(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=u,o.peek=function(){return u(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(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=[],u=!1,l=-1;function h(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){var t=a(h);u=!0;for(var e=c.length;e;){for(s=c,c=[];++l<e;)s&&s[l].run();l=-1,e=c.length}s=null,u=!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 f(t,e){this.fun=t,this.array=e}function d(){}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 f(t,e)),1!==c.length||u||a(p)},f.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=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,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:()=>l,XA:()=>h,ZT:()=>i,_T:()=>a,ev:()=>p,gn:()=>s,mG:()=>u,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 u(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 l(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 h(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 p(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,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),h=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)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]"===l(t)}function y(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function E(t){return"[object ArrayBuffer]"===l(t)}function _(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function A(t){return"[object DataView]"===l(t)}function C(t){return"undefined"!=typeof DataView&&(A.working?A(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)||C(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)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=_,A.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=C;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(t){return"[object SharedArrayBuffer]"===l(t)}function D(t){return void 0!==S&&(void 0===x.working&&(x.working=x(new S)),x.working?x(t):t instanceof S)}function O(t){return g(t,h)}function P(t){return g(t,p)}function I(t){return g(t,f)}function k(t){return c&&g(t,d)}function T(t){return u&&g(t,m)}e.isSharedArrayBuffer=D,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(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&&(_(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(l(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)||!A(s)?o+=" "+s:o+=" "+l(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 u={"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;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+u+"$","i")}function l(t,r){var n={seen:[],stylize:p};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),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=h),f(n,t,n.depth)}function h(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function p(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return w(i)||(i=f(t,i,n)),i}var o=function(t,e){if(E(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)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(x(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(_(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(C(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var u,l="",h=!1,p=["{","}"];return g(r)&&(h=!0,p=["[","]"]),x(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(l=" "+RegExp.prototype.toString.call(r)),C(r)&&(l=" "+Date.prototype.toUTCString.call(r)),S(r)&&(l=" "+d(r)),0!==a.length||h&&0!=r.length?n<0?_(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=h?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,h)})),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]}(u,l,p)):p[0]+l+p[1]}function d(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)?f(t,c.value,null):f(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")),E(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 E(t){return void 0===t}function _(t){return A(t)&&"[object RegExp]"===D(t)}function A(t){return"object"==typeof t&&null!==t}function C(t){return A(t)&&"[object Date]"===D(t)}function S(t){return A(t)&&("[object Error]"===D(t)||t instanceof Error)}function x(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=l,l.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]},l.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,e.isRegExp=_,e.types.isRegExp=_,e.isObject=A,e.isDate=C,e.types.isDate=C,e.isError=S,e.types.isNativeError=S,e.isFunction=x,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||!A(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)(),u="undefined"==typeof globalThis?r.g:globalThis,l=i(),h=o("String.prototype.slice"),p={},f=Object.getPrototypeOf;c&&a&&f&&n(l,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=f(e),n=a(r,Symbol.toStringTag);if(!n){var i=f(r);n=a(i,Symbol.toStringTag)}p[t]=n.get}}}));var d=r(11438);t.exports=function(t){return!!d(t)&&(c&&Symbol.toStringTag in t?function(t){var e=!1;return n(p,(function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}})),e}(t):h(s(t),8,-1))}},10847:(t,e,r)=>{"use strict";r.d(e,{__:()=>l});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,l=`${t.name}:${a}:${c}\n`,h=n.split(/\r\n|[\n\r]/g),p=h[i];if(p.length>120){const t=Math.floor(c/80),e=c%80,r=[];for(let t=0;t<p.length;t+=80)r.push(p.slice(t,t+80));return l+u([[`${a} |`,r[0]],...r.slice(1,t+1).map((t=>["|",t])),["|","^".padStart(e)],["|",r[t+1]]])}return l+u([[a-1+" |",h[i-1]],[`${a} |`,p],["|","^".padStart(c)],[`${a+1} |`,h[i+1]]])}function u(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 l extends Error{constructor(t,...e){var r,i,o;const{nodes:s,source:c,positions:u,path:p,originalError:f,extensions:d}=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!=p?p:void 0,this.originalError=null!=f?f:void 0,this.nodes=h(Array.isArray(s)?s:s?[s]:void 0);const m=h(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!=u?u:null==m?void 0:m.map((t=>t.start)),this.locations=u&&c?u.map((t=>a(c,t))):null==m?void 0:m.map((t=>a(t.source,t.start)));const g=(0,n.y)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(o=null!=d?d: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!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):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 h(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,u=t.endsWith("\\"),l=c||u,h=!(null!=e&&e.minimize)&&(!o||t.length>70||l||a||s);let p="";const f=o&&(0,n.FD)(t.charCodeAt(0));return(h&&!f||a)&&(p+="\n"),p+=r,(h||l)&&(p+="\n"),'"""'+p+'"""'}},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),u=r(34627),l=r(60930),h=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 p{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 f(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function d(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):A(t,a)}if((0,h.X1)(e)||45===e)return E(t,a,e);if((0,h.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 (\")?":f(e)||d(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(f(t))++i;else{if(!d(r,i))break;i+=2}}return y(t,o.COMMENT,e,i,r.slice(e+1,i))}function E(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,h.X1)(s))throw i(t.source,a,`Invalid number, unexpected digit after 0: ${v(t,a)}.`)}else a=_(t,a,s),s=n.charCodeAt(a);if(46===s&&(c=!0,s=n.charCodeAt(++a),a=_(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=_(t,a,s),s=n.charCodeAt(a)),46===s||(0,h.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 _(t,e,r){if(!(0,h.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,h.X1)(n.charCodeAt(o));)++o;return o}function A(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(f(n))++a;else{if(!d(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)?C(t,a):S(t,a):O(t,a);c+=e.value,a+=e.size,s=a}}throw i(t.source,a,"Unterminated string.")}function C(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||!f(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 S(t,e){const r=t.source.body,n=x(r,e+2);if(f(n))return{value:String.fromCodePoint(n),size:6};if(m(n)&&92===r.charCodeAt(e+6)&&117===r.charCodeAt(e+7)){const t=x(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 x(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,u="";const h=[];for(;s<n;){const n=r.charCodeAt(s);if(34===n&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)){u+=r.slice(c,s),h.push(u);const n=y(t,o.BLOCK_STRING,e,s+3,(0,l.wv)(h).join("\n"));return t.line+=h.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(f(n))++s;else{if(!d(r,s))throw i(t.source,s,`Invalid character within String: ${v(t,s)}.`);s+=2}else u+=r.slice(c,s),h.push(u),13===n&&10===r.charCodeAt(s+1)?s+=2:++s,u="",c=s,a=s;else u+=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,h.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 p(r),this._options=e,this._tokenCounter=0}parseName(){const t=this.expectToken(o.NAME);return this.node(t,{kind:u.h.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:u.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:u.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:u.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:u.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:u.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:u.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:u.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:u.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:u.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:u.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:u.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:u.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:u.h.INT,value:e.value});case o.FLOAT:return this.advanceLexer(),this.node(e,{kind:u.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:u.h.BOOLEAN,value:!0});case"false":return this.node(e,{kind:u.h.BOOLEAN,value:!1});case"null":return this.node(e,{kind:u.h.NULL});default:return this.node(e,{kind:u.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:u.h.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:u.h.LIST,values:this.any(o.BRACKET_L,(()=>this.parseValueLiteral(t)),o.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:u.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:u.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:u.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:u.h.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:u.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.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 ${M(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 M(t.kind)+(null!=e?` "${e}"`:"")}function M(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,u)}const u={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>l(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=p("(",l(t.variableDefinitions,", "),")"),r=l([t.operation,l([t.name,e]),l(t.directives," ")]," ");return("query"===r?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+p(" = ",r)+p(" ",l(n," "))},SelectionSet:{leave:({selections:t})=>h(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const o=p("",t,": ")+e;let a=o+p("(",l(r,", "),")");return a.length>80&&(a=o+p("(\n",f(l(r,"\n")),"\n)")),l([a,l(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+p(" ",l(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>l(["...",p("on ",t),l(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${p("(",l(r,", "),")")} on ${e} ${p("",l(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})=>"["+l(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+l(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+p("(",l(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>p("",t,"\n")+l(["schema",l(e," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>p("",t,"\n")+l(["scalar",e,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>p("",t,"\n")+l(["type",e,p("implements ",l(r," & ")),l(n," "),h(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>p("",t,"\n")+e+(d(r)?p("(\n",f(l(r,"\n")),"\n)"):p("(",l(r,", "),")"))+": "+n+p(" ",l(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>p("",t,"\n")+l([e+": "+r,p("= ",n),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>p("",t,"\n")+l(["interface",e,p("implements ",l(r," & ")),l(n," "),h(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>p("",t,"\n")+l(["union",e,l(r," "),p("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>p("",t,"\n")+l(["enum",e,l(r," "),h(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>p("",t,"\n")+l([e,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>p("",t,"\n")+l(["input",e,l(r," "),h(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>p("",t,"\n")+"directive @"+e+(d(r)?p("(\n",f(l(r,"\n")),"\n)"):p("(",l(r,", "),")"))+(n?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>l(["extend schema",l(t," "),h(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>l(["extend scalar",t,l(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>l(["extend type",t,p("implements ",l(e," & ")),l(r," "),h(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>l(["extend interface",t,p("implements ",l(e," & ")),l(r," "),h(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>l(["extend union",t,l(e," "),p("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>l(["extend enum",t,l(e," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>l(["extend input",t,l(e," "),h(r)]," ")}};function l(t,e=""){var r;return null!==(r=null==t?void 0:t.filter((t=>t)).join(e))&&void 0!==r?r:""}function h(t){return p("{\n",f(l(t,"\n")),"\n}")}function p(t,e,r=""){return null!=e&&""!==e?t+e+r:""}function f(t){return p(" ",t.replace(/\n/g,"\n "))}function d(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,u(e,t));let l,h,p,f=Array.isArray(t),d=[t],m=-1,g=[],v=t;const y=[],b=[];do{m++;const t=m===d.length,a=t&&0!==g.length;if(t){if(h=0===b.length?void 0:y[y.length-1],v=p,p=b.pop(),a)if(f){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=l.index,d=l.keys,g=l.edits,f=l.inArray,l=l.prev}else if(p){if(h=f?m:d[m],v=p[h],null==v)continue;y.push(h)}let u;if(!Array.isArray(v)){var w,E;(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===(E=c.get(v.kind))||void 0===E?void 0:E.enter;if(u=null==r?void 0:r.call(e,v,h,p,y,b),u===s)break;if(!1===u){if(!t){y.pop();continue}}else if(void 0!==u&&(g.push([h,u]),!t)){if(!(0,o.UG)(u)){y.pop();continue}v=u}}var _;void 0===u&&a&&g.push([h,v]),t?y.pop():(l={inArray:f,index:m,keys:d,edits:g,prev:l},f=Array.isArray(v),d=f?v:null!==(_=r[v.kind])&&void 0!==_?_:[],m=-1,g=[],p&&b.push(p),p=v)}while(void 0!==l);return 0!==g.length?g[g.length-1][1]:t}function u(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:()=>A,RC:()=>w,RI:()=>l,ig:()=>_,j:()=>E,jS:()=>m,jp:()=>v,kJ:()=>p,lg:()=>g,uG:()=>f});var n=r(41100),i=r(84319),o=r(32345),a=r(37304),s=r(85098),c=r(74483),u=r(7122),l=Object.prototype.hasOwnProperty;function h(t){return null==t}var p=Array.isArray;function f(t,e){var r=t.__typename,n=t.id,i=t._id;if("string"==typeof r&&(e&&(e.keyObject=h(n)?h(i)?void 0:{_id:i}:{id:n}),h(n)&&!h(i)&&(n=i),!h(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var d={dataIdFromObject:f,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(t){return(0,n.o)(d,t)}function g(t){var e=t.canonizeResults;return void 0===e?d.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)&&(p(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 l.call(e,n)&&(!t.selectionSet||w(t.selectionSet,e[n],r))}return!0})))}function E(t){return(0,o.s)(t)&&!(0,i.Yk)(t)&&!p(t)}function _(){return new s.w0}function A(t,e){var r=(0,c.F)((0,u.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:()=>ft});var n=r(171),i=r(85979),o=r(92013),a=r(64579),s=r(67938),c=r(48185),u=r(84319),l=r(45117),h=r(34627),p=r(42860),f=r(41100),d=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),E=r(65110),_=Object.create(null),A=function(){return _},C=Object.create(null),S=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,u.Yk)(t)?r.get(t.__ref,e):t&&t[e])},this.canRead=function(t){return(0,u.Yk)(t)?r.has(t.__ref):"object"==typeof t},this.toReference=function(t,e){if("string"==typeof t)return(0,u.kQ)(t);if((0,u.Yk)(t))return t;var n=r.policies.identify(t)[0];if(n){var i=(0,u.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),E.RI.call(this.data,t)){var r=this.data[t];if(r&&E.RI.call(r,e))return r[e]}return"__typename"===e&&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"),E.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,u.Yk)(t)&&(t=t.__ref),(0,u.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.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:_,INVALIDATE:C,isReference:u.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(e,n){return r.policies.readField("string"==typeof e?{fieldName:e,from:n||(0,u.kQ)(t)}:e,{store:r})}};if(Object.keys(i).forEach((function(u){var l=(0,E.E_)(u),h=i[u];if(void 0!==h){var p="function"==typeof e?e:e[u]||e[l];if(p){var f=p===A?_:p(b(h),(0,n.pi)((0,n.pi)({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));f===C?r.group.dirty(t,u):(f===_&&(f=void 0),f!==h&&(o[u]=f,a=!0,h=f))}void 0!==h&&(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]=A,n):A)}return!1},t.prototype.evict=function(t,e){var r=!1;return t.id&&(E.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){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&&E.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){E.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(!E.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,u.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}(),x=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(p.mr)},t.prototype.depend=function(t,e){if(this.d){this.d(D(t,e));var r=(0,E.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 x(i))||this;return a.stump=new I(a),a.storageTrie=new w.B(p.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}(S||(S={}));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 E.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}(S),I=function(t){function e(e){return t.call(this,"EntityStore.Stump",e,(function(){}),new x(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 S&&t.group.caching)}var R=r(85068);function F(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var M=function(){function t(t){var e=this;this.knownResults=new(p.mr?WeakMap:Map),this.config=(0,f.o)(t,{addTypename:!1!==t.addTypename,canonizeResults:(0,E.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,u.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,l=void 0===s||s,h=t.canonizeResults,p=void 0===h?this.config.canonizeResults:h,f=this.config.cache.policies;a=(0,n.pi)((0,n.pi)({},(0,d.O4)((0,d.iW)(r))),a);var m,g=(0,u.kQ)(o),v=this.executeSelectionSet({selectionSet:(0,d.p$)(r).selectionSet,objectOrReference:g,enclosingRef:g,context:(0,n.pi)({store:e,query:r,policies:f,variables:a,varString:(0,R.B)(a),canonizeResults:p},(0,E.Is)(r,this.config.fragments))});if(v.missing&&(m=[new c.y(N(v.missing),v.missing,r,a)],!l))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,u.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,p=a.policies,f=a.store.getFieldValue(n,"__typename"),d=[],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 f&&!p.rootIdsByTypename[f]&&d.push({__typename:f});var _=new Set(r.selections);_.forEach((function(t){var r,m;if((0,g.LZ)(t,c))if((0,u.My)(t)){var b=p.readField({fieldName:t.name.value,field:t,variables:a.variables,from:n},a),A=(0,u.u2)(t);void 0===b?l.Gw.added(t)||(s=y.merge(s,((r={})[A]="Can't find field '".concat(t.name.value,"' on ").concat((0,u.Yk)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,E.kJ)(b)?b=w(e.executeSubSelectedArray({field:t,array:b,enclosingRef:o,context:a}),A):t.selectionSet?null!=b&&(b=w(e.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:b,enclosingRef:(0,u.Yk)(b)?b:o,context:a}),A)):a.canonizeResults&&(b=e.canon.pass(b)),void 0!==b&&d.push(((m={})[A]=b,m))}else{var C=(0,v.hi)(t,a.lookupFragment);if(!C&&t.kind===h.h.FRAGMENT_SPREAD)throw __DEV__?new i.ej("No fragment named ".concat(t.name.value)):new i.ej(5);C&&p.fragmentMatches(C,f)&&C.selectionSet.selections.forEach(_.add,_)}}));var A={result:(0,m.bw)(d),missing:s},C=a.canonizeResults?this.canon.admit(A):b(A);return C.result&&this.knownResults.set(C.result,r),C},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 l(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,E.kJ)(t)?l(r.executeSubSelectedArray({field:n,array:t,enclosingRef:a,context:s}),e):n.selectionSet?l(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:t,enclosingRef:(0,u.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,u.Yk)(r),"Missing selection set for object of type ".concat((0,E.jp)(t,r)," returned for query field ").concat(e.name.value)):(0,i.kG)(!(0,u.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 N(t){try{JSON.stringify(t,(function(t,e){if("string"==typeof e)throw e;return e}))}catch(t){return t}}var B=r(16022),j=r(41809),L=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&&E.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&&E.RI.call(i,a)){var s=t.slice(0);return s[0]=a,X(i,s)}}else if(n&&(0,j.O)(n.directives)){var c=r.slice(1),l=n.directives.find((function(t){return t.name.value===c})),h=l&&(0,u.NC)(l,i);return h&&X(h,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,E.kJ)(e)?(W(e).forEach((function(t){return r.push(n.concat(t))})),n.length=0):(n.push(e),(0,E.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,E.kJ)(e)?e.map((function(e){return t(e,n)})):e&&r(e,n)}),t))}function $(t){return(0,y.s)(t)?(0,E.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,u.NC)(t.field,t.variables):null}u.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:E.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})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var h=l(t,c);if(!(0,E.kJ)(h)){a=h;break}l=H(h)}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),E.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,E.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,u=i.merge;n.keyFn=!1===s?Z:(0,E.kJ)(s)?G(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),a(n,u)}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(E.$O);n&&n[0]===t||e.fuzzySubtypes.set(t,new RegExp(t))}))}))},t.prototype.getTypePolicy=function(t){var e=this;if(!E.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],u=function(t){var e=o.getSupertypeSet(t,!1);e&&e.size&&c.indexOf(e)<0&&c.push(e)},l=!(!r||!this.fuzzySubtypes.size),h=!1,p=0;p<c.length;++p){var f=c[p];if(f.has(a))return s.has(a)||(h&&__DEV__&&i.kG.warn("Inferring subtype ".concat(e," of supertype ").concat(a)),s.add(a)),!0;f.forEach(u),l&&p===c.length-1&&(0,E.RC)(t.selectionSet,r,n)&&(l=!1,h=!0,this.fuzzySubtypes.forEach((function(t,r){var n=e.match(t);n&&n[0]===e&&u(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,E.kJ)(c)){e=c||n;break}o=G(c)}return void 0===e&&(e=t.field?(0,u.vf)(t.field,t.variables):(0,u.PT)(n,Q(t))),!1===e?n:n===(0,E.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.E_)(i),a=e.store.getFieldValue(r,i),s=this.getFieldPolicy(t.typename,o,!1),c=s&&s.read;if(c){var l=rt(this,r,t,e,e.store.getStorage((0,u.Yk)(r)?r.__ref:r,i));return V.ab.withValue(this.cache,c,[a,l])}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.E_)(o),s=r.variables||n.variables,c=n.store,l=c.toReference,h=c.canRead;return{args:Q(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:u.Yk,toReference:l,storage:i,cache:t.cache,canRead:h,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],u=t[1],l=t.length;return"string"==typeof c?o={fieldName:c,from:l>1?u:e}:(o=(0,n.pi)({},c),E.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,L.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,E.kJ)(e)||(0,E.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,u.Yk)(e)&&(0,E.j)(r))return t.merge(e.__ref,r),e;if((0,E.j)(e)&&(0,u.Yk)(r))return t.merge(e,r.__ref),r;if((0,E.j)(e)&&(0,E.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,l=e.variables,h=e.overwrite,p=(0,d.$H)(o),f=(0,E.ig)();l=(0,n.pi)((0,n.pi)({},(0,d.O4)(p)),l);var m=(0,n.pi)((0,n.pi)({store:t,written:Object.create(null),merge:function(t,e){return f.merge(t,e)},variables:l,varString:(0,R.B)(l)},(0,E.Is)(o,this.fragments)),{overwrite:!!h,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),g=this.processSelectionSet({result:s||Object.create(null),dataId:c,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:m});if(!(0,u.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,l=(0,u.kQ)(n);if(s&&s.map.size){var h=r.applyMerges(s,l,o,m);if((0,u.Yk)(h))return;o=h}if(__DEV__&&!m.overwrite){var p=Object.create(null);c.forEach((function(t){t.selectionSet&&(p[t.name.value]=!0)})),Object.keys(o).forEach((function(t){(function(t){return!0===p[(0,E.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,u.Yk)(s)&&!(0,a.D)(s,c)&&!Object.keys(s).every((function(t){return void 0!==n.getFieldValue(c,t)}))){var l=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),h=(0,E.E_)(r),p="".concat(l,".").concat(h);if(!pt.has(p)){pt.add(p);var f=[];(0,E.kJ)(s)||(0,E.kJ)(c)||[s,c].forEach((function(t){var e=n.getFieldValue(t,"__typename");"string"!=typeof e||f.includes(e)||f.push(e)})),__DEV__&&i.kG.warn("Cache data may be lost when replacing the ".concat(h," field of a ").concat(l," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(p," 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"))}}}}(l,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,h=this.cache.policies,p=Object.create(null),f=r&&h.rootTypenamesById[r]||(0,u.qw)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(p.__typename=f);var d=function(){var t=nt(arguments,p,s.variables);if((0,u.Yk)(t.from)){var e=s.incomingById.get(t.from.__ref);if(e){var r=h.readField((0,n.pi)((0,n.pi)({},t),{from:e.storeObject}),s);if(void 0!==r)return r}}return h.readField(t,s)},m=new Set;this.flattenFields(a,o,s,f).forEach((function(t,r){var n,a=(0,u.u2)(r),s=o[a];if(m.add(r),void 0!==s){var g=h.getStoreFieldName({typename:f,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,u.Yk)(y)||(0,E.j)(y))&&(b=d("__typename",y));var w=h.getMergeFunction(f,r.name.value,b);w?v.info={field:r,typename:f,merge:w}:ht(c,g),p=t.merge(p,((n={})[g]=y,n))}else!__DEV__||t.clientOnly||t.deferred||l.Gw.added(r)||h.getReadFunction(f,r.name.value)||__DEV__&&i.kG.error("Missing field '".concat((0,u.u2)(r),"' while writing result ").concat(JSON.stringify(o,null,2)).substring(0,1e3))}));try{var g=h.identify(o,{typename:f,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:p,readField:d}),v=g[0],y=g[1];r=r||v,y&&(p=s.merge(p,y))}catch(t){if(!r)throw t}if("string"==typeof r){var b=(0,u.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 _=s.incomingById.get(r);return _?(_.storeObject=s.merge(_.storeObject,p),_.mergeTree=ut(_.mergeTree,c),m.forEach((function(t){return _.fieldNodeSet.add(t)}))):s.incomingById.set(r,{storeObject:p,mergeTree:lt(c)?void 0:c,fieldNodeSet:m}),b}return p},t.prototype.processFieldValue=function(t,e,r,n){var i=this;return e.selectionSet&&null!==t?(0,E.kJ)(t)?t.map((function(t,o){var a=i.processFieldValue(t,e,r,ct(n,o));return ht(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,u.qw)(e,t,r.fragmentMap));var o=new Map,a=this.cache.policies,s=new w.B(!1);return function t(c,l){var p=s.lookup(c,l.clientOnly,l.deferred);p.visited||(p.visited=!0,c.selections.forEach((function(s){if((0,g.LZ)(s,r.variables)){var c=l.clientOnly,p=l.deferred;if(c&&p||!(0,j.O)(s.directives)||s.directives.forEach((function(t){var e=t.name.value;if("client"===e&&(c=!0),"defer"===e){var n=(0,u.NC)(t,r.variables);n&&!1===n.if||(p=!0)}})),(0,u.My)(s)){var f=o.get(s);f&&(c=c&&f.clientOnly,p=p&&f.deferred),o.set(s,ot(r,c,p))}else{var d=(0,v.hi)(s,r.lookupFragment);if(!d&&s.kind===h.h.FRAGMENT_SPREAD)throw __DEV__?new i.ej("No fragment named ".concat(s.name.value)):new i.ej(8);d&&a.fragmentMatches(d,n,e,r.variables)&&t(d.selectionSet,ot(r,c,p))}}})))}(t,r),o},t.prototype.applyMerges=function(t,e,r,o,a){var s,c=this;if(t.map.size&&!(0,u.Yk)(r)){var l,h=(0,E.kJ)(r)||!(0,u.Yk)(e)&&!(0,E.j)(e)?void 0:e,p=r;h&&!a&&(a=[(0,u.Yk)(h)?h.__ref:h]);var f=function(t,e){return(0,E.kJ)(t)?"number"==typeof e?t[e]:void 0:o.store.getFieldValue(t,String(e))};t.map.forEach((function(t,e){var r=f(h,e),n=f(p,e);if(void 0!==n){a&&a.push(e);var s=c.applyMerges(t,r,n,o,a);s!==n&&(l=l||new Map).set(e,s),a&&(0,i.kG)(a.pop()===e)}})),l&&(r=(0,E.kJ)(p)?p.slice(0):(0,n.pi)({},p),l.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 ut(t,e){if(t===e||!e||lt(e))return t;if(!t||lt(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,ut(t,e.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,ut(e.map.get(r),t.map.get(r)))}))}return o}function lt(t){return!t||!(t.info||t.map.size)}function ht(t,e){var r=t.map,n=r.get(e);n&&lt(n)&&(st.push(n),r.delete(e))}var pt=new Set,ft=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,E.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 S.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 M({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,E.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(E.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,u.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(E.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,u=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}},l=new Set;return c&&!this.txCount&&this.broadcastWatches((0,n.pi)((0,n.pi)({},t),{onWatchUpdated:function(t){return l.add(t),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches((0,n.pi)((0,n.pi)({},t),{onWatchUpdated:function(t,e){var r=c.call(this,t,e);return!1!==r&&l.delete(t),r}})),l.size&&l.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,l.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:()=>h,h:()=>l});var n,i,o=r(171),a=(r(85979),r(63471)),s=r(32345),c=r(42860),u=r(65110),l=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,u.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,u=o.length;if(a.sorted.forEach((function(r){o.push(e.admit(t[r]))})),!(c=this.pool.lookupArray(o)).object){var l=c.object=Object.create(i);this.known.add(l),a.sorted.forEach((function(t,e){l[t]=o[u+e]})),__DEV__&&Object.freeze(l)}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}(),h=Object.assign((function(t){if((0,s.s)(t)){void 0===n&&p();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:p});function p(){n=new l,i=new(c.mr?WeakMap:Map)}},47204:(t,e,r)=>{"use strict";r.d(e,{QS:()=>u,_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 u(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),l(t)}));var c=Array.from(r);r.clear(),c.forEach((function(e){return e(t)}))}}else{var u=i.getValue();u&&(o(u),a(u).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 l(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),u=r(41809),l=r(85098);function h(t){return"incremental"in t}function p(t,e){var r=t,n=new l.w0;return h(e)&&(0,u.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 f=r(85068),d=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,u={then:function(t){return new Promise((function(e){return e(t())}))}};function l(t,e){return t?function(e){++s;var r=function(){return t(e)};u=u.then(r,r).then((function(t){--s,i&&i.call(n,t),c&&h.complete()}),(function(t){throw--s,t})).catch((function(t){o&&o.call(n,t)}))}:function(t){return e&&e.call(n,t)}}var h={next:l(e,i),error:l(r,o),complete:function(){c=!0,s||a&&a.call(n)}},p=t.subscribe(h);return function(){return p.unsubscribe()}}))}function v(t){var e=y(t);return(0,u.O)(e)}function y(t){var e=(0,u.O)(t.errors)?t.errors.slice(0):[];return h(t)&&(0,u.O)(t.incremental)&&t.incremental.forEach((function(t){t.errors&&e.push.apply(e,t.errors)})),e}var b=r(7122),w=r(45117),E=r(37304),_=r(84319),A=r(32345),C=r(61029),S=r(88249),x=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,S.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,S.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,S.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,x.D)(O);var P=r(93869),I=r(44865),k=r(14),T=r(9485),R=r(74483),F=r(47204),M=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,l.Ee)(e.resolvers,t)})):this.resolvers=(0,l.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,E.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,u,l,h,p,f,d,m;return(0,n.Jh)(this,(function(g){return s=(0,b.p$)(t),c=(0,b.kU)(t),u=(0,R.F)(c),l=s.operation,h=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",f=(p=this).cache,d=p.client,m={fragmentMap:u,context:(0,n.pi)((0,n.pi)({},r),{cache:f,client:d}),variables:i,fragmentMatcher:o,defaultOperationType:h,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,u,h=this;return(0,n.Jh)(this,(function(p){return o=r.fragmentMap,a=r.context,s=r.variables,c=[e],u=function(t){return(0,n.mG)(h,void 0,void 0,(function(){var u,l;return(0,n.Jh)(this,(function(n){return(0,E.LZ)(t,s)?(0,_.My)(t)?[2,this.resolveField(t,e,r).then((function(e){var r;void 0!==e&&c.push(((r={})[(0,_.u2)(t)]=e,r))}))]:((0,_.Ao)(t)?u=t:(u=o[t.name.value],__DEV__?(0,i.kG)(u,"No fragment named ".concat(t.name.value)):(0,i.kG)(u,11)),u&&u.typeCondition&&(l=u.typeCondition.name.value,r.fragmentMatcher(e,l,a))?[2,this.resolveSelectionSet(u.selectionSet,e,r).then((function(t){c.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(u)).then((function(){return(0,l.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,u,l,h,p,f=this;return(0,n.Jh)(this,(function(n){return i=r.variables,o=t.name.value,a=(0,_.u2)(t),s=o!==a,c=e[a]||e[o],u=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(l=e.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[l])&&(p=h[s?o:a])&&(u=Promise.resolve(F.ab.withValue(this.cache,p,[e,(0,_.NC)(t,i),r.context,{field:t,fragmentMap:r.fragmentMap}])))),[2,u.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)?f.resolveSubSelectedArray(t,e,r):t.selectionSet?f.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}(),N=new(d.mr?WeakMap:Map);function B(t,e){var r=t[e];"function"==typeof r&&(t[e]=function(){return N.set(t,(N.get(t)+1)%1e15),r.apply(this,arguments)})}function j(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var L=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;N.has(r)||(N.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(){j(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;j(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===N.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 l.w0,a=(0,u.O)(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&(0,u.O)(t.incremental)){var s=p(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:N.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,u=t.clientAwareness,l=void 0===u?{}:u,h=t.localState,p=t.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.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=l,this.localState=h||new M({cache:e}),this.ssrMode=c,this.assumeImmutableResults=!!p,(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,u=t.refetchQueries,l=void 0===u?[]:u,h=t.awaitRefetchQueries,p=void 0!==h&&h,f=t.update,d=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,E=void 0===w?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":w,_=t.keepRootFields,A=t.context;return(0,n.mG)(this,void 0,void 0,(function(){var t,e,r,u,h,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,u=e.hasClientExports,o=this.cache.transformForLink(r),a=this.getVariables(o,a),u?[4,this.localState.addExportedVariables(o,a,A)]:[3,2];case 1:a=w.sent(),w.label=2;case 2:return h=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:E,context:A,updateQueries:c,update:f,keepRootFields:_}),this.broadcastQueries(),m=this,[2,new Promise((function(e,r){return g(m.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},A),{optimisticResponse:s}),a,!1),(function(e){if(v(e)&&"none"===E)throw new P.c({graphQLErrors:y(e)});h&&(h.loading=!1,h.error=null);var r=(0,n.pi)({},e);return"function"==typeof l&&(l=l(r)),"ignore"===E&&v(r)&&delete r.errors,m.markMutationResult({mutationId:t,result:r,document:o,variables:a,fetchPolicy:b,errorPolicy:E,context:A,update:f,updateQueries:c,awaitRefetchQueries:p,refetchQueries:l,removeOptimistic:s?t:void 0,onQueryUpdated:d,keepRootFields:_})})).subscribe({next:function(t){m.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){h&&(h.loading=!1,h.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(h(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),h(i)&&(0,u.O)(i.incremental)){var s=p(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 u=c[s],l=r.queries.get(n),h=l.document,p=l.variables,f=e.diff({query:h,variables:p,returnPartialData:!0,optimistic:!1}),d=f.result;if(f.complete&&d){var m=u(d,{mutationResult:i,queryName:h&&(0,b.rY)(h)||void 0,queryVariables:p});m&&o.push({result:m,dataId:"ROOT_QUERY",query:h,variables:p})}}}))}if(o.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(e){a||o.forEach((function(t){return e.write(t)}));var s,c=t.update,u=!(h(s=i)||function(t){return"hasNext"in t&&"data"in t}(s))||h(i)&&!i.hasNext;if(c){if(!a){var l=e.diff({id:"ROOT_MUTATION",query:r.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&c(e,i,{context:t.context,variables:t.variables})}a||t.keepRootFields||!u||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 l.push(t)})),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).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,E.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 L(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,_.JW)(t)?o.set(e.transform(t).document,!1):(0,A.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,C.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 u=this.localState.addExportedVariables(r,o,s).then(c);return new m.y((function(t){var e=null;return u.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 u=this.transform(t).serverQuery;if(u){var l=this.inFlightLinkObservables,h=this.link,p={query:u,variables:r,operationName:(0,b.rY)(u)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},e),{forceFetch:!i}))};if(e=p.context,i){var d=l.get(u)||new Map;l.set(u,d);var v=(0,f.B)(r);if(!(s=d.get(v))){var y=new O([(0,a.h)(h,p)]);d.set(v,s=y),y.beforeNext((function(){d.delete(v)&&d.size<1&&l.delete(u)}))}}else s=new O([(0,a.h)(h,p)])}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,u=void 0===c?s&&s.fetchPolicy||"cache-first":c,l=e.errorPolicy,h=void 0===l?s&&s.errorPolicy||"none":l,p=e.returnPartialData,f=void 0!==p&&p,d=e.notifyOnNetworkStatusChange,m=void 0!==d&&d,g=e.context,v=void 0===g?{}:g,y=Object.assign({},e,{query:i,variables:o,fetchPolicy:u,errorPolicy:h,returnPartialData:f,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 E.cancel(t)}))}));var E=new O(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(b):b(y.variables));return E.promise.then(w,w),E},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,C.X)("refetchQueries"):void 0:a,c=t.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(t,r){u.set(r,{oq:t,lastDiff:e.getQuery(r).getDiff()})}));var l=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 L&&t.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,e,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:e})}}}),u.size&&u.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&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&e.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),l},t.prototype.fetchQueryByPolicy=function(t,e,r){var i=this,o=e.query,a=e.variables,s=e.fetchPolicy,u=e.refetchWritePolicy,l=e.errorPolicy,h=e.returnPartialData,p=e.context,f=e.notifyOnNetworkStatusChange,d=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__||h||(0,c.D)(s,{})||(0,I.DC)(e.missing);var u=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:p,variables:a,onlyRunForcedResolvers:!0}).then((function(t){return u(t.data||void 0)})):u(s)},y="no-cache"===s?0:r===k.I.refetch&&"merge"!==u?1:2,b=function(){return i.getResultsFromLink(t,y,{variables:a,context:p,fetchPolicy:s,errorPolicy:l})},w=f&&"number"==typeof d&&d!==r&&(0,k.O)(r);switch(s){default:case"cache-first":return(E=g()).complete?[v(E,t.markReady())]:h||w?[v(E),b()]:[b()];case"cache-and-network":var E;return(E=g()).complete||h||w?[v(E),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 L(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,u=t.ssrMode,l=void 0!==u&&u,h=t.ssrForceFetchDelay,p=void 0===h?0:h,f=t.connectToDevTools,d=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:f,m=t.queryDeduplication,g=void 0===m||m,v=t.defaultOptions,y=t.assumeImmutableResults,b=void 0!==y&&y,w=t.resolvers,E=t.typeDefs,_=t.fragmentMatcher,A=t.name,C=t.version,S=t.link;if(S||(S=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=S,this.cache=c,this.disableNetworkFetches=l||p>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=E,p&&setTimeout((function(){return e.disableNetworkFetches=!1}),p),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),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!G&&d&&__DEV__&&(G=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var x=window.navigator,D=x&&x.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 M({cache:c,client:this,resolvers:w,fragmentMatcher:_}),this.queryManager=new U({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:l,clientAwareness:{name:A,version:C},localState:this.localState,assumeImmutableResults:b,onBroadcast:d?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),u=r(41809),l=r(41100),h=r(88249),p=r(64059),f=r(3243),d=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,u=(void 0===c?{}:c).fetchPolicy,l=void 0===u?"cache-first":u,h=o.fetchPolicy,p=void 0===h?l:h,f=o.initialFetchPolicy,d=void 0===f?"standby"===p?l:p:f;a.options=(0,n.pi)((0,n.pi)({},o),{initialFetchPolicy:d,fetchPolicy:p}),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 u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),(0,o.D)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,!u.complete||i.networkStatus!==a.I.loading||"cache-first"!==c&&"cache-only"!==c||(i.networkStatus=a.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||u.complete||this.options.partialRefetch||i.loading||i.data||i.error||b(u.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 u=(0,s.iW)(this.query),l=u.variableDefinitions;l&&l.some((function(t){return"variables"===t.variable.name.value}))||__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(t),") for query ").concat((null===(e=u.name)||void 0===e?void 0:e.value)||JSON.stringify(u),", 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,u.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,u=(0,l.o)(this.options,t||{}),h=i?u:d(this.options,u);i||(this.updatePolling(),t&&t.variables&&!(0,o.D)(t.variables,s)&&"standby"!==h.fetchPolicy&&h.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",h),void 0===e&&(e=a.I.setVariables)));var p=h.variables&&(0,n.pi)({},h.variables),f=this.fetch(h,e),m={next:function(t){r.reportResult(t,p)},error:function(t){r.reportError(t,p)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=m),f.addObserver(m),f.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,h.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,h.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}(p.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,f.D)(g)},21604:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ApolloCache:()=>l.R,ApolloClient:()=>o.f,ApolloError:()=>u.c,ApolloLink:()=>m.i,Cache:()=>n,HttpLink:()=>E.HttpLink,InMemoryCache:()=>h.h,MissingFieldError:()=>p.y,NetworkStatus:()=>c.I,Observable:()=>A.y,ObservableQuery:()=>s.ue,checkFetcher:()=>E.checkFetcher,concat:()=>b,createHttpLink:()=>E.createHttpLink,createSignalIfSupported:()=>E.createSignalIfSupported,defaultDataIdFromObject:()=>f.uG,defaultPrinter:()=>E.defaultPrinter,disableExperimentalFragmentVariables:()=>P.J9,disableFragmentWarnings:()=>P._t,empty:()=>g,enableExperimentalFragmentVariables:()=>P.wO,execute:()=>w.h,fallbackHttpConfig:()=>E.fallbackHttpConfig,from:()=>v.D,fromError:()=>S.Q,fromPromise:()=>C,gql:()=>P.Ps,isApolloError:()=>u.M,isReference:()=>D.Yk,makeReference:()=>D.kQ,makeVar:()=>d.QS,mergeOptions:()=>a.J,parseAndCheckHttpResponse:()=>E.parseAndCheckHttpResponse,resetCaches:()=>P.HW,rewriteURIForGET:()=>E.rewriteURIForGET,selectHttpOptionsAndBody:()=>E.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>E.selectHttpOptionsAndBodyInternal,selectURI:()=>E.selectURI,serializeFetchParameter:()=>E.serializeFetchParameter,setLogVerbosity:()=>O.U6,split:()=>y.V,throwServerError:()=>x.P,toPromise:()=>_});var n,i=r(85979),o=r(56344),a=r(19611),s=r(44865),c=r(14),u=r(93869);n||(n={});var l=r(67938),h=r(36232),p=r(48185),f=r(65110),d=r(47204),m=r(64638),g=m.i.empty,v=r(49657),y=r(71996),b=m.i.concat,w=r(95107),E=r(59555);function _(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 A=r(64059);function C(t){return new A.y((function(e){t.then((function(t){e.next(t),e.complete()})).catch(e.error.bind(e))}))}var S=r(38194),x=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,u=r.errorMessage,l=r.extraInfo,h=t.call(this,u)||this;return h.name="ApolloError",h.graphQLErrors=a||[],h.clientErrors=s||[],h.networkError=c||null,h.message=u||(n=h,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$/,"")),h.extraInfo=l,h.__proto__=e.prototype,h}return(0,n.ZT)(e,t),e}(Error)},64638:(t,e,r)=>{"use strict";r.d(e,{i:()=>h});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 h(t):t}function u(t){return t.request.length<=1}var l=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),h=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 u(i)&&u(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(u(n))return __DEV__&&i.kG.warn(new l("You are calling concat on a terminating link, which will have no effect",n)),n;var a=c(r);return u(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),u=r(81302),l=r(5820),h=r(2193),p=r(68494),f=r(88890),d=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?f.sb:b,E=t.includeExtensions,_=t.preserveHeaderCase,A=t.useGETForQueries,C=t.includeUnusedVariables,S=void 0!==C&&C,x=(0,n._T)(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&(0,p.U)(y||v);var D={http:{includeExtensions:E,preserveHeaderCase:_},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};return new a.i((function(t){var e=(0,l.r)(t,r),a=t.getContext(),p={};if(a.clientAwareness){var b=a.clientAwareness,E=b.name,_=b.version;E&&(p["apollographql-client-name"]=E),_&&(p["apollographql-client-version"]=_)}var C,x=(0,n.pi)((0,n.pi)({},p),a.headers),O={http:a.http,options:a.fetchOptions,credentials:a.credentials,headers:x},P=(0,f.ve)(t,w,f.SC,D,O),I=P.options,k=P.body;if(k.variables&&!S){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,d.$)(),F=R.controller,M=R.signal;(C=F)&&(I.signal=M)}if(A&&!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 N=(0,m.H)(e,k),B=N.newURI,j=N.parseError;if(j)return(0,g.Q)(j);e=B}else try{I.body=(0,u.g)(k,"Payload")}catch(j){return(0,g.Q)(j)}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,h.TF)(e,r):(0,h.Wm)(e,t,r)})).catch((function(t){return(0,h.S3)(t,r)})),function(){C&&C.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:()=>l.u,checkFetcher:()=>a.U,createHttpLink:()=>u.L,createSignalIfSupported:()=>s.$,defaultPrinter:()=>o.sb,fallbackHttpConfig:()=>o.SC,parseAndCheckHttpResponse:()=>n.dO,rewriteURIForGET:()=>h.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),u=r(58175),l=r(41822),h=r(70919)},2193:(t,e,r)=>{"use strict";r.d(e,{S3:()=>p,dO:()=>d,Wm:()=>f,TF:()=>u});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 u(){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",u),t.removeListener("finish",u),t.removeListener("close",u)},t.on("data",s),t.on("error",c),t.on("end",u),t.on("finish",u),t.on("close",u);var l={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&&(l[Symbol.asyncIterator]=function(){return this}),l}(a);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var s=r(27041),c=Object.prototype.hasOwnProperty;function u(t,e){var r,i,o;return(0,n.mG)(this,void 0,void 0,(function(){var s,c,u,f,d,m,g,v,y,b,w,E,_,A,C,S,x,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"),u="boundary=",f=(null==c?void 0:c.includes(u))?null==c?void 0:c.substring((null==c?void 0:c.indexOf(u))+u.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",d="--".concat(f),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,E="string"==typeof b?b:s.decode(b),v=!w,_=(m+=E).indexOf(d);_>-1;){if(A=void 0,P=[m.slice(0,_),m.slice(_+d.length)],m=P[1],(A=P[0]).trim()){if(C=A.indexOf("\r\n\r\n"),S=l(A.slice(0,C)),(x=S["content-type"])&&-1===x.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");D=A.slice(C);try{O=h(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){p(t,e)}}_=m.indexOf(d)}return[3,1];case 3:return null===(o=e.complete)||void 0===o||o.call(e),[2]}}))}))}function l(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 h(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 p(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 f(t,e,r){d(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 p(t,r)}))}function d(t){return function(e){return e.text().then((function(t){return h(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,u=t.indexOf("#");-1!==u&&(s=t.substr(u),c=t.substr(0,u));var l=-1===c.indexOf("?")?"?":"&";return{newURI:c+l+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=u(a.headers,s.preserveHeaderCase);var c=t.operationName,l=t.extensions,h=t.variables,p=t.query,f={operationName:c,variables:h};return s.includeExtensions&&(f.extensions=l),s.includeQuery&&(f.query=e(p,i.S)),{options:a,body:f}}function u(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:()=>u});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 u,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])},u=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 u=r(6591);function l(t){try{return t()}catch(t){}}var h=l((function(){return globalThis}))||l((function(){return window}))||l((function(){return self}))||l((function(){return global}))||l((function(){return l.constructor("return this")()})),p=!1;!h||l((function(){return"production"}))||l((function(){return u}))||(Object.defineProperty(h,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),p=!0),r(16333).H,p&&(delete h.process,p=!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:()=>p,iW:()=>u,kU:()=>c,p$:()=>h,pD:()=>l,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 u(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 l(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 h(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 p(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:()=>p,Yk:()=>s,kQ:()=>a,qw:()=>v,u2:()=>g,vb:()=>u,vf:()=>l});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 u(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 u(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 u(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 l(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 u(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 u(n,r,i,e)}))),p(t.name.value,n,r)}var h=["connection","include","skip","client","rest","export"],p=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(f(i),")")}return r.connection.key}var o=t;if(e){var a=f(e);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(t){-1===h.indexOf(t)&&(r[t]&&Object.keys(r[t]).length?o+="@".concat(t,"(").concat(f(r[t]),")"):o+="@".concat(t))})),o}),{setStringify:function(t){var e=f;return f=t,e}}),f=function(t){return JSON.stringify(t,d)};function d(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 u(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),u=r(74483),l={kind:"Field",name:{kind:"Name",value:"__typename"}};function h(t,e){return!t||t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&h(e[t.name.value],e)}))}function p(t){return h((0,a.$H)(t)||(0,a.pD)(t),(0,u.F)((0,a.kU)(t)))?null:t}function f(t){return function(e){return t.some((function(t){return t.name&&t.name===e.name.value||t.test&&t.test(e)}))}}function d(t,e){var r=Object.create(null),i=[],a=Object.create(null),c=[],u=p((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(f(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(f(t)(e))return null}}}));return u&&s(i,(function(t){return!!t.name&&!r[t.name]})).length&&(u=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 p((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,u)),u&&s(c,(function(t){return!!t.name&&!a[t.name]})).length&&(u=function(t,e){function r(e){if(t.some((function(t){return t.name===e.name.value})))return null}return p((0,o.Vn)(e,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(c,u)),u}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),[l],!1)})}}}}})}),{added:function(t){return t===l}}),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 d([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=d([{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:()=>f,ej:()=>c,kG:()=>u});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 u(t,e){if(!t)throw new c(e)}var l=["debug","log","warn","error","silent"],h=l.indexOf("log");function p(t){return function(){if(l.indexOf(t)>=h){var e=i[t]||i.log;return e.apply(i,arguments)}}}function f(t){var e=l[h];return h=Math.max(0,l.indexOf(t)),e}!function(t){t.debug=p("debug"),t.log=p("log"),t.warn=p("warn"),t.error=p("error")}(u||(u={}))},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:()=>A});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 u=c("iterator"),l=c("observable"),h=c("species");function p(t,e){var r=t[e];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function f(t){var e=t.constructor;return void 0!==e&&null===(e=e[h])&&(e=void 0),void 0!==e?e:A}function d(t){return t instanceof A}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=p(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=p(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 E=function(){function t(t,e){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var r=new _(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}(),_=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}(),A=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 E(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(f(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(f(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=f(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=f(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=f(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[l]=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=p(e,l);if(i){var o=i.call(e);if(Object(o)!==o)throw new TypeError(o+" is not an object");return d(o)&&o.constructor===r?o:new r((function(t){return o.subscribe(t)}))}if(s("iterator")&&(i=p(e,u)))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:h,get:function(){return this}}]),t}();a()&&Object.defineProperty(A,Symbol("extensions"),{value:{symbol:l,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){u(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 u(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 l(t){return a(c(c({},t),{},{state:!0}))}function h(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 p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(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 d,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)}:p(p({},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,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 v(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 y(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){v(o,n,i,a,s,"next",t)}function s(t){v(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===(d=window.HTMLSlotElement)||void 0===d||d.prototype.assignedElements;var b=window,w=b.ShadowRoot&&(void 0===b.ShadyCSS||b.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,E=Symbol(),_=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(w&&void 0===t){var r=void 0!==e&&1===e.length;r&&(t=_.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&_.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)},x=w?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 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)}var O,P=window,I=P.trustedTypes,k=I?I.emptyScript:"",T=P.reactiveElementPolyfillSupport,R={toAttribute(t,e){switch(e){case Boolean:t=t?k: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}},F=(t,e)=>e!==t&&(e==e||t==t),M={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:F};class N 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(x(n))}else void 0!==t&&e.push(x(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)=>{w?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{var r=document.createElement("style"),n=b.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:R).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:R;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||F)(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){D(o,n,i,a,s,"next",t)}function s(t){D(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){}}N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==T||T({ReactiveElement:N}),(null!==(C=P.reactiveElementVersions)&&void 0!==C?C:P.reactiveElementVersions=[]).push("1.6.1");var B=window,j=B.trustedTypes,L=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="lit$".concat((Math.random()+"").slice(9),"$"),z="?"+V,U="<".concat(z,">"),H=document,G=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return H.createComment(t)},q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,$=/>/g,Q=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),K=/'/g,Z=/"/g,J=/^(?:script|style|textarea|title)$/i,tt=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}},et=tt(1),rt=(tt(2),Symbol.for("lit-noChange")),nt=Symbol.for("lit-nothing"),it=new WeakMap,ot=H.createTreeWalker(H,129,null,!1),at=(t,e)=>{for(var r,n=t.length-1,i=[],o=2===e?"<svg>":"",a=Y,s=0;s<n;s++){for(var c=t[s],u=void 0,l=void 0,h=-1,p=0;p<c.length&&(a.lastIndex=p,null!==(l=a.exec(c)));)p=a.lastIndex,a===Y?"!--"===l[1]?a=X:void 0!==l[1]?a=$:void 0!==l[2]?(J.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Q):void 0!==l[3]&&(a=Q):a===Q?">"===l[0]?(a=null!=r?r:Y,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,u=l[1],a=void 0===l[3]?Q:'"'===l[3]?Z:K):a===Z||a===K?a=Q:a===X||a===$?a=Y:(a=Q,r=void 0);var f=a===Q&&t[s+1].startsWith("/>")?" ":"";o+=a===Y?c+U:h>=0?(i.push(u),c.slice(0,h)+"$lit$"+c.slice(h)+V+f):c+V+(-2===h?(i.push(void 0),s):f)}var d=o+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==L?L.createHTML(d):d,i]};class st{constructor(t,e){var r,{strings:n,_$litType$:i}=t;this.parts=[];var o=0,a=0,s=n.length-1,c=this.parts,[u,l]=at(n,i);if(this.el=st.createElement(u,e),ot.currentNode=this.el.content,2===i){var h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;null!==(r=ot.nextNode())&&c.length<s;){if(1===r.nodeType){if(r.hasAttributes()){var f=[];for(var d of r.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(V)){var m=l[a++];if(f.push(d),void 0!==m){var g=r.getAttribute(m.toLowerCase()+"$lit$").split(V),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:o,name:v[2],strings:g,ctor:"."===v[1]?pt:"?"===v[1]?dt:"@"===v[1]?mt:ht})}else c.push({type:6,index:o})}for(var y of f)r.removeAttribute(y)}if(J.test(r.tagName)){var b=r.textContent.split(V),w=b.length-1;if(w>0){r.textContent=j?j.emptyScript:"";for(var E=0;E<w;E++)r.append(b[E],G()),ot.nextNode(),c.push({type:2,index:++o});r.append(b[w],G())}}}else if(8===r.nodeType)if(r.data===z)c.push({type:2,index:o});else for(var _=-1;-1!==(_=r.data.indexOf(V,_+1));)c.push({type:7,index:o}),_+=V.length-1;o++}}static createElement(t,e){var r=H.createElement("template");return r.innerHTML=t,r}}function ct(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===rt)return e;var c=void 0!==s?null===(r=a._$Co)||void 0===r?void 0:r[s]:a._$Cl,u=q(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===u?c=void 0:(c=new u(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=ct(t,c._$AS(t,e.values),c,s)),e}class ut{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:H).importNode(r,!0);ot.currentNode=i;for(var o=ot.nextNode(),a=0,s=0,c=n[0];void 0!==c;){if(a===c.index){var u=void 0;2===c.type?u=new lt(o,o.nextSibling,this,t):1===c.type?u=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(u=new gt(o,this,t)),this.u.push(u),c=n[++s]}a!==(null==c?void 0:c.index)&&(o=ot.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 lt{constructor(t,e,r,n){var i;this.type=2,this._$AH=nt,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=ct(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),q(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==rt&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>W(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(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!==nt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.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=st.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 ut(i,this),a=o.v(this.options);o.p(r),this.T(a),this._$AH=o}}_$AC(t){var e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new st(t)),e}k(t){W(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 lt(this.O(G()),this.O(G()),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 ht{constructor(t,e,r,n,i){this.type=1,this._$AH=nt,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=nt}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=ct(this,t,e,0),(o=!q(t)||t!==this._$AH&&t!==rt)&&(this._$AH=t);else{var a,s,c=t;for(t=i[0],a=0;a<i.length-1;a++)(s=ct(this,c[r+a],e,a))===rt&&(s=this._$AH[a]),o||(o=!q(s)||s!==this._$AH[a]),s===nt?t=nt:t!==nt&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}o&&!n&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class pt extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}}var ft=j?j.emptyScript:"";class dt extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}}class mt extends ht{constructor(t,e,r,n,i){super(t,e,r,n,i),this.type=5}_$AI(t){var e;if((t=null!==(e=ct(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:nt)!==rt){var r=this._$AH,n=t===nt&&r!==nt||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==nt&&(r===nt||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 gt{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){ct(this,t)}}var vt=B.litHtmlPolyfillSupport;null==vt||vt(st,lt),(null!==(O=B.litHtmlVersions)&&void 0!==O?O:B.litHtmlVersions=[]).push("2.6.1");var yt,bt,wt=(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 lt(e.insertBefore(G(),s),s,void 0,null!=r?r:{})}return a._$AI(t),a};class Et extends N{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=wt(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 rt}}Et.finalized=!0,Et._$litElement$=!0,null===(yt=globalThis.litElementHydrateSupport)||void 0===yt||yt.call(globalThis,{LitElement:Et});var _t,At=globalThis.litElementPolyfillSupport;null==At||At({LitElement:Et}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.2.2");var Ct,St=S(_t||(_t=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"}']))),xt=class extends Et{render(){return et(Ct||(Ct=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span><slot></slot></span>"])))}};xt.styles=[St],xt=(0,t.gn)([e("mwc-icon")],xt);var Dt=()=>{},Ot={get passive(){return!1}};document.addEventListener("x",Dt,Ot),document.removeEventListener("x",Dt);class Pt extends Et{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 It=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}(),kt={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"},Tt={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"},Rt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},Ft=["touchstart","pointerdown","mousedown","keydown"],Mt=["touchend","pointerup","mouseup","contextmenu"],Nt=[],Bt=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 kt},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return Tt},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return Rt},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)(Ft),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)(Mt),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)(Ft),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)(Mt),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&&Nt.length>0&&Nt.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(Nt.push(t.target),this.registerDeactivationHandlers(t)),r.wasElementMadeActive=this.checkElementMadeActive(t),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){Nt=[],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 u="",l="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),p=h.startPoint,f=h.endPoint;u=p.x+"px, "+p.y+"px",l=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(i,l),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 u=t;n=u.changedTouches[0].pageX-s,i=u.changedTouches[0].pageY-c}else{var l=t;n=l.pageX-s,i=l.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)}),Rt.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}(It);const jt=Bt;var Lt=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 Vt{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 zt,Ut,Ht=Lt(class extends Vt{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 rt}}),Gt=Lt(class extends Vt{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 rt}});class qt extends Pt{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=jt}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 et(zt||(zt=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>'])),Ht(r),Gt({"--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)([g(".mdc-ripple-surface")],qt.prototype,"mdcRoot",void 0),(0,t.gn)([a({type:Boolean})],qt.prototype,"primary",void 0),(0,t.gn)([a({type:Boolean})],qt.prototype,"accent",void 0),(0,t.gn)([a({type:Boolean})],qt.prototype,"unbounded",void 0),(0,t.gn)([a({type:Boolean})],qt.prototype,"disabled",void 0),(0,t.gn)([a({type:Boolean})],qt.prototype,"activated",void 0),(0,t.gn)([a({type:Boolean})],qt.prototype,"selected",void 0),(0,t.gn)([a({type:Boolean})],qt.prototype,"internalUseStateLayerCustomProperties",void 0),(0,t.gn)([l()],qt.prototype,"hovering",void 0),(0,t.gn)([l()],qt.prototype,"bgFocused",void 0),(0,t.gn)([l()],qt.prototype,"fgActivation",void 0),(0,t.gn)([l()],qt.prototype,"fgDeactivation",void 0),(0,t.gn)([l()],qt.prototype,"fgScale",void 0),(0,t.gn)([l()],qt.prototype,"fgSize",void 0),(0,t.gn)([l()],qt.prototype,"translateStart",void 0),(0,t.gn)([l()],qt.prototype,"translateEnd",void 0),(0,t.gn)([l()],qt.prototype,"leftPos",void 0),(0,t.gn)([l()],qt.prototype,"topPos",void 0);var Wt=S(Ut||(Ut=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)}']))),Yt=class extends qt{};Yt.styles=[Wt],Yt=(0,t.gn)([e("mwc-ripple")],Yt);class Xt{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 $t,Qt,Kt,Zt,Jt,te,ee=t=>null!=t?t:nt;function re(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}class ne extends Et{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 Xt((()=>(this.shouldRenderRipple=!0,this.ripple)))}renderOverlay(){return et($t||($t=re([""])))}renderRipple(){var t=this.raised||this.unelevated;return this.shouldRenderRipple?et(Qt||(Qt=re(['<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 et(Kt||(Kt=re(['\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>"])),Ht(this.getRenderClasses()),this.disabled,this.label||this.icon,ee(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,Ht({flex:this.expandContent}),this.icon&&this.trailingIcon?this.renderIcon():"")}renderIcon(){return et(Zt||(Zt=re(['\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()}}ne.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,t.gn)([function(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")},a({type:String,attribute:"aria-haspopup"})],ne.prototype,"ariaHasPopup",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ne.prototype,"raised",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ne.prototype,"unelevated",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ne.prototype,"outlined",void 0),(0,t.gn)([a({type:Boolean})],ne.prototype,"dense",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ne.prototype,"disabled",void 0),(0,t.gn)([a({type:Boolean,attribute:"trailingicon"})],ne.prototype,"trailingIcon",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],ne.prototype,"fullwidth",void 0),(0,t.gn)([a({type:String})],ne.prototype,"icon",void 0),(0,t.gn)([a({type:String})],ne.prototype,"label",void 0),(0,t.gn)([a({type:Boolean})],ne.prototype,"expandContent",void 0),(0,t.gn)([g("#button")],ne.prototype,"buttonElement",void 0),(0,t.gn)([y("mwc-ripple")],ne.prototype,"ripple",void 0),(0,t.gn)([l()],ne.prototype,"shouldRenderRipple",void 0),(0,t.gn)([(te={passive:!0},m({finisher:(t,e)=>{Object.assign(t.prototype[e],te)}}))],ne.prototype,"handleRippleActivate",null);var ie=S(Jt||(Jt=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))}']))),oe=class extends ne{};function ae(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 se(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(r),!0).forEach((function(e){ce(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ce(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}oe.styles=[ie],oe=(0,t.gn)([e("mwc-button")],oe);var ue=(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,se(se({},"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 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 he(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){pe(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 pe(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 fe{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=he(he(he({},{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:ue,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 u=this.services.interpolator.interpolate(n,{lng:r,ns:e});this.options.request(this.options,u,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 de(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function me(t){return me="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},me(t)}function ge(t){var e=function(t,e){if("object"!==me(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===me(e)?e:String(e)}function ve(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,ge(n.key),n)}}function ye(t,e,r){return e&&ve(t.prototype,e),r&&ve(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}fe.type="backend";var be=[],we=be.forEach,Ee=be.slice;function _e(t){return we.call(Ee.call(arguments,1),(function(e){if(e)for(var r in e)void 0===t[r]&&(t[r]=e[r])})),t}var Ae=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ce=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(!Ae.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(n.domain)}if(n.path){if(!Ae.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},Se={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=Ce(t,encodeURIComponent(e),i)}(e.lookupCookie,t,e.cookieMinutes,e.cookieDomain,e.cookieOptions)}},xe={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}},De=null,Oe=function(){if(null!==De)return De;try{De="undefined"!==window&&null!==window.localStorage;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){De=!1}return De},Pe={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&Oe()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&Oe()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},Ie=null,ke=function(){if(null!==Ie)return Ie;try{Ie="undefined"!==window&&null!==window.sessionStorage;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){Ie=!1}return Ie},Te={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&ke()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&ke()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},Re={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}},Fe={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}},Me={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}},Ne={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]}},Be=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};de(this,t),this.type="languageDetector",this.detectors={},this.init(e,r)}return ye(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=_e(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(Se),this.addDetector(xe),this.addDetector(Pe),this.addDetector(Te),this.addDetector(Re),this.addDetector(Fe),this.addDetector(Me),this.addDetector(Ne)}},{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 je(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Le(t,e){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Le(t,e)}function Ve(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&&Le(t,e)}function ze(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return je(t)}function Ue(t){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ue(t)}function He(t,e,r){return(e=ge(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ge(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}Be.type="languageDetector";var qe=__webpack_require__(51266);function We(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 Ye(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?We(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Xe={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){qe&&qe[t]&&qe[t].apply(qe,e)}},$e=new(function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};de(this,t),this.init(e,r)}return ye(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||Xe,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,Ye(Ye({},{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}()),Qe=function(){function t(){de(this,t),this.observers={}}return ye(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 Ke(){var t,e,r=new Promise((function(r,n){t=r,e=n}));return r.resolve=t,r.reject=e,r}function Ze(t){return null==t?"":""+t}function Je(t,e,r){t.forEach((function(t){e[t]&&(r[t]=e[t])}))}function tr(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 er(t,e,r){var n=tr(t,e,Object);n.obj[n.k]=r}function rr(t,e){var r=tr(t,e),n=r.obj,i=r.k;if(n)return n[i]}function nr(t,e,r){var n=rr(t,r);return void 0!==n?n:rr(e,r)}function ir(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]):ir(t[n],e[n],r):t[n]=e[n]);return t}function or(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ar={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function sr(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return ar[t]})):t}var cr="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ur=[" ",",","?","!",";"];function lr(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 hr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lr(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pr(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 u=n.slice(o+a).join(r);return u?pr(c,u,r):void 0}i=i[n[o]]}return i}}var fr=function(t){Ve(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=Ue(e);if(r){var i=Ue(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return ze(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return de(this,i),e=n.call(this),cr&&Qe.call(je(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 ye(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=rr(this.data,a);return s||!o||"string"!=typeof r?s:pr(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),er(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=rr(this.data,a)||{};n?ir(s,r,i):s=hr(hr({},s),r),er(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?hr(hr({},{}),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}(Qe),dr={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 mr(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 gr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mr(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var vr={},yr=function(t){Ve(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=Ue(e);if(r){var i=Ue(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return ze(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return de(this,i),e=n.call(this),cr&&Qe.call(je(e)),Je(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,je(e)),e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=$e.create("translator"),e}return ye(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=ur.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"!==me(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,u=s.namespaces,l=u[u.length-1],h=e.lng||this.language,p=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(p){var f=e.nsSeparator||this.options.nsSeparator;return o?(d.res="".concat(l).concat(f).concat(c),d):"".concat(l).concat(f).concat(c)}return o?(d.res=c,d):c}var d=this.resolve(t,e),m=d&&d.res,g=d&&d.usedKey||c,v=d&&d.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,E=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(E&&m&&_&&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 A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,gr(gr({},e),{},{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(d.res=A,d):A}if(a){var C="[object Array]"===y,S=C?[]:{},x=C?v:g;for(var D in m)if(Object.prototype.hasOwnProperty.call(m,D)){var O="".concat(x).concat(a).concat(D);S[D]=this.translate(O,gr(gr({},e),{joinArrays:!1,ns:u})),S[D]===O&&(S[D]=m[D])}m=S}}else if(E&&"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(h,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 M=e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,N=M&&I?void 0:m,B=T&&F!==m&&this.options.updateMissing;if(I||P||B){if(this.logger.log(B?"updateKey":"missingKey",h,l,c,B?F:m),a){var j=this.resolve(c,gr(gr({},e),{},{keySeparator:!1}));j&&j.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 L=[],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++)L.push(V[z]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(e.lng||this.language):L.push(e.lng||this.language);var U=function(t,r,i){var o=T&&i!==m?i:N;n.options.missingKeyHandler?n.options.missingKeyHandler(t,l,r,o,B,e):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(t,l,r,o,B,e),n.emit("missingKey",t,l,r,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?L.forEach((function(t){n.pluralResolver.getSuffixes(t,e).forEach((function(r){U([t],c+r,e["defaultValue".concat(r)]||F)}))})):U(L,c,F))}m=this.extendTranslation(m,t,e,d,r),I&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(l,":").concat(c)),(I||P)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(c):c,P?m:void 0):this.options.parseMissingKeyHandler(m))}return o?(d.res=m,d):m}},{key:"extendTranslation",value:function(t,e,r,n,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,gr(gr({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(gr(gr({},r),{interpolation:gr(gr({},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 u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=gr(gr({},this.options.interpolation.defaultVariables),u)),t=this.interpolator.interpolate(t,u,r.lng||this.language,r),s){var l=t.match(this.interpolator.nestingRegexp);a<(l&&l.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 h=r.postProcess||this.options.postProcess,p="string"==typeof h?[h]:h;return null!=t&&p&&p.length&&!1!==r.applyPostProcessor&&(t=dr.handle(p,t,e,this.options&&this.options.postProcessPassResolved?gr({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),u=c.key;r=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var h=void 0!==s.count&&"string"!=typeof s.count,p=h&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,d=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(t){a.isValidLookup(e)||(o=t,!vr["".concat(d[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(vr["".concat(d[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(d.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!!!")),d.forEach((function(r){if(!a.isValidLookup(e)){i=r;var o,c=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,u,r,t,s);else{var l;h&&(l=a.pluralResolver.getSuffix(r,s.count,s));var d="".concat(a.options.pluralSeparator,"zero");if(h&&(c.push(u+l),p&&c.push(u+d)),f){var m="".concat(u).concat(a.options.contextSeparator).concat(s.context);c.push(m),h&&(c.push(m+l),p&&c.push(m+d))}}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}(Qe);function br(t){return t.charAt(0).toUpperCase()+t.slice(1)}var wr=function(){function t(e){de(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$e.create("languageUtils")}return ye(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]=br(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]=br(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=br(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}(),Er=[{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}],_r={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)}},Ar=["v1","v2","v3"],Cr={zero:0,one:1,two:2,few:3,many:4,other:5};function Sr(){var t={};return Er.forEach((function(e){e.lngs.forEach((function(r){t[r]={numbers:e.nr,plurals:_r[e.fc]}}))})),t}var xr=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};de(this,t),this.languageUtils=e,this.options=r,this.logger=$e.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=Sr()}return ye(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 Cr[t]-Cr[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!Ar.includes(this.options.compatibilityJSON)}}]),t}();function Dr(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 Or(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dr(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Pr=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};de(this,t),this.logger=$e.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return ye(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:sr,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?or(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?or(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?or(e.nestingPrefix):e.nestingPrefixEscaped||or("$t("),this.nestingSuffix=e.nestingSuffix?or(e.nestingSuffix):e.nestingSuffixEscaped||or(")"),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 u(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(t.indexOf(s.formatSeparator)<0){var i=nr(e,c,t);return s.alwaysFormat?s.format(i,void 0,r,Or(Or(Or({},n),e),{},{interpolationkey:t})):i}var o=t.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(nr(e,c,a),u,r,Or(Or(Or({},n),e),{},{interpolationkey:a}))};this.resetRegExp();var h=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,p=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return u(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?u(s.escape(t)):u(t)}}].forEach((function(e){for(a=0;i=e.regex.exec(t);){var r=i[1].trim();if(void 0===(o=l(r)))if("function"==typeof h){var c=h(t,i,n);o="string"==typeof c?c:""}else if(n&&n.hasOwnProperty(r))o="";else{if(p){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=Ze(o));var u=e.safeValue(o);if(t=t.replace(i[0],u),p?(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=Or({},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=Or(Or({},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=[],u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var l=r[1].split(this.formatSeparator).map((function(t){return t.trim()}));r[1]=l.shift(),c=l,u=!0}if((n=e(s.call(this,r[1].trim(),a),a))&&r[0]===t&&"string"!=typeof n)return n;"string"!=typeof n&&(n=Ze(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),n=""),u&&(n=c.reduce((function(t,e){return i.format(t,e,o.lng,Or(Or({},o),{},{interpolationkey:r[1].trim()}))}),n.trim())),t=t.replace(r[0],n),this.regexp.lastIndex=0}return t}}]),t}();function Ir(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 kr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ir(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ir(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tr(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 Rr=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};de(this,t),this.logger=$e.create("formatter"),this.options=e,this.formats={number:Tr((function(t,e){var r=new Intl.NumberFormat(t,e);return function(t){return r.format(t)}})),currency:Tr((function(t,e){var r=new Intl.NumberFormat(t,kr(kr({},e),{},{style:"currency"}));return function(t){return r.format(t)}})),datetime:Tr((function(t,e){var r=new Intl.DateTimeFormat(t,kr({},e));return function(t){return r.format(t)}})),relativetime:Tr((function(t,e){var r=new Intl.RelativeTimeFormat(t,kr({},e));return function(t){return r.format(t,e.range||"day")}})),list:Tr((function(t,e){var r=new Intl.ListFormat(t,kr({},e));return function(t){return r.format(t)}}))},this.init(e)}return ye(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()]=Tr(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 Ge(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)?Ge(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 u=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},l=u.locale||u.lng||n.locale||n.lng||r;c=i.formats[a](t,l,kr(kr(kr({},s),n),u))}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 Fr(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 Mr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fr(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var Nr=function(t){Ve(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=Ue(e);if(r){var i=Ue(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return ze(this,t)});function i(t,e,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return de(this,i),o=n.call(this),cr&&Qe.call(je(o)),o.backend=t,o.store=e,o.services=r,o.languageUtils=r.languageUtils,o.options=a,o.logger=$e.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 ye(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=tr(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 u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.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,Mr(Mr({},o),{},{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,r,n))}}]),i}(Qe);function Br(){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"===me(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===me(t[2])||"object"===me(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 jr(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 Lr(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 Vr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lr(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zr(){}function Ur(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}))}var Hr=function(t){Ve(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=Ue(e);if(r){var i=Ue(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return ze(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(de(this,i),t=n.call(this),cr&&Qe.call(je(t)),t.options=jr(e),t.services={},t.logger=$e,t.modules={external:[]},Ur(je(t)),r&&!t.isInitialized&&!e.isClone){if(!t.options.initImmediate)return t.init(e,r),ze(t,je(t));setTimeout((function(){t.init(e,r)}),0)}return t}return ye(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=Br();function i(t){return t?"function"==typeof t?new t:t:null}if(this.options=Vr(Vr(Vr({},n),this.options),jr(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Vr(Vr({},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?$e.init(i(this.modules.logger),this.options):$e.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Rr);var a=new wr(this.options);this.store=new fr(this.options.resources,this.options);var s=this.services;s.logger=$e,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new xr(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 Pr(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Nr(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 yr(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=zr),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 u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var h=Ke(),p=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),h.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?p():setTimeout(p,0),h}},{key:"loadResources",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zr,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=Ke();return t||(t=this.languages),e||(e=this.options.ns),r||(r=zr),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&&dr.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=Ke();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"!==me(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=Vr({},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 u=n.options.keySeparator||".",l=o.keyPrefix?"".concat(o.keyPrefix).concat(u).concat(e):e;return n.t(l,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=Ke();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=Ke();"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]:zr,n=Vr(Vr(Vr({},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=Vr({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new yr(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}(Qe);He(Hr,"createInstance",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Hr(t,e)}));var Gr=Hr.createInstance();Gr.createInstance=Hr.createInstance,Gr.createInstance,Gr.init,Gr.loadResources,Gr.reloadResources,Gr.use,Gr.changeLanguage,Gr.getFixedT,Gr.t,Gr.exists,Gr.setDefaultNamespace,Gr.hasLoadedNamespace,Gr.loadNamespaces,Gr.loadLanguages;const qr=Gr;qr.use(Be).use(fe).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 Wr,Yr,Xr,$r=qr,Qr=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__)}},Kr=class extends(Qr($r)(Et)){render(){return et(Wr||(Wr=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span>","</span>"])),$r.t(this.msgid))}};function Zr(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 Jr(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:String})],Kr.prototype,"msgid",void 0),Kr=(0,t.gn)([e("ox-i18n")],Kr);var tn=class extends Et{constructor(){super(...arguments),this.value=""}render(){return et(Yr||(Yr=Jr(["\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)),!$r.language,"ms-MY"==$r.language,"en-US"==$r.language,"ko-KR"==$r.language,"zh-CN"==$r.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){Zr(o,n,i,a,s,"next",t)}function s(t){Zr(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})))}))()}};tn.styles=S(Xr||(Xr=Jr(["\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})],tn.prototype,"value",void 0),tn=(0,t.gn)([e("ox-i18n-selector")],tn);var en=__webpack_require__(51266);function rn(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 nn(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){rn(o,n,i,a,s,"next",t)}function s(t){rn(o,n,i,a,s,"throw",t)}a(void 0)}))}}var on,an,sn={"Content-Type":"application/json",Accept:"application/json"},cn=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):en.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 en.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 nn((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){en.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){en.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 nn((function*(){var e=yield fetch("/auth/update-profile",{method:"POST",credentials:"include",headers:sn,body:JSON.stringify(t)}),r=yield e.text();if(e.ok)return r;throw new Error(r)}))()}changePassword(t){var e=this;return nn((function*(){try{var r=yield fetch("/auth/change-pass",{method:"POST",credentials:"include",headers:sn,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 nn((function*(){var e=yield fetch("/auth/delete-user",{method:"POST",credentials:"include",headers:sn,body:JSON.stringify(t)}),r=yield e.text();if(e.ok)return r;throw new Error(r)}))()}profile(){var t=this;return nn((function*(){try{var e=new URLSearchParams(location.search).get("token"),r=JSON.parse(JSON.stringify(sn));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 nn((function*(){yield t.onPreSignout(),window.location.href="/auth/signout"}))()}};function un(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 ln(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var hn=class extends(Qr($r)(Et)){render(){return et(on||(on=ln(['\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 "])),$r.t("text.current password"),$r.t("text.new password"),$r.t("text.confirm password"),$r.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){un(o,n,i,a,s,"next",t)}function s(t){un(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($r.t("error.value is empty",{value:a||i}))}n[i]=o}if(n.new_pass!==n.confirm_pass)return t.showToast($r.t("error.new_password_and_confirm_password_do_not_match"));cn.changePassword(n),t.form.reset()}))()}showToast(t){document.dispatchEvent(new CustomEvent("notify",{detail:{message:t}}))}};function pn(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 fn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pn(Object(r),!0).forEach((function(e){He(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dn(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. "}hn.styles=[S(an||(an=ln(["\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)([g("form"),(0,t.w6)("design:type",HTMLFormElement)],hn.prototype,"form",void 0),hn=(0,t.gn)([e("change-password")],hn),__webpack_require__(51266);var mn="function"==typeof Symbol&&Symbol.observable||"@@observable",gn=function(){return Math.random().toString(36).substring(7).split("").join(".")},vn={INIT:"@@redux/INIT"+gn(),REPLACE:"@@redux/REPLACE"+gn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+gn()}};function yn(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 bn(){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 wn(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 En=wn();En.withExtraArgument=wn;const _n=En;class An{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 Cn(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 Sn=__webpack_require__(51266),xn="[ERROR]",Dn="[WARN]",On=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))),Sn.warn(Dn,...r,t.join(" "))};class Pn{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))),Sn.error(xn,...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];On("Not forwardable.")}backward(){if(this.snapshot_taker&&this.snapshot_taker.take(),this.backwardable)return this.q[--this.pos];On("Not backwardable.")}get current(){if(-1!==this.pos)return this.q[this.pos];On("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 In=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},kn="object"==typeof global&&global&&global.Object===Object&&global;var Tn="object"==typeof self&&self&&self.Object===Object&&self;const Rn=kn||Tn||Function("return this")(),Fn=function(){return Rn.Date.now()};var Mn=/\s/;var Nn=/^\s+/;const Bn=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Mn.test(t.charAt(e)););return e}(t)+1).replace(Nn,""):t},jn=Rn.Symbol;var Ln=Object.prototype,Vn=Ln.hasOwnProperty,zn=Ln.toString,Un=jn?jn.toStringTag:void 0;var Hn=Object.prototype.toString;var Gn=jn?jn.toStringTag:void 0;const qn=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Gn&&Gn in Object(t)?function(t){var e=Vn.call(t,Un),r=t[Un];try{t[Un]=void 0;var n=!0}catch(t){}var i=zn.call(t);return n&&(e?t[Un]=r:delete t[Un]),i}(t):function(t){return Hn.call(t)}(t)},Wn=function(t){return null!=t&&"object"==typeof t},Yn=function(t){return"symbol"==typeof t||Wn(t)&&"[object Symbol]"==qn(t)};var Xn=/^[-+]0x[0-9a-f]+$/i,$n=/^0b[01]+$/i,Qn=/^0o[0-7]+$/i,Kn=parseInt;const Zn=function(t){if("number"==typeof t)return t;if(Yn(t))return NaN;if(In(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=In(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Bn(t);var r=$n.test(t);return r||Qn.test(t)?Kn(t.slice(2),r?2:8):Xn.test(t)?NaN:+t};var Jn=Math.max,ti=Math.min;const ei=function(t,e,r){var n,i,o,a,s,c,u=0,l=!1,h=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var r=n,o=i;return n=i=void 0,u=e,a=t.apply(o,r)}function d(t){return u=t,s=setTimeout(g,e),l?f(t):a}function m(t){var r=t-c;return void 0===c||r>=e||r<0||h&&t-u>=o}function g(){var t=Fn();if(m(t))return v(t);s=setTimeout(g,function(t){var r=e-(t-c);return h?ti(r,o-(t-u)):r}(t))}function v(t){return s=void 0,p&&n?f(t):(n=i=void 0,a)}function y(){var t=Fn(),r=m(t);if(n=arguments,i=this,c=t,r){if(void 0===s)return d(c);if(h)return clearTimeout(s),s=setTimeout(g,e),f(c)}return void 0===s&&(s=setTimeout(g,e)),a}return e=Zn(e)||0,In(r)&&(l=!!r.leading,o=(h="maxWait"in r)?Jn(Zn(r.maxWait)||0,e):o,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=c=i=s=void 0},y.flush=function(){return void 0===s?a:v(Fn())},y};var ri=ei((t=>{t.brake||t.take()}),1e3,{leading:!0,trailing:!1});function ni(t){!t.brake&&t.dirty&&ri(t)}class ii{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,ni(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,ni(this)}}var oi="UPDATE_MODULES",ai="UPDATE_BASE_URL",si="UPDATE_CONTEXT_PATH",ci="SET-DOMAINS";function ui(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 li(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ui(Object(r),!0).forEach((function(e){hi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hi(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 pi,fi,di,mi={baseUrl:location.origin,contextPath:(pi=location.pathname,fi=new RegExp("(/(".concat("domain|business",")/([^/]+))?(/?.*)")),di=pi.match(fi),{contextPath:(null==di?void 0:di[1])||"",prefix:(null==di?void 0:di[2])||"",domain:(null==di?void 0:di[3])||"",path:null==di?void 0:di[4]}).contextPath,domains:[]};const gi=(vi={À:"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==vi?void 0:vi[t]});var vi;const yi=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},bi=Array.isArray;var wi=jn?jn.prototype:void 0,Ei=wi?wi.toString:void 0;const _i=function t(e){if("string"==typeof e)return e;if(bi(e))return yi(e,t)+"";if(Yn(e))return Ei?Ei.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r},Ai=function(t){return null==t?"":_i(t)};var Ci=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Si=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var xi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Di=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Oi="\\ud800-\\udfff",Pi="\\u2700-\\u27bf",Ii="a-z\\xdf-\\xf6\\xf8-\\xff",ki="A-Z\\xc0-\\xd6\\xd8-\\xde",Ti="\\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",Ri="["+Ti+"]",Fi="\\d+",Mi="["+Pi+"]",Ni="["+Ii+"]",Bi="[^"+Oi+Ti+Fi+Pi+Ii+ki+"]",ji="(?:\\ud83c[\\udde6-\\uddff]){2}",Li="[\\ud800-\\udbff][\\udc00-\\udfff]",Vi="["+ki+"]",zi="(?:"+Ni+"|"+Bi+")",Ui="(?:"+Vi+"|"+Bi+")",Hi="(?:['’](?:d|ll|m|re|s|t|ve))?",Gi="(?:['’](?:D|LL|M|RE|S|T|VE))?",qi="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Wi="[\\ufe0e\\ufe0f]?",Yi=Wi+qi+"(?:\\u200d(?:"+["[^"+Oi+"]",ji,Li].join("|")+")"+Wi+qi+")*",Xi="(?:"+[Mi,ji,Li].join("|")+")"+Yi,$i=RegExp([Vi+"?"+Ni+"+"+Hi+"(?="+[Ri,Vi,"$"].join("|")+")",Ui+"+"+Gi+"(?="+[Ri,Vi+zi,"$"].join("|")+")",Vi+"?"+zi+"+"+Hi,Vi+"+"+Gi,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fi,Xi].join("|"),"g");const Qi=function(t,e,r){return t=Ai(t),void 0===(e=r?void 0:e)?function(t){return Di.test(t)}(t)?function(t){return t.match($i)||[]}(t):function(t){return t.match(xi)||[]}(t):t.match(e)||[]};var Ki=RegExp("['’]","g");const Zi=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 Ji=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const to=function(t){return Ji.test(t)};var eo="\\ud800-\\udfff",ro="["+eo+"]",no="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",io="\\ud83c[\\udffb-\\udfff]",oo="[^"+eo+"]",ao="(?:\\ud83c[\\udde6-\\uddff]){2}",so="[\\ud800-\\udbff][\\udc00-\\udfff]",co="(?:"+no+"|"+io+")?",uo="[\\ufe0e\\ufe0f]?",lo=uo+co+"(?:\\u200d(?:"+[oo,ao,so].join("|")+")"+uo+co+")*",ho="(?:"+[oo+no+"?",no,ao,so,ro].join("|")+")",po=RegExp(io+"(?="+io+")|"+ho+lo,"g");const fo=function(t){return to(t)?function(t){return t.match(po)||[]}(t):function(t){return t.split("")}(t)},mo=function(t){t=Ai(t);var e=to(t)?fo(t):void 0,r=e?e[0]:t.charAt(0),n=e?Zi(e,1).join(""):t.slice(1);return r.toUpperCase()+n},go=(vo=function(t,e,r){return t+(r?" ":"")+mo(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}(Qi(function(t){return(t=Ai(t))&&t.replace(Ci,gi).replace(Si,"")}(t).replace(Ki,"")),vo,"")});var vo,yo=t=>{var{title:e,description:r,url:n,image:i,imageAlt:o}=t;e&&(document.title=e,bo("property","og:title",e)),r&&(bo("name","description",r),bo("property","og:description",r)),i&&bo("property","og:image",i),o&&bo("property","og:image:alt",o),bo("property","og:url",n=n||window.location.href)};function bo(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 wo="UPDATE_PAGE",Eo="UPDATE_CONTEXT",_o="UPDATE_ACTIVE_PAGE",Ao="REGISTER_NAVIGATION_CALLBACK",Co="UNREGISTER_NAVIGATION_CALLBACK";function So(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 xo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?So(Object(r),!0).forEach((function(e){Do(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):So(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Do(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 Oo,Po=document.querySelector('meta[name="application-name"]');Po&&(Oo=Po.content);var Io={page:"",resourceId:"",params:{},activePage:null,context:{},callbacks:[]};var ko=function t(e,r,n){var i;if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(dn(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw new Error(dn(1));return n(t)(e,r)}if("function"!=typeof e)throw new Error(dn(2));var o=e,a=r,s=[],c=s,u=!1;function l(){c===s&&(c=s.slice())}function h(){if(u)throw new Error(dn(3));return a}function p(t){if("function"!=typeof t)throw new Error(dn(4));if(u)throw new Error(dn(5));var e=!0;return l(),c.push(t),function(){if(e){if(u)throw new Error(dn(6));e=!1,l();var r=c.indexOf(t);c.splice(r,1),s=null}}}function f(t){if(!yn(t))throw new Error(dn(7));if(void 0===t.type)throw new Error(dn(8));if(u)throw new Error(dn(9));try{u=!0,a=o(a,t)}finally{u=!1}for(var e=s=c,r=0;r<e.length;r++)(0,e[r])();return t}function d(t){if("function"!=typeof t)throw new Error(dn(10));o=t,f({type:vn.REPLACE})}function m(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(dn(11));function r(){t.next&&t.next(h())}return r(),{unsubscribe:e(r)}}})[mn]=function(){return this},t}return f({type:vn.INIT}),(i={dispatch:f,subscribe:p,getState:h,replaceReducer:d})[mn]=m,i}((t=>t),(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||bn)((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:vn.INIT}))throw new Error(dn(12));if(void 0===r(void 0,{type:vn.PROBE_UNKNOWN_ACTION()}))throw new Error(dn(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],u=r[c],l=t[c],h=u(l,e);if(void 0===h)throw e&&e.type,new Error(dn(14));i[c]=h,n=n||h!==l}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(dn(15))},i={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return n=bn.apply(void 0,o)(r.dispatch),fn(fn({},r),{},{dispatch:n})}}}(_n)));ko.addReducers({app:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mi,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case oi:return li(li({},t),{},{modules:e.modules});case ai:return li(li({},t),{},{baseUrl:e.baseUrl});case si:return li(li({},t),{},{contextPath:e.contextPath});case ci:return li(li({},t),{},{domains:e.domains,domain:e.domain});default:return t}},route:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Io,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case wo:return xo(xo({},e),{},{page:r.page,resourceId:r.resourceId,params:r.params});case Eo:var n=null===(t=r.context)||void 0===t?void 0:t.title,i="object"==typeof n?n.text:n;return yo({title:Oo+(i?" - ".concat(go(i)):"")}),xo(xo({},e),{},{context:r.context||e.activePage&&e.activePage.context||{}});case _o:return xo(xo({},e),{},{activePage:r.activePage});case Ao:return xo(xo({},e),{},{callbacks:[...e.callbacks,r.callback]});case Co:return xo(xo({},e),{},{callbacks:e.callbacks.filter((t=>t!==r.callback))});default:return e}}});const To=function(t,e){return t===e||t!=t&&e!=e},Ro=function(t,e){for(var r=t.length;r--;)if(To(t[r][0],e))return r;return-1};var Fo=Array.prototype.splice;function Mo(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])}}Mo.prototype.clear=function(){this.__data__=[],this.size=0},Mo.prototype.delete=function(t){var e=this.__data__,r=Ro(e,t);return!(r<0||(r==e.length-1?e.pop():Fo.call(e,r,1),--this.size,0))},Mo.prototype.get=function(t){var e=this.__data__,r=Ro(e,t);return r<0?void 0:e[r][1]},Mo.prototype.has=function(t){return Ro(this.__data__,t)>-1},Mo.prototype.set=function(t,e){var r=this.__data__,n=Ro(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};const No=Mo,Bo=function(t){if(!In(t))return!1;var e=qn(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},jo=Rn["__core-js_shared__"];var Lo,Vo=(Lo=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||""))?"Symbol(src)_1."+Lo:"";var zo=Function.prototype.toString;const Uo=function(t){if(null!=t){try{return zo.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ho=/^\[object .+?Constructor\]$/,Go=Function.prototype,qo=Object.prototype,Wo=Go.toString,Yo=qo.hasOwnProperty,Xo=RegExp("^"+Wo.call(Yo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const $o=function(t){return!(!In(t)||(e=t,Vo&&Vo in e))&&(Bo(t)?Xo:Ho).test(Uo(t));var e},Qo=function(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return $o(r)?r:void 0},Ko=Qo(Rn,"Map"),Zo=Qo(Object,"create");var Jo=Object.prototype.hasOwnProperty;var ta=Object.prototype.hasOwnProperty;function ea(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])}}ea.prototype.clear=function(){this.__data__=Zo?Zo(null):{},this.size=0},ea.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ea.prototype.get=function(t){var e=this.__data__;if(Zo){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Jo.call(e,t)?e[t]:void 0},ea.prototype.has=function(t){var e=this.__data__;return Zo?void 0!==e[t]:ta.call(e,t)},ea.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Zo&&void 0===e?"__lodash_hash_undefined__":e,this};const ra=ea,na=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 ia(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])}}ia.prototype.clear=function(){this.size=0,this.__data__={hash:new ra,map:new(Ko||No),string:new ra}},ia.prototype.delete=function(t){var e=na(this,t).delete(t);return this.size-=e?1:0,e},ia.prototype.get=function(t){return na(this,t).get(t)},ia.prototype.has=function(t){return na(this,t).has(t)},ia.prototype.set=function(t,e){var r=na(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};const oa=ia;function aa(t){var e=this.__data__=new No(t);this.size=e.size}aa.prototype.clear=function(){this.__data__=new No,this.size=0},aa.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},aa.prototype.get=function(t){return this.__data__.get(t)},aa.prototype.has=function(t){return this.__data__.has(t)},aa.prototype.set=function(t,e){var r=this.__data__;if(r instanceof No){var n=r.__data__;if(!Ko||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new oa(n)}return r.set(t,e),this.size=r.size,this};const sa=aa;function ca(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new oa;++e<r;)this.add(t[e])}ca.prototype.add=ca.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ca.prototype.has=function(t){return this.__data__.has(t)};const ua=ca,la=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},ha=function(t,e){return t.has(e)},pa=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 u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var h=-1,p=!0,f=2&r?new ua:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var d=t[h],m=e[h];if(n)var g=a?n(m,d,h,e,t,o):n(d,m,h,t,e,o);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!la(e,(function(t,e){if(!ha(f,e)&&(d===t||i(d,t,r,n,o)))return f.push(e)}))){p=!1;break}}else if(d!==m&&!i(d,m,r,n,o)){p=!1;break}}return o.delete(t),o.delete(e),p},fa=Rn.Uint8Array,da=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r},ma=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r};var ga=jn?jn.prototype:void 0,va=ga?ga.valueOf:void 0;const ya=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},ba=function(t,e,r){var n=e(t);return bi(t)?n:ya(n,r(t))},wa=function(){return[]};var Ea=Object.prototype.propertyIsEnumerable,_a=Object.getOwnPropertySymbols;const Aa=_a?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}(_a(t),(function(e){return Ea.call(t,e)})))}:wa,Ca=function(t){return Wn(t)&&"[object Arguments]"==qn(t)};var Sa=Object.prototype,xa=Sa.hasOwnProperty,Da=Sa.propertyIsEnumerable;const Oa=Ca(function(){return arguments}())?Ca:function(t){return Wn(t)&&xa.call(t,"callee")&&!Da.call(t,"callee")};var Pa="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ia=Pa&&"object"==typeof module&&module&&!module.nodeType&&module,ka=Ia&&Ia.exports===Pa?Rn.Buffer:void 0;const Ta=(ka?ka.isBuffer:void 0)||function(){return!1};var Ra=/^(?:0|[1-9]\d*)$/;const Fa=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Ra.test(t))&&t>-1&&t%1==0&&t<e},Ma=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Na={};Na["[object Float32Array]"]=Na["[object Float64Array]"]=Na["[object Int8Array]"]=Na["[object Int16Array]"]=Na["[object Int32Array]"]=Na["[object Uint8Array]"]=Na["[object Uint8ClampedArray]"]=Na["[object Uint16Array]"]=Na["[object Uint32Array]"]=!0,Na["[object Arguments]"]=Na["[object Array]"]=Na["[object ArrayBuffer]"]=Na["[object Boolean]"]=Na["[object DataView]"]=Na["[object Date]"]=Na["[object Error]"]=Na["[object Function]"]=Na["[object Map]"]=Na["[object Number]"]=Na["[object Object]"]=Na["[object RegExp]"]=Na["[object Set]"]=Na["[object String]"]=Na["[object WeakMap]"]=!1;var Ba="object"==typeof exports&&exports&&!exports.nodeType&&exports,ja=Ba&&"object"==typeof module&&module&&!module.nodeType&&module,La=ja&&ja.exports===Ba&&kn.process,Va=function(){try{return ja&&ja.require&&ja.require("util").types||La&&La.binding&&La.binding("util")}catch(t){}}(),za=Va&&Va.isTypedArray;const Ua=za?(Ha=za,function(t){return Ha(t)}):function(t){return Wn(t)&&Ma(t.length)&&!!Na[qn(t)]};var Ha,Ga=Object.prototype.hasOwnProperty;const qa=function(t,e){var r=bi(t),n=!r&&Oa(t),i=!r&&!n&&Ta(t),o=!r&&!n&&!i&&Ua(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 u in t)!e&&!Ga.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Fa(u,c))||s.push(u);return s};var Wa=Object.prototype;const Ya=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Wa)},Xa=function(t,e){return function(r){return t(e(r))}},$a=Xa(Object.keys,Object);var Qa=Object.prototype.hasOwnProperty;const Ka=function(t){if(!Ya(t))return $a(t);var e=[];for(var r in Object(t))Qa.call(t,r)&&"constructor"!=r&&e.push(r);return e},Za=function(t){return null!=t&&Ma(t.length)&&!Bo(t)},Ja=function(t){return Za(t)?qa(t):Ka(t)},ts=function(t){return ba(t,Ja,Aa)};var es=Object.prototype.hasOwnProperty;const rs=Qo(Rn,"DataView"),ns=Qo(Rn,"Promise"),is=Qo(Rn,"Set"),os=Qo(Rn,"WeakMap");var as="[object Map]",ss="[object Promise]",cs="[object Set]",us="[object WeakMap]",ls="[object DataView]",hs=Uo(rs),ps=Uo(Ko),fs=Uo(ns),ds=Uo(is),ms=Uo(os),gs=qn;(rs&&gs(new rs(new ArrayBuffer(1)))!=ls||Ko&&gs(new Ko)!=as||ns&&gs(ns.resolve())!=ss||is&&gs(new is)!=cs||os&&gs(new os)!=us)&&(gs=function(t){var e=qn(t),r="[object Object]"==e?t.constructor:void 0,n=r?Uo(r):"";if(n)switch(n){case hs:return ls;case ps:return as;case fs:return ss;case ds:return cs;case ms:return us}return e});const vs=gs;var ys="[object Arguments]",bs="[object Array]",ws="[object Object]",Es=Object.prototype.hasOwnProperty;const _s=function(t,e,r,n,i,o){var a=bi(t),s=bi(e),c=a?bs:vs(t),u=s?bs:vs(e),l=(c=c==ys?ws:c)==ws,h=(u=u==ys?ws:u)==ws,p=c==u;if(p&&Ta(t)){if(!Ta(e))return!1;a=!0,l=!1}if(p&&!l)return o||(o=new sa),a||Ua(t)?pa(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 fa(t),new fa(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return To(+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=da;case"[object Set]":var c=1&n;if(s||(s=ma),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;n|=2,a.set(t,e);var l=pa(s(t),s(e),n,i,o,a);return a.delete(t),l;case"[object Symbol]":if(va)return va.call(t)==va.call(e)}return!1}(t,e,c,r,n,i,o);if(!(1&r)){var f=l&&Es.call(t,"__wrapped__"),d=h&&Es.call(e,"__wrapped__");if(f||d){var m=f?t.value():t,g=d?e.value():e;return o||(o=new sa),i(m,g,r,n,o)}}return!!p&&(o||(o=new sa),function(t,e,r,n,i,o){var a=1&r,s=ts(t),c=s.length;if(c!=ts(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:es.call(e,l)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var f=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<c;){var m=t[l=s[u]],g=e[l];if(n)var v=a?n(g,m,l,e,t,o):n(m,g,l,t,e,o);if(!(void 0===v?m===g||i(m,g,r,n,o):v)){f=!1;break}d||(d="constructor"==l)}if(f&&!d){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||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,r,n,i,o))},As=function t(e,r,n,i,o){return e===r||(null==e||null==r||!Wn(e)&&!Wn(r)?e!=e&&r!=r:_s(e,r,n,i,t,o))},Cs=function(t,e){return As(t,e)};function Ss(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 xs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ss(Object(r),!0).forEach((function(e){Ds(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ss(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}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}function Os(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 Ps(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Os(o,n,i,a,s,"next",t)}function s(t){Os(o,n,i,a,s,"throw",t)}a(void 0)}))}}class Is extends Et{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 Ps((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=xs(xs(xs({},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];Cs(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(Ps((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 Ps((function*(){var{initialized:e}=t._oldLifecycleInfo$||{};e&&(yield t.pageDispose(),yield t.pageUpdate({},!0))}))()}pageDispose(){var t=this;return Ps((function*(){yield t.pageUpdate({initialized:!1})}))()}pageInitialized(t){}pageUpdated(t,e,r){}pageDisposed(t){}updateContext(t){ko.dispatch({type:Eo,context:t?xs(xs({},this.context),t):this.context})}get context(){return{}}}var ks;(0,t.gn)([a({type:Boolean})],Is.prototype,"active",void 0),(0,t.gn)([a({type:Object})],Is.prototype,"lifecycle",void 0),(0,t.gn)([a({type:String,attribute:"context-path"})],Is.prototype,"contextPath",void 0);var Ts,Rs,Fs,Ms,Ns,Bs,js,Ls=S(ks||(ks=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"]))),Vs=S(Ts||(Ts=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"]))),zs=S(Rs||(Rs=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"]))),Us=S(Fs||(Fs=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 Hs(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}S(Ms||(Ms=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(Ns||(Ns=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 Gs,qs,Ws,Ys,Xs,$s,Qs=class extends Et{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 et(Bs||(Bs=Hs([" <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,u=c||document.body,l=document.createElement("ox-popup");return wt(e,l),l._parent=u,u.appendChild(l),l.open({top:r,left:n,right:i,bottom:o,width:a,height:s}),l}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 Ks(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 Zs(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ks(o,n,i,a,s,"next",t)}function s(t){Ks(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Js(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Qs.styles=[Vs,S(js||(js=Hs(["\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)([l()],Qs.prototype,"_parent",void 0),Qs=(0,t.gn)([e("ox-popup")],Qs);var tc,ec,rc=class extends Qs{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 et(Gs||(Gs=Js(['\n <slot name="header"> </slot>\n\n ',"\n\n <slot\n @change=","\n >\n </slot>\n ","\n "])),this.withSearch?et(qs||(qs=Js(['\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=""})):et(Ws||(Ws=Js([""]))),(t=>{t.stopPropagation()}),this.nothingToSelect?et(Ys||(Ys=Js(["<label nothing>nothing to select</label>"]))):et(Xs||(Xs=Js([""]))))}_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 Zs((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=Zs((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 wt(e,c),c._parent=s,s.appendChild(c),c.open({top:r,left:n,right:i,bottom:o}),c}};function nc(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 ic(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}rc.styles=[...Qs.styles,S($s||($s=Js(["\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})],rc.prototype,"multiple",void 0),(0,t.gn)([a({type:String,attribute:"attr-selected"})],rc.prototype,"attrSelected",void 0),(0,t.gn)([a({type:Boolean,attribute:"with-search"})],rc.prototype,"withSearch",void 0),(0,t.gn)([a({type:String})],rc.prototype,"value",void 0),(0,t.gn)([l()],rc.prototype,"activeIndex",void 0),(0,t.gn)([l()],rc.prototype,"searchKeyword",void 0),(0,t.gn)([l()],rc.prototype,"nothingToSelect",void 0),(0,t.gn)([g("[search] input")],rc.prototype,"searchInput",void 0),rc=(0,t.gn)([e("ox-popup-list")],rc);var oc,ac,sc,cc,uc=class extends Qs{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 et(tc||(tc=ic([" <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){nc(o,n,i,a,s,"next",t)}function s(t){nc(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 wt(e,c),c.setAttribute("active",""),c._parent=s,s.appendChild(c),c.open({top:r,left:n,right:i,bottom:o}),c}};function lc(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}uc.styles=[...Qs.styles,S(ec||(ec=ic(["\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})],uc.prototype,"activeIndex",void 0),uc=(0,t.gn)([e("ox-popup-menu")],uc);var hc,pc,fc,dc,mc,gc,vc,yc,bc,wc,Ec,_c=class extends Et{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 et(oc||(oc=lc(['\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?et(ac||(ac=lc(["<mwc-icon>chevron_right</mwc-icon>"]))):et(sc||(sc=lc([""]))),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 Ac(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Cc(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}}}_c.styles=[S(cc||(cc=lc(["\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})],_c.prototype,"active",void 0),(0,t.gn)([a({type:String})],_c.prototype,"label",void 0),(0,t.gn)([l()],_c.prototype,"_submenu",void 0),_c=(0,t.gn)([e("ox-popup-menuitem")],_c);var Sc=class extends Et{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 et(hc||(hc=Ac(["\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)?et(pc||(pc=Ac([' <div id="backdrop" ?hidden='," @click=","></div> "])),!this.backdrop,(t=>this.onClose(t,!0))):et(fc||(fc=Ac([""]))),this.hovering||"center",ee(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?et(dc||(dc=Ac(["<mwc-icon>drag_indicator</mwc-icon>"]))):et(mc||(mc=Ac([""]))),this.title||this.closable?et(gc||(gc=Ac(["\n <h1>\n ","&nbsp;","\n </h1>\n "])),this.title||"",this.help?et(vc||(vc=Ac([" <ox-help-icon .topic=","></ox-help-icon>"])),this.help):et(yc||(yc=Ac([""])))):et(bc||(bc=Ac([""]))),(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=Cc(t);return e?(this.dragStart=e,t.stopPropagation(),!1):void 0}}onDragMove(t){if(!this.movable||!this.dragStart)return!1;var e=Cc(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 xc(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 Dc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xc(Object(r),!0).forEach((function(e){Oc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Oc(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}Sc.styles=[Vs,S(wc||(wc=Ac(["\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(Ec||(Ec=Ac(["\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})],Sc.prototype,"backdrop",void 0),(0,t.gn)([a({type:String})],Sc.prototype,"direction",void 0),(0,t.gn)([a({type:String,reflect:!0})],Sc.prototype,"hovering",void 0),(0,t.gn)([a({type:String})],Sc.prototype,"size",void 0),(0,t.gn)([a({type:String})],Sc.prototype,"name",void 0),(0,t.gn)([a({type:String})],Sc.prototype,"title",void 0),(0,t.gn)([a({type:Boolean})],Sc.prototype,"closable",void 0),(0,t.gn)([a({type:Object})],Sc.prototype,"templateProperties",void 0),(0,t.gn)([a({type:Object})],Sc.prototype,"help",void 0),(0,t.gn)([a({type:Boolean})],Sc.prototype,"historical",void 0),(0,t.gn)([a({type:Boolean})],Sc.prototype,"movable",void 0),(0,t.gn)([g("[overlayed]")],Sc.prototype,"overlayed",void 0),Sc=(0,t.gn)([e("ox-floating-overlay")],Sc);var Pc,Ic,kc=t=>{var{name:e,viewpart:r,position:n}=t;ko.dispatch({type:Tc,name:e,viewpart:Dc(Dc({},r),{},{show:(!r.hovering||!r.show)&&r.show}),position:n}),r.hovering&&r.show&&Bc(e)},Tc="APPEND_VIEWPART",Rc="REMOVE_VIEWPART",Fc="UPDATE_VIEWPART";!function(t){t.HEADERBAR="headerbar",t.NAVBAR="navbar",t.ASIDEBAR="asidebar",t.FOOTERBAR="footerbar"}(Pc||(Pc={})),function(t){t.TOPMOST="TOPMOST",t.NORMAL="NORMAL"}(Ic||(Ic={}));var Mc="UPDATE_VIEWPORT_WIDTH",Nc=0,Bc=(t,e,r)=>{var n=history.state,i=n?n.overlay:void 0,o=i&&void 0!==i.sequence?i.sequence:Nc,a=Nc=o+1;!r&&e&&ko.dispatch({type:Fc,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}}))},jc=t=>{history.back()},Lc=0,Vc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="$popup-".concat(Lc++);kc({name:r,viewpart:Dc(Dc({hovering:"center",closable:!0},e),{},{backdrop:!0,show:!1,temporary:!0,template:t}),position:Pc.HEADERBAR}),Bc(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 zc(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 Uc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zc(Object(r),!0).forEach((function(e){Hc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hc(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 Gc={viewparts:{},width:"WIDE"};var qc,Wc="OPEN_SNACKBAR",Yc="CLOSE_SNACKBAR";function Xc(t){if("string"==typeof t)return Xc({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 $c(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 Qc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$c(Object(r),!0).forEach((function(e){Kc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Kc(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 Zc={snackbarOpened:!1,level:"",message:"",action:{}};var Jc=__webpack_require__(51266);function tu(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 eu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tu(Object(r),!0).forEach((function(e){ru(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ru(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}ko.addReducers({layout:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gc,e=arguments.length>1?arguments[1]:void 0,r=Uc({},t.viewparts);switch(e.type){case Tc:return Uc(Uc({},t),{},{viewparts:Uc(Uc({},t.viewparts),{},{[e.name]:Uc(Uc({},e.viewpart),{},{position:e.position})})});case Rc:return delete r[e.name],Uc(Uc({},t),{},{viewparts:r});case Fc:var n=r[e.name];if(!n)return t;var i=e.override||{};return n.temporary&&!1===i.show?(delete r[e.name],Uc(Uc({},t),{},{viewparts:r})):Uc(Uc({},t),{},{viewparts:Uc(Uc({},t.viewparts),{},{[e.name]:Uc(Uc({},n),e.override)})});case Mc:return Uc(Uc({},t),{},{width:e.width});default:return t}},snackbar:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zc,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Wc:return Qc(Qc({},t),{},{snackbarOpened:!0,level:e.level||"info",message:e.message,action:Qc({},e.action)});case Yc:return Qc(Qc({},t),{},{snackbarOpened:!1});default:return t}}}),document.addEventListener("open-overlay",(t=>{var{name:e,options:r}=t.detail;Bc(e,r)})),document.addEventListener("close-overlay",(t=>{var{name:e}=t.detail;jc()})),document.addEventListener("toggle-overlay",(t=>{var{name:e,options:r}=t.detail;((t,e)=>{var{name:r}=history.state&&history.state.overlay||{};r==t?jc():Bc(t,e)})(e,r)})),document.addEventListener("open-popup",(t=>{var{template:e,options:r,callback:n}=t.detail,i=Vc(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":Jc.error(e,n);break;case"warn":Jc.warn(e,n);break;case"info":Jc.info(e)}ko.dispatch(((t,e)=>{var{message:r,action:n,timer:i=5e3}=e;return e=>{e({type:Wc,level:t,message:r,action:n}),window.clearTimeout(qc),-1!=i&&(qc=window.setTimeout((()=>e({type:Yc})),i))}})(r,eu({message:e},i)))}));var nu=[];function iu(){return nu.length>0?nu[nu.length-1].overlay.sequence:-1}document.addEventListener("keydown",(t=>{var e,r;nu.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()})),ko.dispatch({type:Ao,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=iu();if(nu.length>0&&o<a)do{var{overlay:s}=nu.pop();ko.dispatch({type:Fc,name:s.name,override:{show:!1}}),a=iu()}while(o<a);!r&&i&&(nu.push(eu({},n)),ko.dispatch({type:Fc,name:i.name,override:{show:!0}}))}});const ou=ko;var au,su,cu,uu,lu,hu,pu,fu,du=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 mu(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var gu,vu,yu,bu=class extends(du(ou)(Et)){constructor(){super(...arguments),this.level="info",this.message="",this.active=!1}render(){return et(au||(au=mu(["\n <span>\n <mwc-icon class=","\n >","</mwc-icon\n >\n </span>\n <span>","</span>\n ","\n "])),this.level,"info"==this.level?et(su||(su=mu([" notification_important "]))):"warn"==this.level?et(cu||(cu=mu([" warning "]))):"error"==this.level?et(uu||(uu=mu([" error "]))):et(lu||(lu=mu([""]))),this.message,this.action&&this.action.label?et(hu||(hu=mu(["\n <mwc-button\n @click=","\n >","</mwc-button\n >\n "])),(()=>{ou.dispatch({type:Yc}),this.action.callback()}),this.action.label):et(pu||(pu=mu([""]))))}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 wu(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}bu.styles=S(fu||(fu=mu(["\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})],bu.prototype,"level",void 0),(0,t.gn)([a({type:String})],bu.prototype,"message",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],bu.prototype,"active",void 0),(0,t.gn)([a({type:Object})],bu.prototype,"action",void 0),bu=(0,t.gn)([e("ox-snack-bar")],bu);var Eu,_u,Au,Cu,Su,xu,Du,Ou=yu=class extends Et{static get dragImage(){return yu._dragImage||(yu._dragImage=new Image,yu._dragImage.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="),yu._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 et(gu||(gu=wu(['\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(yu.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 Pu(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Iu(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}Ou.styles=S(vu||(vu=wu(["\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 "]))),Ou=yu=(0,t.gn)([e("ox-resize-splitter")],Ou);var Tu,Ru,Fu,Mu,Nu,Bu,ju,Lu=class extends(du(ou)(Et)){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?Iu(Object(r),!0).forEach((function(e){ku(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Iu(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==Ic.TOPMOST)),...e.filter((t=>t.level!==Ic.TOPMOST))],et(Eu||(Eu=Pu(["\n ","\n "])),e.map((t=>t.show?t.hovering?et(Au||(Au=Pu(["\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):et(Cu||(Cu=Pu(["\n <div headerbar>","</div>\n ","\n "])),t.template,t.resizable?et(Su||(Su=Pu(["\n <ox-resize-splitter\n @splitter-dragstart=","\n @splitter-drag=","\n ></ox-resize-splitter>\n "])),(t=>this.resizeStart(t)),(t=>this.resizeDrag(t))):et(xu||(xu=Pu([""])))):et(_u||(_u=Pu([""]))))))}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 Vu(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function zu(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 Uu(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}Lu.styles=[S(Du||(Du=Pu(["\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"})],Lu.prototype,"fullbleed",void 0),(0,t.gn)([l()],Lu.prototype,"viewparts",void 0),Lu=(0,t.gn)([e("ox-header-bar")],Lu);var Hu,Gu,qu,Wu,Yu,Xu,$u,Qu=class extends(du(ou)(Et)){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?zu(Object(r),!0).forEach((function(e){Uu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zu(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==Ic.TOPMOST)),...e.filter((t=>t.level!==Ic.TOPMOST))],et(Tu||(Tu=Vu(["\n ","\n "])),e.map((t=>t.show?t.hovering?et(Fu||(Fu=Vu(["\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):et(Mu||(Mu=Vu(["\n <div navbar>","</div>\n ","\n "])),t.template,t.resizable?et(Nu||(Nu=Vu(["\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))):et(Bu||(Bu=Vu([""])))):et(Ru||(Ru=Vu([""]))))))}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 Ku(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Zu(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 Ju(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}Qu.styles=[Vs,S(ju||(ju=Vu(["\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"})],Qu.prototype,"fullbleed",void 0),(0,t.gn)([l()],Qu.prototype,"viewparts",void 0),Qu=(0,t.gn)([e("ox-nav-bar")],Qu);var tl,el,rl,nl,il,ol,al,sl=class extends(du(ou)(Et)){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?Zu(Object(r),!0).forEach((function(e){Ju(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zu(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==Ic.TOPMOST)),...e.filter((t=>t.level!==Ic.TOPMOST))],et(Hu||(Hu=Ku(["\n ","\n "])),e.map((t=>t.show?t.hovering?et(qu||(qu=Ku(["\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):et(Wu||(Wu=Ku(["\n <div asidebar>","</div>\n ","\n "])),t.template,t.resizable?et(Yu||(Yu=Ku(["\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))):et(Xu||(Xu=Ku([""])))):et(Gu||(Gu=Ku([""]))))))}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 cl(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function ul(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 ll(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}sl.styles=[Vs,S($u||($u=Ku(["\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"})],sl.prototype,"fullbleed",void 0),(0,t.gn)([l()],sl.prototype,"viewparts",void 0),sl=(0,t.gn)([e("ox-aside-bar")],sl);var hl,pl,fl=class extends(du(ou)(Et)){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?ul(Object(r),!0).forEach((function(e){ll(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ul(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==Ic.TOPMOST)),...e.filter((t=>t.level!==Ic.TOPMOST))],et(tl||(tl=cl(["\n ","\n "])),e.map((t=>t.show?t.hovering?et(rl||(rl=cl(["\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):et(nl||(nl=cl(["\n <div footerbar>","</div>\n ","\n "])),t.template,t.resizable?et(il||(il=cl(["\n <ox-resize-splitter\n @splitter-dragstart=","\n @splitter-drag=","\n ></ox-resize-splitter>\n "])),(t=>this.resizeStart(t)),(t=>this.resizeDrag(t))):et(ol||(ol=cl([""])))):et(el||(el=cl([""]))))))}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 dl(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 ml(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}fl.styles=[S(al||(al=cl(["\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"})],fl.prototype,"fullbleed",void 0),(0,t.gn)([l()],fl.prototype,"viewparts",void 0),fl=(0,t.gn)([e("ox-footer-bar")],fl);var gl=class extends(Qr($r)(Et)){render(){return et(hl||(hl=ml(['\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){dl(o,n,i,a,s,"next",t)}function s(t){dl(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{Xc({level:"info",message:yield cn.deleteUser(r)}),cn.signout()}catch(t){e.reset(),Xc({level:"error",message:"message"in t?t.message:t})}}))()}};gl.styles=[S(pl||(pl=ml(["\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 "])))],gl=(0,t.gn)([e("delete-user-popup")],gl);var vl,yl,bl=(t,e)=>{},wl={click:void 0,dblclick:void 0},El=[],_l={type:"",name:"",header:{renderer:t=>{}},record:{renderer:(t,e,r,n,i)=>{},classifier:bl,options:{}},handlers:wl,label:!1},Al={columns:El,rows:{appendable:!1,insertable:!1,groups:[],totals:[],classifier:bl,handlers:wl},list:{fields:["name","description","updatedAt"],details:[]}},Cl={},Sl=[],xl={records:Sl},Dl=[20,30,50,100],Ol={page:1,limit:20,total:0,pages:Dl};function Pl(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Il=class extends Et{render(){return et(vl||(vl=Pl(["\n <mwc-icon>","</mwc-icon>\n <div titler>","</div>\n <div description>","</div>\n "])),this.icon,this.title,this.description)}};Il.styles=S(yl||(yl=Pl(["\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()],Il.prototype,"icon",void 0),(0,t.gn)([a()],Il.prototype,"title",void 0),(0,t.gn)([a()],Il.prototype,"description",void 0),Il=(0,t.gn)([e("ox-empty-note")],Il);const kl=function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return In(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ei(t,e,{leading:n,maxWait:e,trailing:i})};var Tl,Rl,Fl,Ml,Nl,Bl,jl,Ll,Vl=S(Tl||(Tl=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 zl extends Et{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 Ul(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})],zl.prototype,"name",void 0),(0,t.gn)([a()],zl.prototype,"value",void 0);var Hl,Gl=((Rl=class extends zl{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminatable=!1,this.indeterminate=!1,this._hasInner=!!this.innerHTML.trim().length}render(){return et(Fl||(Fl=Ul(["\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?et(Ml||(Ml=Ul([" <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 et(Nl||(Nl=Ul(['\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 et(Bl||(Bl=Ul(['\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 et(jl||(jl=Ul(['\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(Ll||(Ll=Ul(["\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 "])))],Rl);(0,t.gn)([a({type:Boolean,attribute:"checked",reflect:!0})],Gl.prototype,"checked",void 0),(0,t.gn)([a({type:Boolean})],Gl.prototype,"disabled",void 0),(0,t.gn)([a({type:Boolean,attribute:"indeterminatable"})],Gl.prototype,"indeterminatable",void 0),(0,t.gn)([a({type:Boolean,attribute:"indeterminate",reflect:!0})],Gl.prototype,"indeterminate",void 0),(0,t.gn)([l()],Gl.prototype,"_hasInner",void 0),Gl=(0,t.gn)([e("ox-checkbox")],Gl);var ql=(t,e,r)=>{var n=t.filter;return null==n||n.options,et(Hl||(Hl=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 Wl,Yl,Xl=(Wl=function(t,e){return Wl=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])},Wl(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}Wl(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),$l=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 Xl(e,t),e}(Error),Ql=(Yl=function(t,e){return Yl=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])},Yl(t,e)},function(t,e){function r(){this.constructor=t}Yl(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});const Kl=function(t){function e(e){void 0===e&&(e=void 0);var r=t.call(this,e)||this;return r.message=e,r}return Ql(e,t),e.prototype.getKind=function(){return this.constructor.kind},e.kind="Exception",e}($l);var Zl=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 Jl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zl(e,t),e.kind="ArgumentException",e}(Kl);var th=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 eh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return th(e,t),e.kind="IllegalArgumentException",e}(Kl);var rh=function(){function t(t){if(this.binarizer=t,null===t)throw new eh("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 nh=rh;var ih=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 oh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ih(e,t),e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(Kl),ah=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 sh=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 ch=sh;var uh=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 lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uh(e,t),e.kind="IndexOutOfBoundsException",e}(Kl);var hh=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 ph=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 hh(e,t),e.kind="ArrayIndexOutOfBoundsException",e}(lh);var fh=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 eh("fromIndex("+e+") > toIndex("+r+")");if(e<0)throw new ph(e);if(r>t)throw new ph(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 ch.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 dh=fh;var mh=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 gh=mh;var vh=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);ch.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+gh.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+gh.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 eh;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 eh;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 eh("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 eh("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&&dh.equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+dh.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 yh=vh;var bh;!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"}(bh||(bh={}));const wh=bh;var Eh=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 Eh(e,t),e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(Kl);var Ah,Ch=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"}(Ah||(Ah={}));var Sh=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,u=0,l=c.length;u!==l;u++){var h=c[u];t.VALUES_TO_ECI.set(h,this)}try{for(var p=Ch(a),f=p.next();!f.done;f=p.next()){var d=f.value;t.NAME_TO_ECI.set(d,this)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}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 _h("incorect value");var r=t.VALUES_TO_ECI.get(e);if(void 0===r)throw new _h("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(void 0===r)throw new _h("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(Ah.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(Ah.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(Ah.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(Ah.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(Ah.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(Ah.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(Ah.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(Ah.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(Ah.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(Ah.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(Ah.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(Ah.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(Ah.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(Ah.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(Ah.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(Ah.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(Ah.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(Ah.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(Ah.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(Ah.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(Ah.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(Ah.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(Ah.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(Ah.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(Ah.Big5,28,"Big5"),t.GB18030=new t(Ah.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(Ah.EUC_KR,30,"EUC_KR","EUC-KR"),t}();const xh=Sh;var Dh=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 Oh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dh(e,t),e.kind="UnsupportedOperationException",e}(Kl);var Ph=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 xh?t:xh.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(xh.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Oh("Encoding "+this.encodingName(r)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(t){return t.equals(xh.UTF8)||t.equals(xh.ISO8859_1)||t.equals(xh.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 Ih=Ph;var kh=function(){function t(){}return t.castAsNonUtf8Char=function(t,e){void 0===e&&(e=null);var r=e?e.getName():this.ISO88591;return Ih.decode(new Uint8Array([t]),r)},t.guessEncoding=function(e,r){if(null!=r&&void 0!==r.get(wh.CHARACTER_SET))return r.get(wh.CHARACTER_SET).toString();for(var n=e.length,i=!0,o=!0,a=!0,s=0,c=0,u=0,l=0,h=0,p=0,f=0,d=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)?u++:(s++,0==(8&w)?l++:a=!1))))),i&&(w>127&&w<160?i=!1:w>159&&(w<192||215===w||247===w)&&v++),o&&(h>0?w<64||127===w||w>252?o=!1:h--:128===w||160===w||w>239?o=!1:w>160&&w<224?(p++,d=0,++f>m&&(m=f)):w>127?(h++,f=0,++d>g&&(g=d)):(f=0,d=0))}return a&&s>0&&(a=!1),o&&h>0&&(o=!1),a&&(y||c+u+l>0)?t.UTF8:o&&(t.ASSUME_SHIFT_JIS||m>=3||g>=3)?t.SHIFT_JIS:i&&o?2===m&&2===p||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,u=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(u||16);break;case"d":c=parseFloat(parseInt(e[n],u||10).toPrecision(t)).toFixed(0)}c="object"==typeof c?JSON.stringify(c):(+c).toString(u);for(var l=parseInt(i),h=i&&i[0]+""=="0"?"0":" ";c.length<l;)c=void 0!==r?c+h:h+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 Ih.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=xh.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=xh.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=xh.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}();const Th=kh;var Rh=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+=Th.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 Fh=Rh;var Mh=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 eh("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 eh("stringRepresentation cannot be null");for(var i=new Array(e.length),o=0,a=0,s=-1,c=0,u=0;u<e.length;)if("\n"===e.charAt(u)||"\r"===e.charAt(u)){if(o>a){if(-1===s)s=o-a;else if(o-a!==s)throw new eh("row lengths do not match");a=o,c++}u++}else if(e.substring(u,u+r.length)===r)u+=r.length,i[o]=!0,o++;else{if(e.substring(u,u+n.length)!==n)throw new eh("illegal character encountered: "+e.substring(u));u+=n.length,i[o]=!1,o++}if(o>a){if(-1===s)s=o-a;else if(o-a!==s)throw new eh("row lengths do not match");c++}for(var l=new t(s,c),h=0;h<o;h++)i[h]&&l.set(Math.floor(h%s),Math.floor(h/s));return l},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 eh("input matrix dimensions do not match");for(var e=new yh(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 eh("Left and top must be nonnegative");if(n<1||r<1)throw new eh("Height and width must be at least 1");var i=t+r,o=e+n;if(o>this.height||i>this.width)throw new eh("The region must fit inside the matrix");for(var a=this.rowSize,s=this.bits,c=e;c<o;c++)for(var u=c*a,l=t;l<i;l++)s[u+Math.floor(l/32)]|=1<<(31&l)&4294967295},t.prototype.getRow=function(t,e){null==e||e.getSize()<this.width?e=new yh(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){ch.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 yh(t),n=new yh(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 u=0;u<r;u++){var l=n[c*r+u];if(0!==l){if(c<o&&(o=c),c>s&&(s=c),32*u<i){for(var h=0;0==(l<<31-h&4294967295);)h++;32*u+h<i&&(i=32*u+h)}if(32*u+31>a){for(h=31;l>>>h==0;)h--;32*u+h>a&&(a=32*u+h)}}}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&&dh.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)+dh.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 Fh,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 Nh=Mh;var Bh=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 jh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bh(e,t),e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(Kl);var Lh=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)}}(),Vh=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 Lh(e,t),e.prototype.getBlackRow=function(t,r){var n=this.getLuminanceSource(),i=n.getWidth();null==r||r.getSize()<i?r=new yh(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 u=255&o[0],l=255&o[1];for(s=1;s<i-1;s++){var h=255&o[s+1];(4*l-u-h)/2<c&&r.set(s),u=l,l=h}}return r},e.prototype.getBlackMatrix=function(){var t=this.getLuminanceSource(),r=t.getWidth(),n=t.getHeight(),i=new Nh(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),u=Math.floor(4*r/5),l=Math.floor(r/5);l<u;l++)o[(255&c[l])>>e.LUMINANCE_SHIFT]++;var h=e.estimateBlackPoint(o),p=t.getMatrix();for(a=0;a<n;a++){var f=a*r;for(l=0;l<r;l++)(255&p[f+l])<h&&i.set(l,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 u=a-i;(f=t[a]*u*u)>c&&(s=a,c=f)}if(i>s){var l=i;i=s,s=l}if(s-i<=r/16)throw new jh;var h=s-1,p=-1;for(a=s-1;a>i;a--){var f,d=a-i;(f=d*d*(s-a)*(n-t[a]))>p&&(h=a,p=f)}return h<<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}(ah);const zh=Vh;var Uh=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)}}(),Hh=function(t){function e(e){var r=t.call(this,e)||this;return r.matrix=null,r}return Uh(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),u=new Nh(n,i);e.calculateThresholdForBlock(o,a,s,n,i,c,u),this.matrix=u}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,u=i-e.BLOCK_SIZE,l=0;l<n;l++){var h=l<<e.BLOCK_SIZE_POWER;h>c&&(h=c);for(var p=e.cap(l,2,n-3),f=0;f<r;f++){var d=f<<e.BLOCK_SIZE_POWER;d>u&&(d=u);for(var m=e.cap(f,2,r-3),g=0,v=-2;v<=2;v++){var y=a[p+v];g+=y[m-2]+y[m-1]+y[m]+y[m+1]+y[m+2]}var b=g/25;e.thresholdBlock(t,d,h,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 u=0;u<e.BLOCK_SIZE;u++)(255&t[c+u])<=i&&a.set(r+u,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),u=0;u<n;u++){c[u]=new Int32Array(r);var l=u<<e.BLOCK_SIZE_POWER;l>a&&(l=a);for(var h=0;h<r;h++){var p=h<<e.BLOCK_SIZE_POWER;p>s&&(p=s);for(var f=0,d=255,m=0,g=0,v=l*i+p;g<e.BLOCK_SIZE;g++,v+=i){for(var y=0;y<e.BLOCK_SIZE;y++){var b=255&t[v+y];f+=b,b<d&&(d=b),b>m&&(m=b)}if(m-d>e.MIN_DYNAMIC_RANGE)for(g++,v+=i;g<e.BLOCK_SIZE;g++,v+=i)for(y=0;y<e.BLOCK_SIZE;y++)f+=255&t[v+y]}var w=f>>2*e.BLOCK_SIZE_POWER;if(m-d<=e.MIN_DYNAMIC_RANGE&&(w=d/2,u>0&&h>0)){var E=(c[u-1][h]+2*c[u][h-1]+c[u-1][h-1])/4;d<E&&(w=E)}c[u][h]=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}(zh);const Gh=Hh;var qh=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 Oh("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new Oh("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new Oh("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var t=new Uint8ClampedArray(this.width),e=new Fh,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 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)}}(),Xh=function(t){function e(e){var r=t.call(this,e.getWidth(),e.getHeight())||this;return r.delegate=e,r}return Yh(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}(Wh);const $h=Xh;var Qh=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)}}(),Kh=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 Qh(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 eh("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 $h(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e}(Wh),Zh=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}(),Jh=__webpack_require__(51266),tp=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())}))},ep=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])}}},rp=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 tp(this,void 0,void 0,(function(){var t,e,r,n,i,o,a,s,c,u,l,h;return ep(this,(function(p){switch(p.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=p.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,u={deviceId:a,label:s,kind:o,groupId:c},e.push(u))}catch(t){l={error:t}}finally{try{n&&!n.done&&(h=r.return)&&h.call(r)}finally{if(l)throw l.error}}return[2,e]}}))}))},t.prototype.getVideoInputDevices=function(){return tp(this,void 0,void 0,(function(){return ep(this,(function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,t.sent().map((function(t){return new Zh(t.deviceId,t.label)}))]}}))}))},t.prototype.findDeviceById=function(t){return tp(this,void 0,void 0,(function(){var e;return ep(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 tp(this,void 0,void 0,(function(){return ep(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 tp(this,void 0,void 0,(function(){var r;return ep(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 tp(this,void 0,void 0,(function(){var r;return ep(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 tp(this,void 0,void 0,(function(){var r;return ep(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 tp(this,void 0,void 0,(function(){return ep(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 tp(this,void 0,void 0,(function(){var n;return ep(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 tp(this,void 0,void 0,(function(){var n;return ep(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 tp(this,void 0,void 0,(function(){var n;return ep(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 tp(this,void 0,void 0,(function(){var r;return ep(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 tp(this,void 0,void 0,(function(){return ep(this,(function(e){switch(e.label){case 0:if(this.isVideoPlaying(t))return Jh.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(),Jh.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 Jl("element with id '"+t+"' not found");if(r.nodeName.toLowerCase()!==e.toLowerCase())throw new Jl("element with id '"+t+"' must be an "+e+" element");return r},t.prototype.decodeFromImage=function(t,e){if(!t&&!e)throw new Jl("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 Jl("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 Jl("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 Jl("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 Jl("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 Jl("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 Jl("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 Jl("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 tp(this,void 0,void 0,(function(){return ep(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 tp(this,void 0,void 0,(function(){return ep(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 jh("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 jh||(t instanceof oh||t instanceof _h)&&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 oh||t instanceof _h||t instanceof jh)&&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 Kh(e),n=new Gh(r);return new nh(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 np=function(){function t(t,e,r,n,i,o){void 0===r&&(r=null==e?0:8*e.length),void 0===o&&(o=ch.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?ch.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);ch.arraycopy(e,0,r,0,e.length),ch.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 ip;!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"}(ip||(ip={}));const op=ip;var ap;!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"}(ap||(ap={}));const sp=ap,cp=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 up=function(){function t(){}return t.prototype.exp=function(t){return this.expTable[t]},t.prototype.log=function(t){if(0===t)throw new eh;return this.logTable[t]},t.addOrSubtract=function(t,e){return t^e},t}();const lp=up;var hp=function(){function t(t,e){if(0===e.length)throw new eh;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),ch.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=lp.addOrSubtract(e,o)}return e}e=r[0];var a=r.length,s=this.field;for(n=1;n<a;n++)e=lp.addOrSubtract(s.multiply(t,e),r[n]);return e},t.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new eh("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;ch.arraycopy(n,0,o,0,a);for(var s=a;s<n.length;s++)o[s]=lp.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 eh("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 u=r[c],l=0;l<o;l++)a[c+l]=lp.addOrSubtract(a[c+l],s.multiply(u,i[l]));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 eh;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 eh("GenericGFPolys do not have same GenericGF field");if(t.isZero())throw new eh("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),u=e.buildMonomial(a,s);r=r.addOrSubtract(u),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 pp=hp;var fp=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 dp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fp(e,t),e.kind="ArithmeticException",e}(Kl);var mp=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)}}(),gp=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 pp(i,Int32Array.from([0])),i.one=new pp(i,Int32Array.from([1])),i}return mp(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 eh;if(0===e)return this.zero;var r=new Int32Array(t+1);return r[0]=e,new pp(this,r)},e.prototype.inverse=function(t){if(0===t)throw new dp;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"+gh.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}(lp);const vp=gp;var yp=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 bp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yp(e,t),e.kind="ReedSolomonException",e}(Kl);var wp=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 Ep=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wp(e,t),e.kind="IllegalStateException",e}(Kl);var _p=function(){function t(t){this.field=t}return t.prototype.decode=function(t,e){for(var r=this.field,n=new pp(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 pp(r,i),u=this.runEuclideanAlgorithm(r.buildMonomial(e,1),c,e),l=u[0],h=u[1],p=this.findErrorLocations(l),f=this.findErrorMagnitudes(h,p);for(a=0;a<p.length;a++){var d=t.length-1-r.log(p[a]);if(d<0)throw new bp("Bad error location");t[d]=vp.addOrSubtract(t[d],f[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 u=o,l=s;if(s=c,(o=a).isZero())throw new bp("r_{i-1} was zero");a=u;for(var h=i.getZero(),p=o.getCoefficient(o.getDegree()),f=i.inverse(p);a.getDegree()>=o.getDegree()&&!a.isZero();){var d=a.getDegree()-o.getDegree(),m=i.multiply(a.getCoefficient(a.getDegree()),f);h=h.addOrSubtract(i.buildMonomial(d,m)),a=a.addOrSubtract(o.multiplyByMonomial(d,m))}if(c=h.multiply(s).addOrSubtract(l),a.getDegree()>=o.getDegree())throw new Ep("Division algorithm failed to reduce polynomial?")}var g=c.getCoefficient(0);if(0===g)throw new bp("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 bp("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 u=i.multiply(e[c],a),l=0==(1&u)?1|u:-2&u;s=i.multiply(s,l)}n[o]=i.multiply(t.evaluateAt(a),i.inverse(s)),0!==i.getGeneratorBase()&&(n[o]=i.multiply(n[o],a))}return n},t}();const Ap=_p;var Cp;!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"}(Cp||(Cp={}));var Sp=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 cp(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=Cp.UPPER,i=Cp.UPPER,o="",a=0;a<r;)if(i===Cp.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 u=t.readCode(e,a,8);o+=Th.castAsNonUtf8Char(u),a+=8}i=n}else{var l=i===Cp.DIGIT?4:5;if(r-a<l)break;u=t.readCode(e,a,l),a+=l;var h=t.getCharacter(i,u);h.startsWith("CTRL_")?(n=i,i=t.getTable(h.charAt(5)),"L"===h.charAt(6)&&(n=i)):(o+=h,i=n)}return o},t.getTable=function(t){switch(t){case"L":return Cp.LOWER;case"P":return Cp.PUNCT;case"M":return Cp.MIXED;case"D":return Cp.DIGIT;case"B":return Cp.BINARY;default:return Cp.UPPER}},t.getCharacter=function(e,r){switch(e){case Cp.UPPER:return t.UPPER_TABLE[r];case Cp.LOWER:return t.LOWER_TABLE[r];case Cp.MIXED:return t.MIXED_TABLE[r];case Cp.PUNCT:return t.PUNCT_TABLE[r];case Cp.DIGIT:return t.DIGIT_TABLE[r];default:throw new Ep("Bad table")}},t.prototype.correctBits=function(e){var r,n;this.ddata.getNbLayers()<=2?(n=6,r=vp.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,r=vp.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,r=vp.AZTEC_DATA_10):(n=12,r=vp.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),o=e.length/n;if(o<i)throw new _h;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 Ap(r).decode(s,o-i)}catch(t){throw new _h(t)}var u=(1<<n)-1,l=0;for(c=0;c<i;c++){if(0===(f=s[c])||f===u)throw new _h;1!==f&&f!==u-1||l++}var h=new Array(i*n-l),p=0;for(c=0;c<i;c++){var f;if(1===(f=s[c])||f===u-1)h.fill(f>1,p,p+n-1),p+=n-1;else for(var d=n-1;d>=0;--d)h[p++]=0!=(f&1<<d)}return h},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*gh.truncDivision(gh.truncDivision(n,2)-1,15),c=n/2,u=gh.truncDivision(s,2);for(a=0;a<c;a++){var l=a+gh.truncDivision(a,15);i[c-a-1]=u-l-1,i[c+a]=u+l+1}}a=0;for(var h=0;a<r;a++){for(var p=4*(r-a)+(e?9:12),f=2*a,d=n-1-f,m=0;m<p;m++)for(var g=2*m,v=0;v<2;v++)o[h+g+v]=t.get(i[f+v],i[f+m]),o[h+2*p+g+v]=t.get(i[f+m],i[d-v]),o[h+4*p+g+v]=t.get(i[d-v],i[d-m]),o[h+6*p+g+v]=t.get(i[d-m],i[f+v]);h+=8*p}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 xp=Sp;var Dp=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 Op=Dp;var Pp=function(){function t(){}return t.floatToIntBits=function(t){return t},t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}();const Ip=Pp;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*Ip.floatToIntBits(this.x)+Ip.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 Op.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 Tp=kp,Rp=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 Fp=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 Mp=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 Fp(e,t),e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}(Rp);var Np=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 jh}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,u=!1,l=!1,h=this.width,p=this.height;o;){o=!1;for(var f=!0;(f||!s)&&e<h;)(f=this.containsBlackPoint(r,n,e,!1))?(e++,o=!0,s=!0):s||e++;if(e>=h){i=!0;break}for(var d=!0;(d||!c)&&n<p;)(d=this.containsBlackPoint(t,e,n,!0))?(n++,o=!0,c=!0):c||n++;if(n>=p){i=!0;break}for(var m=!0;(m||!u)&&t>=0;)(m=this.containsBlackPoint(r,n,t,!1))?(t--,o=!0,u=!0):u||t--;if(t<0){i=!0;break}for(var g=!0;(g||!l)&&r>=0;)(g=this.containsBlackPoint(t,e,r,!0))?(r--,o=!0,l=!0):l||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 jh;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 jh;var E=null;for(b=1;null===E&&b<v;b++)E=this.getBlackPointOnSegment(e,r+b,e-b,r);if(null==E)throw new jh;var _=null;for(b=1;null===_&&b<v;b++)_=this.getBlackPointOnSegment(e,n-b,e-b,n);if(null==_)throw new jh;return this.centerEdges(_,y,E,w)}throw new jh},t.prototype.getBlackPointOnSegment=function(t,e,r,n){for(var i=Op.round(Op.distance(t,e,r,n)),o=(r-t)/i,a=(n-e)/i,s=this.image,c=0;c<i;c++){var u=Op.round(t+c*o),l=Op.round(e+c*a);if(s.get(u,l))return new Tp(u,l)}return null},t.prototype.centerEdges=function(e,r,n,i){var o=e.getX(),a=e.getY(),s=r.getX(),c=r.getY(),u=n.getX(),l=n.getY(),h=i.getX(),p=i.getY(),f=t.CORR;return o<this.width/2?[new Tp(h-f,p+f),new Tp(s+f,c+f),new Tp(u-f,l-f),new Tp(o+f,a-f)]:[new Tp(h+f,p+f),new Tp(s+f,c-f),new Tp(u-f,l+f),new Tp(o-f,a-f)]},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 Bp=Np;var jp=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 jh;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 jh;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 Lp=jp;var Vp=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,u,l,h,p,f,d,m,g){var v=t.quadrilateralToSquare(e,r,n,i,o,a,s,c);return t.squareToQuadrilateral(u,l,h,p,f,d,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,u=this.a32,l=this.a33,h=0;h<e;h+=2){var p=t[h],f=t[h+1],d=i*p+s*f+l;t[h]=(r*p+o*f+c)/d,t[h+1]=(n*p+a*f+u)/d}},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,u=this.a32,l=this.a33,h=t.length,p=0;p<h;p++){var f=t[p],d=e[p],m=i*f+s*d+l;t[p]=(r*f+o*d+c)/m,e[p]=(n*f+a*d+u)/m}},t.squareToQuadrilateral=function(e,r,n,i,o,a,s,c){var u=e-n+o-s,l=r-i+a-c;if(0===u&&0===l)return new t(n-e,o-n,e,i-r,a-i,r,0,0,1);var h=n-o,p=s-o,f=i-a,d=c-a,m=h*d-p*f,g=(u*d-p*l)/m,v=(h*l-u*f)/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 zp=Vp;var Up=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)}}(),Hp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Up(e,t),e.prototype.sampleGrid=function(t,e,r,n,i,o,a,s,c,u,l,h,p,f,d,m,g,v,y){var b=zp.quadrilateralToQuadrilateral(n,i,o,a,s,c,u,l,h,p,f,d,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 jh;for(var i=new Nh(e,r),o=new Float32Array(2*e),a=0;a<r;a++){for(var s=o.length,c=a+.5,u=0;u<s;u+=2)o[u]=u/2+.5,o[u+1]=c;n.transformPoints(o),Lp.checkAndNudgePoints(t,o);try{for(u=0;u<s;u+=2)t.get(Math.floor(o[u]),Math.floor(o[u+1]))&&i.set(u/2,a)}catch(t){throw new jh}}return i},e}(Lp);const Gp=Hp,qp=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new Gp,t}();var Wp=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.toResultPoint=function(){return new Tp(this.getX(),this.getY())},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t}(),Yp=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 Mp(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 jh;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(gh.bitCount(r^this.EXPECTED_CORNER_BITS[n])<=2)return n;throw new jh},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 Ap(vp.AZTEC_PARAM).decode(o,i)}catch(t){throw new jh}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),u=this.getFirstDifferent(i,o,-1,-1);if(this.nbCenterLayers>2){var l=this.distancePoint(u,a)*this.nbCenterLayers/(this.distancePoint(i,e)*(this.nbCenterLayers+2));if(l<.75||l>1.25||!this.isWhiteOrBlackRectangle(a,s,c,u))break}e=a,r=s,n=c,i=u,o=!o}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new jh;this.compact=5===this.nbCenterLayers;var h=new Tp(e.getX()+.5,e.getY()-.5),p=new Tp(r.getX()+.5,r.getY()+.5),f=new Tp(n.getX()-.5,n.getY()+.5),d=new Tp(i.getX()-.5,i.getY()-.5);return this.expandSquare([h,p,f,d],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},t.prototype.getMatrixCenter=function(){var t,e,r,n;try{t=(c=new Bp(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 Wp(i+7,o-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Wp(i+7,o+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Wp(i-7,o+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new Wp(i-7,o-7),!1,-1,-1).toResultPoint()}var a=Op.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=Op.round((t.getY()+n.getY()+e.getY()+r.getY())/4);try{var c;t=(c=new Bp(this.image,15,a,s).detect())[0],e=c[1],r=c[2],n=c[3]}catch(i){t=this.getFirstDifferent(new Wp(a+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new Wp(a+7,s+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new Wp(a-7,s+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new Wp(a-7,s-7),!1,-1,-1).toResultPoint()}return a=Op.round((t.getX()+n.getX()+e.getX()+r.getX())/4),s=Op.round((t.getY()+n.getY()+e.getY()+r.getY())/4),new Wp(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=qp.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,u=o*(e.getY()-t.getY())/i,l=0;l<r;l++)this.image.get(Op.round(a+l*c),Op.round(s+l*u))&&(n|=1<<r-l-1);return n},t.prototype.isWhiteOrBlackRectangle=function(t,e,r,n){t=new Wp(t.getX()-3,t.getY()+3),e=new Wp(e.getX()-3,e.getY()-3),r=new Wp(r.getX()+3,r.getY()-3),n=new Wp(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()),u=Math.ceil(r),l=0;l<u;l++)a+=n,s+=i,this.image.get(Op.round(a),Op.round(s))!==c&&o++;var h=o/r;return h>.1&&h<.9?0:h<=.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 Wp(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 Tp(a+n*i,s+n*o),u=new Tp(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 Tp(a+n*i,s+n*o),u,new Tp(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=Op.round(t.getX()),r=Op.round(t.getY());return this.isValid(e,r)},t.prototype.distancePoint=function(t,e){return Op.distance(t.getX(),t.getY(),e.getX(),e.getY())},t.prototype.distanceResultPoint=function(t,e){return Op.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*(gh.truncDivision(this.nbLayers-4,8)+1)+15},t}();const Xp=Yp,$p=function(){function t(){}return t.prototype.decode=function(t,e){void 0===e&&(e=null);var r=null,n=new Xp(t.getBlackMatrix()),i=null,o=null;try{i=(a=n.detectMirror(!1)).getPoints(),this.reportFoundResultPoints(e,i),o=(new xp).decode(a)}catch(t){r=t}if(null==o)try{var a;i=(a=n.detectMirror(!0)).getPoints(),this.reportFoundResultPoints(e,i),o=(new xp).decode(a)}catch(t){if(null!=r)throw r;throw t}var s=new np(o.getText(),o.getRawBytes(),o.getNumBits(),i,op.AZTEC,ch.currentTimeMillis()),c=o.getByteSegments();null!=c&&s.putMetadata(sp.BYTE_SEGMENTS,c);var u=o.getECLevel();return null!=u&&s.putMetadata(sp.ERROR_CORRECTION_LEVEL,u),s},t.prototype.reportFoundResultPoints=function(t,e){if(null!=t){var r=t.get(wh.NEED_RESULT_POINT_CALLBACK);null!=r&&e.forEach((function(t,e,n){r.foundPossibleResultPoint(t)}))}},t.prototype.reset=function(){},t}();var Qp,Kp=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)}}(),Zp=(Kp((function(t){return void 0===t&&(t=500),Qp.call(this,new $p,t)||this}),Qp=rp),function(){function t(){}return t.prototype.decode=function(t,e){try{return this.doDecode(t,e)}catch(u){if(e&&!0===e.get(wh.TRY_HARDER)&&t.isRotateSupported()){var r=t.rotateCounterClockwise(),n=this.doDecode(r,e),i=n.getResultMetadata(),o=270;null!==i&&!0===i.get(sp.ORIENTATION)&&(o+=i.get(sp.ORIENTATION)%360),n.putMetadata(sp.ORIENTATION,o);var a=n.getResultPoints();if(null!==a)for(var s=r.getHeight(),c=0;c<a.length;c++)a[c]=new Tp(s-a[c].getY()-1,a[c].getX());return n}throw new jh}},t.prototype.reset=function(){},t.prototype.doDecode=function(t,e){var r,n=t.getWidth(),i=t.getHeight(),o=new yh(n),a=e&&!0===e.get(wh.TRY_HARDER),s=Math.max(1,i>>(a?8:5));r=a?i:15;for(var c=Math.trunc(i/2),u=0;u<r;u++){var l=Math.trunc((u+1)/2),h=c+s*(0==(1&u)?l:-l);if(h<0||h>=i)break;try{o=t.getBlackRow(h,o)}catch(t){continue}for(var p=function(t){if(1===t&&(o.reverse(),e&&!0===e.get(wh.NEED_RESULT_POINT_CALLBACK))){var r=new Map;e.forEach((function(t,e){return r.set(e,t)})),r.delete(wh.NEED_RESULT_POINT_CALLBACK),e=r}try{var i=f.decodeRow(h,o,e);if(1===t){i.putMetadata(sp.ORIENTATION,180);var a=i.getResultPoints();null!==a&&(a[0]=new Tp(n-a[0].getX()-1,a[0].getY()),a[1]=new Tp(n-a[1].getX()-1,a[1].getY()))}return{value:i}}catch(t){}},f=this,d=0;d<2;d++){var m=p(d);if("object"==typeof m)return m.value}}throw new jh},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 jh;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 jh},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 jh;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,u=0;u<n;u++){var l=t[u],h=e[u]*s,p=l>h?l-h:h-l;if(p>r)return Number.POSITIVE_INFINITY;c+=p}return c/i},t}());const Jp=Zp;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)}}(),ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tf(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 u=e.MAX_AVG_VARIANCE,l=-1,h=e.CODE_START_A;h<=e.CODE_START_C;h++){var p=Jp.patternMatchVariance(o,e.CODE_PATTERNS[h],e.MAX_INDIVIDUAL_VARIANCE);p<u&&(u=p,l=h)}if(l>=0&&t.isRange(Math.max(0,a-(c-a)/2),a,!1))return Int32Array.from([a,c,l]);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 jh},e.decodeCode=function(t,r,n){Jp.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 jh},e.prototype.decodeRow=function(t,r,n){var i,o=n&&!0===n.get(wh.ASSUME_GS1),a=e.findStartPattern(r),s=a[2],c=0,u=new Uint8Array(20);switch(u[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 _h}for(var l=!1,h=!1,p="",f=a[0],d=a[1],m=Int32Array.from([0,0,0,0,0,0]),g=0,v=0,y=s,b=0,w=!0,E=!1,_=!1;!l;){var A=h;switch(h=!1,g=v,v=e.decodeCode(r,m,d),u[c++]=v,v!==e.CODE_STOP&&(w=!0),v!==e.CODE_STOP&&(y+=++b*v),f=d,d+=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 _h}switch(i){case e.CODE_CODE_A:if(v<64)p+=_===E?String.fromCharCode(" ".charCodeAt(0)+v):String.fromCharCode(" ".charCodeAt(0)+v+128),_=!1;else if(v<96)p+=_===E?String.fromCharCode(v-64):String.fromCharCode(v+64),_=!1;else switch(v!==e.CODE_STOP&&(w=!1),v){case e.CODE_FNC_1:o&&(0===p.length?p+="]C1":p+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!E&&_?(E=!0,_=!1):E&&_?(E=!1,_=!1):_=!0;break;case e.CODE_SHIFT:h=!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:l=!0}break;case e.CODE_CODE_B:if(v<96)p+=_===E?String.fromCharCode(" ".charCodeAt(0)+v):String.fromCharCode(" ".charCodeAt(0)+v+128),_=!1;else switch(v!==e.CODE_STOP&&(w=!1),v){case e.CODE_FNC_1:o&&(0===p.length?p+="]C1":p+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!E&&_?(E=!0,_=!1):E&&_?(E=!1,_=!1):_=!0;break;case e.CODE_SHIFT:h=!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:l=!0}break;case e.CODE_CODE_C:if(v<100)v<10&&(p+="0"),p+=v;else switch(v!==e.CODE_STOP&&(w=!1),v){case e.CODE_FNC_1:o&&(0===p.length?p+="]C1":p+=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:l=!0}}A&&(i=i===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var C=d-f;if(d=r.getNextUnset(d),!r.isRange(d,Math.min(r.getSize(),d+(d-f)/2),!1))throw new jh;if((y-=b*g)%103!==g)throw new oh;var S=p.length;if(0===S)throw new jh;S>0&&w&&(p=i===e.CODE_CODE_C?p.substring(0,S-2):p.substring(0,S-1));for(var x=(a[1]+a[0])/2,D=f+C/2,O=u.length,P=new Uint8Array(O),I=0;I<O;I++)P[I]=u[I];var k=[new Tp(x,t),new Tp(D,t)];return new np(p,P,0,k,op.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}(Jp);const rf=ef;var nf=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)}}(),of=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.")},af=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 nf(e,t),e.prototype.decodeRow=function(t,r,n){var i,o,a,s,c=this.counters;c.fill(0),this.decodeRowResult="";var u,l,h=e.findAsteriskPattern(r,c),p=r.getNextSet(h[1]),f=r.getSize();do{e.recordPattern(r,p,c);var d=e.toNarrowWidePattern(c);if(d<0)throw new jh;u=e.patternToChar(d),this.decodeRowResult+=u,l=p;try{for(var m=(i=void 0,of(c)),g=m.next();!g.done;g=m.next())p+=g.value}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}p=r.getNextSet(p)}while("*"!==u);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var v,y=0;try{for(var b=of(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(p!==f&&2*(p-l-y)<y)throw new jh;if(this.usingCheckDigit){for(var E=this.decodeRowResult.length-1,_=0,A=0;A<E;A++)_+=e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(A));if(this.decodeRowResult.charAt(E)!==e.ALPHABET_STRING.charAt(_%43))throw new oh;this.decodeRowResult=this.decodeRowResult.substring(0,E)}if(0===this.decodeRowResult.length)throw new jh;v=this.extendedMode?e.decodeExtended(this.decodeRowResult):this.decodeRowResult;var C=(h[1]+h[0])/2,S=l+y/2;return new np(v,null,0,[new Tp(C,t),new Tp(S,t)],op.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,u=i;u<n;u++)if(t.get(u)!==s)r[o]++;else{if(o===c-1){if(this.toNarrowWidePattern(r)===e.ASTERISK_ENCODING&&t.isRange(Math.max(0,a-Math.floor((u-a)/2)),a,!1))return[a,u];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 jh},e.toNarrowWidePattern=function(t){var e,r,n,i=t.length,o=0;do{var a=2147483647;try{for(var s=(e=void 0,of(t)),c=s.next();!c.done;c=s.next())(p=c.value)<a&&p>o&&(a=p)}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 u=0,l=0,h=0;h<i;h++)(p=t[h])>o&&(l|=1<<i-1-h,n++,u+=p);if(3===n){for(h=0;h<i&&n>0;h++){var p;if((p=t[h])>o&&(n--,2*p>=u))return-1}return l}}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 jh},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 _h;a=String.fromCharCode(o.charCodeAt(0)+32);break;case"$":if(!(o>="A"&&o<="Z"))throw new _h;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 _h;a=""}break;case"/":if(o>="A"&&o<="O")a=String.fromCharCode(o.charCodeAt(0)-32);else{if("Z"!==o)throw new _h;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}(Jp);const sf=af;var cf=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 e=null!==t&&t.apply(this,arguments)||this;return e.narrowLineWidth=-1,e}return cf(e,t),e.prototype.decodeRow=function(t,r,n){var i,o,a=this.decodeStart(r),s=this.decodeEnd(r),c=new Fh;e.decodeMiddle(r,a[1],s[0],c);var u=c.toString(),l=null;null!=n&&(l=n.get(wh.ALLOWED_LENGTHS)),null==l&&(l=e.DEFAULT_ALLOWED_LENGTHS);var h=u.length,p=!1,f=0;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.")}(l),m=d.next();!m.done;m=d.next()){var g=m.value;if(h===g){p=!0;break}g>f&&(f=g)}}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}if(!p&&h>f&&(p=!0),!p)throw new _h;var v=[new Tp(a[1],t),new Tp(s[0],t)];return new np(u,null,0,v,op.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;){Jp.recordPattern(t,r,o);for(var c=0;c<5;c++){var u=2*c;a[c]=o[u],s[c]=o[u+1]}var l=e.decodeDigit(a);i.append(l.toString()),l=this.decodeDigit(s),i.append(l.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 jh},e.skipWhiteSpace=function(t){var e=t.getSize(),r=t.getNextSet(0);if(r===e)throw new jh;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 jh&&(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,u=r;o.fill(0);for(var l=r;l<a;l++)if(t.get(l)!==s)o[c]++;else{if(c===i-1){if(Jp.patternMatchVariance(o,n,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return[u,l];u+=o[0]+o[1],ch.arraycopy(o,2,o,0,c-1),o[c-1]=0,o[c]=0,c--}else c++;o[c]=1,s=!s}throw new jh},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=Jp.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 jh},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}(Jp);const lf=uf;var hf=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.decodeRowStringBuffer="",e}return hf(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 _h;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 _h;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),u=i.length,l=n,h=r;h<a;h++)if(t.get(h)!==l)o[s]++;else{if(s===u-1){if(Jp.patternMatchVariance(o,i,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return Int32Array.from([c,h]);c+=o[0]+o[1];for(var p=o.slice(2,o.length-1),f=0;f<s-1;f++)o[f]=p[f];o[s-1]=0,o[s]=0,s--}else s++;o[s]=1,l=!l}throw new jh},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 u=i[c],l=Jp.patternMatchVariance(r,u,e.MAX_INDIVIDUAL_VARIANCE);l<o&&(o=l,a=c)}if(a>=0)return a;throw new jh},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}(Jp);const ff=pf;var df=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.")},mf=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 Tp((n[0]+n[1])/2,e),new Tp(o,e)],u=new np(a,null,0,c,op.UPC_EAN_EXTENSION,(new Date).getTime());return null!=s&&u.putAllMetadata(s),u},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],u=0,l=0;l<5&&c<s;l++){var h=ff.decodeDigit(e,a,c,ff.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var p=(i=void 0,df(a)),f=p.next();!f.done;f=p.next())c+=f.value}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}h>=10&&(u|=1<<4-l),4!==l&&(c=e.getNextSet(c),c=e.getNextUnset(c))}if(5!==n.length)throw new jh;var d=this.determineCheckDigit(u);if(t.extensionChecksum(n.toString())!==d)throw new jh;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 jh},t.parseExtensionString=function(e){if(5!==e.length)return null;var r=t.parseExtension5String(e);return null==r?null:new Map([[sp.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 gf=mf;var vf=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.")},yf=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 Tp((n[0]+n[1])/2,e),new Tp(o,e)],u=new np(a,null,0,c,op.UPC_EAN_EXTENSION,(new Date).getTime());return null!=s&&u.putAllMetadata(s),u},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,u=0;u<2&&s<a;u++){var l=ff.decodeDigit(t,o,s,ff.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+l%10);try{for(var h=(n=void 0,vf(o)),p=h.next();!p.done;p=h.next())s+=p.value}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}l>=10&&(c|=1<<1-u),1!==u&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(2!==r.length)throw new jh;if(parseInt(r.toString())%4!==c)throw new jh;return s},t.parseExtensionString=function(t){return 2!==t.length?null:new Map([[sp.ISSUE_NUMBER,parseInt(t)]])},t}();const bf=yf,wf=function(){function t(){}return t.decodeRow=function(t,e,r){var n=ff.findGuardPattern(e,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new gf).decodeRow(t,e,n)}catch(r){return(new bf).decodeRow(t,e,n)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}();var Ef=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){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 Ef(e,t),e.prototype.decodeRow=function(t,r,n){var i=e.findStartGuardPattern(r),o=null==n?null:n.get(wh.NEED_RESULT_POINT_CALLBACK);if(null!=o){var a=new Tp((i[0]+i[1])/2,t);o.foundPossibleResultPoint(a)}var s=this.decodeMiddle(r,i,this.decodeRowStringBuffer),c=s.rowOffset,u=s.resultString;if(null!=o){var l=new Tp(c,t);o.foundPossibleResultPoint(l)}var h=e.decodeEnd(r,c);if(null!=o){var p=new Tp((h[0]+h[1])/2,t);o.foundPossibleResultPoint(p)}var f=h[1],d=f+(f-h[0]);if(d>=r.getSize()||!r.isRange(f,d,!1))throw new jh;var m=u.toString();if(m.length<8)throw new _h;if(!e.checkChecksum(m))throw new oh;var g=(i[1]+i[0])/2,v=(h[1]+h[0])/2,y=this.getBarcodeFormat(),b=[new Tp(g,t),new Tp(v,t)],w=new np(m,null,0,b,y,(new Date).getTime()),E=0;try{var _=wf.decodeRow(t,r,h[1]);w.putMetadata(sp.UPC_EAN_EXTENSION,_.getText()),w.putAllMetadata(_.getResultMetadata()),w.addResultPoints(_.getResultPoints()),E=_.getText().length}catch(t){}var A=null==n?null:n.get(wh.ALLOWED_EAN_EXTENSIONS);if(null!=A){var C=!1;for(var S in A)if(E.toString()===S){C=!0;break}if(!C)throw new jh}return y===op.EAN_13||op.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 _h;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 _h;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}(ff);const Af=_f;var Cf=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)}}(),Sf=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.")},xf=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return Cf(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 u=t.getSize(),l=r[1],h=0,p=0;p<6&&l<u;p++){var f=Af.decodeDigit(t,c,l,Af.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+f%10);try{for(var d=(i=void 0,Sf(c)),m=d.next();!m.done;m=d.next())l+=m.value}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}f>=10&&(h|=1<<5-p)}for(n=e.determineFirstDigit(n,h),l=Af.findGuardPattern(t,l,!0,Af.MIDDLE_PATTERN,new Int32Array(Af.MIDDLE_PATTERN.length).fill(0))[1],p=0;p<6&&l<u;p++){f=Af.decodeDigit(t,c,l,Af.L_PATTERNS),n+=String.fromCharCode("0".charCodeAt(0)+f);try{for(var g=(a=void 0,Sf(c)),v=g.next();!v.done;v=g.next())l+=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:l,resultString:n}},e.prototype.getBarcodeFormat=function(){return op.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 jh},e.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],e}(Af);const Df=xf;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){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.")},If=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return Of(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(),u=e[1],l=0;l<4&&u<c;l++){var h=Af.decodeDigit(t,s,u,Af.L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var p=(n=void 0,Pf(s)),f=p.next();!f.done;f=p.next())u+=f.value}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}for(u=Af.findGuardPattern(t,u,!0,Af.MIDDLE_PATTERN,new Int32Array(Af.MIDDLE_PATTERN.length).fill(0))[1],l=0;l<4&&u<c;l++){h=Af.decodeDigit(t,s,u,Af.L_PATTERNS),r+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var d=(o=void 0,Pf(s)),m=d.next();!m.done;m=d.next())u+=m.value}catch(t){o={error:t}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}return{rowOffset:u,resultString:r}},e.prototype.getBarcodeFormat=function(){return op.EAN_8},e}(Af);const kf=If;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 Rf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ean13Reader=new Df,e}return Tf(e,t),e.prototype.getBarcodeFormat=function(){return op.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 np(e.substring(1),null,null,t.getResultPoints(),op.UPC_A);return null!=t.getResultMetadata()&&r.putAllMetadata(t.getResultMetadata()),r}throw new jh},e.prototype.reset=function(){this.ean13Reader.reset()},e}(Af);var Ff=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)}}(),Mf=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(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=new Int32Array(4),e}return Ff(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],u=0,l=0;l<6&&c<s;l++){var h=e.decodeDigit(t,a,c,e.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var p=(i=void 0,Mf(a)),f=p.next();!f.done;f=p.next())c+=f.value}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}h>=10&&(u|=1<<5-l)}return e.determineNumSysAndCheckDigit(new Fh(n),u),c},e.prototype.decodeEnd=function(t,r){return e.findGuardPatternWithoutCounters(t,r,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(t){return Af.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 jh.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return op.UPC_E},e.convertUPCEtoUPCA=function(t){var e=t.slice(1,7).split("").map((function(t){return t.charCodeAt(0)})),r=new Fh;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}(Af);const Bf=Nf;var jf=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)}}(),Lf=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.")};const Vf=function(t){function e(e){var r=t.call(this)||this,n=null==e?null:e.get(wh.POSSIBLE_FORMATS),i=[];return null!=n&&(n.indexOf(op.EAN_13)>-1&&i.push(new Df),n.indexOf(op.UPC_A)>-1&&i.push(new Rf),n.indexOf(op.EAN_8)>-1&&i.push(new kf),n.indexOf(op.UPC_E)>-1&&i.push(new Bf)),0===i.length&&(i.push(new Df),i.push(new Rf),i.push(new kf),i.push(new Bf)),r.readers=i,r}return jf(e,t),e.prototype.decodeRow=function(t,e,r){var n,i;try{for(var o=Lf(this.readers),a=o.next();!a.done;a=o.next()){var s=a.value;try{var c=s.decodeRow(t,e,r),u=c.getBarcodeFormat()===op.EAN_13&&"0"===c.getText().charAt(0),l=null==r?null:r.get(wh.POSSIBLE_FORMATS),h=null==l||l.includes(op.UPC_A);if(u&&h){var p=c.getRawBytes(),f=new np(c.getText().substring(1),p,p?p.length:null,c.getResultPoints(),op.UPC_A);return f.putAllMetadata(c.getResultMetadata()),f}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 jh},e.prototype.reset=function(){var t,e;try{for(var r=Lf(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}(Jp);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 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 zf(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(Jp.patternMatchVariance(t,r[n],e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return n;throw new jh},e.count=function(t){return Op.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),u=c.next();!u.done;u=c.next()){var l=u.value;l>s&&(s=l),l<a&&(a=l)}}catch(t){r={error:t}}finally{try{u&&!u.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}(Jp);const Hf=Uf,Gf=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}(),qf=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 Tp(r,i)),this.resultPoints.push(new Tp(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 Wf=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 u=0,l=0,h=e.length,p=0;p<h-1;p++){var f=void 0;for(f=1,l|=1<<p;f<e[p];f++,l&=~(1<<p)){var d=t.combins(a-f-1,h-p-2);if(n&&0===l&&a-f-(h-p-1)>=h-p-1&&(d-=t.combins(a-f-(h-p),h-p-2)),h-p-1>1){for(var m=0,g=a-f-(h-p-2);g>r;g--)m+=t.combins(a-f-g-1,h-p-3);d-=m*(h-1-p)}else a-f>r&&d--;u+=d}a-=f}return u},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 Yf=Wf;var Xf=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 yh(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 u=a.getRightChar().getValue();for(c=11;c>=0;--c)0!=(u&1<<c)&&r.set(n),n++}}return r},t}();const $f=Xf,Qf=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}(),Kf=function(){function t(t){this.newPosition=t}return t.prototype.getNewPosition=function(){return this.newPosition},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)}}();const Jf=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return Zf(e,t),e.prototype.getValue=function(){return this.value},e.prototype.isFNC1=function(){return this.value===e.FNC1},e.FNC1="$",e}(Kf);var td=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 ed=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 td(e,t),e.prototype.getNewString=function(){return this.newString},e.prototype.isRemaining=function(){return this.remaining},e.prototype.getRemainingValue=function(){return this.remainingValue},e}(Kf);var rd=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 nd=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 _h;return i.firstDigit=r,i.secondDigit=n,i}return rd(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}(Kf);var id=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.")};const od=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var r,n,i,o,a,s,c,u;if(!e)return null;if(e.length<2)throw new jh;var l=e.substring(0,2);try{for(var h=id(t.TWO_DIGIT_DATA_LENGTH),p=h.next();!p.done;p=h.next())if((E=p.value)[0]===l)return E[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,E[2],e):t.processFixedAI(2,E[1],e)}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}if(e.length<3)throw new jh;var f=e.substring(0,3);try{for(var d=id(t.THREE_DIGIT_DATA_LENGTH),m=d.next();!m.done;m=d.next())if((E=m.value)[0]===f)return E[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,E[2],e):t.processFixedAI(3,E[1],e)}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}try{for(var g=id(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),v=g.next();!v.done;v=g.next())if((E=v.value)[0]===f)return E[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,E[2],e):t.processFixedAI(4,E[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 jh;var y=e.substring(0,4);try{for(var b=id(t.FOUR_DIGIT_DATA_LENGTH),w=b.next();!w.done;w=b.next()){var E;if((E=w.value)[0]===y)return E[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,E[2],e):t.processFixedAI(4,E[1],e)}}catch(t){c={error:t}}finally{try{w&&!w.done&&(u=b.return)&&u.call(b)}finally{if(c)throw c.error}}throw new jh},t.processFixedAI=function(e,r,n){if(n.length<e)throw new jh;var i=n.substring(0,e);if(n.length<e+r)throw new jh;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,u=t.parseFieldsInGeneralPurpose(s);return null==u?c:c+u},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}();var ad=function(){function t(t){this.buffer=new Fh,this.information=t}return t.prototype.decodeAllCodes=function(t,e){for(var r=e,n=null;;){var i=this.decodeGeneralPurposeField(r,n),o=od.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 nd(this.information.getSize(),0===e?nd.FNC1:e-1,nd.FNC1)}var r=this.extractNumericValueFromBitArray(t,7);return new nd(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 ed(this.current.getPosition(),this.buffer.toString(),r.getRemainingValue()):new ed(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 ed(this.current.getPosition(),this.buffer.toString()):new ed(this.current.getPosition(),this.buffer.toString(),t.getSecondDigit()),new Qf(!0,e)}if(this.buffer.append(t.getFirstDigit()),t.isSecondDigitFNC1())return e=new ed(this.current.getPosition(),this.buffer.toString()),new Qf(!0,e);this.buffer.append(t.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new Qf(!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 ed(this.current.getPosition(),this.buffer.toString());return new Qf(!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 Qf(!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 ed(this.current.getPosition(),this.buffer.toString());return new Qf(!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 Qf(!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 Jf(t+5,Jf.FNC1);if(e>=5&&e<15)return new Jf(t+5,"0"+(e-5));var r,n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<90)return new Jf(t+7,""+(n+1));if(n>=90&&n<116)return new Jf(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 _h}return new Jf(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 Jf(t+5,Jf.FNC1);if(e>=5&&e<15)return new Jf(t+5,"0"+(e-5));var r,n=this.extractNumericValueFromBitArray(t,6);if(n>=32&&n<58)return new Jf(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 Ep("Decoding invalid alphanumeric value: "+n)}return new Jf(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 sd=ad,cd=function(){function t(t){this.information=t,this.generalDecoder=new sd(t)}return t.prototype.getInformation=function(){return this.information},t.prototype.getGeneralDecoder=function(){return this.generalDecoder},t}();var ud=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)}}(),ld=function(t){function e(e){return t.call(this,e)||this}return ud(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}(cd);const hd=ld;var pd=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 fd=function(t){function e(e){return t.call(this,e)||this}return pd(e,t),e.prototype.parseInformation=function(){var t=new Fh;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}(hd);var dd=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 md=function(t){function e(e){return t.call(this,e)||this}return dd(e,t),e.prototype.parseInformation=function(){var t=new Fh;return this.getGeneralDecoder().decodeAllCodes(t,e.HEADER_SIZE)},e.HEADER_SIZE=5,e}(cd);var gd=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)}}(),vd=function(t){function e(e){return t.call(this,e)||this}return gd(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}(hd);const yd=vd;var bd=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 wd=function(t){function e(e){return t.call(this,e)||this}return bd(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+yd.GTIN_SIZE+e.WEIGHT_SIZE)throw new jh;var t=new Fh;return this.encodeCompressedGtin(t,e.HEADER_SIZE),this.encodeCompressedWeight(t,e.HEADER_SIZE+yd.GTIN_SIZE,e.WEIGHT_SIZE),t.toString()},e.HEADER_SIZE=5,e.WEIGHT_SIZE=15,e}(yd);var Ed=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 _d=function(t){function e(e){return t.call(this,e)||this}return Ed(e,t),e.prototype.addWeightCode=function(t,e){t.append("(3103)")},e.prototype.checkWeight=function(t){return t},e}(wd);var Ad=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 Cd=function(t){function e(e){return t.call(this,e)||this}return Ad(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}(wd);var Sd=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 xd=function(t){function e(e){return t.call(this,e)||this}return Sd(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+hd.GTIN_SIZE)throw new jh;var t=new Fh;this.encodeCompressedGtin(t,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+hd.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(392"),t.append(r),t.append(")");var n=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+hd.GTIN_SIZE+e.LAST_DIGIT_SIZE,null);return t.append(n.getNewString()),t.toString()},e.HEADER_SIZE=8,e.LAST_DIGIT_SIZE=2,e}(hd);var Dd=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 Od=function(t){function e(e){return t.call(this,e)||this}return Dd(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+hd.GTIN_SIZE)throw new jh;var t=new Fh;this.encodeCompressedGtin(t,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+hd.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(393"),t.append(r),t.append(")");var n=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+hd.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+hd.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}(hd);var Pd=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 Id=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.dateCode=n,i.firstAIdigits=r,i}return Pd(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE+e.DATE_SIZE)throw new jh;var t=new Fh;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}(yd);var kd=__webpack_require__(51266);const Td=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}(),Rd=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 Fd=__webpack_require__(51266),Md=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)}}(),Nd=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.")},Bd=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 Md(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 jh){if(!this.pairs.length)throw new jh;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 jh},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){Fd.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,Nd(t)),c=s.next();!c.done;c=s.next()){var u=c.value;this.pairs.push(u.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 l=new Array(t);l.push(a);try{return this.checkRows(l,o+1)}catch(t){Fd.log(t)}}}throw new jh},e.isValidSequence=function(t){var r,n;try{for(var i=Nd(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 Rd(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=Nd(e),u=c.next();!u.done;u=c.next()){var l=u.value;if(l.getPairs().length!==t.length)try{for(var h=(i=void 0,Nd(l.getPairs())),p=h.next();!p.done;p=h.next()){var f=p.value;try{for(var d=(a=void 0,Nd(t)),m=d.next();!m.done;m=d.next()){var g=m.value;if(Td.equals(f,g)){!0;break}}}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}}catch(t){r={error:t}}finally{try{u&&!u.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=Nd(e),u=c.next();!u.done;u=c.next()){var l=u.value,h=!0;try{for(var p=(i=void 0,Nd(t)),f=p.next();!f.done;f=p.next()){var d=f.value,m=!1;try{for(var g=(a=void 0,Nd(l.getPairs())),v=g.next();!v.done;v=g.next()){var y=v.value;if(d.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){h=!1;break}}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}if(h)return!0}}catch(t){r={error:t}}finally{try{u&&!u.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 fd(t);if(!t.get(2))return new md(t);switch(sd.extractNumericValueFromBitArray(t,1,4)){case 4:return new _d(t);case 5:return new Cd(t)}switch(sd.extractNumericValueFromBitArray(t,1,5)){case 12:return new xd(t);case 13:return new Od(t)}switch(sd.extractNumericValueFromBitArray(t,1,7)){case 56:return new Id(t,"310","11");case 57:return new Id(t,"320","11");case 58:return new Id(t,"310","13");case 59:return new Id(t,"320","13");case 60:return new Id(t,"310","15");case 61:return new Id(t,"320","15");case 62:return new Id(t,"310","17");case 63:return new Id(t,"320","17")}}catch(e){throw kd.log(e),new Ep("unknown decoder: "+t)}}($f.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 np(e,null,null,i,op.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,u=this.decodeDataCharacter(t,i,o,!0);if(!this.isEmptyPair(r)&&r[r.length-1].mustBeLast())throw new jh;try{c=this.decodeDataCharacter(t,i,o,!1)}catch(t){c=null,Fd.log(t)}return new Td(u,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 u=0,l=o,h=o;h<a;h++)if(t.get(h)!=c)i[u]++;else{if(3==u){if(s&&e.reverseCounters(i),e.isFinderPattern(i))return this.startEnd[0]=l,void(this.startEnd[1]=h);s&&e.reverseCounters(i),l+=i[0]+i[1],i[0]=i[2],i[1]=i[3],i[2]=0,i[3]=0,u--}else u++;i[u]=1,c=!c}throw new jh},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,u=this.getDecodeFinderCounters();ch.arraycopy(u,0,u,1,u.length-1),u[0]=i;try{c=this.parseFinderValue(u,e.FINDER_PATTERNS)}catch(t){return null}return new qf(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 u=o[s];o[s]=o[c],o[c]=u}}var l=Op.sum(new Int32Array(o))/17,h=(r.getStartEnd()[1]-r.getStartEnd()[0])/15;if(Math.abs(l-h)/h>.3)throw new jh;var p=this.getOddCounts(),f=this.getEvenCounts(),d=this.getOddRoundingErrors(),m=this.getEvenRoundingErrors();for(s=0;s<o.length;s++){var g=1*o[s]/l,v=g+.5;if(v<1){if(g<.3)throw new jh;v=1}else if(v>8){if(g>8.7)throw new jh;v=8}var y=s/2;0==(1&s)?(p[y]=v,d[y]=g-v):(f[y]=v,m[y]=g-v)}this.adjustOddEvenCounts(17);var b=4*r.getValue()+(n?0:2)+(i?0:1)-1,w=0,E=0;for(s=p.length-1;s>=0;s--){if(e.isNotA1left(r,n,i)){var _=e.WEIGHTS[b][2*s];E+=p[s]*_}w+=p[s]}var A=0;for(s=f.length-1;s>=0;s--)e.isNotA1left(r,n,i)&&(_=e.WEIGHTS[b][2*s+1],A+=f[s]*_);var C=E+A;if(0!=(1&w)||w>13||w<4)throw new jh;var S=(13-w)/2,x=e.SYMBOL_WIDEST[S],D=9-x,O=Yf.getRSSvalue(p,x,!0),P=Yf.getRSSvalue(f,D,!1),I=e.EVEN_TOTAL_SUBSET[S],k=e.GSUM[S];return new Gf(O*I+P+k,C)},e.isNotA1left=function(t,e,r){return!(0==t.getValue()&&e&&r)},e.prototype.adjustOddEvenCounts=function(t){var r=Op.sum(new Int32Array(this.getOddCounts())),n=Op.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,u=1==(1&r),l=0==(1&n);if(1==c)if(u){if(l)throw new jh;o=!0}else{if(!l)throw new jh;s=!0}else if(-1==c)if(u){if(l)throw new jh;i=!0}else{if(!l)throw new jh;a=!0}else{if(0!=c)throw new jh;if(u){if(!l)throw new jh;r<n?(i=!0,s=!0):(o=!0,a=!0)}else if(l)throw new jh}if(i){if(o)throw new jh;e.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(o&&e.decrement(this.getOddCounts(),this.getOddRoundingErrors()),a){if(s)throw new jh;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}(Hf);const jd=Bd;var Ld=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 Vd=function(t){function e(e,r,n){var i=t.call(this,e,r)||this;return i.count=0,i.finderPattern=n,i}return Ld(e,t),e.prototype.getFinderPattern=function(){return this.finderPattern},e.prototype.getCount=function(){return this.count},e.prototype.incrementCount=function(){this.count++},e}(Gf);var zd=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)}}(),Ud=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.")},Hd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.possibleLeftPairs=[],e.possibleRightPairs=[],e}return zd(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 u=this.decodePair(r,!0,t,n);e.addOrTally(this.possibleRightPairs,u),r.reverse();try{for(var l=Ud(this.possibleLeftPairs),h=l.next();!h.done;h=l.next()){var p=h.value;if(p.getCount()>1)try{for(var f=(a=void 0,Ud(this.possibleRightPairs)),d=f.next();!d.done;d=f.next()){var m=d.value;if(m.getCount()>1&&e.checkChecksum(p,m))return e.constructResult(p,m)}}catch(t){a={error:t}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}throw new jh},e.addOrTally=function(t,e){var r,n;if(null!=e){var i=!1;try{for(var o=Ud(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 Fh,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(),u=e.getFinderPattern().getResultPoints();return new np(i.toString(),null,0,[c[0],c[1],u[0],u[1]],op.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(wh.NEED_RESULT_POINT_CALLBACK);if(null!=a){var s=(i[0]+i[1])/2;e&&(s=t.getSize()-1-s),a.foundPossibleResultPoint(new Tp(s,r))}var c=this.decodeDataCharacter(t,o,!0),u=this.decodeDataCharacter(t,o,!1);return new Vd(1597*c.getValue()+u.getValue(),c.getChecksumPortion()+4*u.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)Jp.recordPatternInReverse(t,r.getStartEnd()[0],i);else{Jp.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 u=n?16:15,l=Op.sum(new Int32Array(i))/u,h=this.getOddCounts(),p=this.getEvenCounts(),f=this.getOddRoundingErrors(),d=this.getEvenRoundingErrors();for(a=0;a<i.length;a++){var m=i[a]/l,g=Math.floor(m+.5);g<1?g=1:g>8&&(g=8);var v=Math.floor(a/2);0==(1&a)?(h[v]=g,f[v]=m-g):(p[v]=g,d[v]=m-g)}this.adjustOddEvenCounts(n,u);var y=0,b=0;for(a=h.length-1;a>=0;a--)b*=9,b+=h[a],y+=h[a];var w=0,E=0;for(a=p.length-1;a>=0;a--)w*=9,w+=p[a],E+=p[a];var _=b+3*w;if(n){if(0!=(1&y)||y>12||y<4)throw new jh;var A=(12-y)/2,C=9-(P=e.OUTSIDE_ODD_WIDEST[A]),S=Yf.getRSSvalue(h,P,!1),x=Yf.getRSSvalue(p,C,!0),D=e.OUTSIDE_EVEN_TOTAL_SUBSET[A],O=e.OUTSIDE_GSUM[A];return new Gf(S*D+x+O,_)}if(0!=(1&E)||E>10||E<4)throw new jh;A=(10-E)/2,C=9-(P=e.INSIDE_ODD_WIDEST[A]),S=Yf.getRSSvalue(h,P,!0),x=Yf.getRSSvalue(p,C,!1);var P,I=e.INSIDE_ODD_TOTAL_SUBSET[A];return O=e.INSIDE_GSUM[A],new Gf(x*I+S+O,_)},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(Hf.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 jh},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(),u=new Int32Array(c.length);ch.arraycopy(c,0,u,1,c.length-1),u[0]=s;var l=this.parseFinderValue(u,e.FINDER_PATTERNS),h=a,p=i[1];return n&&(h=t.getSize()-1-h,p=t.getSize()-1-p),new qf(l,[a,i[1]],h,p,r)},e.prototype.adjustOddEvenCounts=function(t,e){var r=Op.sum(new Int32Array(this.getOddCounts())),n=Op.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,u=(1&r)==(t?1:0),l=1==(1&n);if(1===c)if(u){if(l)throw new jh;o=!0}else{if(!l)throw new jh;s=!0}else if(-1===c)if(u){if(l)throw new jh;i=!0}else{if(!l)throw new jh;a=!0}else{if(0!==c)throw new jh;if(u){if(!l)throw new jh;r<n?(i=!0,s=!0):(o=!0,a=!0)}else if(l)throw new jh}if(i){if(o)throw new jh;Hf.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(o&&Hf.decrement(this.getOddCounts(),this.getOddRoundingErrors()),a){if(s)throw new jh;Hf.increment(this.getEvenCounts(),this.getOddRoundingErrors())}s&&Hf.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}(Hf);const Gd=Hd;var qd=__webpack_require__(51266),Wd=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)}}(),Yd=function(t){function e(e){var r=t.call(this)||this;r.readers=[];var n=e?e.get(wh.POSSIBLE_FORMATS):null,i=e&&void 0!==e.get(wh.ASSUME_CODE_39_CHECK_DIGIT);return n&&((n.includes(op.EAN_13)||n.includes(op.UPC_A)||n.includes(op.EAN_8)||n.includes(op.UPC_E))&&r.readers.push(new Vf(e)),n.includes(op.CODE_39)&&r.readers.push(new sf(i)),n.includes(op.CODE_128)&&r.readers.push(new rf),n.includes(op.ITF)&&r.readers.push(new lf),n.includes(op.RSS_14)&&r.readers.push(new Gd),n.includes(op.RSS_EXPANDED)&&(qd.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),r.readers.push(new jd))),0===r.readers.length&&(r.readers.push(new Vf(e)),r.readers.push(new sf),r.readers.push(new Vf(e)),r.readers.push(new rf),r.readers.push(new lf),r.readers.push(new Gd)),r}return Wd(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 jh},e.prototype.reset=function(){this.readers.forEach((function(t){return t.reset()}))},e}(Jp);const Xd=Yd;var $d=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)}}(),Qd=(function(t){$d((function(e,r){return void 0===e&&(e=500),t.call(this,new Xd(r),e,r)||this}),t)}(rp),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.")}),Kd=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}(),Zd=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 Jd=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,u=o.getECCodewords(),l=o.getECBlocks();try{for(var h=Qd(l),p=h.next();!p.done;p=h.next()){var f=p.value;c+=f.getCount()*(f.getDataCodewords()+u)}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}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 _h;try{for(var o=Qd(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 _h},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new Kd(5,new Zd(1,3))),new t(2,12,12,10,10,new Kd(7,new Zd(1,5))),new t(3,14,14,12,12,new Kd(10,new Zd(1,8))),new t(4,16,16,14,14,new Kd(12,new Zd(1,12))),new t(5,18,18,16,16,new Kd(14,new Zd(1,18))),new t(6,20,20,18,18,new Kd(18,new Zd(1,22))),new t(7,22,22,20,20,new Kd(20,new Zd(1,30))),new t(8,24,24,22,22,new Kd(24,new Zd(1,36))),new t(9,26,26,24,24,new Kd(28,new Zd(1,44))),new t(10,32,32,14,14,new Kd(36,new Zd(1,62))),new t(11,36,36,16,16,new Kd(42,new Zd(1,86))),new t(12,40,40,18,18,new Kd(48,new Zd(1,114))),new t(13,44,44,20,20,new Kd(56,new Zd(1,144))),new t(14,48,48,22,22,new Kd(68,new Zd(1,174))),new t(15,52,52,24,24,new Kd(42,new Zd(2,102))),new t(16,64,64,14,14,new Kd(56,new Zd(2,140))),new t(17,72,72,16,16,new Kd(36,new Zd(4,92))),new t(18,80,80,18,18,new Kd(48,new Zd(4,114))),new t(19,88,88,20,20,new Kd(56,new Zd(4,144))),new t(20,96,96,22,22,new Kd(68,new Zd(4,174))),new t(21,104,104,24,24,new Kd(56,new Zd(6,136))),new t(22,120,120,18,18,new Kd(68,new Zd(6,175))),new t(23,132,132,20,20,new Kd(62,new Zd(8,163))),new t(24,144,144,22,22,new Kd(62,new Zd(8,156),new Zd(2,155))),new t(25,8,18,6,16,new Kd(7,new Zd(1,5))),new t(26,8,32,6,14,new Kd(11,new Zd(1,10))),new t(27,12,26,10,24,new Kd(14,new Zd(1,16))),new t(28,12,36,10,16,new Kd(18,new Zd(1,22))),new t(29,16,36,14,16,new Kd(24,new Zd(1,32))),new t(30,16,48,14,22,new Kd(28,new Zd(1,49)))]},t.VERSIONS=t.buildVersions(),t}();var tm=function(){function t(e){var r=e.getHeight();if(r<8||r>144||0!=(1&r))throw new _h;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new Nh(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 Jd.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,u=!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)||u){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,u=!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 _h;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 eh("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 Nh(a*i,o*n),c=0;c<o;++c)for(var u=c*n,l=0;l<a;++l)for(var h=l*i,p=0;p<n;++p)for(var f=c*(n+2)+1+p,d=u+p,m=0;m<i;++m){var g=l*(i+2)+1+m;if(t.get(g,f)){var v=h+m;s.set(v,d)}}return s},t}();const em=tm;var rm=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.")},nm=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,u=s.getECBlocks();try{for(var l=rm(u),h=l.next();!h.done;h=l.next())c+=(g=h.value).getCount()}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}var p=new Array(c),f=0;try{for(var d=rm(u),m=d.next();!m.done;m=d.next())for(var g=m.value,v=0;v<g.getCount();v++){var y=g.getDataCodewords(),b=s.getECCodewords()+y;p[f++]=new t(y,new Uint8Array(b))}}catch(t){o={error:t}}finally{try{m&&!m.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}var w=p[0].codewords.length-s.getECCodewords(),E=w-1,_=0;for(v=0;v<E;v++)for(var A=0;A<f;A++)p[A].codewords[v]=e[_++];var C=24===r.getVersionNumber(),S=C?8:f;for(A=0;A<S;A++)p[A].codewords[w-1]=e[_++];var x=p[0].codewords.length;for(v=w;v<x;v++)for(A=0;A<f;A++){var D=C?(A+8)%f:A,O=C&&D>7?v-1:v;p[D].codewords[O]=e[_++]}if(_!==e.length)throw new eh;return p},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}();const im=nm,om=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 eh(""+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 am;!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"}(am||(am={}));var sm=function(){function t(){}return t.decode=function(t){var e=new om(t),r=new Fh,n=new Fh,i=new Array,o=am.ASCII_ENCODE;do{if(o===am.ASCII_ENCODE)o=this.decodeAsciiSegment(e,r,n);else{switch(o){case am.C40_ENCODE:this.decodeC40Segment(e,r);break;case am.TEXT_ENCODE:this.decodeTextSegment(e,r);break;case am.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,r);break;case am.EDIFACT_ENCODE:this.decodeEdifactSegment(e,r);break;case am.BASE256_ENCODE:this.decodeBase256Segment(e,r,i);break;default:throw new _h}o=am.ASCII_ENCODE}}while(o!==am.PAD_ENCODE&&e.available()>0);return n.length()>0&&r.append(n.toString()),new cp(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 _h;if(i<=128)return n&&(i+=128),e.append(String.fromCharCode(i-1)),am.ASCII_ENCODE;if(129===i)return am.PAD_ENCODE;if(i<=229){var o=i-130;o<10&&e.append("0"),e.append(""+o)}else switch(i){case 230:return am.C40_ENCODE;case 231:return am.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 am.ANSIX12_ENCODE;case 239:return am.TEXT_ENCODE;case 240:return am.EDIFACT_ENCODE;default:if(254!==i||0!==t.available())throw new _h}}while(t.available()>0);return am.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 _h;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 _h}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 _h}}}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 _h;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 _h}i=0;break;case 3:if(!(s<this.TEXT_SHIFT3_SET_CHARS.length))throw new _h;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 _h}}}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 _h;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 _h;for(var a=new Uint8Array(n),s=0;s<n;s++){if(t.available()<8)throw new _h;a[s]=this.unrandomize255State(t.readBits(8),i++)}r.push(a);try{e.append(Ih.decode(a,Th.ISO88591))}catch(t){throw new Ep("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 cm=sm;var um=function(){function t(){this.rsDecoder=new Ap(vp.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(t){var e,r,n=new em(t),i=n.getVersion(),o=n.readCodewords(),a=im.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),u=c.next();!u.done;u=c.next())s+=u.value.getNumDataCodewords()}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}for(var l=new Uint8Array(s),h=a.length,p=0;p<h;p++){var f=a[p],d=f.getCodewords(),m=f.getNumDataCodewords();this.correctErrors(d,m);for(var g=0;g<m;g++)l[g*h+p]=d[g]}return cm.decode(l)},t.prototype.correctErrors=function(t,e){var r=new Int32Array(t);try{this.rsDecoder.decode(r,t.length-e)}catch(t){throw new oh}for(var n=0;n<e;n++)t[n]=r[n]},t}();const lm=um;var hm=function(){function t(t){this.image=t,this.rectangleDetector=new Bp(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 jh;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 u=t.sampleGrid(this.image,n,i,o,a,s,c);return new Rp(u,[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 Tp(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 Tp(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),u=o,l=[i,e,r,n];return u>a&&(u=a,l[0]=e,l[1]=r,l[2]=n,l[3]=i),u>s&&(u=s,l[0]=r,l[1]=n,l[2]=i,l[3]=e),u>c&&(l[0]=n,l[1]=i,l[2]=e,l[3]=r),l},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)),u=t.shiftPoint(i,n,4*(a+1));a=this.transitionsBetween(c,o),s=this.transitionsBetween(u,o);var l=new Tp(o.getX()+(i.getX()-n.getX())/(a+1),o.getY()+(i.getY()-n.getY())/(a+1)),h=new Tp(o.getX()+(r.getX()-n.getX())/(s+1),o.getY()+(r.getY()-n.getY())/(s+1));return this.isValid(l)?this.isValid(h)?this.transitionsBetween(c,l)+this.transitionsBetween(u,l)>this.transitionsBetween(c,h)+this.transitionsBetween(u,h)?l:h:l:this.isValid(h)?h: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),u=t.shiftPoint(i,n,4*a);1==(1&(a=this.transitionsBetween(c,o)+1))&&(a+=1),1==(1&(s=this.transitionsBetween(u,o)+1))&&(s+=1);var l,h,p=(r.getX()+n.getX()+i.getX()+o.getX())/4,f=(r.getY()+n.getY()+i.getY()+o.getY())/4;return r=t.moveAway(r,p,f),n=t.moveAway(n,p,f),i=t.moveAway(i,p,f),o=t.moveAway(o,p,f),c=t.shiftPoint(r,n,4*s),c=t.shiftPoint(c,o,4*a),l=t.shiftPoint(n,r,4*s),l=t.shiftPoint(l,i,4*a),u=t.shiftPoint(i,o,4*s),u=t.shiftPoint(u,n,4*a),h=t.shiftPoint(o,i,4*s),[c,l,u,h=t.shiftPoint(h,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 qp.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),u=Math.abs(o-n),l=-c/2,h=n<o?1:-1,p=r<i?1:-1,f=0,d=this.image.get(a?n:r,a?r:n),m=r,g=n;m!==i;m+=p){var v=this.image.get(a?g:m,a?m:g);if(v!==d&&(f++,d=v),(l+=u)>0){if(g===o)break;g+=h,l-=c}}return f},t}();const pm=hm;var fm=function(){function t(){this.decoder=new lm}return t.prototype.decode=function(e,r){var n,i;if(void 0===r&&(r=null),null!=r&&r.has(wh.PURE_BARCODE)){var o=t.extractPureBits(e.getBlackMatrix());n=this.decoder.decode(o),i=t.NO_POINTS}else{var a=new pm(e.getBlackMatrix()).detect();n=this.decoder.decode(a.getBits()),i=a.getPoints()}var s=n.getRawBytes(),c=new np(n.getText(),s,8*s.length,i,op.DATA_MATRIX,ch.currentTimeMillis()),u=n.getByteSegments();null!=u&&c.putMetadata(sp.BYTE_SEGMENTS,u);var l=n.getECLevel();return null!=l&&c.putMetadata(sp.ERROR_CORRECTION_LEVEL,l),c},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null==e||null==r)throw new jh;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 jh;var u=n/2;i+=u,a+=u;for(var l=new Nh(s,c),h=0;h<c;h++)for(var p=i+h*n,f=0;f<s;f++)t.get(a+f*n,p)&&l.set(f,h);return l},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 jh;var o=n-t[0];if(0===o)throw new jh;return o},t.NO_POINTS=[],t}();const dm=fm;var mm,gm=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){gm((function(e){return void 0===e&&(e=500),t.call(this,new dm,e)||this}),t)}(rp),function(t){t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H"}(mm||(mm={}));var vm=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 Jl(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 eh;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t(mm.L,"L",1),t.M=new t(mm.M,"M",0),t.Q=new t(mm.Q,"Q",3),t.H=new t(mm.H,"H",2),t}();const ym=vm;var bm=function(){function t(t){this.errorCorrectionLevel=ym.forBits(t>>3&3),this.dataMask=7&t}return t.numBitsDiffering=function(t,e){return gh.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 u=c.value,l=u[0];if(l===e||l===r)return new t(u[1]);var h=t.numBitsDiffering(e,l);h<o&&(a=u[1],o=h),e!==r&&(h=t.numBitsDiffering(r,l))<o&&(a=u[1],o=h)}}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 wm=bm;var Em=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 _m=Em;var Am=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 Cm=Am;var Sm=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.")},xm=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 u=Sm(c),l=u.next();!l.done;l=u.next()){var h=l.value;a+=h.getCount()*(h.getDataCodewords()+s)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}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 _h;try{return this.getVersionForNumber((t-17)/4)}catch(t){throw new _h}},t.getVersionForNumber=function(e){if(e<1||e>40)throw new eh;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=wm.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 Nh(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 _m(7,new Cm(1,19)),new _m(10,new Cm(1,16)),new _m(13,new Cm(1,13)),new _m(17,new Cm(1,9))),new t(2,Int32Array.from([6,18]),new _m(10,new Cm(1,34)),new _m(16,new Cm(1,28)),new _m(22,new Cm(1,22)),new _m(28,new Cm(1,16))),new t(3,Int32Array.from([6,22]),new _m(15,new Cm(1,55)),new _m(26,new Cm(1,44)),new _m(18,new Cm(2,17)),new _m(22,new Cm(2,13))),new t(4,Int32Array.from([6,26]),new _m(20,new Cm(1,80)),new _m(18,new Cm(2,32)),new _m(26,new Cm(2,24)),new _m(16,new Cm(4,9))),new t(5,Int32Array.from([6,30]),new _m(26,new Cm(1,108)),new _m(24,new Cm(2,43)),new _m(18,new Cm(2,15),new Cm(2,16)),new _m(22,new Cm(2,11),new Cm(2,12))),new t(6,Int32Array.from([6,34]),new _m(18,new Cm(2,68)),new _m(16,new Cm(4,27)),new _m(24,new Cm(4,19)),new _m(28,new Cm(4,15))),new t(7,Int32Array.from([6,22,38]),new _m(20,new Cm(2,78)),new _m(18,new Cm(4,31)),new _m(18,new Cm(2,14),new Cm(4,15)),new _m(26,new Cm(4,13),new Cm(1,14))),new t(8,Int32Array.from([6,24,42]),new _m(24,new Cm(2,97)),new _m(22,new Cm(2,38),new Cm(2,39)),new _m(22,new Cm(4,18),new Cm(2,19)),new _m(26,new Cm(4,14),new Cm(2,15))),new t(9,Int32Array.from([6,26,46]),new _m(30,new Cm(2,116)),new _m(22,new Cm(3,36),new Cm(2,37)),new _m(20,new Cm(4,16),new Cm(4,17)),new _m(24,new Cm(4,12),new Cm(4,13))),new t(10,Int32Array.from([6,28,50]),new _m(18,new Cm(2,68),new Cm(2,69)),new _m(26,new Cm(4,43),new Cm(1,44)),new _m(24,new Cm(6,19),new Cm(2,20)),new _m(28,new Cm(6,15),new Cm(2,16))),new t(11,Int32Array.from([6,30,54]),new _m(20,new Cm(4,81)),new _m(30,new Cm(1,50),new Cm(4,51)),new _m(28,new Cm(4,22),new Cm(4,23)),new _m(24,new Cm(3,12),new Cm(8,13))),new t(12,Int32Array.from([6,32,58]),new _m(24,new Cm(2,92),new Cm(2,93)),new _m(22,new Cm(6,36),new Cm(2,37)),new _m(26,new Cm(4,20),new Cm(6,21)),new _m(28,new Cm(7,14),new Cm(4,15))),new t(13,Int32Array.from([6,34,62]),new _m(26,new Cm(4,107)),new _m(22,new Cm(8,37),new Cm(1,38)),new _m(24,new Cm(8,20),new Cm(4,21)),new _m(22,new Cm(12,11),new Cm(4,12))),new t(14,Int32Array.from([6,26,46,66]),new _m(30,new Cm(3,115),new Cm(1,116)),new _m(24,new Cm(4,40),new Cm(5,41)),new _m(20,new Cm(11,16),new Cm(5,17)),new _m(24,new Cm(11,12),new Cm(5,13))),new t(15,Int32Array.from([6,26,48,70]),new _m(22,new Cm(5,87),new Cm(1,88)),new _m(24,new Cm(5,41),new Cm(5,42)),new _m(30,new Cm(5,24),new Cm(7,25)),new _m(24,new Cm(11,12),new Cm(7,13))),new t(16,Int32Array.from([6,26,50,74]),new _m(24,new Cm(5,98),new Cm(1,99)),new _m(28,new Cm(7,45),new Cm(3,46)),new _m(24,new Cm(15,19),new Cm(2,20)),new _m(30,new Cm(3,15),new Cm(13,16))),new t(17,Int32Array.from([6,30,54,78]),new _m(28,new Cm(1,107),new Cm(5,108)),new _m(28,new Cm(10,46),new Cm(1,47)),new _m(28,new Cm(1,22),new Cm(15,23)),new _m(28,new Cm(2,14),new Cm(17,15))),new t(18,Int32Array.from([6,30,56,82]),new _m(30,new Cm(5,120),new Cm(1,121)),new _m(26,new Cm(9,43),new Cm(4,44)),new _m(28,new Cm(17,22),new Cm(1,23)),new _m(28,new Cm(2,14),new Cm(19,15))),new t(19,Int32Array.from([6,30,58,86]),new _m(28,new Cm(3,113),new Cm(4,114)),new _m(26,new Cm(3,44),new Cm(11,45)),new _m(26,new Cm(17,21),new Cm(4,22)),new _m(26,new Cm(9,13),new Cm(16,14))),new t(20,Int32Array.from([6,34,62,90]),new _m(28,new Cm(3,107),new Cm(5,108)),new _m(26,new Cm(3,41),new Cm(13,42)),new _m(30,new Cm(15,24),new Cm(5,25)),new _m(28,new Cm(15,15),new Cm(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new _m(28,new Cm(4,116),new Cm(4,117)),new _m(26,new Cm(17,42)),new _m(28,new Cm(17,22),new Cm(6,23)),new _m(30,new Cm(19,16),new Cm(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new _m(28,new Cm(2,111),new Cm(7,112)),new _m(28,new Cm(17,46)),new _m(30,new Cm(7,24),new Cm(16,25)),new _m(24,new Cm(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new _m(30,new Cm(4,121),new Cm(5,122)),new _m(28,new Cm(4,47),new Cm(14,48)),new _m(30,new Cm(11,24),new Cm(14,25)),new _m(30,new Cm(16,15),new Cm(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new _m(30,new Cm(6,117),new Cm(4,118)),new _m(28,new Cm(6,45),new Cm(14,46)),new _m(30,new Cm(11,24),new Cm(16,25)),new _m(30,new Cm(30,16),new Cm(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new _m(26,new Cm(8,106),new Cm(4,107)),new _m(28,new Cm(8,47),new Cm(13,48)),new _m(30,new Cm(7,24),new Cm(22,25)),new _m(30,new Cm(22,15),new Cm(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new _m(28,new Cm(10,114),new Cm(2,115)),new _m(28,new Cm(19,46),new Cm(4,47)),new _m(28,new Cm(28,22),new Cm(6,23)),new _m(30,new Cm(33,16),new Cm(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new _m(30,new Cm(8,122),new Cm(4,123)),new _m(28,new Cm(22,45),new Cm(3,46)),new _m(30,new Cm(8,23),new Cm(26,24)),new _m(30,new Cm(12,15),new Cm(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new _m(30,new Cm(3,117),new Cm(10,118)),new _m(28,new Cm(3,45),new Cm(23,46)),new _m(30,new Cm(4,24),new Cm(31,25)),new _m(30,new Cm(11,15),new Cm(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new _m(30,new Cm(7,116),new Cm(7,117)),new _m(28,new Cm(21,45),new Cm(7,46)),new _m(30,new Cm(1,23),new Cm(37,24)),new _m(30,new Cm(19,15),new Cm(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new _m(30,new Cm(5,115),new Cm(10,116)),new _m(28,new Cm(19,47),new Cm(10,48)),new _m(30,new Cm(15,24),new Cm(25,25)),new _m(30,new Cm(23,15),new Cm(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new _m(30,new Cm(13,115),new Cm(3,116)),new _m(28,new Cm(2,46),new Cm(29,47)),new _m(30,new Cm(42,24),new Cm(1,25)),new _m(30,new Cm(23,15),new Cm(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new _m(30,new Cm(17,115)),new _m(28,new Cm(10,46),new Cm(23,47)),new _m(30,new Cm(10,24),new Cm(35,25)),new _m(30,new Cm(19,15),new Cm(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new _m(30,new Cm(17,115),new Cm(1,116)),new _m(28,new Cm(14,46),new Cm(21,47)),new _m(30,new Cm(29,24),new Cm(19,25)),new _m(30,new Cm(11,15),new Cm(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new _m(30,new Cm(13,115),new Cm(6,116)),new _m(28,new Cm(14,46),new Cm(23,47)),new _m(30,new Cm(44,24),new Cm(7,25)),new _m(30,new Cm(59,16),new Cm(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new _m(30,new Cm(12,121),new Cm(7,122)),new _m(28,new Cm(12,47),new Cm(26,48)),new _m(30,new Cm(39,24),new Cm(14,25)),new _m(30,new Cm(22,15),new Cm(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new _m(30,new Cm(6,121),new Cm(14,122)),new _m(28,new Cm(6,47),new Cm(34,48)),new _m(30,new Cm(46,24),new Cm(10,25)),new _m(30,new Cm(2,15),new Cm(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new _m(30,new Cm(17,122),new Cm(4,123)),new _m(28,new Cm(29,46),new Cm(14,47)),new _m(30,new Cm(49,24),new Cm(10,25)),new _m(30,new Cm(24,15),new Cm(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new _m(30,new Cm(4,122),new Cm(18,123)),new _m(28,new Cm(13,46),new Cm(32,47)),new _m(30,new Cm(48,24),new Cm(14,25)),new _m(30,new Cm(42,15),new Cm(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new _m(30,new Cm(20,117),new Cm(4,118)),new _m(28,new Cm(40,47),new Cm(7,48)),new _m(30,new Cm(43,24),new Cm(22,25)),new _m(30,new Cm(10,15),new Cm(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new _m(30,new Cm(19,118),new Cm(6,119)),new _m(28,new Cm(18,47),new Cm(31,48)),new _m(30,new Cm(34,24),new Cm(34,25)),new _m(30,new Cm(20,15),new Cm(61,16)))],t}();const Dm=xm;var Om;!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"}(Om||(Om={}));var Pm=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([[Om.DATA_MASK_000,new t(Om.DATA_MASK_000,(function(t,e){return 0==(t+e&1)}))],[Om.DATA_MASK_001,new t(Om.DATA_MASK_001,(function(t,e){return 0==(1&t)}))],[Om.DATA_MASK_010,new t(Om.DATA_MASK_010,(function(t,e){return e%3==0}))],[Om.DATA_MASK_011,new t(Om.DATA_MASK_011,(function(t,e){return(t+e)%3==0}))],[Om.DATA_MASK_100,new t(Om.DATA_MASK_100,(function(t,e){return 0==(Math.floor(t/2)+Math.floor(e/3)&1)}))],[Om.DATA_MASK_101,new t(Om.DATA_MASK_101,(function(t,e){return t*e%6==0}))],[Om.DATA_MASK_110,new t(Om.DATA_MASK_110,(function(t,e){return t*e%6<3}))],[Om.DATA_MASK_111,new t(Om.DATA_MASK_111,(function(t,e){return 0==(t+e+t*e%3&1)}))]]),t}();const Im=Pm;var km=function(){function t(t){var e=t.getHeight();if(e<21||1!=(3&e))throw new _h;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=wm.decodeFormatInformation(t,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new _h},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 Dm.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=Dm.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=Dm.decodeVersionInformation(r))&&a.getDimensionForVersion()===t)return this.parsedVersion=a,a;throw new _h},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=Im.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,u=0,l=n-1;l>0;l-=2){6===l&&l--;for(var h=0;h<n;h++)for(var p=o?n-1-h:h,f=0;f<2;f++)i.get(l-f,p)||(u++,c<<=1,this.bitMatrix.get(l-f,p)&&(c|=1),8===u&&(a[s++]=c,u=0,c=0));o=!o}if(s!==e.getTotalCodewords())throw new _h;return a},t.prototype.remask=function(){if(null!==this.parsedFormatInfo){var t=Im.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 Tm=km;var Rm=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.")},Fm=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 eh;var c=r.getECBlocksForLevel(n),u=0,l=c.getECBlocks();try{for(var h=Rm(l),p=h.next();!p.done;p=h.next())u+=(v=p.value).getCount()}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}var f=new Array(u),d=0;try{for(var m=Rm(l),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;f[d++]=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 E=f[0].codewords.length,_=f.length-1;_>=0&&f[_].codewords.length!==E;)_--;_++;var A=E-c.getECCodewordsPerBlock(),C=0;for(y=0;y<A;y++)for(var S=0;S<d;S++)f[S].codewords[y]=e[C++];for(S=_;S<d;S++)f[S].codewords[A]=e[C++];var x=f[0].codewords.length;for(y=A;y<x;y++)for(S=0;S<d;S++){var D=S<_?y:y+1;f[S].codewords[D]=e[C++]}return f},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}();const Mm=Fm;var Nm;!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"}(Nm||(Nm={}));var Bm=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 eh;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(Nm.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),t.NUMERIC=new t(Nm.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),t.ALPHANUMERIC=new t(Nm.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),t.STRUCTURED_APPEND=new t(Nm.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),t.BYTE=new t(Nm.BYTE,"BYTE",Int32Array.from([8,16,16]),4),t.ECI=new t(Nm.ECI,"ECI",Int32Array.from([0,0,0]),7),t.KANJI=new t(Nm.KANJI,"KANJI",Int32Array.from([8,10,12]),8),t.FNC1_FIRST_POSITION=new t(Nm.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),t.FNC1_SECOND_POSITION=new t(Nm.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),t.HANZI=new t(Nm.HANZI,"HANZI",Int32Array.from([8,10,12]),13),t}();const jm=Bm;var Lm=function(){function t(){}return t.decode=function(e,r,n,i){var o=new om(e),a=new Fh,s=new Array,c=-1,u=-1;try{var l=null,h=!1,p=void 0;do{if(o.available()<4)p=jm.TERMINATOR;else{var f=o.readBits(4);p=jm.forBits(f)}switch(p){case jm.TERMINATOR:break;case jm.FNC1_FIRST_POSITION:case jm.FNC1_SECOND_POSITION:h=!0;break;case jm.STRUCTURED_APPEND:if(o.available()<16)throw new _h;c=o.readBits(8),u=o.readBits(8);break;case jm.ECI:var d=t.parseECIValue(o);if(null===(l=xh.getCharacterSetECIByValue(d)))throw new _h;break;case jm.HANZI:var m=o.readBits(4),g=o.readBits(p.getCharacterCountBits(r));m===t.GB2312_SUBSET&&t.decodeHanziSegment(o,a,g);break;default:var v=o.readBits(p.getCharacterCountBits(r));switch(p){case jm.NUMERIC:t.decodeNumericSegment(o,a,v);break;case jm.ALPHANUMERIC:t.decodeAlphanumericSegment(o,a,v,h);break;case jm.BYTE:t.decodeByteSegment(o,a,v,l,s,i);break;case jm.KANJI:t.decodeKanjiSegment(o,a,v);break;default:throw new _h}}}while(p!==jm.TERMINATOR)}catch(t){throw new _h}return new cp(e,a.toString(),0===s.length?null:s,null===n?null:n.toString(),c,u)},t.decodeHanziSegment=function(t,e,r){if(13*r>t.available())throw new _h;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(Ih.decode(n,Th.GB2312))}catch(t){throw new _h(t)}},t.decodeKanjiSegment=function(t,e,r){if(13*r>t.available())throw new _h;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(Ih.decode(n,Th.SHIFT_JIS))}catch(t){throw new _h(t)}},t.decodeByteSegment=function(t,e,r,n,i,o){if(8*r>t.available())throw new _h;for(var a,s=new Uint8Array(r),c=0;c<r;c++)s[c]=t.readBits(8);a=null===n?Th.guessEncoding(s,o):n.getName();try{e.append(Ih.decode(s,a))}catch(t){throw new _h(t)}i.push(s)},t.toAlphaNumericChar=function(e){if(e>=t.ALPHANUMERIC_CHARS.length)throw new _h;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 _h;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 _h;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 _h;var i=e.readBits(10);if(i>=1e3)throw new _h;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 _h;var o=e.readBits(7);if(o>=100)throw new _h;r.append(t.toAlphaNumericChar(Math.floor(o/10))),r.append(t.toAlphaNumericChar(o%10))}else if(1===n){if(e.available()<4)throw new _h;var a=e.readBits(4);if(a>=10)throw new _h;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 _h},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}();const Vm=Lm,zm=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 Um=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.")},Hm=function(){function t(){this.rsDecoder=new Ap(vp.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(t,e){return this.decodeBitMatrix(Nh.parseFromBooleanArray(t),e)},t.prototype.decodeBitMatrix=function(t,e){var r=new Tm(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 zm(!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(),u=Mm.getDataBlocks(c,a,s),l=0;try{for(var h=Um(u),p=h.next();!p.done;p=h.next())l+=(v=p.value).getNumDataCodewords()}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}var f=new Uint8Array(l),d=0;try{for(var m=Um(u),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++)f[d++]=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 Vm.decode(f,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 oh}for(var n=0;n<e;n++)t[n]=r[n]},t}();const Gm=Hm;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)}}(),Wm=function(t){function e(e,r,n){var i=t.call(this,e,r)||this;return i.estimatedModuleSize=n,i}return qm(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}(Tp);const Ym=Wm;var Xm=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 u=0;c<r;){if(o.get(c,s))if(1===u)i[1]++;else if(2===u){var l;if(this.foundPatternCross(i)&&null!==(l=this.handlePossibleCenter(i,s,c)))return l;i[0]=i[2],i[1]=1,i[2]=0,u=1}else i[++u]++;else 1===u&&u++,i[u]++;c++}if(this.foundPatternCross(i)&&null!==(l=this.handlePossibleCenter(i,s,r)))return l}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new jh},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 u=s[0]+s[1]+s[2];return 5*Math.abs(u-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 u=(e[0]+e[1]+e[2])/3;try{for(var l=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),h=l.next();!h.done;h=l.next()){var p=h.value;if(p.aboutEquals(u,c,s))return p.combineEstimate(c,s,u)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}var f=new Ym(s,c,u);this.possibleCenters.push(f),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(f)}return null},t}();const $m=Xm;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)}}(),Km=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 Qm(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}(Tp);const Zm=Km,Jm=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 tg=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.")},eg=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(wh.TRY_HARDER),n=null!=e&&void 0!==e.get(wh.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,u=new Int32Array(5),l=s-1;l<o&&!c;l+=s){u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0;for(var h=0,p=0;p<a;p++)if(i.get(p,l))1==(1&h)&&h++,u[h]++;else if(0==(1&h))if(4===h)if(t.foundPatternCross(u)){if(!0!==this.handlePossibleCenter(u,l,p,n)){u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,h=3;continue}if(s=2,!0===this.hasSkipped)c=this.haveMultiplyConfirmedCenters();else{var f=this.findRowSkip();f>u[2]&&(l+=f-u[2]-s,p=a-1)}h=0,u[0]=0,u[1]=0,u[2]=0,u[3]=0,u[4]=0}else u[0]=u[2],u[1]=u[3],u[2]=u[4],u[3]=1,u[4]=0,h=3;else u[++h]++;else u[h]++;t.foundPatternCross(u)&&!0===this.handlePossibleCenter(u,l,a,n)&&(s=u[0],this.hasSkipped&&(c=this.haveMultiplyConfirmedCenters()))}var d=this.selectBestPatterns();return Tp.orderBestPatterns(d),new Jm(d)},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(),u=s.getWidth();for(a=1;e+a<c&&r+a<u&&s.get(r+a,e+a);)o[2]++,a++;if(e+a>=c||r+a>=u)return!1;for(;e+a<c&&r+a<u&&!s.get(r+a,e+a)&&o[3]<n;)o[3]++,a++;if(e+a>=c||r+a>=u||o[3]>=n)return!1;for(;e+a<c&&r+a<u&&s.get(r+a,e+a)&&o[4]<n;)o[4]++,a++;if(o[4]>=n)return!1;var l=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(l-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 u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-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 u=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(u-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,u=!1,l=this.possibleCenters,h=0,p=l.length;h<p;h++){var f=l[h];if(f.aboutEquals(c,s,a)){l[h]=f.combineEstimate(s,a,c),u=!0;break}}if(!u){var d=new Zm(a,s,c);l.push(d),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(d)}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=tg(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=tg(this.possibleCenters),u=c.next();!u.done;u=c.next())(d=u.value).getCount()>=t.CENTER_QUORUM&&(o++,a+=d.getEstimatedModuleSize())}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}if(o<3)return!1;var l=a/s,h=0;try{for(var p=tg(this.possibleCenters),f=p.next();!f.done;f=p.next()){var d=f.value;h+=Math.abs(d.getEstimatedModuleSize()-l)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}return h<=.05*a},t.prototype.selectBestPatterns=function(){var t,e,r,n,i=this.possibleCenters.length;if(i<3)throw new jh;var o,a=this.possibleCenters;if(i>3){var s=0,c=0;try{for(var u=tg(this.possibleCenters),l=u.next();!l.done;l=u.next()){var h=l.value.getEstimatedModuleSize();s+=h,c+=h*h}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}o=s/i;var p=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 f=Math.max(.2*o,p),d=0;d<a.length&&a.length>3;d++){var m=a[d];Math.abs(m.getEstimatedModuleSize()-o)>f&&(a.splice(d,1),d--)}}if(a.length>3){s=0;try{for(var g=tg(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 rg=eg;var ng=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(wh.NEED_RESULT_POINT_CALLBACK);var e=new rg(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 jh("No pattern found in proccess finder.");var a=t.computeDimension(r,n,i,o),s=Dm.getProvisionalVersionForDimension(a),c=s.getDimensionForVersion()-7,u=null;if(s.getAlignmentPatternCenters().length>0)for(var l=n.getX()-r.getX()+i.getX(),h=n.getY()-r.getY()+i.getY(),p=1-3/c,f=Math.floor(r.getX()+p*(l-r.getX())),d=Math.floor(r.getY()+p*(h-r.getY())),m=4;m<=16;m<<=1)try{u=this.findAlignmentInRegion(o,f,d,m);break}catch(t){if(!(t instanceof jh))throw t}var g=t.createTransform(r,n,i,u,a),v=t.sampleGrid(this.image,g,a);return new Rp(v,null===u?[i,r,n]:[i,r,n,u])},t.createTransform=function(t,e,r,n,i){var o,a,s,c,u=i-3.5;return null!==n?(o=n.getX(),a=n.getY(),c=s=u-3):(o=e.getX()-t.getX()+r.getX(),a=e.getY()-t.getY()+r.getY(),s=u,c=u),zp.quadrilateralToQuadrilateral(3.5,3.5,u,3.5,s,c,3.5,u,t.getX(),t.getY(),e.getX(),e.getY(),o,a,r.getX(),r.getY())},t.sampleGrid=function(t,e,r){return qp.getInstance().sampleGridWithTransform(t,r,r,e)},t.computeDimension=function(t,e,r,n){var i=Op.round(Tp.distance(t,e)/n),o=Op.round(Tp.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 jh("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,u=t<r?1:-1,l=e<n?1:-1,h=0,p=r+u,f=t,d=e;f!==p;f+=u){var m=i?d:f,g=i?f:d;if(1===h===this.image.get(m,g)){if(2===h)return Op.distance(f,d,t,e);h++}if((c+=s)>0){if(d===n)break;d+=l,c-=a}}return 2===h?Op.distance(r+u,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 jh("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 jh("Alignment bottom exceeds estimated module size.");return new $m(this.image,o,s,a-o,c-s,t,this.resultPointCallback).find()},t}();const ig=ng;var og=function(){function t(){this.decoder=new Gm}return t.prototype.getDecoder=function(){return this.decoder},t.prototype.decode=function(e,r){var n,i;if(null!=r&&void 0!==r.get(wh.PURE_BARCODE)){var o=t.extractPureBits(e.getBlackMatrix());n=this.decoder.decodeBitMatrix(o,r),i=t.NO_POINTS}else{var a=new ig(e.getBlackMatrix()).detect(r);n=this.decoder.decodeBitMatrix(a.getBits(),r),i=a.getPoints()}n.getOther()instanceof zm&&n.getOther().applyMirroredCorrection(i);var s=new np(n.getText(),n.getRawBytes(),void 0,i,op.QR_CODE,void 0),c=n.getByteSegments();null!==c&&s.putMetadata(sp.BYTE_SEGMENTS,c);var u=n.getECLevel();return null!==u&&s.putMetadata(sp.ERROR_CORRECTION_LEVEL,u),n.hasStructuredAppend()&&(s.putMetadata(sp.STRUCTURED_APPEND_SEQUENCE,n.getStructuredAppendSequenceNumber()),s.putMetadata(sp.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 jh;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 jh;if(o-i!=s-a&&(s=a+(o-i))>=t.getWidth())throw new jh;var c=Math.round((s-a+1)/n),u=Math.round((o-i+1)/n);if(c<=0||u<=0)throw new jh;if(u!==c)throw new jh;var l=Math.floor(n/2);i+=l;var h=(a+=l)+Math.floor((c-1)*n)-s;if(h>0){if(h>l)throw new jh;a-=h}var p=i+Math.floor((u-1)*n)-o;if(p>0){if(p>l)throw new jh;i-=p}for(var f=new Nh(c,u),d=0;d<u;d++)for(var m=i+Math.floor(d*n),g=0;g<c;g++)t.get(a+Math.floor(g*n),m)&&f.set(g,d);return f},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 jh;return(i-t[0])/7},t.NO_POINTS=new Array,t}();const ag=og;var sg=function(){function t(){}return t.prototype.PDF417Common=function(){},t.getBitCountSum=function(t){return Op.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=dh.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 cg=sg,ug=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 lg=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.")},hg=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 ug(i,o)},t.detect=function(e,r){for(var n,i,o=new Array,a=0,s=0,c=!1;a<r.getHeight();){var u=t.findVertices(r,a,s);if(null!=u[0]||null!=u[3]){if(c=!0,o.push(u),!e)break;null!=u[2]?(s=Math.trunc(u[2].getX()),a=Math.trunc(u[2].getY())):(s=Math.trunc(u[4].getX()),a=Math.trunc(u[4].getY()))}else{if(!c)break;c=!1,s=0;try{for(var l=(n=void 0,lg(o)),h=l.next();!h.done;h=l.next()){var p=h.value;null!=p[1]&&(a=Math.trunc(Math.max(a,p[1].getY()))),null!=p[3]&&(a=Math.max(a,Math.trunc(p[3].getY())))}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}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,u=new Int32Array(a.length);i<r;i+=t.ROW_STEP)if(null!=(f=t.findGuardPattern(e,o,i,n,!1,a,u))){for(;i>0;){if(null==(p=t.findGuardPattern(e,o,--i,n,!1,a,u))){i++;break}f=p}s[0]=new Tp(f[0],i),s[1]=new Tp(f[1],i),c=!0;break}var l=i+1;if(c){for(var h=0,p=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);l<r;l++){var f;if(null!=(f=t.findGuardPattern(e,p[0],l,n,!1,a,u))&&Math.abs(p[0]-f[0])<t.MAX_PATTERN_DRIFT&&Math.abs(p[1]-f[1])<t.MAX_PATTERN_DRIFT)p=f,h=0;else{if(h>t.SKIPPED_ROW_COUNT_MAX)break;h++}}l-=h+1,s[2]=new Tp(p[0],l),s[3]=new Tp(p[1],l)}return l-i<t.BARCODE_MIN_HEIGHT&&dh.fill(s,null),s},t.findGuardPattern=function(e,r,n,i,o,a,s){dh.fillWithin(s,0,s.length,0);for(var c=r,u=0;e.get(c,n)&&c>0&&u++<t.MAX_PIXEL_DRIFT;)c--;for(var l=c,h=0,p=a.length,f=o;l<i;l++)if(e.get(l,n)!==f)s[h]++;else{if(h===p-1){if(t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return new Int32Array([c,l]);c+=s[0]+s[1],ch.arraycopy(s,2,s,0,h-1),s[h-1]=0,s[h]=0,h--}else h++;s[h]=1,f=!f}return h===p-1&&t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE?new Int32Array([c,l-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,u=0;u<n;u++){var l=t[u],h=e[u]*s,p=l>h?l-h:h-l;if(p>r)return 1/0;c+=p}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 pg=hg;var fg=function(){function t(t,e){if(0===e.length)throw new eh;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),ch.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,u=1;u<c;u++)s=this.field.add(this.field.multiply(t,s),this.coefficients[u]);return s},t.prototype.add=function(e){if(!this.field.equals(e.field))throw new eh("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;ch.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 eh("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 eh("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],u=0;u<o;u++)a[s+u]=this.field.add(a[s+u],this.field.multiply(c,i[u]));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 eh;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 Fh,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 dg=fg;var mg=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 eh;return this.logTable[t]},t.prototype.inverse=function(t){if(0===t)throw new dp;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 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){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 dg(n,new Int32Array([0])),n.one=new dg(n,new Int32Array([1])),n}return vg(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 eh;if(0===e)return this.zero;var r=new Int32Array(t+1);return r[0]=e,new dg(this,r)},e.PDF417_GF=new e(cg.NUMBER_OF_CODEWORDS,3),e}(gg);const bg=yg;var wg=function(){function t(){this.field=bg.PDF417_GF}return t.prototype.decode=function(t,e,r){for(var n,i,o=new dg(this.field,t),a=new Int32Array(e),s=!1,c=e;c>0;c--){var u=o.evaluateAt(this.field.exp(c));a[e-c]=u,0!==u&&(s=!0)}if(!s)return 0;var l=this.field.getOne();if(null!=r)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.")}(r),p=h.next();!p.done;p=h.next()){var f=p.value,d=this.field.exp(t.length-1-f),m=new dg(this.field,new Int32Array([this.field.subtract(0,d),1]));l=l.multiply(m)}}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}var g=new dg(this.field,a),v=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),g,e),y=v[0],b=v[1],w=this.findErrorLocations(y),E=this.findErrorMagnitudes(b,y,w);for(c=0;c<w.length;c++){var _=t.length-1-this.field.log(w[c]);if(_<0)throw oh.getChecksumInstance();t[_]=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,u=a;if(a=s,(i=o).isZero())throw oh.getChecksumInstance();o=c;for(var l=this.field.getZero(),h=i.getCoefficient(i.getDegree()),p=this.field.inverse(h);o.getDegree()>=i.getDegree()&&!o.isZero();){var f=o.getDegree()-i.getDegree(),d=this.field.multiply(o.getCoefficient(o.getDegree()),p);l=l.add(this.field.buildMonomial(f,d)),o=o.subtract(i.multiplyByMonomial(f,d))}s=l.multiply(a).subtract(u).negative()}var m=s.getCoefficient(0);if(0===m)throw oh.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 oh.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 dg(this.field,i),s=r.length,c=new Int32Array(s);for(o=0;o<s;o++){var u=this.field.inverse(r[o]),l=this.field.subtract(0,t.evaluateAt(u)),h=this.field.inverse(a.evaluateAt(u));c[o]=this.field.multiply(l,h)}return c},t}();const Eg=wg,_g=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 jh;o?(e=new Tp(0,n.getY()),r=new Tp(0,i.getY())):a&&(n=new Tp(t.getWidth()-1,e.getY()),i=new Tp(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,u=Math.trunc(c.getY()-e);u<0&&(u=0);var l=new Tp(c.getX(),u);n?i=l:a=l}if(r>0){var h=n?this.bottomLeft:this.bottomRight,p=Math.trunc(h.getY()+r);p>=this.image.getHeight()&&(p=this.image.getHeight()-1);var f=new Tp(h.getX(),p);n?o=f:s=f}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}(),Ag=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 Cg=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,u=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(u||16);break;case"d":c=parseFloat(parseInt(e[r],u||10).toPrecision(t)).toFixed(0)}c="object"==typeof c?JSON.stringify(c):(+c).toString(u);for(var l=parseInt(i),h=i&&i[0]+""=="0"?"0":" ";c.length<l;)c=void 0!==n?c+h:h+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 Sg=Cg;var xg=function(){function t(t){this.boundingBox=new _g(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 Sg,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 Dg=xg;var Og=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};const Pg=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=Og(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 cg.toIntArray(n)},t.prototype.getConfidence=function(t){return this.values.get(t)},t}();var Ig=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)}}(),kg=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.")},Tg=function(t){function e(e,r){var n=t.call(this,e)||this;return n._isLeft=r,n}return Ig(e,t),e.prototype.setRowNumbers=function(){var t,e;try{for(var r=kg(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,u=0,l=o;l<a;l++)if(null!=e[l]){var h=e[l],p=h.getRowNumber()-s;if(0===p)u++;else if(1===p)c=Math.max(c,u),u=1,s=h.getRowNumber();else if(p<0||h.getRowNumber()>=t.getRowCount()||p>l)e[l]=null;else{for(var f,d=(f=c>2?(c-2)*p:p)>=l,m=1;m<=f&&!d;m++)d=null!=e[l-m];d?e[l]=null:(s=h.getRowNumber(),u=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=kg(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,u=0,l=i;l<o;l++)if(null!=a[l]){var h=a[l];h.setRowNumberAsRowIndicatorColumn();var p=h.getRowNumber()-s;0===p?u++:1===p?(c=Math.max(c,u),u=1,s=h.getRowNumber()):h.getRowNumber()>=t.getRowCount()?a[l]=null:(s=h.getRowNumber(),u=1)}},e.prototype.getBarcodeMetadata=function(){var t,e,r=this.getCodewords(),n=new Pg,i=new Pg,o=new Pg,a=new Pg;try{for(var s=kg(r),c=s.next();!c.done;c=s.next()){var u=c.value;if(null!=u){u.setRowNumberAsRowIndicatorColumn();var l=u.getValue()%30,h=u.getRowNumber();switch(this._isLeft||(h+=2),h%3){case 0:i.setValue(3*l+1);break;case 1:a.setValue(l/3),o.setValue(l%3);break;case 2:n.setValue(l+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]<cg.MIN_ROWS_IN_BARCODE||i.getValue()[0]+o.getValue()[0]>cg.MAX_ROWS_IN_BARCODE)return null;var p=new Ag(n.getValue()[0],i.getValue()[0],o.getValue()[0],a.getValue()[0]);return this.removeIncorrectCodewords(r,p),p},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}(Dg);const Rg=Tg;var Fg=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=cg.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 u=new Array(14);u[2]=s[r],u[3]=c[r],r>0&&(u[0]=n[r-1],u[4]=s[r-1],u[5]=c[r-1]),r>1&&(u[8]=n[r-2],u[10]=s[r-2],u[11]=c[r-2]),r<n.length-1&&(u[1]=n[r+1],u[6]=s[r+1],u[7]=c[r+1]),r<n.length-2&&(u[9]=n[r+2],u[12]=s[r+2],u[13]=c[r+2]);try{for(var l=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),h=l.next();!h.done;h=l.next()){var p=h.value;if(t.adjustRowNumber(a,p))return}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=l.return)&&o.call(l)}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 Sg,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 Mg=Fg,Ng=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 Bg=function(){function t(){}return t.initialize=function(){for(var e=0;e<cg.SYMBOL_TABLE.length;e++)for(var r=cg.SYMBOL_TABLE[e],n=1&r,i=0;i<cg.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(cg.BARS_IN_MODULE)),t.RATIOS_TABLE[e][cg.BARS_IN_MODULE-i-1]=Math.fround(o/cg.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=Op.sum(t),r=new Int32Array(cg.BARS_IN_MODULE),n=0,i=0,o=0;o<cg.MODULES_IN_CODEWORD;o++){var a=e/(2*cg.MODULES_IN_CODEWORD)+o*e/cg.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===cg.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=Op.sum(e),n=new Array(cg.BARS_IN_MODULE);if(r>1)for(var i=0;i<n.length;i++)n[i]=Math.fround(e[i]/r);var o=Ip.MAX_VALUE,a=-1;this.bSymbolTableReady||t.initialize();for(var s=0;s<t.RATIOS_TABLE.length;s++){for(var c=0,u=t.RATIOS_TABLE[s],l=0;l<cg.BARS_IN_MODULE;l++){var h=Math.fround(u[l]-n[l]);if((c+=Math.fround(h*h))>=o)break}c<o&&(o=c,a=cg.SYMBOL_TABLE[s])}return a},t.bSymbolTableReady=!1,t.RATIOS_TABLE=new Array(cg.SYMBOL_TABLE.length).map((function(t){return new Array(cg.BARS_IN_MODULE)})),t}();const jg=Bg,Lg=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}(),Vg=function(){function t(){}return t.parseLong=function(t,e){return void 0===e&&(e=void 0),parseInt(t,e)},t}();var zg=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 Ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zg(e,t),e.kind="NullPointerException",e}(Kl);var Hg=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 Ug;if(e<0||e>t.length||r<0||e+r>t.length||e+r<0)throw new lh;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 Gg=Hg;var qg=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 Wg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qg(e,t),e}(Kl);var Yg=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)}}(),Xg=function(t){function e(e){void 0===e&&(e=32);var r=t.call(this)||this;if(r.count=0,e<0)throw new eh("Negative initial size: "+e);return r.buf=new Uint8Array(e),r}return Yg(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 Wg;e=gh.MAX_VALUE}this.buf=dh.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 lh;this.ensureCapacity(this.count+r),ch.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 dh.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}(Gg);const $g=Xg;var Qg,Kg;function Zg(){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 Jg(t){if(void 0===Kg&&(Kg=Zg()),null===Kg)throw new Error("BigInt is not supported!");return Kg(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"}(Qg||(Qg={}));var tv=function(){function t(){}return t.decode=function(e,r){var n=new Fh(""),i=xh.ISO8859_1;n.enableDecoding(i);for(var o=1,a=e[o++],s=new Lg;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:xh.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 _h;default:o--,o=t.textCompaction(e,o,n)}if(!(o<e.length))throw _h.getFormatInstance();a=e[o++]}if(0===n.length())throw _h.getFormatInstance();var c=new cp(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 _h.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(gh.parseInt(t.decodeBase900toBase10(i,t.NUMBER_OF_SEQUENCE_CODEWORDS)));var a=new Fh;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 Fh;r=t.textCompaction(e,r+1,c),n.setFileName(c.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var u=new Fh;r=t.textCompaction(e,r+1,u),n.setSender(u.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var l=new Fh;r=t.textCompaction(e,r+1,l),n.setAddressee(l.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var h=new Fh;r=t.numericCompaction(e,r+1,h),n.setSegmentCount(gh.parseInt(h.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var p=new Fh;r=t.numericCompaction(e,r+1,p),n.setTimestamp(Vg.parseLong(p.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var f=new Fh;r=t.numericCompaction(e,r+1,f),n.setChecksum(gh.parseInt(f.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var d=new Fh;r=t.numericCompaction(e,r+1,d),n.setFileSize(Vg.parseLong(d.toString()));break;default:throw _h.getFormatInstance()}break;case t.MACRO_PDF417_TERMINATOR:r++,n.setLastSegment(!0);break;default:throw _h.getFormatInstance()}if(-1!==s){var m=r-s;n.isLastSegment()&&m--,n.setOptionalData(dh.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=Qg.ALPHA,a=Qg.ALPHA,s=0;s<n;){var c=e[s],u="";switch(o){case Qg.ALPHA:if(c<26)u=String.fromCharCode(65+c);else switch(c){case 26:u=" ";break;case t.LL:o=Qg.LOWER;break;case t.ML:o=Qg.MIXED;break;case t.PS:a=o,o=Qg.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Qg.ALPHA}break;case Qg.LOWER:if(c<26)u=String.fromCharCode(97+c);else switch(c){case 26:u=" ";break;case t.AS:a=o,o=Qg.ALPHA_SHIFT;break;case t.ML:o=Qg.MIXED;break;case t.PS:a=o,o=Qg.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Qg.ALPHA}break;case Qg.MIXED:if(c<t.PL)u=t.MIXED_CHARS[c];else switch(c){case t.PL:o=Qg.PUNCT;break;case 26:u=" ";break;case t.LL:o=Qg.LOWER;break;case t.AL:o=Qg.ALPHA;break;case t.PS:a=o,o=Qg.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Qg.ALPHA}break;case Qg.PUNCT:if(c<t.PAL)u=t.PUNCT_CHARS[c];else switch(c){case t.PAL:o=Qg.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Qg.ALPHA}break;case Qg.ALPHA_SHIFT:if(o=a,c<26)u=String.fromCharCode(65+c);else switch(c){case 26:u=" ";break;case t.TEXT_COMPACTION_MODE_LATCH:o=Qg.ALPHA}break;case Qg.PUNCT_SHIFT:if(o=a,c<t.PAL)u=t.PUNCT_CHARS[c];else switch(c){case t.PAL:o=Qg.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i.append(r[s]);break;case t.TEXT_COMPACTION_MODE_LATCH:o=Qg.ALPHA}}""!==u&&i.append(u),s++}},t.byteCompaction=function(e,r,n,i,o){var a=new $g,s=0,c=0,u=!1;switch(e){case t.BYTE_COMPACTION_MODE_LATCH:for(var l=new Int32Array(6),h=r[i++];i<r[0]&&!u;)switch(l[s++]=h,c=900*c+h,h=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--,u=!0;break;default:if(s%5==0&&s>0){for(var p=0;p<6;++p)a.write(Number(Jg(c)>>Jg(8*(5-p))));c=0,s=0}}i===r[0]&&h<t.TEXT_COMPACTION_MODE_LATCH&&(l[s++]=h);for(var f=0;f<s;f++)a.write(l[f]);break;case t.BYTE_COMPACTION_MODE_LATCH_6:for(;i<r[0]&&!u;){var d=r[i++];if(d<t.TEXT_COMPACTION_MODE_LATCH)s++,c=900*c+d;else switch(d){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--,u=!0}if(s%5==0&&s>0){for(p=0;p<6;++p)a.write(Number(Jg(c)>>Jg(8*(5-p))));c=0,s=0}}}return o.append(Ih.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=Jg(0),i=0;i<r;i++)n+=t.EXP900[r-i-1]*Jg(e[i]);var o=n.toString();if("1"!==o.charAt(0))throw new _h;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=Zg()?function(){var t=[];t[0]=Jg(1);var e=Jg(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 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(){}return t.decode=function(e,r,n,i,o,a,s){for(var c,u=new _g(e,r,n,i,o),l=null,h=null,p=!0;;p=!1){if(null!=r&&(l=t.getRowIndicatorColumn(e,u,r,!0,a,s)),null!=i&&(h=t.getRowIndicatorColumn(e,u,i,!1,a,s)),null==(c=t.merge(l,h)))throw jh.getNotFoundInstance();var f=c.getBoundingBox();if(!p||null==f||!(f.getMinY()<u.getMinY()||f.getMaxY()>u.getMaxY()))break;u=f}c.setBoundingBox(u);var d=c.getBarcodeColumnCount()+1;c.setDetectionResultColumn(0,l),c.setDetectionResultColumn(d,h);for(var m=null!=l,g=1;g<=d;g++){var v=m?g:d-g;if(void 0===c.getDetectionResultColumn(v)){var y=void 0;y=0===v||v===d?new Rg(u,0===v):new Dg(u),c.setDetectionResultColumn(v,y);for(var b=-1,w=b,E=u.getMinY();E<=u.getMaxY();E++){if((b=t.getStartColumn(c,v,E,m))<0||b>u.getMaxX()){if(-1===w)continue;b=w}var _=t.detectCodeword(e,u.getMinX(),u.getMaxX(),m,b,E,a,s);null!=_&&(y.setCodeword(E,_),w=b,a=Math.min(a,_.getWidth()),s=Math.max(s,_.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=_g.merge(t.adjustBoundingBox(e),t.adjustBoundingBox(r));return new Mg(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=rv(i),c=s.next();!c.done;c=s.next()){var u=c.value;if(a+=o-u,u>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 l=e.getCodewords(),h=0;a>0&&null==l[h];h++)a--;var p=0;for(h=i.length-1;h>=0&&(p+=o-i[h],!(i[h]>0));h--);for(h=l.length-1;p>0&&null==l[h];h--)p--;return e.getBoundingBox().addMissingRows(a,p,e.isLeft())},t.getMax=function(t){var e,r,n=-1;try{for(var i=rv(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 Rg(r,i),c=0;c<2;c++)for(var u=0===c?1:-1,l=Math.trunc(Math.trunc(n.getX())),h=Math.trunc(Math.trunc(n.getY()));h<=r.getMaxY()&&h>=r.getMinY();h+=u){var p=t.detectCodeword(e,0,e.getWidth(),i,l,h,o,a);null!=p&&(s.setCodeword(h,p),l=i?p.getStartX():p.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>cg.MAX_CODEWORDS_IN_BARCODE)throw jh.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 u=r[s][c+1].getValue(),l=s*e.getBarcodeColumnCount()+c;0===u.length?n.push(l):1===u.length?i[l]=u[0]:(a.push(l),o.push(u))}for(var h=new Array(o.length),p=0;p<h.length;p++)h[p]=o[p];return t.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(),i,cg.toIntArray(n),cg.toIntArray(a),h)},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 oh))throw t}if(0===a.length)throw oh.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 oh.getChecksumInstance()}}throw oh.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 Pg;var c=0;try{for(var u=rv(t.getDetectionResultColumns()),l=u.next();!l.done;l=u.next()){var h=l.value;if(null!=h)try{for(var p=(n=void 0,rv(h.getCodewords())),f=p.next();!f.done;f=p.next()){var d=f.value;if(null!=d){var m=d.getRowNumber();if(m>=0){if(m>=o.length)continue;o[m][c].setValue(d.getValue())}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}c++}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}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 u=0;t.isValidBarcodeColumn(e,r-s);){r-=s;try{for(var l=(o=void 0,rv(e.getDetectionResultColumn(r).getCodewords())),h=l.next();!h.done;h=l.next()){var p=h.value;if(null!=p)return(i?p.getEndX():p.getStartX())+s*u*(p.getEndX()-p.getStartX())}}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}u++}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 u,l=t.getModuleBitCount(e,r,n,i,o,a);if(null==l)return null;var h=Op.sum(l);if(i)u=o+h;else{for(var p=0;p<l.length/2;p++){var f=l[p];l[p]=l[l.length-1-p],l[l.length-1-p]=f}o=(u=o)-h}if(!t.checkCodewordSkew(h,s,c))return null;var d=jg.getDecodedValue(l),m=cg.getCodeword(d);return-1===m?null:new Ng(o,u,t.getCodewordBucketNumber(d),m)},t.getModuleBitCount=function(t,e,r,n,i,o){for(var a=i,s=new Int32Array(8),c=0,u=n?1:-1,l=n;(n?a<r:a>=e)&&c<s.length;)t.get(a,o)===l?(s[c]++,a+=u):(c++,l=!l);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,u=0;u<2;u++){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 _h.getFormatInstance();var i=1<<r+1,o=t.correctErrors(e,n,i);t.verifyCodewordCount(e,i);var a=ev.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 oh.getChecksumInstance();return t.errorCorrection.decode(e,n,r)},t.verifyCodewordCount=function(t,e){if(t.length<4)throw _h.getFormatInstance();var r=t[0];if(r>t.length)throw _h.getFormatInstance();if(0===r){if(!(e<t.length))throw _h.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 Sg,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 Eg,t}();const iv=nv;var ov=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 jh.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 _h||t instanceof oh)throw jh.getNotFoundInstance();throw t}},t.decode=function(e,r,n){var i,o,a=new Array,s=pg.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()),u=c.next();!u.done;u=c.next()){var l=u.value,h=iv.decode(s.getBits(),l[4],l[5],l[6],l[7],t.getMinCodewordWidth(l),t.getMaxCodewordWidth(l)),p=new np(h.getText(),h.getRawBytes(),void 0,l,op.PDF_417);p.putMetadata(sp.ERROR_CORRECTION_LEVEL,h.getECLevel());var f=h.getOther();null!=f&&p.putMetadata(sp.PDF417_EXTRA_METADATA,f),a.push(p)}}catch(t){i={error:t}}finally{try{u&&!u.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?gh.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])*cg.MODULES_IN_CODEWORD/cg.MODULES_IN_STOP_PATTERN),Math.max(t.getMaxWidth(e[1],e[5]),t.getMaxWidth(e[7],e[3])*cg.MODULES_IN_CODEWORD/cg.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])*cg.MODULES_IN_CODEWORD/cg.MODULES_IN_STOP_PATTERN),Math.min(t.getMinWidth(e[1],e[5]),t.getMinWidth(e[7],e[3])*cg.MODULES_IN_CODEWORD/cg.MODULES_IN_STOP_PATTERN)))},t.prototype.reset=function(){},t}();const av=ov;var sv=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 cv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sv(e,t),e.kind="ReaderException",e}(Kl);var uv=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.")},lv=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(wh.TRY_HARDER),r=null==t?null:t.get(wh.POSSIBLE_FORMATS),n=new Array;if(null!=r){var i=r.some((function(t){return t===op.UPC_A||t===op.UPC_E||t===op.EAN_13||t===op.EAN_8||t===op.CODABAR||t===op.CODE_39||t===op.CODE_93||t===op.CODE_128||t===op.ITF||t===op.RSS_14||t===op.RSS_EXPANDED}));i&&!e&&n.push(new Xd(t)),r.includes(op.QR_CODE)&&n.push(new ag),r.includes(op.DATA_MATRIX)&&n.push(new dm),r.includes(op.AZTEC)&&n.push(new $p),r.includes(op.PDF_417)&&n.push(new av),i&&e&&n.push(new Xd(t))}0===n.length&&(e||n.push(new Xd(t)),n.push(new ag),n.push(new dm),n.push(new $p),n.push(new av),e&&n.push(new Xd(t))),this.readers=n},t.prototype.reset=function(){var t,e;if(null!==this.readers)try{for(var r=uv(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 cv("No readers where selected, nothing can be read.");try{for(var n=uv(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 cv)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 jh("No MultiFormat Readers were able to detect the code.")},t}();const hv=lv;var pv,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)}}(),dv=function(t){function e(e,r){void 0===e&&(e=null),void 0===r&&(r=500);var n=new hv;return n.setHints(e),t.call(this,n,r)||this}return fv(e,t),e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e}(rp),mv=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)}}(),gv=(function(t){mv((function(e){return void 0===e&&(e=500),t.call(this,new av,e)||this}),t)}(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)}}());!function(t){gv((function(e){return void 0===e&&(e=500),t.call(this,new ag,e)||this}),t)}(rp),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"}(pv||(pv={}));const vv=pv;var yv=function(){function t(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new pp(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 pp(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 eh("No error correction bytes");var r=t.length-e;if(r<=0)throw new eh("No data bytes provided");var n=this.buildGenerator(e),i=new Int32Array(r);ch.arraycopy(t,0,i,0,r);for(var o=new pp(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;ch.arraycopy(a,0,t,r+s,a.length)},t}();const bv=yv;var wv=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 u=s[c];u===s[c+1]&&u===n[a+1][c]&&u===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 u=e.getHeight()*e.getWidth();return Math.floor(10*Math.abs(2*r-u)/u)*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 eh("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,u=-1,l=0;l<o;l++){var h=r?a[s][l]:a[l][s];h===u?c++:(c>=5&&(n+=t.N1+(c-5)),c=1,u=h)}c>=5&&(n+=t.N1+(c-5))}return n},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}();const Ev=wv;var _v=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;dh.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 Fh,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 Av=_v,Cv=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 Fh;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 Sv=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 xv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sv(e,t),e.kind="WriterException",e}(Kl);var Dv=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 yh;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],u=c[0],l=c[1];if(n.setBoolean(u,l,s),o<8){var h=n.getWidth()-o-1,p=8;n.setBoolean(h,p,s)}else h=8,p=n.getHeight()-7+(o-8),n.setBoolean(h,p,s)}},t.maybeEmbedVersionInfo=function(e,r){if(!(e.getVersionNumber()<7)){var n=new yh;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 u=a-c;if(t.isEmpty(n.get(u,s))){var l=void 0;i<e.getSize()?(l=e.get(i),++i):l=!1,255!==r&&Ev.getDataMaskBit(r,u,s)&&(l=!l),n.setBoolean(u,s,l)}}s+=o}s+=o=-o,a-=2}if(i!==e.getSize())throw new xv("Not all bits consumed: "+i+"/"+e.getSize())},t.findMSBSet=function(t){return 32-gh.numberOfLeadingZeros(t)},t.calculateBCHCode=function(e,r){if(0===r)throw new eh("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(!Cv.isValidMaskPattern(r))throw new xv("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 yh;if(a.appendBits(t.TYPE_INFO_MASK_PATTERN,15),n.xor(a),15!==n.getSize())throw new xv("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 xv("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 xv;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 xv;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 xv;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 u=i[c];u>=0&&t.isEmpty(r.get(u,s))&&t.embedPositionAdjustmentPattern(u-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 Ov=Dv,Pv=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 Iv=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.")},kv=function(){function t(){}return t.calculateMaskPenalty=function(t){return Ev.applyMaskPenaltyRule1(t)+Ev.applyMaskPenaltyRule2(t)+Ev.applyMaskPenaltyRule3(t)+Ev.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(vv.CHARACTER_SET);o&&(i=n.get(vv.CHARACTER_SET).toString());var a=this.chooseMode(e,i),s=new yh;if(a===jm.BYTE&&(o||t.DEFAULT_BYTE_MODE_ENCODING!==i)){var c=xh.getCharacterSetECIByName(i);void 0!==c&&this.appendECI(c,s)}this.appendModeInfo(a,s);var u,l=new yh;if(this.appendBytes(e,a,l,i),null!==n&&void 0!==n.get(vv.QR_VERSION)){var h=Number.parseInt(n.get(vv.QR_VERSION).toString(),10);u=Dm.getVersionForNumber(h);var p=this.calculateBitsNeeded(a,s,l,u);if(!this.willFit(p,u,r))throw new xv("Data too big for requested version")}else u=this.recommendVersion(r,a,s,l);var f=new yh;f.appendBitArray(s);var d=a===jm.BYTE?l.getSizeInBytes():e.length;this.appendLengthInfo(d,u,a,f),f.appendBitArray(l);var m=u.getECBlocksForLevel(r),g=u.getTotalCodewords()-m.getTotalECCodewords();this.terminateBits(g,f);var v=this.interleaveWithECBytes(f,u.getTotalCodewords(),g,m.getNumBlocks()),y=new Cv;y.setECLevel(r),y.setMode(a),y.setVersion(u);var b=u.getDimensionForVersion(),w=new Av(b,b),E=this.chooseMaskPattern(v,r,u,w);return y.setMaskPattern(E),Ov.buildMatrix(v,r,u,E,w),y.setMatrix(w),y},t.recommendVersion=function(t,e,r,n){var i=this.calculateBitsNeeded(e,r,n,Dm.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),xh.SJIS.getName()===r&&this.isOnlyDoubleByteKanji(e))return jm.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 jm.BYTE;i=!0}}return i?jm.ALPHANUMERIC:n?jm.NUMERIC:jm.BYTE},t.isOnlyDoubleByteKanji=function(t){var e;try{e=Ih.encode(t,xh.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<Cv.NUM_MASK_PATTERNS;a++){Ov.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=Dm.getVersionForNumber(n);if(t.willFit(e,i,r))return i}throw new xv("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 xv("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 xv("Bits size does not equal capacity")},t.getNumDataBytesAndNumECBytesForBlockID=function(t,e,r,n,i,o){if(n>=r)throw new xv("Block ID too large");var a=t%r,s=r-a,c=Math.floor(t/r),u=c+1,l=Math.floor(e/r),h=l+1,p=c-l,f=u-h;if(p!==f)throw new xv("EC bytes mismatch");if(r!==s+a)throw new xv("RS blocks mismatch");if(t!==(l+p)*s+(h+f)*a)throw new xv("Total bytes mismatch");n<s?(i[0]=l,o[0]=p):(i[0]=h,o[0]=f)},t.interleaveWithECBytes=function(e,r,n,i){var o,a,s,c;if(e.getSizeInBytes()!==n)throw new xv("Number of bits and data bytes does not match");for(var u=0,l=0,h=0,p=new Array,f=0;f<i;++f){var d=new Int32Array(1),m=new Int32Array(1);t.getNumDataBytesAndNumECBytesForBlockID(r,n,i,f,d,m);var g=d[0],v=new Uint8Array(g);e.toBytes(8*u,v,0,g);var y=t.generateECBytes(v,m[0]);p.push(new Pv(v,y)),l=Math.max(l,g),h=Math.max(h,y.length),u+=d[0]}if(n!==u)throw new xv("Data bytes does not match offset");var b=new yh;for(f=0;f<l;++f)try{for(var w=(o=void 0,Iv(p)),E=w.next();!E.done;E=w.next())f<(v=E.value.getDataBytes()).length&&b.appendBits(v[f],8)}catch(t){o={error:t}}finally{try{E&&!E.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}for(f=0;f<h;++f)try{for(var _=(s=void 0,Iv(p)),A=_.next();!A.done;A=_.next())f<(y=A.value.getErrorCorrectionBytes()).length&&b.appendBits(y[f],8)}catch(t){s={error:t}}finally{try{A&&!A.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}if(r!==b.getSizeInBytes())throw new xv("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 bv(vp.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 xv(t+" is bigger than "+((1<<i)-1));n.appendBits(t,i)},t.appendBytes=function(e,r,n,i){switch(r){case jm.NUMERIC:t.appendNumericBytes(e,n);break;case jm.ALPHANUMERIC:t.appendAlphanumericBytes(e,n);break;case jm.BYTE:t.append8BitBytes(e,n,i);break;case jm.KANJI:t.appendKanjiBytes(e,n);break;default:throw new xv("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 xv;if(i+1<n){var a=t.getAlphanumericCode(e.charCodeAt(i+1));if(-1===a)throw new xv;r.appendBits(45*o+a,11),i+=2}else r.appendBits(o,6),i++}},t.append8BitBytes=function(t,e,r){var n;try{n=Ih.encode(t,r)}catch(t){throw new xv(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=Ih.encode(t,xh.SJIS)}catch(t){throw new xv(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 xv("Invalid byte sequence");var s=192*(a>>8)+(255&a);e.appendBits(s,13)}},t.appendECI=function(t,e){e.appendBits(jm.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=xh.UTF8.getName(),t}();const Tv=kv;!function(){function t(){}t.prototype.write=function(e,r,n,i){if(void 0===i&&(i=null),0===e.length)throw new eh("Found empty contents");if(r<0||n<0)throw new eh("Requested dimensions are too small: "+r+"x"+n);var o=ym.L,a=t.QUIET_ZONE_SIZE;null!==i&&(void 0!==i.get(vv.ERROR_CORRECTION)&&(o=ym.fromString(i.get(vv.ERROR_CORRECTION).toString())),void 0!==i.get(vv.MARGIN)&&(a=Number.parseInt(i.get(vv.MARGIN).toString(),10)));var s=Tv.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 Ep;for(var o=i.getWidth(),a=i.getHeight(),s=o+2*n,c=a+2*n,u=Math.max(e,s),l=Math.max(r,c),h=Math.min(Math.floor(u/s),Math.floor(l/c)),p=Math.floor((u-o*h)/2),f=Math.floor((l-a*h)/2),d=this.createSVGElement(u,l),m=0,g=f;m<a;m++,g+=h)for(var v=0,y=p;v<o;v++,y+=h)if(1===i.get(v,m)){var b=this.createSvgRectElement(y,g,h,h);d.appendChild(b)}return d},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 eh("Found empty contents");if(r!==op.QR_CODE)throw new eh("Can only encode QR_CODE, but got "+r);if(n<0||i<0)throw new eh("Requested dimensions are too small: "+n+"x"+i);var a=ym.L,s=t.QUIET_ZONE_SIZE;null!==o&&(void 0!==o.get(vv.ERROR_CORRECTION)&&(a=ym.fromString(o.get(vv.ERROR_CORRECTION).toString())),void 0!==o.get(vv.MARGIN)&&(s=Number.parseInt(o.get(vv.MARGIN).toString(),10)));var c=Tv.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 Ep;for(var o=i.getWidth(),a=i.getHeight(),s=o+2*n,c=a+2*n,u=Math.max(e,s),l=Math.max(r,c),h=Math.min(Math.floor(u/s),Math.floor(l/c)),p=Math.floor((u-o*h)/2),f=Math.floor((l-a*h)/2),d=new Nh(u,l),m=0,g=f;m<a;m++,g+=h)for(var v=0,y=p;v<o;v++,y+=h)1===i.get(v,m)&&d.setRegion(y,g,h,h);return d},t.QUIET_ZONE_SIZE=4}();var Rv=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 u=t.call(this,a,s)||this;if(u.yuvData=e,u.dataWidth=r,u.dataHeight=n,u.left=i,u.top=o,i+a>r||o+s>n)throw new eh("Crop rectangle does not fit within image data.");return c&&u.reverseHorizontal(a,s),u}Rv(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new eh("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 ch.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 ch.arraycopy(this.yuvData,i,n,0,r),n;for(var o=0;o<e;o++){var a=o*t;ch.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 u=255&i[o+c*e.THUMBNAIL_SCALE_FACTOR];n[s+c]=4278190080|65793*u}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 $h(this)},e.THUMBNAIL_SCALE_FACTOR=2}(Wh);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)}}();!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 u=r*n,l=new Uint8ClampedArray(u),h=0;h<u;h++){var p=e[h],f=p>>16&255,d=p>>7&510,m=255&p;l[h]=(f+d+m)/4&255}c.luminances=l}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 eh("Crop rectangle does not fit within image data.");return c}Fv(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new eh("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 ch.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 ch.arraycopy(this.luminances,i,n,0,r),n;for(var o=0;o<e;o++){var a=o*t;ch.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 $h(this)}}(Wh);var Mv=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 Nv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mv(e,t),e.forName=function(t){return this.getCharacterSetECIByName(t)},e}(xh),Bv=function(){function t(){}return t.ISO_8859_1=xh.ISO8859_1,t}(),jv=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}(),Lv=function(){function t(){}return t.singletonList=function(t){return[t]},t.min=function(t,e){return t.sort(e)[0]},t}(),Vv=function(){function t(t){this.previous=t}return t.prototype.getPrevious=function(){return this.previous},t}();var zv=__webpack_require__(51266),Uv=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 Hv=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.value=r,i.bitCount=n,i}return Uv(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 zv.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,"<"+gh.toBinaryString(t|1<<this.bitCount).substring(1)+">"},e}(Vv);var Gv=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)}}(),qv=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 Gv(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}(Hv);const Wv=qv;function Yv(t,e,r){return new Hv(t,e,r)}var Xv=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],$v=new Hv(null,0,0),Qv=[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])],Kv=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;dh.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}(dh.createInt32Array(6,6));const Zv=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=Qv[this.mode][e];i=Yv(i,65535&o,o>>16),n+=o>>16}var a=2===e?4:5;return new t(i=Yv(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=Yv(n,Kv[this.mode][e],i),new t(n=Yv(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=Qv[n][0];r=Yv(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 Wv(t,e,r)}(r,e-this.binaryShiftByteCount,this.binaryShiftByteCount),this.mode,0,this.bitCount)},t.prototype.isBetterThanOrEqualTo=function(e){var r=this.bitCount+(Qv[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 yh;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 Th.format("%s bits=%d bytes=%d",Xv[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($v,0,0,0),t}();var Jv=function(t){var e=Th.getCharCode(" "),r=Th.getCharCode("."),n=Th.getCharCode(",");t[0][e]=1;for(var i=Th.getCharCode("Z"),o=Th.getCharCode("A"),a=o;a<=i;a++)t[0][a]=a-o+2;t[1][e]=1;var s=Th.getCharCode("z"),c=Th.getCharCode("a");for(a=c;a<=s;a++)t[1][a]=a-c+2;t[2][e]=1;var u=Th.getCharCode("9"),l=Th.getCharCode("0");for(a=l;a<=u;a++)t[2][a]=a-l+2;t[2][n]=12,t[2][r]=13;for(var h=["\0"," ","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","@","\\","^","_","`","|","~",""],p=0;p<h.length;p++)t[3][Th.getCharCode(h[p])]=p;var f=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(p=0;p<f.length;p++)Th.getCharCode(f[p])>0&&(t[4][Th.getCharCode(f[p])]=p);return t}(dh.createInt32Array(5,256)),ty=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.")},ey=function(){function t(t){this.text=t}return t.prototype.encode=function(){for(var e=Th.getCharCode(" "),r=Th.getCharCode("\n"),n=Lv.singletonList(Zv.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 Th.getCharCode("\r"):o=a===r?2:0;break;case Th.getCharCode("."):o=a===e?3:0;break;case Th.getCharCode(","):o=a===e?4:0;break;case Th.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=Lv.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=ty(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=Jv[t.getMode()][n]>0,o=null,a=0;a<=4;a++){var s=Jv[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&&Kv[t.getMode()][a]>=0){var u=o.shiftAndAppend(a,s);r.push(u)}}}if(t.getBinaryShiftByteCount()>0||0===Jv[t.getMode()][n]){var l=t.addBinaryShiftChar(e);r.push(l)}},t.updateStateListForPair=function(t,e,r){var n,i,o=[];try{for(var a=ty(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=ty(t),s=a.next();!s.done;s=a.next()){var c=s.value,u=!0,l=function(t){if(t.isBetterThanOrEqualTo(c))return u=!1,"break";c.isBetterThanOrEqualTo(t)&&(o=o.filter((function(e){return e!==t})))};try{for(var h=(n=void 0,ty(o)),p=h.next();!p.done&&"break"!==l(p.value);p=h.next());}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}u&&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 ry=ey;var ny=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,u=new ry(e).encode(),l=gh.truncDivision(u.getSize()*r,100)+11,h=u.getSize()+l;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 eh(Th.format("Illegal value %s for layers",n));var p=(a=t.totalBitsInLayer(o,i))-a%(s=t.WORD_SIZE[o]);if((c=t.stuffBits(u,s)).getSize()+l>p)throw new eh("Data to large for user specified layer");if(i&&c.getSize()>64*s)throw new eh("Data to large for user specified layer")}else{s=0,c=null;for(var f=0;;f++){if(f>t.MAX_NB_BITS)throw new eh("Data too large for an Aztec code");if(!(o=(i=f<=3)?f+1:f,h>(a=t.totalBitsInLayer(o,i))||(null!=c&&s===t.WORD_SIZE[o]||(s=t.WORD_SIZE[o],c=t.stuffBits(u,s)),p=a-a%s,i&&c.getSize()>64*s||!(c.getSize()+l<=p))))break}}var d,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(d=y,f=0;f<b.length;f++)b[f]=f;else{d=y+1+2*gh.truncDivision(gh.truncDivision(y,2)-1,15);var w=gh.truncDivision(y,2),E=gh.truncDivision(d,2);for(f=0;f<w;f++){var _=f+gh.truncDivision(f,15);b[w-f-1]=E-_-1,b[w+f]=E+_+1}}for(var A=new Nh(d),C=(f=0,0);f<o;f++){for(var S=4*(o-f)+(i?9:12),x=0;x<S;x++)for(var D=2*x,O=0;O<2;O++)m.get(C+D+O)&&A.set(b[2*f+O],b[2*f+x]),m.get(C+2*S+D+O)&&A.set(b[2*f+x],b[y-1-2*f-O]),m.get(C+4*S+D+O)&&A.set(b[y-1-2*f-O],b[y-1-2*f-x]),m.get(C+6*S+D+O)&&A.set(b[y-1-2*f-x],b[2*f+O]);C+=8*S}if(t.drawModeMessage(A,i,d,v),i)t.drawBullsEye(A,gh.truncDivision(d,2),5);else for(t.drawBullsEye(A,gh.truncDivision(d,2),7),f=0,x=0;f<gh.truncDivision(y,2)-1;f+=15,x+=16)for(O=1&gh.truncDivision(d,2);O<d;O+=2)A.set(gh.truncDivision(d,2)-x,O),A.set(gh.truncDivision(d,2)+x,O),A.set(O,gh.truncDivision(d,2)-x),A.set(O,gh.truncDivision(d,2)+x);var P=new jv;return P.setCompact(i),P.setSize(d),P.setLayers(o),P.setCodeWords(g),P.setMatrix(A),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 yh;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=gh.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+gh.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 bv(t.getGF(n)),c=gh.truncDivision(r,n),u=t.bitsToWords(e,n,c);s.encode(u,c-a);var l=r%n,h=new yh;h.appendBits(0,l);try{for(var p=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(u)),f=p.next();!f.done;f=p.next()){var d=f.value;h.appendBits(d,n)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}return h},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 vp.AZTEC_PARAM;case 6:return vp.AZTEC_DATA_6;case 8:return vp.AZTEC_DATA_8;case 10:return vp.AZTEC_DATA_10;case 12:return vp.AZTEC_DATA_12;default:throw new eh("Unsupported word size "+t)}},t.stuffBits=function(t,e){for(var r=new yh,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 iy=ny;!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=Bv.ISO_8859_1,s=iy.DEFAULT_EC_PERCENT,c=iy.DEFAULT_AZTEC_LAYERS;return null!=o&&(o.has(vv.CHARACTER_SET)&&(a=Nv.forName(o.get(vv.CHARACTER_SET).toString())),o.has(vv.ERROR_CORRECTION)&&(s=gh.parseInt(o.get(vv.ERROR_CORRECTION).toString())),o.has(vv.AZTEC_LAYERS)&&(c=gh.parseInt(o.get(vv.AZTEC_LAYERS).toString()))),t.encodeLayers(e,r,n,i,a,s,c)},t.encodeLayers=function(e,r,n,i,o,a,s){if(r!==op.AZTEC)throw new eh("Can only encode AZTEC, but got "+r);var c=iy.encode(Th.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 Ep;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),u=(a-i*c)/2,l=(s-o*c)/2,h=new Nh(a,s),p=0,f=l;p<o;p++,f+=c)for(var d=0,m=u;d<i;d++,m+=c)n.get(d,p)&&h.setRegion(m,f,c,c);return h}}();var oy,ay,sy,cy=__webpack_require__(51266);function uy(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function ly(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 hy(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ly(o,n,i,a,s,"next",t)}function s(t){ly(o,n,i,a,s,"throw",t)}a(void 0)}))}}var py,fy=((oy=class extends zl{connectedCallback(){var t=this;super.connectedCallback(),this.scannable=!1,navigator.mediaDevices&&hy((function*(){try{var e=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});e&&(e.getTracks().forEach((t=>t.stop())),t.scannable=!0)}catch(t){cy.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=",")")),et(ay||(ay=uy(['\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 hy((function*(){try{if(e.popup.open({}),yield e.updateComplete,e.stream=yield navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}}),e.reader=new dv,"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){cy.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(sy||(sy=uy(["\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 "])))],oy);(0,t.gn)([a({type:Boolean})],fy.prototype,"scannable",void 0),(0,t.gn)([a({attribute:"without-enter",type:Boolean})],fy.prototype,"withoutEnter",void 0),(0,t.gn)([a({type:String})],fy.prototype,"value",void 0),(0,t.gn)([a({attribute:"english-only",type:Boolean})],fy.prototype,"englishOnly",void 0),(0,t.gn)([a({attribute:"select-after-change",type:Boolean})],fy.prototype,"selectAfterChange",void 0),(0,t.gn)([l()],fy.prototype,"stream",void 0),(0,t.gn)([l()],fy.prototype,"reader",void 0),(0,t.gn)([g("input")],fy.prototype,"input",void 0),(0,t.gn)([g("ox-popup")],fy.prototype,"popup",void 0),(0,t.gn)([g("video")],fy.prototype,"video",void 0),fy=(0,t.gn)([e("ox-input-barcode")],fy);var dy,my,gy,vy,yy,by,wy,Ey=(t,e,r)=>{var n=t.filter,{englishOnly:i,selectAfterChange:o}=n.options||{};return et(py||(py=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}}))}))},_y=(t,e,r)=>{var n=t.filter,i=(null==n?void 0:n.type)||t.type;return et(dy||(dy=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}}))}))},Ay=(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"),et(my||(my=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))}}))}))},Cy=(t,e,r)=>{var n=t.filter,[i,o]=((null==n?void 0:n.type)||t.type,e instanceof Array?e:[]);return et(gy||(gy=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 Sy(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var xy=((vy=class extends zl{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 et(yy||(yy=Sy(["\n ","\n "])),(t||[]).map((t=>{var{display:r,value:n}=t;return et(by||(by=Sy(["\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(wy||(wy=Sy(["\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 "]))),vy);(0,t.gn)([a({type:Array})],xy.prototype,"value",void 0),(0,t.gn)([a({type:Array})],xy.prototype,"options",void 0),(0,t.gn)([a({type:Boolean})],xy.prototype,"multiple",void 0),xy=(0,t.gn)([e("ox-input-select-buttons")],xy);var Dy,Oy,Py,Iy,ky,Ty=__webpack_require__(51266),Ry=__webpack_require__(51266);function Fy(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var My,Ny,By,jy,Ly,Vy,zy,Uy,Hy,Gy,qy,Wy,Yy,Xy,$y,Qy,Ky,Zy={string:[_y],text:[_y],email:[_y],tel:[_y],integer:[_y,Cy],float:[_y,Cy],number:[_y,Cy],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)||Ry.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?et(Oy||(Oy=Fy(["\n ","\n "])),null==o?void 0:o.filter((t=>!!t)).map((t=>et(Py||(Py=Fy([" <ox-checkbox option value=",">","</ox-checkbox> "])),t.value,t.display)))):et(Iy||(Iy=Fy(["\n ","\n "])),null==o?void 0:o.map((t=>et(ky||(ky=Fy([" <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)||Ty.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}})),et(Dy||(Dy=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:[ql],checkbox:[ql],month:[_y,Ay],week:[_y,Ay],date:[_y,Ay],time:[_y,Ay],datetime:[_y,Ay],color:[_y],progress:[_y,Cy],link:[_y],image:[_y],json5:[_y],scanner:[Ey],barcode:[Ey]};function Jy(t){return"function"==typeof t?t:Zy[t||"text"]||[_y]}function tb(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var eb,rb,nb,ib=class extends Et{constructor(){super(...arguments),this.columns=El,this.data=xl,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 et(My||(My=tb(["\n ","\n\n <div column></div>\n "])),t.map(((t,e)=>t.hidden?void 0:et(Ny||(Ny=tb(["\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;Cn(e)&&e.setAttribute("data-tooltip",e.textContent.trim())}),(t=>{t.target.removeAttribute("data-tooltip")}),this._renderHeader(t),t.sortable?et(By||(By=tb(["\n <span sorter @click=",">\n ","\n </span>\n "])),(e=>this._changeSort(t)),this._renderSortHeader(t)):void 0,t.filter&&"search"!==t.filter.operator?et(jy||(jy=tb([" <span filter> "," </span> "])),this._renderFilterHeader(t)):void 0,!1!==t.resizable?et(Ly||(Ly=tb(['\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 et(Vy||(Vy=tb([" "," "])),r)}_renderSortHeader(t){var e=this.sorters||[],r=e.find((e=>"gutter"!==t.type&&t.name==e.name));if(!r)return et(zy||(zy=tb([""])));if(e.length>1){var n=e.indexOf(r)+1;return r.desc?et(Uy||(Uy=tb([" <mwc-icon>keyboard_arrow_down</mwc-icon><sub>","</sub> "])),n):et(Hy||(Hy=tb([" <mwc-icon>keyboard_arrow_up</mwc-icon><sub>","</sub> "])),n)}return r.desc?et(Gy||(Gy=tb([" <mwc-icon>keyboard_arrow_down</mwc-icon> "]))):et(qy||(qy=tb([" <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=Jy(i)[a];return et(Wy||(Wy=tb(["\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?et(Xy||(Xy=tb([" <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?et($y||($y=tb(['<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)):et(Qy||(Qy=tb(["<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)):et(Yy||(Yy=tb([""]))))}_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=kl(((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 ob(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}ib.styles=[Vl,Us,S(Ky||(Ky=tb(["\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})],ib.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],ib.prototype,"data",void 0),(0,t.gn)([a({type:Object})],ib.prototype,"sorters",void 0),(0,t.gn)([a({type:Object})],ib.prototype,"filters",void 0),ib=(0,t.gn)([e("ox-grid-header")],ib);var ab="left",sb=class extends Et{constructor(){super(...arguments),this.align=ab,this.record={},this.column=_l,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 et(eb||(eb=ob([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i,editor:o}=e.record;return et(rb||(rb=ob(["\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||ab;if(r!=ab){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 cb(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 ub(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cb(Object(r),!0).forEach((function(e){lb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lb(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}sb.styles=[Us,S(nb||(nb=ob(["\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})],sb.prototype,"align",void 0),(0,t.gn)([a({type:Object})],sb.prototype,"record",void 0),(0,t.gn)([a({type:Object})],sb.prototype,"column",void 0),(0,t.gn)([a({type:Number})],sb.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Number})],sb.prototype,"columnIndex",void 0),(0,t.gn)([a({type:Boolean,attribute:"editing"})],sb.prototype,"editing",void 0),(0,t.gn)([a({type:Object})],sb.prototype,"value",void 0),(0,t.gn)([a({type:Boolean})],sb.prototype,"emphasized",void 0),sb=(0,t.gn)([e("ox-grid-field")],sb);var hb=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:ub({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},pb=!1;try{var fb=Object.defineProperty({},"passive",{get:function(){pb=!0}});window.addEventListener("testPassive",(()=>{}),fb),window.removeEventListener("testPassive",(()=>{}),fb)}catch(te){}var db=__webpack_require__(41242),mb=__webpack_require__.n(db);const gb=function(t){return t==t&&!In(t)},vb=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},yb=function(t){var e=function(t){for(var e=Ja(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,gb(i)]}return e}(t);return 1==e.length&&e[0][2]?vb(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],u=t[c],l=s[1];if(a&&s[2]){if(void 0===u&&!(c in t))return!1}else{var h=new sa;if(n)var p=n(u,l,c,t,e,h);if(!(void 0===p?As(l,u,3,n,h):p))return!1}}return!0}(r,t,e)}};var bb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wb=/^\w*$/;const Eb=function(t,e){if(bi(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Yn(t))||wb.test(t)||!bb.test(t)||null!=e&&t in Object(e)};function _b(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(_b.Cache||oa),r}_b.Cache=oa;const Ab=_b;var Cb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sb=/\\(\\)?/g;const xb=function(t){var e=Ab(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(Cb,(function(t,r,n,i){e.push(n?i.replace(Sb,"$1"):r||t)})),e})),Db=function(t,e){return bi(t)?t:Eb(t,e)?[t]:xb(Ai(t))},Ob=function(t){if("string"==typeof t||Yn(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Pb=function(t,e){for(var r=0,n=(e=Db(e,t)).length;null!=t&&r<n;)t=t[Ob(e[r++])];return r&&r==n?t:void 0},Ib=function(t,e){return null!=t&&e in Object(t)},kb=function(t,e){return null!=t&&function(t,e,r){for(var n=-1,i=(e=Db(e,t)).length,o=!1;++n<i;){var a=Ob(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Ma(i)&&Fa(a,i)&&(bi(t)||Oa(t))}(t,e,Ib)},Tb=function(t,e){return Eb(t)&&gb(e)?vb(Ob(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:Pb(t,e);return void 0===n?r:n}(r,t);return void 0===n&&n===e?kb(r,t):As(e,n,3)}},Rb=function(t){return t},Fb=function(t){return Eb(t)?(e=Ob(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return Pb(e,t)}}(t);var e},Mb=function(){try{var t=Qo(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Nb=Object.prototype.hasOwnProperty;const Bb=function(t,e,r){var n=t[e];Nb.call(t,e)&&To(n,r)&&(void 0!==r||e in t)||function(t,e,r){"__proto__"==e&&Mb?Mb(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}(t,e,r)},jb=function(t,e,r,n){if(!In(t))return t;for(var i=-1,o=(e=Db(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var c=Ob(e[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=a){var l=s[c];void 0===(u=n?n(l,c,s):void 0)&&(u=In(l)?l:Fa(e[i+1])?[]:{})}Bb(s,c,u),s=s[c]}return t},Lb=Xa(Object.getPrototypeOf,Object),Vb=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ya(e,Aa(t)),t=Lb(t);return e}:wa;var zb=Object.prototype.hasOwnProperty;const Ub=function(t){if(!In(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Ya(t),r=[];for(var n in t)("constructor"!=n||!e&&zb.call(t,n))&&r.push(n);return r},Hb=function(t){return Za(t)?qa(t,!0):Ub(t)},Gb=function(t,e){if(null==t)return{};var r,n=yi(function(t){return ba(t,Hb,Vb)}(t),(function(t){return[t]}));return e="function"==typeof(r=e)?r:null==r?Rb:"object"==typeof r?bi(r)?Tb(r[0],r[1]):yb(r):Fb(r),function(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],s=Pb(t,a);r(s,a)&&jb(o,Db(a,t),s)}return o}(t,n,(function(t,r){return e(t,r[0])}))};var qb,Wb,Yb,Xb,$b,Qb,Kb,Zb=S(qb||(qb=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 Jb(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 tw(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 ew(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){tw(o,n,i,a,s,"next",t)}function s(t){tw(o,n,i,a,s,"throw",t)}a(void 0)}))}}function rw(t){return nw.apply(this,arguments)}function nw(){return(nw=ew((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 iw(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 ow(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){iw(o,n,i,a,s,"next",t)}function s(t){iw(o,n,i,a,s,"throw",t)}a(void 0)}))}}function aw(t){return sw.apply(this,arguments)}function sw(){return(sw=ow((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||{},u=this.focusedField;u&&u.rowIndex>0&&this.setSelectBlock(c||u,this.getFieldByIndex(u.rowIndex-1,u.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:l}=this._selectBlock||{},h=this.focusedField;if(h){var p=this.getFieldByIndex(h.rowIndex+1,h.columnIndex);p&&this.setSelectBlock(l||h,p)}}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:f}=this._selectBlock||{},d=this.focusedField;d&&d.columnIndex>0&&this.setSelectBlock(f||d,this.getFieldByIndex(d.rowIndex,d.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 cw(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 uw(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){cw(o,n,i,a,s,"next",t)}function s(t){cw(o,n,i,a,s,"throw",t)}a(void 0)}))}}function lw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var hw,pw,fw,dw={row:0,column:0},mw=class extends Et{constructor(){super(...arguments),this.debounce=ei(((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=Al,this.columns=[],this.data=xl,this.focused=dw,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:u,end:l}=this._selectBlock||{};return s&&(a=[...a,{__dirty__:"+"}]),et(Wb||(Wb=lw(["\n ","\n ","\n <slot></slot>\n "])),a.map(((a,s)=>{var u=s===t,l=a.__selected__,h=s%2,p=a.__dirtyfields__||{},{emphasized:f}=c.call(null,a,s)||{};return et(Yb||(Yb=lw(["\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)=>et(Xb||(Xb=lw(["\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,f,"gutter"==i.type,h,u,l,s===t&&c===e,s===r&&c===n,a[i.name],!!p[i.name]))),o,s,a,f,h,u,l)})),et(u&&l&&u!==l?$b||($b=lw([" <div select-block></div> "])):Qb||(Qb=lw([""]))))}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=aw.bind(this),this.addEventListener("keydown",this._focusedListener))})),this.addEventListener("set-select-block",function(){var e=uw((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",Jb.bind(this)),this.renderRoot.addEventListener("dblclick",rw.bind(this)),this.addEventListener("wheel",this._onWheelEvent.bind(this),!!pb&&{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),pb||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:u}=t.getBoundingClientRect(),{scrollLeft:l,scrollTop:h}=t,p=t.clientWidth-t.offsetWidth,f=t.clientHeight-t.offsetHeight;return{left:n<s?l-(s-n):i>c?l-(c-i)-p:void 0,top:r<a?h-(a-r):o>u?h-(u-o)-f: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===dw){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=hb(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 uw((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 uw((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:u}=t.data,l=t.columns.filter((t=>!t.hidden));if("text/html"===e){var h=document.createElement("div");h.innerHTML=r.trim();var p=h.querySelector("table");if(!p)return;return n&&(t.resetEdit(),n.removeAllRanges(),yield t.updateComplete),void p.querySelectorAll("tr").forEach(((e,r)=>{if(e instanceof HTMLTableRowElement){var n=u[s+r]||{__dirty__:"+"};s+r>=u.length&&u.push(n),e.querySelectorAll("td").forEach(((e,i)=>{var o=l[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 f=u[s]||{__dirty__:"+"},d=l[c];d&&!d.gutterName&&d.record.editable&&t.dispatchEvent(new CustomEvent("field-change",{bubbles:!0,composed:!0,detail:{before:f[d.name],after:r,column:d,record:f,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,u=i.offsetLeft-s+i.offsetWidth,l=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",u+"px"),this.style.setProperty("--select-box-height",l+"px")}this.dispatchEvent(new CustomEvent("focus-change",{bubbles:!0,composed:!0,detail:{row:e.rowIndex,column:e.columnIndex}}))}}};function gw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}mw.styles=[Us,Zb,S(Kb||(Kb=lw(["\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})],mw.prototype,"config",void 0),(0,t.gn)([a({type:Array})],mw.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],mw.prototype,"data",void 0),(0,t.gn)([a({type:Object})],mw.prototype,"focused",void 0),(0,t.gn)([a({type:Object})],mw.prototype,"editTarget",void 0),(0,t.gn)([a({type:Number})],mw.prototype,"from",void 0),(0,t.gn)([a({type:Number})],mw.prototype,"to",void 0),(0,t.gn)([l()],mw.prototype,"_selectBlock",void 0),(0,t.gn)([g("[select-block]")],mw.prototype,"selectBlock",void 0),(0,t.gn)([g("ox-grid-field[focused]")],mw.prototype,"focusedField",void 0),mw=(0,t.gn)([e("ox-grid-body")],mw);var vw,yw,bw,ww,Ew,_w,Aw=class extends Et{constructor(){super(...arguments),this.data=xl,this.pagination={}}_gotoPage(t){var{pages:e=Dl}=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=Dl}=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 et(hw||(hw=gw(["\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=>et(pw||(pw=gw(["\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 Cw(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 Sw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cw(Object(r),!0).forEach((function(e){xw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xw(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}Aw.styles=[S(fw||(fw=gw(["\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()],Aw.prototype,"data",void 0),(0,t.gn)([a()],Aw.prototype,"pagination",void 0),Aw=(0,t.gn)([e("ox-grid-footer")],Aw);class Dw extends Et{constructor(){super(),this.config=Al,this.data=xl,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=Sw(Sw(Sw({},o),t),{},"+"==c?{__dirty__:"+"}:{__dirty__:"M"})}else n=Sw(Sw({},t),{},{__dirty__:"+"}),s=!0;else{if(!o)return void this.requestUpdate();"+"==o.__dirty__?a=!0:n=Sw(Sw({},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 Ow(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:Object})],Dw.prototype,"config",void 0),(0,t.gn)([a({type:Object})],Dw.prototype,"data",void 0),(0,t.gn)([a({type:Object})],Dw.prototype,"sorters",void 0),(0,t.gn)([a({type:Object})],Dw.prototype,"filters",void 0),(0,t.gn)([a({type:Object})],Dw.prototype,"pagination",void 0);var Pw,Iw,kw,Tw=class extends Dw{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),pb||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 et(vw||(vw=Ow(["\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?et(yw||(yw=Ow(['\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 ']))):et(bw||(bw=Ow([""]))),r?et(ww||(ww=Ow([" <ox-grid-footer .data="," .pagination=","></ox-grid-footer> "])),n,this.pagination):et(Ew||(Ew=Ow([""]))))}focus(){super.focus(),this.body.focus()}get pullToRefreshTarget(){return this.body}};function Rw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Tw.styles=[Vs,S(_w||(_w=Ow(["\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})],Tw.prototype,"focused",void 0),(0,t.gn)([a({type:Boolean})],Tw.prototype,"empty",void 0),(0,t.gn)([g("ox-grid-body",!0)],Tw.prototype,"body",void 0),(0,t.gn)([g("ox-grid-header",!0)],Tw.prototype,"header",void 0),(0,t.gn)([g("ox-grid-footer",!0)],Tw.prototype,"footer",void 0),Tw=(0,t.gn)([e("ox-grid")],Tw);var Fw,Mw,Nw,Bw="left",jw=class extends Et{constructor(){super(...arguments),this.record=Cl,this.column=_l,this.rowIndex=-1}get isEditing(){return this.hasAttribute("editing")}render(){if(!this.column)return et(Pw||(Pw=Rw([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i}=e.record;return et(Iw||(Iw=Rw([" "," "])),i(t,e,r,n,this))}updated(t){if(t.has("column")){var e=this.column.record.align||Bw;if(e!=Bw){var r="center";"right"===e&&(r="flex-end"),this.style.setProperty("--data-list-gutter-justify-content",r)}}}};function Lw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}jw.styles=[S(kw||(kw=Rw(["\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})],jw.prototype,"align",void 0),(0,t.gn)([a({type:Object})],jw.prototype,"record",void 0),(0,t.gn)([a({type:Object})],jw.prototype,"column",void 0),(0,t.gn)([a({type:Number})],jw.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],jw.prototype,"value",void 0),jw=(0,t.gn)([e("ox-list-gutter")],jw);var Vw,zw,Uw,Hw,Gw=class extends Et{constructor(){super(...arguments),this.record=Cl,this.column=_l,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 et(Fw||(Fw=Lw(["<label>","</label>",""])),a(),o(t,e,r,n,this))}return et(Mw||(Mw=Lw(["",""])),o(t,e,r,n,this))}};function qw(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 Ww(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 Yw(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Ww(o,n,i,a,s,"next",t)}function s(t){Ww(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xw(t){return $w.apply(this,arguments)}function $w(){return($w=Yw((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 Qw(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Gw.styles=[Us,S(Nw||(Nw=Lw(["\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})],Gw.prototype,"align",void 0),(0,t.gn)([a({type:Object})],Gw.prototype,"record",void 0),(0,t.gn)([a({type:Object})],Gw.prototype,"column",void 0),(0,t.gn)([a({type:Number})],Gw.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],Gw.prototype,"value",void 0),Gw=(0,t.gn)([e("ox-list-field")],Gw);var Kw,Zw,Jw,tE,eE,rE,nE=class extends Et{constructor(){super(...arguments),this.columns=[],this.record=Cl,this.rowIndex=-1}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.renderRoot.addEventListener("keydown",Xw.bind(this)),this.renderRoot.addEventListener("click",qw.bind(this))}render(){var t=this.columns.filter((t=>!t.hidden&&"gutter"!==t.type)),e=this.record,r=this.rowIndex;return et(Vw||(Vw=Qw(["\n ","\n "])),t.map((t=>{var{editable:n,mandatory:i}=t.record,o=e.__dirtyfields__||{};return et(zw||(zw=Qw(["\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 et(Uw||(Uw=Qw([" "," "])),r)}};function iE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}nE.styles=[S(Hw||(Hw=Qw(["\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})],nE.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],nE.prototype,"record",void 0),(0,t.gn)([a({type:Number})],nE.prototype,"rowIndex",void 0),nE=(0,t.gn)([e("ox-record-view-body")],nE);var oE,aE,sE=((Kw=class extends zl{constructor(){super(...arguments),this.icon="upload",this.description="drop files here!",this.hideFileList=!1,this.attachFileList=!1}render(){var t=this.value||[];return et(Zw||(Zw=iE(["\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?et(Jw||(Jw=iE([" <ul>\n ","\n </ul>"])),t.map((e=>et(tE||(tE=iE(["\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()}))))):et(eE||(eE=iE([""]))))}updated(t){!t.has("value")||this.value instanceof Array||(this.value=this.value?[this.value]:[])}firstUpdated(){An.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=[Vs,S(rE||(rE=iE(["\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 "])))],Kw);function cE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:Boolean})],sE.prototype,"multiple",void 0),(0,t.gn)([a({type:String})],sE.prototype,"accept",void 0),(0,t.gn)([a({type:String})],sE.prototype,"icon",void 0),(0,t.gn)([a({type:String})],sE.prototype,"label",void 0),(0,t.gn)([a({type:String})],sE.prototype,"description",void 0),(0,t.gn)([a({type:Boolean,reflect:!0,attribute:"hide-filelist"})],sE.prototype,"hideFileList",void 0),(0,t.gn)([a({type:Boolean,reflect:!0,attribute:"attach-filelist"})],sE.prototype,"attachFileList",void 0),(0,t.gn)([g("#input-file")],sE.prototype,"fileInput",void 0),sE=(0,t.gn)([e("ox-input-file")],sE);var uE,lE,hE=class extends Et{constructor(){super(...arguments),this.columns=[],this.record=Cl,this.rowIndex=-1}render(){return et(oE||(oE=cE(["\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 pE(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 fE(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 dE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fE(Object(r),!0).forEach((function(e){mE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mE(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 gE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}hE.styles=[Vs,S(aE||(aE=cE(["\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})],hE.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],hE.prototype,"record",void 0),(0,t.gn)([a({type:Number})],hE.prototype,"rowIndex",void 0),hE=(0,t.gn)([e("ox-record-view")],hE);var vE,yE,bE,wE,EE,_E,AE,CE,SE=class extends Et{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 et(uE||(uE=gE(["<slot></slot>"])))}lightPopupRecordView(){var t=this.grist.compiledConfig.columns,e=Qs.open({template:et(lE||(lE=gE(["\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=dE(dE({},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){pE(o,n,i,a,s,"next",t)}function s(t){pE(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=dE(dE({},o),{},{[i.name]:r}))})),e.onclosed=()=>{}}}}))}};function xE(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 DE(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 OE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([l()],SE.prototype,"grist",void 0),(0,t.gn)([a({type:Object})],SE.prototype,"callback",void 0),(0,t.gn)([a({type:Boolean,attribute:"light-popup"})],SE.prototype,"lightPopup",void 0),SE=(0,t.gn)([e("ox-record-creator")],SE),new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1});var PE,IE,kE,TE,RE,FE,ME,NE=class extends Et{constructor(){super(...arguments),this.config=Al,this.data=xl,this.record=Cl,this.rowIndex=-1,this.selectedRow=!1}attributeChangedCallback(t,e,r){super.attributeChangedCallback(t,e,r)}firstUpdated(){this.renderRoot.addEventListener("click",xE.bind(this)),this.renderRoot.addEventListener("dblclick",DE.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))||[],u=(n||[]).filter((t=>"gutter"==t.type&&t.forList)),l=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 et(vE||(vE=OE(["\n ","\n ","\n\n <div content>\n ","\n </div>\n ","\n "])),t?et(yE||(yE=OE([" <mwc-icon dirty>","</mwc-icon> "])),t):et(bE||(bE=OE([""]))),u.map((t=>et(wE||(wE=OE(["\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)=>et(EE||(EE=OE(["\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?et(_E||(_E=OE(["<div tail>\n <ox-list-field\n thumbnail\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-list-field>\n </div>"])),r,l,e,e[(null==l?void 0:l.name)||""]):et(AE||(AE=OE([""]))))}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=hb(this.config.columns,this.record,this.rowIndex,this,{title:e},(()=>{delete this._recordView}))}};function BE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}NE.styles=[S(CE||(CE=OE(["\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})],NE.prototype,"config",void 0),(0,t.gn)([a({type:Object})],NE.prototype,"data",void 0),(0,t.gn)([a({type:Object})],NE.prototype,"record",void 0),(0,t.gn)([a({type:Number})],NE.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Boolean,attribute:"selected-row"})],NE.prototype,"selectedRow",void 0),NE=(0,t.gn)([e("ox-record-partial")],NE);var jE,LE,VE,zE=class extends Dw{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__:"+"}]),et(PE||(PE=BE(["\n ","\n ","\n ","\n "])),t.map(((t,e)=>et(IE||(IE=BE(["\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?et(kE||(kE=BE(['\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 ']))):et(TE||(TE=BE([""]))),this.isTop?et(RE||(RE=BE([""]))):et(FE||(FE=BE([' <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 UE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}zE.styles=[S(ME||(ME=BE(["\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})],zE.prototype,"empty",void 0),(0,t.gn)([l()],zE.prototype,"_records",void 0),(0,t.gn)([l()],zE.prototype,"isTop",void 0),zE=(0,t.gn)([e("ox-list")],zE);var HE,GE,qE,WE=class extends Et{constructor(){super(...arguments),this.record=Cl,this.column=_l,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 et(jE||(jE=UE(["<label>","</label>",""])),a(),o(t,e,r,n,this))}return et(LE||(LE=UE(["",""])),o(t,e,r,n,this))}};function YE(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}WE.styles=[Us,S(VE||(VE=UE(["\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})],WE.prototype,"align",void 0),(0,t.gn)([a({type:Object})],WE.prototype,"record",void 0),(0,t.gn)([a({type:Object})],WE.prototype,"column",void 0),(0,t.gn)([a({type:Number})],WE.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],WE.prototype,"value",void 0),WE=(0,t.gn)([e("ox-card-field")],WE);var XE,$E,QE,KE,ZE="left",JE=class extends Et{constructor(){super(...arguments),this.record=Cl,this.column=_l,this.rowIndex=-1}get isEditing(){return this.hasAttribute("editing")}render(){if(!this.column)return et(HE||(HE=YE([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i}=e.record;return et(GE||(GE=YE([" "," "])),i(t,e,r,n,this))}updated(t){if(t.has("column")){var e=this.column.record.align||ZE;if(e!=ZE){var r="center";"right"===e&&(r="flex-end"),this.style.setProperty("--data-card-gutter-justify-content",r)}}}};function t_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}JE.styles=[S(qE||(qE=YE(["\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})],JE.prototype,"align",void 0),(0,t.gn)([a({type:Object})],JE.prototype,"record",void 0),(0,t.gn)([a({type:Object})],JE.prototype,"column",void 0),(0,t.gn)([a({type:Number})],JE.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],JE.prototype,"value",void 0),JE=(0,t.gn)([e("ox-card-gutter")],JE);var e_,r_,n_,i_,o_,a_,s_,c_,u_,l_,h_,p_,f_,d_,m_,g_=class extends Et{render(){return et(XE||(XE=t_(["\n <mwc-icon @click=",">more_horiz</mwc-icon>\n <slot></slot>\n "])),(t=>this.open(t)))}menuRender(){return et($E||($E=t_(["\n ","\n "])),this.gutters.map((t=>et(QE||(QE=t_(["\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;Qs.open({template:this.menuRender(),bottom:e,left:-4,parent:this})}};function v_(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 y_(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 b_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}g_.styles=S(KE||(KE=t_(["\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})],g_.prototype,"gutters",void 0),(0,t.gn)([a({type:Number})],g_.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],g_.prototype,"record",void 0),(0,t.gn)([a()],g_.prototype,"clickHandler",void 0),(0,t.gn)([a()],g_.prototype,"dblclickHandler",void 0),(0,t.gn)([g("mwc-icon")],g_.prototype,"icon",void 0),g_=(0,t.gn)([e("ox-card-gutter-menu")],g_),new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1});var w_,E_,__,A_,C_,S_,x_,D_=class extends Et{constructor(){super(...arguments),this.config=Al,this.data=xl,this.record=Cl,this.rowIndex=-1,this.selectedRow=!1,this.clickHandler=v_.bind(this),this.dblclickHandler=y_.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))||[],u=s.map((t=>n.find((e=>e.name==t)))).filter((t=>t))||[],l=o?n.find((t=>t.name==o)):void 0,h=(n||[]).filter((t=>"gutter"==t.type&&t.forList)),p=h[0];if(this.hasAttribute("dirty"))switch(this.record.__dirty__){case"M":t="done";break;case"+":t="add";break;case"-":t="remove"}return et(e_||(e_=b_(["\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?et(r_||(r_=b_([" <mwc-icon dirty>","</mwc-icon> "])),t):et(n_||(n_=b_([""]))),l?et(i_||(i_=b_([" <ox-card-field\n thumbnail\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-card-field>"])),r,l,e,e[(null==l?void 0:l.name)||""]):et(o_||(o_=b_([""]))),p?et(a_||(a_=b_(["\n <ox-card-gutter\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-card-gutter>\n "])),r,p,e,e[p.name]):et(s_||(s_=b_([""]))),2===h.length?et(c_||(c_=b_(["\n <ox-card-gutter\n .rowIndex=","\n .column=","\n .record=","\n .value=","\n ></ox-card-gutter>\n "])),r,h[1],e,e[h[1].name]):h.length>2?et(u_||(u_=b_(["\n <ox-card-gutter-menu\n .gutters=","\n .rowIndex=","\n .record=","\n .clickHandler=","\n .dblclickHandler=","\n ></ox-card-gutter-menu>\n "])),h,r,e,this.clickHandler,this.dblclickHandler):et(l_||(l_=b_([""]))),c.map(((t,n)=>et(h_||(h_=b_(["\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))),u.length>0?et(p_||(p_=b_(["\n <div detail>\n ","\n </div>\n "])),u.map(((t,n)=>et(f_||(f_=b_(["\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)||""])))):et(d_||(d_=b_([""]))))}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=hb(this.config.columns,this.record,this.rowIndex,this,{title:e},(()=>{delete this._recordView}))}};function O_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}D_.styles=[S(m_||(m_=b_(["\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})],D_.prototype,"config",void 0),(0,t.gn)([a({type:Object})],D_.prototype,"data",void 0),(0,t.gn)([a({type:Object})],D_.prototype,"record",void 0),(0,t.gn)([a({type:Number})],D_.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Boolean,attribute:"selected-row"})],D_.prototype,"selectedRow",void 0),D_=(0,t.gn)([e("ox-record-card")],D_);var P_=class extends Dw{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__:"+"}]),et(w_||(w_=O_(["\n ","\n ","\n ","\n "])),t.map(((t,e)=>et(E_||(E_=O_(["\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?et(__||(__=O_(['\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 ']))):et(A_||(A_=O_([""]))),this.isTop?et(C_||(C_=O_([""]))):et(S_||(S_=O_([' <mwc-icon id="upward" @click=',">arrow_upward</mwc-icon> "])),(t=>this.gotoTop(t))))}gotoTop(t){this.scrollTop=0,t.stopPropagation()}get pullToRefreshTarget(){return this}};P_.styles=[S(x_||(x_=O_(["\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})],P_.prototype,"empty",void 0),(0,t.gn)([l()],P_.prototype,"_records",void 0),(0,t.gn)([l()],P_.prototype,"isTop",void 0),P_=(0,t.gn)([e("ox-card")],P_);var I_=Object.prototype.hasOwnProperty;const k_=function(t){if(null==t)return!0;if(Za(t)&&(bi(t)||"string"==typeof t||"function"==typeof t.splice||Ta(t)||Ua(t)||Oa(t)))return!t.length;var e=vs(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Ya(t))return!Ka(t).length;for(var r in t)if(I_.call(t,r))return!1;return!0};function T_(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 u(){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 l(){o||(o=!0,n=requestAnimationFrame(u))}var h=!!i&&{passive:!0,capture:!1};return t.addEventListener("scroll",l,h),u(),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",l,h)}}}function R_(t){return t===Object(t)?t:{down:t,up:t}}class F_{constructor(t,e){e=e||{},Object.assign(this,F_.options,e),this.classes=Object.assign({},F_.options.classes,e.classes),this.elem=t,this.tolerance=R_(this.tolerance),this.offset=R_(this.offset),this.initialised=!1,this.frozen=!1}init(){return this.initialised||(this.addClass("initial"),this.initialised=!0,setTimeout((function(t){t.scrollTracker=T_(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())}}F_.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 M_=F_;var N_,B_;function j_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var L_=class extends Et{render(){return et(N_||(N_=j_(['\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 V_(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 z_(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,u=-1;function l(t){a.classList.add("pull-to-refresh--"+t)}function h(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:u}=t;function l(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 h(t){var i=t.changedTouches[0];e=i.identifier,r=i.screenX,n=i.screenY}function p(t){l(t)&&(s&&!i&&(s(t),i=!0),c(t))}function f(t){l(t)&&u(t)}return o.addEventListener("touchstart",h),c&&o.addEventListener("touchmove",p),u&&o.addEventListener("touchend",f),function(){o.removeEventListener("touchstart",h),c&&o.removeEventListener("touchmove",p),u&&o.removeEventListener("touchend",f),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&&(u=i,l(s="pulling"),o(s,t)),(i-=u)<0&&(i=0),c=i,(i>=n&&"reached"!==s||i<n&&"pulling"!==s)&&(h(s),l(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){V_(o,n,i,a,s,"next",t)}function s(t){V_(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){""!=s&&("pulling"===s?(h(s),o(s="aborting"),l(s),yield a.aborting(t),h(s),c=-1,u=-1,o(s="")):"reached"===s&&(h(s),l(s="refreshing"),o(s,t),a.refreshing(t),yield i(),h(s),l(s="restoring"),o(s),yield a.restoring(t),h(s),c=-1,u=-1,o(s="")))}))()})}L_.styles=S(B_||(B_=j_(["\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 "]))),L_=(0,t.gn)([e("ox-pulltorefresh-control")],L_);var U_,H_,G_=function(){};function q_(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 W_(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Y_,X_=S(U_||(U_=W_(["\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"]))),$_=class extends Et{constructor(){super(...arguments),this.column=_l,this.record=Cl}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){q_(o,n,i,a,s,"next",t)}function s(t){q_(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 et(H_||(H_=W_([""])))}};$_.styles=X_,(0,t.gn)([a({type:Object})],$_.prototype,"value",void 0),(0,t.gn)([a({type:Object})],$_.prototype,"column",void 0),(0,t.gn)([a({type:Object})],$_.prototype,"record",void 0),(0,t.gn)([a({type:Number})],$_.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],$_.prototype,"field",void 0),(0,t.gn)([a({type:Number})],$_.prototype,"row",void 0),$_=(0,t.gn)([e("ox-grist-editor")],$_);var Q_,K_=class extends $_{formatFromEditor(t){return t.target.checked}get editorTemplate(){return et(Y_||(Y_=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)}};K_=(0,t.gn)([e("ox-grist-editor-checkbox")],K_);var Z_,J_=class extends $_{get editorTemplate(){return et(Q_||(Q_=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)}};J_=(0,t.gn)([e("ox-grist-editor-color")],J_);var tA,eA=class extends $_{get editorTemplate(){return et(Z_||(Z_=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)}};eA=(0,t.gn)([e("ox-grist-editor-date")],eA);var rA,nA=class extends $_{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 et(tA||(tA=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)}};nA=(0,t.gn)([e("ox-grist-editor-datetime")],nA);var iA,oA=class extends $_{get editorTemplate(){return et(rA||(rA=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)}};oA=(0,t.gn)([e("ox-grist-editor-email")],oA);var aA,sA,cA,uA=class extends $_{formatFromEditor(t){return t.target.files}get editorTemplate(){return"string"==typeof this.value||this.value,et(iA||(iA=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 lA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}uA=(0,t.gn)([e("ox-grist-editor-file")],uA);var hA,pA=new URL(__webpack_require__(63155),__webpack_require__.b).href,fA=(aA=class extends zl{render(){var t,e=this.value;return e?"string"==typeof e?t=e:(t=URL.createObjectURL(e),requestAnimationFrame((()=>URL.revokeObjectURL(t)))):t=pA,et(sA||(sA=lA(["\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,pA,pA,(t=>this._onChangeValue(t)))}firstUpdated(){An.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}))}},aA.styles=[Vs,S(cA||(cA=lA(["\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 "])))],aA);(0,t.gn)([g("#input-file")],fA.prototype,"fileInput",void 0),fA=(0,t.gn)([e("ox-input-image")],fA);var dA,mA=class extends $_{get editorTemplate(){return et(hA||(hA=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}};mA=(0,t.gn)([e("ox-grist-editor-image")],mA);var gA,vA=class extends $_{get editorTemplate(){return et(dA||(dA=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)}};vA=(0,t.gn)([e("ox-grist-editor-month")],vA);var yA,bA=class extends $_{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 et(gA||(gA=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))}};bA=(0,t.gn)([e("ox-grist-editor-number")],bA);var wA,EA,_A=class extends $_{get editorTemplate(){return et(yA||(yA=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 AA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}_A=(0,t.gn)([e("ox-grist-editor-password")],_A);var CA,SA=class extends $_{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}})),et(wA||(wA=AA(["\n <select>\n ","\n </select>\n "])),e.map((t=>et(EA||(EA=AA(["\n <option ?selected="," value=",">","</option>\n "])),t.value==this.value,t.value,t.display))))}};SA=(0,t.gn)([e("ox-grist-editor-select")],SA);var xA,DA=class extends $_{get editorTemplate(){return et(CA||(CA=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)}};DA=(0,t.gn)([e("ox-grist-editor-tel")],DA);var OA,PA=class extends $_{get editorTemplate(){return et(xA||(xA=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)}};PA=(0,t.gn)([e("ox-grist-editor-text")],PA);var IA,kA=class extends $_{get editorTemplate(){return et(OA||(OA=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)}};kA=(0,t.gn)([e("ox-grist-editor-time")],kA);var TA=class extends $_{get editorTemplate(){return et(IA||(IA=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)}};TA=(0,t.gn)([e("ox-grist-editor-week")],TA);var RA,FA,MA,NA,BA,jA,LA,VA,zA={string:PA,text:PA,email:oA,tel:DA,password:_A,integer:bA,float:bA,number:bA,select:SA,boolean:K_,checkbox:K_,month:vA,week:TA,date:eA,time:kA,datetime:nA,color:J_,progress:bA,link:PA,image:mA,file:uA};function UA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function HA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var GA=class extends Et{render(){switch(this.value){case"+":return et(MA||(MA=HA([" <mwc-icon style="," center add>add</mwc-icon> "])),YA);case"-":return et(NA||(NA=HA([" <mwc-icon style="," center remove>remove</mwc-icon> "])),YA);case"M":return et(BA||(BA=HA([" <mwc-icon style="," center done>done</mwc-icon> "])),YA);default:return""}}};GA.styles=S(jA||(jA=HA(["\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})],GA.prototype,"value",void 0),GA=(0,t.gn)([e("ox-gutter-dirty-element")],GA);var qA,WA,YA="font-size: var(--grid-record-fontsize);vertical-align: middle; color: var(--grid-record-dirty-color)";function XA(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function $A(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 QA(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 KA,ZA={sequence:class{static instance(){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$A(Object(r),!0).forEach((function(e){QA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$A(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 et(qA||(qA=XA(['\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 et(WA||(WA=XA(["\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 et(RA||(RA=UA([" <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 et(FA||(FA=UA([" <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?et(LA||(LA=HA([" <ox-gutter-dirty-element value=","></ox-gutter-dirty-element> "])),t):et(VA||(VA=HA([""])))}},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)}}},JA={"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 tC(t){return"function"==typeof t?t:JA[t]}var eC,rC,nC,iC,oC,aC,sC,cC,uC,lC,hC=(t,e,r,n,i)=>et(KA||(KA=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}}))})),pC={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"}},fC=(t,e,r,n,i)=>{if(!t)return"";isNaN(Number(t))||(t=Number(t));var o=e.record.options||pC[e.type],a=new Intl.DateTimeFormat(navigator.language,o);switch(e.type){case"datetime":case"date":t=a.format(new Date(t))}return et(rC||(rC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span>","</span>"])),t)},dC=new URL(__webpack_require__(17699),__webpack_require__.b).href;function mC(t){var e,r=t.target;try{e=mb().parse(r.textContent)}catch(t){}r.setAttribute("data-tooltip",mb().stringify(e,null,2))}function gC(t){t.target.removeAttribute("data-tooltip")}function vC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function yC(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 bC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var wC,EC,_C=S(uC||(uC=bC([""]))),AC=class extends Et{constructor(){super(...arguments),this.column=_l,this.record=Cl}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){yC(o,n,i,a,s,"next",t)}function s(t){yC(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 et(lC||(lC=bC([""])))}};function CC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}AC.styles=_C,(0,t.gn)([a({type:Object})],AC.prototype,"value",void 0),(0,t.gn)([a({type:Object})],AC.prototype,"column",void 0),(0,t.gn)([a({type:Object})],AC.prototype,"record",void 0),(0,t.gn)([a({type:Number})],AC.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Object})],AC.prototype,"field",void 0),(0,t.gn)([a({type:Number})],AC.prototype,"row",void 0),AC=(0,t.gn)([e("ox-grist-renderer")],AC);var SC=class extends AC{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 et(wC||(wC=CC(['\n <div id="border"></div>\n <div id="bar" style="width:','%">&nbsp;',"</div>\n "])),n,n)}};SC.styles=S(EC||(EC=CC(["\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 "]))),SC=(0,t.gn)([e("ox-grist-progress-renderer")],SC);var xC,DC,OC,PC=__webpack_require__(51266);function IC(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function kC(t){var e=t.target;Cn(e)&&e.setAttribute("data-tooltip",e.textContent)}function TC(t){t.target.removeAttribute("data-tooltip")}var RC=(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,u,l,h=t.length,p=t.search(/[0-9\-\+#]/),f=p>0?t.substring(0,p):"",d=t.split("").reverse().join(""),m=d.search(/[0-9\-\+#]/),g=h-m,v=t.substring(g,g+1),y=g+("."===v||","===v?1:0),b=m>0?t.substring(y,h):"";if(r=(e="-"===(t=t.substring(p,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)),u=t[0].split(i),t[0]=u.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=u[1]&&u[u.length-1].length){for(d="",g=(l=e[0]).length%s,h=l.length,y=0;y<h;y++)d+=l.charAt(y),!((y-g+1)%s)&&y<h-s&&(d+=i);e[0]=d}return e[1]=t[1]&&e[1]?"."+e[1]:"","0"!==(n=e.join(""))&&""!==n||(r=!1),f+("+"==t[0].substring(0,1)?r?"-":"+":r?"-":"")+n+b}(o,a)),et(OC||(OC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span @mouseover="," @mouseout=",">","</span>"])),kC,TC,a)},FC={string:RC,text:RC,email:RC,tel:RC,password:(t,e,r,n,i)=>et(cC||(cC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<span>********</span>"]))),integer:RC,float:RC,number:RC,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)):PC.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?et(xC||(xC=IC(["<span>","</span>"])),s[0].display):et(DC||(DC=IC(["<span>","</span>"])),t)},boolean:hC,checkbox:hC,month:RC,week:RC,date:fC,time:fC,datetime:fC,color:(t,e,r,n,i)=>(t=null==t?"#000":t,et(eC||(eC=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:SC,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?et(aC||(aC=vC([' <a style="text-decoration:none;color:inherit" href='," target=",">","</a> "])),o||t,a,t):et(sC||(sC=vC([' <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=dC;var{width:a,height:s}=e.record.options||{};return et(iC||(iC=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,dC,dC)},file:(t,e,r,n,i)=>{var o;return o=t?"string"==typeof t?t:t[0].name:"",et(nC||(nC=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=mb().parse(t)}catch(t){}var a=null==o?"":mb().stringify(o);return et(oC||(oC=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["<pre @mouseover="," @mouseout=",">","</pre>"])),mC,gC,a)}};function MC(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 NC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?MC(Object(r),!0).forEach((function(e){BC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BC(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 jC=t=>{var e=NC({},t);"gutter"==t.type&&(e=(t=>{var e=ZA[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 u,{renderer:l,editor:h,editable:p,classifier:f}=i||{};if(l=function(t){if("function"==typeof t)return t;var e,r=FC[t||"text"]||RC;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}(l||t.type),p&&"function"!=typeof h&&(h="function"==typeof(u=t.type)?u:function(t,e,r,n,i){var o=new(zA[u||"text"]||PA);return o.value=t,o.record=r,o.column=e,o.row=n,o.field=i,o}),"function"!=typeof f&&(f=G_),e.record=NC(NC({},i),{},{classifier:f,renderer:l,editor:h}),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=NC({type:t.type,operator:"eq"},s)}var{click:d,dblclick:m}=o||{};return e.handlers={click:d&&tC(d),dblclick:m&&tC(m)},e};function LC(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 VC(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 zC=t=>function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LC(Object(r),!0).forEach((function(e){VC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({fields:["name","description","updatedAt"],details:[]},t),UC=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=G_),{appendable:e,insertable:r,selectable:n,groups:i,totals:o,handlers:{click:tC(s),dblclick:tC(c)},classifier:a}};function HC(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 GC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HC(Object(r),!0).forEach((function(e){qC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qC(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 WC=t=>{var{columns:e=[],rows:r={},pagination:n,sorters:i,list:o,imex:a}=t;return GC(GC({},t),{},{columns:e.map((t=>jC(t))),rows:UC(r),pagination:n,sorters:i,list:zC(o),imex:a})};function YC(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 XC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?YC(Object(r),!0).forEach((function(e){$C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}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}function QC(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 KC(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){QC(o,n,i,a,s,"next",t)}function s(t){QC(o,n,i,a,s,"throw",t)}a(void 0)}))}}function ZC(){return{total:0,records:[]}}class JC{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=KC((function*(e){var r,n;if(t._fetchHandler)try{return null===(r=t.consumer)||void 0===r||r.showSpinner(),yield(t._fetchHandler||ZC)(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 KC((function*(){var r,n=t.length>0&&void 0!==t[0]&&t[0],{page:i=0,limit:o=20}=e;return n?(e.records=Sl,i=1):(e.records=(null===(r=e.consumer)||void 0===r?void 0:r._data)?e.consumer._data.records:Sl,i+=1),e._update(XC({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 KC((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=Sl,i=i||o||e.sorters,a=a||e.filters,e.sorters=i,e._update(XC({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 KC((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===Sl)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 tS,eS,rS,nS,iS,oS=__webpack_require__(51266);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}function uS(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function lS(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 hS(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){lS(o,n,i,a,s,"next",t)}function s(t){lS(o,n,i,a,s,"throw",t)}a(void 0)}))}}var pS,fS,dS,mS,gS,vS,yS,bS,wS,ES,_S,AS,CS,SS,xS,DS=class extends Et{constructor(){super(...arguments),this.mode="GRID",this.data=xl,this.explicitFetch=!1,this._data=xl,this._config=Al,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),Gb({filters:mb().parse(i.get("filters")||"[]"),sorters:mb().parse(i.get("sorters")||"[]"),pagination:Gb({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{Cs(o,this.filters)&&Cs(a,this.sorters)||this.dispatchEvent(new CustomEvent("fetch-params-change",{bubbles:!0,composed:!0,detail:{filters:o,sorters:a,from:"url-parameter"}}))}catch(t){oS.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",mb().stringify(r)):a.delete("sorters")),e&&(e.length>0?a.set("filters",mb().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 hS((function*(){t().call(e),e.dataProvider=new JC(e),e._timeCapsule=new Pn(10),e._snapshotTaker=new ii(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 hS((function*(){t._resetPullToRefresh(),t.fetchHandler&&(t._pulltorefreshHandle=z_({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 M_(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 et(tS||(tS=uS(['\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?et(eS||(eS=uS(['\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?et(rS||(rS=uS(['\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):et(nS||(nS=uS(['\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 hS((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||Ol.limit,page:u=a||Ol.page}=e.dataProvider;s||"GRID"!==e.mode?yield e.dataProvider.attach(i):yield e.dataProvider.fetch({limit:c,page:u,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 oS.warn("grist is not configured yet.")}))()}updated(t){var e=this;return hS((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=WC(sS({},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=Dl}=e._config.pagination||Ol;e.dataProvider.page=1,e.dataProvider.limit=s||c[0]||Dl[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:u}=e.data||[],l=e.selectedRecords||[],h=e._data.records;l.forEach((t=>{var e=u.indexOf(t),r=h[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()):oS.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=sS({},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=sS({},this._data)}reset(){var t,e,{limit:r=Ol.limit,page:n=Ol.page,total:i=Ol.total,records:o=[]}=this.data||Ol;o=o.map(((t,e)=>sS(sS({},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&&!Cs(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__&&k_(o)&&delete n.__dirty__}this._data=sS({},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 OS(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function PS(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)}DS.styles=[Vs,Ls,zs,S(iS||(iS=uS(["\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()],DS.prototype,"mode",void 0),(0,t.gn)([a()],DS.prototype,"config",void 0),(0,t.gn)([a()],DS.prototype,"data",void 0),(0,t.gn)([a()],DS.prototype,"selectedRecords",void 0),(0,t.gn)([a({type:Boolean,attribute:"explicit-fetch"})],DS.prototype,"explicitFetch",void 0),(0,t.gn)([a()],DS.prototype,"fetchHandler",void 0),(0,t.gn)([a()],DS.prototype,"fetchOptions",void 0),(0,t.gn)([a()],DS.prototype,"filters",void 0),(0,t.gn)([a()],DS.prototype,"sorters",void 0),(0,t.gn)([a()],DS.prototype,"pagination",void 0),(0,t.gn)([a({type:Boolean,attribute:"url-params-sensitive"})],DS.prototype,"urlParamsSensitive",void 0),(0,t.gn)([l()],DS.prototype,"_data",void 0),(0,t.gn)([l()],DS.prototype,"_config",void 0),(0,t.gn)([l()],DS.prototype,"_showSpinner",void 0),(0,t.gn)([g("slot[name=headroom]")],DS.prototype,"head",void 0),(0,t.gn)([g("#grist")],DS.prototype,"grist",void 0),(0,t.gn)([y("#wrap")],DS.prototype,"wrap",void 0),DS=(0,t.gn)([e("ox-grist")],DS);var IS,kS,TS,RS=class extends Et{constructor(){super(...arguments),this.config=Al,this.columns=[],this.data=xl}_onWheelEvent(t){var e=Math.max(-1,Math.min(1,t.deltaY||0));this.scrollLeft=Math.max(0,this.scrollLeft-40*e),pb||t.preventDefault()}firstUpdated(){this.addEventListener("wheel",this._onWheelEvent.bind(this),!!pb&&{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){PS(o,n,i,a,s,"next",t)}function s(t){PS(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 et(pS||(pS=OS(["\n ","\n\n <div></div>\n "])),t.map(((t,e)=>t.hidden?et(yS||(yS=OS([""]))):et(fS||(fS=OS(["\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?et(dS||(dS=OS(["\n <span sorter @click=",">\n ","\n </span>\n "])),(e=>this._changeSort(t)),this._renderSortHeader(t)):et(mS||(mS=OS([""]))),!1!==t.resizable?et(gS||(gS=OS([' <span splitter draggable="true">&nbsp;</span> ']))):et(vS||(vS=OS([""])))))))}_renderHeader(t){var{renderer:e}=t.header||{},r=e.call(this,t);return et(bS||(bS=OS([" "," "])),r)}_renderSortHeader(t){if(t.hidden)return et(wS||(wS=OS([""])));var e=this._sorters||[],r=e.find((e=>"gutter"!==t.type&&t.name==e.name));if(!r)return et(ES||(ES=OS([""])));if(e.length>1){var n=e.indexOf(r)+1;return r.desc?et(_S||(_S=OS([" &#9660;<sub>","</sub> "])),n):et(AS||(AS=OS([" &#9650;<sub>","</sub> "])),n)}return r.desc?et(CS||(CS=OS([" &#9660; "]))):et(SS||(SS=OS([" &#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=kl(((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 FS(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}RS.styles=[S(xS||(xS=OS(["\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})],RS.prototype,"config",void 0),(0,t.gn)([a({type:Array})],RS.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],RS.prototype,"data",void 0),(0,t.gn)([a({type:Array})],RS.prototype,"_sorters",void 0),RS=(0,t.gn)([e("ox-report-header")],RS);var MS,NS="left",BS=class extends Et{constructor(){super(...arguments),this.record=Cl,this.column=_l,this.rowIndex=-1,this.columnIndex=-1}render(){if(!this.column)return et(IS||(IS=FS([""])));var{value:t,column:e,record:r,rowIndex:n}=this,{renderer:i}=e.record;return et(kS||(kS=FS([" "," "])),i(t,e,r,n,this))}updated(t){if(t.has("column")){var e=this.column.record&&this.column.record.align||NS;if(e!=NS){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)}}}};BS.styles=[S(TS||(TS=FS(["\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})],BS.prototype,"align",void 0),(0,t.gn)([a({type:Object})],BS.prototype,"record",void 0),(0,t.gn)([a({type:Object})],BS.prototype,"column",void 0),(0,t.gn)([a({type:Number})],BS.prototype,"rowIndex",void 0),(0,t.gn)([a({type:Number})],BS.prototype,"columnIndex",void 0),(0,t.gn)([a({type:Object})],BS.prototype,"value",void 0),BS=(0,t.gn)([e("ox-report-field")],BS);var jS,LS,VS,zS,US,HS,GS,qS,WS,YS,XS,$S=S(MS||(MS=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"]))),QS=__webpack_require__(51266);function KS(t){t.stopPropagation();var e=t.target,{column:r,record:n,rowIndex:i,columnIndex:o}=e;if(r){isNaN(i)||isNaN(o)?QS.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 ZS(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 JS(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ZS(o,n,i,a,s,"next",t)}function s(t){ZS(o,n,i,a,s,"throw",t)}a(void 0)}))}}function tx(t){return ex.apply(this,arguments)}function ex(){return(ex=JS((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 rx(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 nx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var ix,ox,ax=class extends Et{constructor(){super(...arguments),this.config=Al,this.columns=[],this.data=xl}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 et(jS||(jS=nx(["\n ","\n "])),c.map(((t,c)=>{var u=c===i,l=t["*"],h=l&&("*"==l.groupName?n(e[0].column):n(l.groupName));return et(LS||(LS=nx(["\n ","\n ","\n "])),!l||l&&l.value?et(VS||(VS=nx(["\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 et(zS||(zS=nx(["\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,u,u&&n===o,l,t[e.name])})),s,c,t,u,l):et(US||(US=nx([""]))),l?et(GS||(GS=nx(["\n ","\n ","\n "])),"*"==l.groupName?et(qS||(qS=nx([""]))):et(WS||(WS=nx(["\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,l.row-1,l.column-1,h,t,l.row-1<=i&&l.row-1+l.rowspan>i,l.row-1===i&&l.column-1===o,!0,t[l.groupName],l.row,l.column,l.rowspan),l.value?et(XS||(XS=nx(["\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,l.column-1,l.titleColumn,t,u,c===i&&l.column-1===o,!0,l.value,l.row+l.rowspan,l.column,l.colspan):et(YS||(YS=nx([""])))):et(HS||(HS=nx([""]))))})))}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=rx.bind(this),window.addEventListener("keydown",this._focusedListener))})),this.renderRoot.addEventListener("click",KS.bind(this)),this.renderRoot.addEventListener("dblclick",tx.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:u}=t.getBoundingClientRect(),{scrollLeft:l,scrollTop:h}=t,p=t.clientWidth-t.offsetWidth,f=t.clientHeight-t.offsetHeight;return{left:n<s?l-(s-n):i>c?l-(c-i)-p:void 0,top:r<a?h-(a-r):o>u?h-(u-o)-f: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 sx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}ax.styles=[$S],(0,t.gn)([a({type:Object})],ax.prototype,"config",void 0),(0,t.gn)([a({type:Array})],ax.prototype,"columns",void 0),(0,t.gn)([a({type:Object})],ax.prototype,"data",void 0),(0,t.gn)([a({type:Object})],ax.prototype,"focused",void 0),ax=(0,t.gn)([e("ox-report-body")],ax);var cx=class extends Et{constructor(){super(...arguments),this.config=Al,this.data=xl,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 et(ix||(ix=sx(["\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}};cx.styles=[Vs,S(ox||(ox=sx(["\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})],cx.prototype,"config",void 0),(0,t.gn)([a({type:Object})],cx.prototype,"data",void 0),(0,t.gn)([g("ox-report-body",!0)],cx.prototype,"body",void 0),(0,t.gn)([g("ox-report-header",!0)],cx.prototype,"header",void 0),cx=(0,t.gn)([e("ox-report-component")],cx);var ux,lx,hx,px,fx=__webpack_require__(51266);function dx(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 mx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dx(Object(r),!0).forEach((function(e){gx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gx(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 vx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function yx(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 bx(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){yx(o,n,i,a,s,"next",t)}function s(t){yx(o,n,i,a,s,"throw",t)}a(void 0)}))}}var wx,Ex,_x,Ax=class extends Et{constructor(){super(...arguments),this.data=xl,this.autoFetch=!1,this._data=xl,this._config=Al,this._showSpinner=!1}get mode(){return"REPORT"}connectedCallback(){super.connectedCallback(),this.dataProvider=new JC(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 bx((function*(){t.resetPullToRefresh(),t.fetchHandler&&(t.pulltorefreshHandle=z_({container:yield t.wrap,scrollable:t.report.pullToRefreshTarget,refresh:()=>t.fetch(!0)}))}))()}firstUpdated(){var t=this;return bx((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 et(ux||(ux=vx(["\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 "])),et(t?lx||(lx=vx(['\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 '])):hx||(hx=vx([""]))),this._config,this._data,this._showSpinner)}fetch(){var t=arguments,e=this;return bx((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))):fx.warn("report is not configured yet.")}))()}updated(t){var e=this;return bx((function*(){t.has("config")&&(e._config=WC(mx({},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=Ol.limit,page:e=Ol.page,total:r=Ol.total,records:n=[]}=this.data;this._data={limit:t,page:e,total:r,records:this.sortByGroups(n).map(((r,n)=>mx(mx({},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:qr.exists("text.ox-data-report-grand-total")?qr.t("text.ox-data-report-grand-total"):"grand total",align:"right",rowspan:1},...i].map((t=>mx(mx({},t),{},{titleColumn:jC({record:{align:t.align||"right"}})}))),u=[],l=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],mx(mx(mx({},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:qr.exists("text.ox-data-report-grand-total")?qr.t("text.ox-data-report-grand-total"):"grand total",groupName:"*",row:1,rowspan:1,column:1,colspan:0}}],h=0,p=function(t){var n=i.reduce(((e,r)=>(e[r.column]=t[r.column],e)),{}),p=!0,f=[],d={};if(h++,r){var m=function(){var i=c[g],u=l[g];if(d[i.column]=t[i.column],"*"==i.column||p&&n[i.column]===r[i.column]){var m=function(r){u[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 u["*"].rowspan++,"continue"}o.forEach((t=>{u[t]=Math.round(100*u[t])/100})),p=!1,f.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}),mx(mx({},d),{},{[i.column]:t[i.column],"*":{titleColumn:i.titleColumn,groupName:i.column,value:i.title,row:h,rowspan:1,column:s(i.column)+1,colspan:l[g]["*"].colspan}}))})};for(var g in c)m();f.reverse().map((t=>{var{record:e,idx:r}=t;return u.push(l[Number(r)]),l[Number(r)]={},e["*"].value&&(l.forEach((t=>t["*"]&&t["*"].rowspan++)),h++),{record:e,idx:r}})).forEach((t=>{var{record:e,idx:r}=t;e["*"].row=h,l[Number(r)]=e}))}u.push(t),r=n};for(var f of t)p(f);for(;n=l.pop();)o.forEach((t=>{n[t]=Math.round(100*n[t])/100})),u.push(n),n["*"].value&&l.forEach((t=>t["*"].rowspan++));return u}checkDirties(){}};function Cx(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 Sx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function xx(t){var e=t.target;Cn(e)&&e.setAttribute("data-tooltip",e.textContent)}function Dx(t){t.target.removeAttribute("data-tooltip")}Ax.styles=[Vs,zs,S(px||(px=vx(["\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()],Ax.prototype,"config",void 0),(0,t.gn)([a()],Ax.prototype,"data",void 0),(0,t.gn)([a()],Ax.prototype,"fetchHandler",void 0),(0,t.gn)([a()],Ax.prototype,"fetchOptions",void 0),(0,t.gn)([a({type:Boolean,attribute:"auto-fetch"})],Ax.prototype,"autoFetch",void 0),(0,t.gn)([l()],Ax.prototype,"_data",void 0),(0,t.gn)([l()],Ax.prototype,"_config",void 0),(0,t.gn)([l()],Ax.prototype,"_showSpinner",void 0),(0,t.gn)([g("#report")],Ax.prototype,"report",void 0),(0,t.gn)([y("#wrap")],Ax.prototype,"wrap",void 0),Ax=(0,t.gn)([e("ox-report")],Ax);var Ox,Px,Ix,kx=(wx=class extends zl{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 et(Ex||(Ex=Sx(["\n <div @click=",">\n <span @mouseover="," @mouseout=",">","</span>\n <mwc-icon>expand_more</mwc-icon>\n </div>\n\n <slot></slot>\n "])),this.expand,xx,Dx,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){Cx(o,n,i,a,s,"next",t)}function s(t){Cx(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)}}},wx.styles=[Us,S(_x||(_x=Sx(["\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 "])))],wx);function Tx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(0,t.gn)([a({type:String})],kx.prototype,"name",void 0),(0,t.gn)([a({type:String})],kx.prototype,"placeholder",void 0),(0,t.gn)([l()],kx.prototype,"label",void 0),kx=(0,t.gn)([e("ox-select")],kx);var Rx,Fx,Mx,Nx,Bx,jx,Lx,Vx,zx=((Ox=class extends zl{constructor(){super(...arguments),this.dispatchChangeEventDebouncer=ei((t=>this.dispatchChangeEvent(t)),100)}render(){return et(Px||(Px=Tx(["\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(Ix||(Ix=Tx(["\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 "])))],Ox);function Ux(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Hx(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 Gx(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Hx(o,n,i,a,s,"next",t)}function s(t){Hx(o,n,i,a,s,"throw",t)}a(void 0)}))}}(0,t.gn)([a({type:String})],zx.prototype,"placeholder",void 0),(0,t.gn)([a({attribute:"select-after-change",type:Boolean})],zx.prototype,"selectAfterChange",void 0),(0,t.gn)([g("input")],zx.prototype,"input",void 0),zx=(0,t.gn)([e("ox-input-search")],zx);var qx,Wx,Yx,Xx,$x,Qx,Kx,Zx=class extends Et{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=Gx((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 et(Rx||(Rx=Ux(["\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?et(Fx||(Fx=Ux([""]))):et(Mx||(Mx=Ux(['\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,u=a.label,l=void 0!==u?u:"object"==typeof o&&o.renderer?o.renderer():i.renderer(t)||n,h="between"===c?1:0,p=Jy("like"===c||"i_like"===c||"i_nlike"===c||"nlike"===c?"text":s)[h],f=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 p?"select"!==s&&l?et(Bx||(Bx=Ux(["<label filter-title><span>","</span> "," </label> "])),l,p(t,f,this)):"select"===s||l?et("in"===c?jx||(jx=Ux(["\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 "])):Lx||(Lx=Ux(["\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,l,f,(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}}))}),p(t,f,this)):p(t,f,this):et(Nx||(Nx=Ux([""])))})))}getQueryFilters(){var t=this;return Gx((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 Jx(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Zx.styles=[Vl,S(Vx||(Vx=Ux(["\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})],Zx.prototype,"value",void 0),(0,t.gn)([a({type:Boolean,attribute:"without-search"})],Zx.prototype,"withoutSearch",void 0),(0,t.gn)([l()],Zx.prototype,"config",void 0),(0,t.gn)([l()],Zx.prototype,"filterColumns",void 0),(0,t.gn)([l()],Zx.prototype,"searchColumns",void 0),(0,t.gn)([y("form")],Zx.prototype,"form",void 0),Zx=(0,t.gn)([e("ox-filters-form")],Zx);var tD=class extends Et{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 et(qx||(qx=Jx(["\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),et(Wx||(Wx=Jx(["\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?et(Yx||(Yx=Jx([""]))):et(Xx||(Xx=Jx(["\n <mwc-icon>","</mwc-icon>\n ","\n "])),i?"keyboard_arrow_down":"keyboard_arrow_up",0===n?et($x||($x=Jx([""]))):et(Qx||(Qx=Jx(["<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"}}))}};tD.styles=[S(Kx||(Kx=Jx(["\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)([l()],tD.prototype,"config",void 0),(0,t.gn)([l()],tD.prototype,"columns",void 0),(0,t.gn)([l()],tD.prototype,"sorters",void 0),tD=(0,t.gn)([e("ox-sorters-control")],tD);var eD,rD,nD=__webpack_require__(16682),iD=__webpack_require__(85709),oD=__webpack_require__.n(iD);function aD(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function sD(t){return"object"===aD(t)}function cD(t,e){return t.length<124?t:e}function uD(t){if(!sD(t))throw new Error(`Message is expected to be an object, but got ${aD(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 ${aD(t.type)}`);switch(t.type){case rD.ConnectionInit:case rD.ConnectionAck:case rD.Ping:case rD.Pong:if("payload"in t&&!sD(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or missing, but got "${t.payload}"`);break;case rD.Subscribe:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${aD(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!sD(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${aD(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 ${aD(t.payload.query)}`);if(null!=t.payload.variables&&!sD(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 ${aD(t.payload.variables)}`);if(null!=t.payload.operationName&&"string"!==aD(t.payload.operationName))throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${aD(t.payload.operationName)}`);if(null!=t.payload.extensions&&!sD(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 ${aD(t.payload.extensions)}`);break;case rD.Next:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${aD(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!sD(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${aD(t.payload)}`);break;case rD.Error:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${aD(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 rD.Complete:if("string"!=typeof t.id)throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${aD(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 lD(t,e){return uD(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"}(eD||(eD={})),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"}(rD||(rD={}));var hD=__webpack_require__(51266);function pD(t){return sD(t)&&"code"in t&&"reason"in t}var fD=__webpack_require__(36232),dD=__webpack_require__(64638),mD=__webpack_require__(41822),gD=__webpack_require__(56344),vD=__webpack_require__(71996),yD=__webpack_require__(49657),bD=__webpack_require__(64059);function wD(t){return new dD.i((function(e,r){return new bD.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=wD(t),r}(0,t.ZT)(r,e),r.prototype.request=function(t,e){return this.link.request(t,e)}}(dD.i);var ED,_D,AD,CD,SD=__webpack_require__(54585),xD=__webpack_require__(32345),DD=__webpack_require__(93869),OD=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 bD.y((function(n){return r.client.subscribe((0,t.pi)((0,t.pi)({},e),{query:(0,SD.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,xD.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 DD.c({graphQLErrors:Array.isArray(t)?t:[t]})));var e}})}))},r}(dD.i),PD=__webpack_require__(7122),ID="/graphql",kD=ID,TD=new fD.h({addTypename:!1}),RD={uri:ID,credentials:"include",headers:{"Apollo-Require-Preflight":"true"}},FD=dD.i.split((t=>t.getContext().hasUpload),oD()(RD),new mD.u(RD)),MD=new OD(function(t){const{url:e,connectionParams:r,lazy:n=!0,onNonLazyError:i=hD.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:c=0,retryAttempts:u=5,retryWait:l=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:h=pD,isFatalConnectionProblem:p,on:f,webSocketImpl:d,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(d){if(!("function"==typeof(b=d)&&"constructor"in b&&"CLOSED"in b&&"CLOSING"in b&&"CONNECTING"in b&&"OPEN"in b))throw new Error("Invalid WebSocket implementation provided");y=d}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,E=(()=>{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==f?void 0:f.connecting)?[f.connecting]:[],opened:(null==f?void 0:f.opened)?[f.opened]:[],connected:(null==f?void 0:f.connected)?[f.connected]:[],ping:(null==f?void 0:f.ping)?[f.ping]:[],pong:(null==f?void 0:f.pong)?[f.pong]:[],message:(null==f?void 0:f.message)?[t.emit,f.message]:[t.emit],closed:(null==f?void 0:f.closed)?[f.closed]:[],error:(null==f?void 0:f.error)?[f.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 _(t){const e=[E.on("error",(r=>{e.forEach((t=>t())),t(r)})),E.on("closed",(r=>{e.forEach((t=>t())),t(r)}))]}let A,C,S=0,x=!1,D=0,O=!1;async function P(){clearTimeout(C);const[t,n]=await(null!=A?A:A=new Promise(((t,n)=>(async()=>{if(x){if(await l(D),!S)return A=void 0,n({code:1e3,reason:"All Subscriptions Gone"});D++}E.emit("connecting");const i=new w("function"==typeof e?await e():e,"graphql-transport-ws");let o,u;function h(){isFinite(a)&&a>0&&(clearTimeout(u),u=setTimeout((()=>{i.readyState===w.OPEN&&(i.send(lD({type:rD.Ping})),E.emit("ping",!1,void 0))}),a))}_((t=>{A=void 0,clearTimeout(o),clearTimeout(u),n(t),pD(t)&&4499===t.code&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)})),i.onerror=t=>E.emit("error",t),i.onclose=t=>E.emit("closed",t),i.onopen=async()=>{try{E.emit("opened",i);const t="function"==typeof r?await r():r;if(i.readyState!==w.OPEN)return;i.send(lD(t?{type:rD.ConnectionInit,payload:t}:{type:rD.ConnectionInit},g)),isFinite(c)&&c>0&&(o=setTimeout((()=>{i.close(eD.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),c)),h()}catch(t){E.emit("error",t),i.close(eD.InternalClientError,cD(t instanceof Error?t.message:new Error(t).message,"Internal client error"))}};let p=!1;i.onmessage=({data:e})=>{try{const r=function(t,e){return uD("string"==typeof t?JSON.parse(t,e):t)}(e,v);if(E.emit("message",r),"ping"===r.type||"pong"===r.type)return E.emit(r.type,!0,r.payload),void("pong"===r.type?h():s||(i.send(lD(r.payload?{type:rD.Pong,payload:r.payload}:{type:rD.Pong})),E.emit("pong",!1,r.payload)));if(p)return;if(r.type!==rD.ConnectionAck)throw new Error(`First message cannot be of type ${r.type}`);clearTimeout(o),p=!0,E.emit("connected",i,r.payload),x=!1,D=0,t([i,new Promise(((t,e)=>_(e)))])}catch(t){i.onmessage=null,E.emit("error",t),i.close(eD.BadResponse,cD(t instanceof Error?t.message:new Error(t).message,"Bad response"))}}})())));t.readyState===w.CLOSING&&await n;let i=()=>{};const u=new Promise((t=>i=t));return[t,i,Promise.race([u.then((()=>{if(!S){const e=()=>t.close(1e3,"Normal Closure");isFinite(o)&&o>0?C=setTimeout((()=>{t.readyState===w.OPEN&&e()}),o):e()}})),n])]}function I(t){if(pD(t)&&(e=t.code,![1e3,1001,1006,1005,1012,1013,1013].includes(e)&&e>=1e3&&e<=1999||[eD.InternalServerError,eD.InternalClientError,eD.BadRequest,eD.BadResponse,eD.Unauthorized,eD.SubprotocolNotAcceptable,eD.SubscriberAlreadyExists,eD.TooManyInitialisationRequests].includes(t.code)))throw t;var e;if(O)return!1;if(pD(t)&&1e3===t.code)return S>0;if(!u||D>=u)throw t;if(!h(t))throw t;if(null==p?void 0:p(t))throw t;return x=!0}return n||(async()=>{for(S++;;)try{const[,,t]=await P();await t}catch(t){try{if(!I(t))return}catch(t){return null==i?void 0:i(t)}}})(),{on:E.on,subscribe(t,e){const r=m(t);let n=!1,i=!1,o=()=>{S--,n=!0};return(async()=>{for(S++;;)try{const[a,s,c]=await P();if(n)return s();const u=E.onMessage(r,(t=>{switch(t.type){case rD.Next:return void e.next(t.payload);case rD.Error:return i=!0,n=!0,e.error(t.payload),void o();case rD.Complete:return n=!0,void o()}}));return a.send(lD({id:r,type:rD.Subscribe,payload:t},g)),o=()=>{n||a.readyState!==w.OPEN||a.send(lD({id:r,type:rD.Complete},g)),S--,n=!0,s()},void await c.finally(u)}catch(t){if(!I(t))return}})().then((()=>{i||e.complete()})).catch((t=>{e.error(t)})),()=>{n||o()}},async dispose(){if(O=!0,A){const[t]=await A;t.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}({url:location.origin.replace(/^http/,"ws")+kD,keepAlive:1e4,retryAttempts:1e6,shouldRetry:t=>!0,connectionParams:{headers:{referer:location.href}}})),ND=new gD.f({defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}},cache:TD,link:(0,vD.V)((t=>{var{query:e}=t,r=(0,PD.p$)(e);return"OperationDefinition"===r.kind&&"subscription"===r.operation}),MD,(0,yD.D)([wD((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}}))}})),FD]))});function BD(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 jD(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var LD,VD,zD,UD,HD=class extends Et{constructor(){super(...arguments),this.histories=[]}render(){var t;if(!(null===(t=this.histories)||void 0===t?void 0:t.length))return et(ED||(ED=jD([""])));var e={rows:{appendable:!1},pagination:{infinite:!0},columns:[{type:"gutter",gutterName:"sequence"},{type:"object",name:"accessDomain",header:$r.t("field.domain"),record:{editable:!1},width:200},{type:"datetime",name:"accessedAt",header:$r.t("field.accessed_at"),record:{editable:!1},width:200},{type:"string",name:"accessorIp",header:$r.t("field.ip_address"),record:{editable:!1},width:200}]};return et(_D||(_D=jD(["\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){BD(o,n,i,a,s,"next",t)}function s(t){BD(o,n,i,a,s,"throw",t)}a(void 0)}))}}((function*(){var e;try{var r=yield ND.query({query:(0,nD.ZP)(AD||(AD=jD(["\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 GD(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){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){GD(o,n,i,a,s,"next",t)}function s(t){GD(o,n,i,a,s,"throw",t)}a(void 0)}))}}function WD(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}HD.styles=S(CD||(CD=jD(["\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)],HD.prototype,"histories",void 0),(0,t.gn)([a({type:Number}),(0,t.w6)("design:type",Number)],HD.prototype,"limit",void 0),HD=(0,t.gn)([e("my-login-history")],HD);var YD=class extends(Qr($r)(Et)){firstUpdated(){cn.on("profile",(t=>{var{credential:e}=t;this.setCredential(e)})),this.setCredential(cn.credential)}setCredential(t){t?(this.name=t.name,this.email=t.email):(this.name="",this.email="")}render(){return et(LD||(LD=WD(['\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)),$r.t("label.login_history"),this.openLoginHistory.bind(this))}onNameChanged(t){var e=this;return qD((function*(){if(t){var r=e.name;try{Xc({level:"info",message:yield cn.updateProfile({name:t})})}catch(t){e.nameEl.value=r||"",Xc({level:"error",message:"message"in t?t.message:t})}}}))()}onLocaleChanged(t){var e=this;return qD((function*(){if(t){var r=$r.language;try{var n=yield cn.updateProfile({locale:t});$r.changeLanguage(t),Xc({level:"info",message:n})}catch(t){e.localeEl.value=r,Xc({level:"error",message:"message"in t?t.message:t})}}}))()}openLoginHistory(){Vc(et(VD||(VD=WD([" <my-login-history></my-login-history> "]))),{title:$r.t("label.login_history")})}deleteUser(){Vc(et(zD||(zD=WD([" <delete-user-popup></delete-user-popup> "]))),{title:$r.t("label.delete account")})}};YD.styles=[S(UD||(UD=WD(["\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)],YD.prototype,"email",void 0),(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],YD.prototype,"name",void 0),(0,t.gn)([g("#name"),(0,t.w6)("design:type",HTMLInputElement)],YD.prototype,"nameEl",void 0),(0,t.gn)([g("#locale"),(0,t.w6)("design:type",HTMLInputElement)],YD.prototype,"localeEl",void 0),YD=(0,t.gn)([e("profile-component")],YD);var XD,$D=__webpack_require__(26924);const QD=S(XD||(XD=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 KD,ZD,JD,tO,eO,rO,nO,iO;function oO(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function aO(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 sO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aO(Object(r),!0).forEach((function(e){cO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cO(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 uO(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 lO(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){uO(o,n,i,a,s,"next",t)}function s(t){uO(o,n,i,a,s,"throw",t)}a(void 0)}))}}function hO(){return(hO=lO((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"}(rO||(rO={})),function(t){t.Bounce="bounce",t.Normal="normal"}(nO||(nO={})),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"}(iO||(iO={}));var pO,fO,dO,mO,gO=class extends Et{constructor(){super(...arguments),this.autoplay=!1,this.background="transparent",this.controls=!1,this.currentState=rO.Loading,this.description="Lottie animation",this.direction=1,this.hover=!1,this.intermission=1,this.loop=!1,this.mode=nO.Normal,this.preserveAspectRatio="xMidYMid meet",this.renderer="svg",this.speed=1,this._io=void 0,this._counter=1}load(t){var e=this;return lO((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&&$D.useWebWorker(!0),e._lottie=$D.loadAnimation(sO(sO({},n),{},{[a]:i})),e._attachEventListeners(),"path"===a?(o=yield function(t){return hO.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=rO.Error,e.dispatchEvent(new CustomEvent(iO.Error)))}catch(t){e.currentState=rO.Error,e.dispatchEvent(new CustomEvent(iO.Error))}}}))()}getLottie(){return this._lottie}play(){this._lottie&&(this._lottie.play(),this.currentState=rO.Playing,this.dispatchEvent(new CustomEvent(iO.Play)))}pause(){this._lottie&&(this._lottie.pause(),this.currentState=rO.Paused,this.dispatchEvent(new CustomEvent(iO.Pause)))}stop(){this._lottie&&(this._counter=1,this._lottie.stop(),this.currentState=rO.Stopped,this.dispatchEvent(new CustomEvent(iO.Stop)))}destroy(){this._lottie&&(this._lottie.destroy(),this.currentState=rO.Destroyed,this.dispatchEvent(new CustomEvent(iO.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===rO.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===rO.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 et(KD||(KD=oO([' <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===rO.Error?et(ZD||(ZD=oO(['<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===rO.Frozen&&this.play():this.currentState===rO.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(iO.Rendered))}renderControls(){var t=this.currentState===rO.Playing,e=this.currentState===rO.Paused,r=this.currentState===rO.Stopped;return et(JD||(JD=oO(['\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":"",et(t?tO||(tO=oO(['<svg width="24" height="24">\n <path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z" />\n </svg>'])):eO||(eO=oO(['<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===rO.Playing&&this.play()}),this.seeker,this.toggleLooping,this.loop?"active":"")}_onVisibilityChange(){!0===document.hidden&&this.currentState===rO.Playing?this.freeze():this.currentState===rO.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(iO.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))})),this._lottie.addEventListener("complete",(()=>{this.currentState===rO.Playing?!this.loop||this.count&&this._counter>=this.count?this.dispatchEvent(new CustomEvent(iO.Complete)):this.mode===nO.Bounce?(this.count&&(this._counter+=.5),setTimeout((()=>{this.dispatchEvent(new CustomEvent(iO.Loop)),this.currentState===rO.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())}),this.intermission)):(this.count&&(this._counter+=1),window.setTimeout((()=>{this.dispatchEvent(new CustomEvent(iO.Loop)),this.currentState===rO.Playing&&(this._lottie.stop(),this._lottie.play())}),this.intermission)):this.dispatchEvent(new CustomEvent(iO.Complete))})),this._lottie.addEventListener("DOMLoaded",(()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play(),this.dispatchEvent(new CustomEvent(iO.Ready))})),this._lottie.addEventListener("data_ready",(()=>{this.dispatchEvent(new CustomEvent(iO.Load))})),this._lottie.addEventListener("data_failed",(()=>{this.currentState=rO.Error,this.dispatchEvent(new CustomEvent(iO.Error))})),this.container.addEventListener("mouseenter",(()=>{this.hover&&this.currentState!==rO.Playing&&this.play()})),this.container.addEventListener("mouseleave",(()=>{this.hover&&this.currentState===rO.Playing&&this.stop()}))}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=rO.Frozen,this.dispatchEvent(new CustomEvent(iO.Freeze)))}};function vO(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}gO.styles=QD,(0,t.gn)([a({type:Boolean})],gO.prototype,"autoplay",void 0),(0,t.gn)([a({type:String,reflect:!0})],gO.prototype,"background",void 0),(0,t.gn)([a({type:Boolean})],gO.prototype,"controls",void 0),(0,t.gn)([a({type:Number})],gO.prototype,"count",void 0),(0,t.gn)([a({type:String})],gO.prototype,"currentState",void 0),(0,t.gn)([a({type:String})],gO.prototype,"description",void 0),(0,t.gn)([a({type:Number})],gO.prototype,"direction",void 0),(0,t.gn)([a({type:Boolean})],gO.prototype,"hover",void 0),(0,t.gn)([a()],gO.prototype,"intermission",void 0),(0,t.gn)([a({type:Boolean,reflect:!0})],gO.prototype,"loop",void 0),(0,t.gn)([a()],gO.prototype,"mode",void 0),(0,t.gn)([a({type:String})],gO.prototype,"preserveAspectRatio",void 0),(0,t.gn)([a({type:String})],gO.prototype,"renderer",void 0),(0,t.gn)([a()],gO.prototype,"seeker",void 0),(0,t.gn)([a({type:Number})],gO.prototype,"speed",void 0),(0,t.gn)([a({type:String})],gO.prototype,"src",void 0),(0,t.gn)([a({type:Boolean})],gO.prototype,"webworkers",void 0),(0,t.gn)([g(".animation")],gO.prototype,"container",void 0),gO=(0,t.gn)([e("lottie-player")],gO);var yO=class extends(Qr($r)(Et)){updated(t){t.has("data")&&(this.message=this.data.message,this.resultType=this.data.resultType||"congratulations")}render(){var{icon:t,title:e,description:r}=this.applicationMeta;return et(pO||(pO=vO(['\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 id="message-area">\n <h1>','</h1>\n\n \x3c!--description message container--\x3e\n <p></p>\n </div>\n <div id="button-area">\n <mwc-button\n icon="home"\n raised\n label="','"\n @click=',"\n ></mwc-button>\n </div>\n\n ","\n </div>\n "])),this.resultType,t,e,r,this.message||"",$r.t("button.go to home"),(t=>{window.location.replace("/auth/signin")}),!navigator.userAgent.match(/chrome|chromium|crios/i)&&navigator.userAgent.match(/safari/i)?et(fO||(fO=vO([""]))):et(dO||(dO=vO(['\n <div class="lottie-container">\n <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>\n </div>\n ']))))}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:e?e.content:"Things Factory",description:r?r.content:"Reimagining Software"}}return this._applicationMeta}};yO.styles=[S(mO||(mO=vO(["\n :host {\n display: flex;\n width: 100vw;\n height: 100vh;\n background-color: var(--auth-background);\n }\n .wrap {\n display: block;\n width: 450px;\n min-width: 350px;\n margin: 0 auto;\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 h1 {\n margin: 50px 0 0 0;\n padding: 0;\n font-size: 24px;\n color: var(--auth-title-color);\n }\n p {\n margin: 0;\n padding: var(--auth-description-padding);\n font: var(--auth-description-font);\n color: var(--auth-description-color);\n }\n :host *:focus {\n outline: none;\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 label {\n font: bold 14px var(--theme-font);\n color: var(--primary-color);\n }\n #button-area {\n border-top: 1px dashed rgba(0, 0, 0, 0.1);\n padding-top: 10px;\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 }\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 padding-bottom: 100px;\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 .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 "])))],(0,t.gn)([a({type:Object}),(0,t.w6)("design:type",Object)],yO.prototype,"data",void 0),(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],yO.prototype,"message",void 0),(0,t.gn)([a({type:String}),(0,t.w6)("design:type",String)],yO.prototype,"resultType",void 0),yO=(0,t.gn)([e("auth-result")],yO)})()})();