@xframework-ca-test/cli 1.0.30 → 1.0.32

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 (308) hide show
  1. package/dist/customer-portal/android-chrome-192x192.png +0 -0
  2. package/dist/customer-portal/android-chrome-512x512.png +0 -0
  3. package/dist/customer-portal/apple-touch-icon.png +0 -0
  4. package/dist/customer-portal/assets/ActionLink-feb719a3.js +1 -0
  5. package/dist/customer-portal/assets/AdaptableCard-5bdf55ff.js +1 -0
  6. package/dist/customer-portal/assets/Alert-e6518529.js +1 -0
  7. package/dist/customer-portal/assets/Auth0Callback-a32aa0ee.js +1 -0
  8. package/dist/customer-portal/assets/BlankLayout-7d425a4f.js +1 -0
  9. package/dist/customer-portal/assets/Button-312a6bfe.js +1 -0
  10. package/dist/customer-portal/assets/Card-8badb238.js +1 -0
  11. package/dist/customer-portal/assets/Checkout-735fa664.js +1 -0
  12. package/dist/customer-portal/assets/ClassicLayout-43547087.js +1 -0
  13. package/dist/customer-portal/assets/Container-0271dbaa.js +1 -0
  14. package/dist/customer-portal/assets/CourseDetails-aa3fc18f.js +1 -0
  15. package/dist/customer-portal/assets/CourseService-150b9c3b.js +1 -0
  16. package/dist/customer-portal/assets/DeckedLayout-50b0b841.js +1 -0
  17. package/dist/customer-portal/assets/DocumentList-f286e322.js +367 -0
  18. package/dist/customer-portal/assets/FaqItems-f0ea3578.js +1 -0
  19. package/dist/customer-portal/assets/FormContainer-e0ad1074.js +1 -0
  20. package/dist/customer-portal/assets/HorizontalMenuContent-c2ce9ba4.js +1 -0
  21. package/dist/customer-portal/assets/Input-f9dc9df7.js +1 -0
  22. package/dist/customer-portal/assets/LogInAsUser-5301a711.js +1 -0
  23. package/dist/customer-portal/assets/LogInAsUserSuccess-c53d408d.js +1 -0
  24. package/dist/customer-portal/assets/Logo-aa883174.js +1 -0
  25. package/dist/customer-portal/assets/ModernLayout-fd6ab4e1.js +1 -0
  26. package/dist/customer-portal/assets/Password-6017abd1.js +1 -0
  27. package/dist/customer-portal/assets/PasswordInput-f6e74528.js +1 -0
  28. package/dist/customer-portal/assets/Preview-bcdcb9ef.js +1 -0
  29. package/dist/customer-portal/assets/Product-ed043f08.js +1 -0
  30. package/dist/customer-portal/assets/ProductsLayout-c61b7a8e.js +1 -0
  31. package/dist/customer-portal/assets/Profile-d747fa18.js +1 -0
  32. package/dist/customer-portal/assets/Roboto-300-18827349.woff +0 -0
  33. package/dist/customer-portal/assets/Roboto-300-1d8f5280.woff2 +0 -0
  34. package/dist/customer-portal/assets/Roboto-300-a6d343d4.ttf +0 -0
  35. package/dist/customer-portal/assets/Roboto-400-47107401.woff2 +0 -0
  36. package/dist/customer-portal/assets/Roboto-400-79e85140.ttf +0 -0
  37. package/dist/customer-portal/assets/Roboto-400-9ae9d654.woff +0 -0
  38. package/dist/customer-portal/assets/Roboto-500-4112fbc9.woff +0 -0
  39. package/dist/customer-portal/assets/Roboto-500-96025fe9.woff2 +0 -0
  40. package/dist/customer-portal/assets/Roboto-500-f205cc51.ttf +0 -0
  41. package/dist/customer-portal/assets/Roboto-700-7d0b991e.ttf +0 -0
  42. package/dist/customer-portal/assets/Roboto-700-8e44376b.woff2 +0 -0
  43. package/dist/customer-portal/assets/Roboto-700-b1767a0c.woff +0 -0
  44. package/dist/customer-portal/assets/SegmentItemOption-1228dbe0.js +1 -0
  45. package/dist/customer-portal/assets/Select-19bd23ac.js +27 -0
  46. package/dist/customer-portal/assets/SidePanelContent-0d8d0ddd.js +1 -0
  47. package/dist/customer-portal/assets/SimpleLayout-a34ce3d6.js +2 -0
  48. package/dist/customer-portal/assets/StackedSideLayout-d20fda92.js +1 -0
  49. package/dist/customer-portal/assets/SubscriptionService-ff0a4fe5.js +1 -0
  50. package/dist/customer-portal/assets/SvgIcon-8e59e50e.css +6 -0
  51. package/dist/customer-portal/assets/SvgIcon-e50d8824.js +1008 -0
  52. package/dist/customer-portal/assets/Switcher-4b56d286.js +1 -0
  53. package/dist/customer-portal/assets/Tag-0a3ddbe2.js +1 -0
  54. package/dist/customer-portal/assets/TicketService-0b9fd2cc.js +1 -0
  55. package/dist/customer-portal/assets/Upload-f16cbbc9.js +127 -0
  56. package/dist/customer-portal/assets/UserService-379fdae4.js +1 -0
  57. package/dist/customer-portal/assets/Views-7025458f.js +1 -0
  58. package/dist/customer-portal/assets/ar-bb9d99db.js +1 -0
  59. package/dist/customer-portal/assets/cloneDeep-958c9090.js +1 -0
  60. package/dist/customer-portal/assets/dash.all.min-5cea336e.js +21 -0
  61. package/dist/customer-portal/assets/dxicons-695e35c5.woff +0 -0
  62. package/dist/customer-portal/assets/dxicons-a7f2b877.woff2 +0 -0
  63. package/dist/customer-portal/assets/dxicons-ce18ad67.ttf +0 -0
  64. package/dist/customer-portal/assets/dxiconsmaterial-042942d9.woff2 +0 -0
  65. package/dist/customer-portal/assets/dxiconsmaterial-2ca243c8.woff +0 -0
  66. package/dist/customer-portal/assets/dxiconsmaterial-d53bccef.ttf +0 -0
  67. package/dist/customer-portal/assets/en-e8193568.js +1 -0
  68. package/dist/customer-portal/assets/es-74fe811a.js +1 -0
  69. package/dist/customer-portal/assets/get-e6d75ebc.js +1 -0
  70. package/dist/customer-portal/assets/hls-78bd63bc.js +40 -0
  71. package/dist/customer-portal/assets/index-108e74a4.js +1 -0
  72. package/dist/customer-portal/assets/index-21f8ea30.js +3146 -0
  73. package/dist/customer-portal/assets/index-39f1f77e.js +1 -0
  74. package/dist/customer-portal/assets/index-50d9ba0e.js +1 -0
  75. package/dist/customer-portal/assets/index-51020fda.js +1 -0
  76. package/dist/customer-portal/assets/index-59b78927.js +1 -0
  77. package/dist/customer-portal/assets/index-5ee26094.js +1 -0
  78. package/dist/customer-portal/assets/index-6300b1cb.js +1 -0
  79. package/dist/customer-portal/assets/index-64f43f5c.js +1 -0
  80. package/dist/customer-portal/assets/index-737fd7d3.js +173 -0
  81. package/dist/customer-portal/assets/index-7b067308.js +1 -0
  82. package/dist/customer-portal/assets/index-7fb11654.css +1 -0
  83. package/dist/customer-portal/assets/index-8017aaa8.js +1 -0
  84. package/dist/customer-portal/assets/index-91a81028.js +1 -0
  85. package/dist/customer-portal/assets/index-99f3e22d.js +1 -0
  86. package/dist/customer-portal/assets/index-a05b664a.js +9 -0
  87. package/dist/customer-portal/assets/index-b2e5d3b2.js +1 -0
  88. package/dist/customer-portal/assets/index-bba6cb11.js +1 -0
  89. package/dist/customer-portal/assets/index-cdf4c2fe.js +1 -0
  90. package/dist/customer-portal/assets/index-ce7c8371.js +9 -0
  91. package/dist/customer-portal/assets/index-d7b1d047.js +1 -0
  92. package/dist/customer-portal/assets/index-f3b18a56.js +1 -0
  93. package/dist/customer-portal/assets/index.esm-2becf208.js +4 -0
  94. package/dist/customer-portal/assets/index.esm-7fca4988.js +1 -0
  95. package/dist/customer-portal/assets/index.esm-d90c2f28.js +1 -0
  96. package/dist/customer-portal/assets/isEmpty-d6a6848e.js +1 -0
  97. package/dist/customer-portal/assets/mixin-cf90cd8a.js +43 -0
  98. package/dist/customer-portal/assets/moment-a9aaa855.js +10 -0
  99. package/dist/customer-portal/assets/myCourse-1e27ebf2.js +1 -0
  100. package/dist/customer-portal/assets/react-22b3ad73.js +32 -0
  101. package/dist/customer-portal/assets/react-27635538.js +27 -0
  102. package/dist/customer-portal/assets/react-35db633d.js +31 -0
  103. package/dist/customer-portal/assets/react-55737d69.js +44 -0
  104. package/dist/customer-portal/assets/react-5e997bd3.js +37 -0
  105. package/dist/customer-portal/assets/react-72b07884.js +16 -0
  106. package/dist/customer-portal/assets/react-a5b37028.js +29 -0
  107. package/dist/customer-portal/assets/react-cbdc2827.js +11 -0
  108. package/dist/customer-portal/assets/strongPassword-dc805a65.js +1 -0
  109. package/dist/customer-portal/assets/supportTicketLists-64ba33fc.js +1 -0
  110. package/dist/customer-portal/assets/ticketDetails-25fa14db.js +1 -0
  111. package/dist/customer-portal/assets/useControllableState-ed446800.js +1 -0
  112. package/dist/customer-portal/assets/useThemeClass-61b1bbbf.js +1 -0
  113. package/dist/customer-portal/assets/useTimeOutMessage-04464c25.js +1 -0
  114. package/dist/customer-portal/assets/warning-eb037686.js +1 -0
  115. package/dist/customer-portal/assets/zh-cn-9d3866aa.js +1 -0
  116. package/dist/customer-portal/browserconfig.xml +9 -0
  117. package/dist/customer-portal/config.js +12 -0
  118. package/dist/customer-portal/data/features.json +11423 -0
  119. package/dist/customer-portal/data/order-list.csv +15 -0
  120. package/dist/customer-portal/data/product-list.csv +13 -0
  121. package/dist/customer-portal/data/unemployment-by-county-2017.csv +3220 -0
  122. package/dist/customer-portal/favicon-16x16.png +0 -0
  123. package/dist/customer-portal/favicon-32x32.png +0 -0
  124. package/dist/customer-portal/favicon.ico +0 -0
  125. package/dist/customer-portal/img/avatars/thumb-1.jpg +0 -0
  126. package/dist/customer-portal/img/avatars/thumb-10.jpg +0 -0
  127. package/dist/customer-portal/img/avatars/thumb-11.jpg +0 -0
  128. package/dist/customer-portal/img/avatars/thumb-12.jpg +0 -0
  129. package/dist/customer-portal/img/avatars/thumb-13.jpg +0 -0
  130. package/dist/customer-portal/img/avatars/thumb-14.jpg +0 -0
  131. package/dist/customer-portal/img/avatars/thumb-15.jpg +0 -0
  132. package/dist/customer-portal/img/avatars/thumb-16.jpg +0 -0
  133. package/dist/customer-portal/img/avatars/thumb-2.jpg +0 -0
  134. package/dist/customer-portal/img/avatars/thumb-3.jpg +0 -0
  135. package/dist/customer-portal/img/avatars/thumb-4.jpg +0 -0
  136. package/dist/customer-portal/img/avatars/thumb-5.jpg +0 -0
  137. package/dist/customer-portal/img/avatars/thumb-6.jpg +0 -0
  138. package/dist/customer-portal/img/avatars/thumb-7.jpg +0 -0
  139. package/dist/customer-portal/img/avatars/thumb-8.jpg +0 -0
  140. package/dist/customer-portal/img/avatars/thumb-9.jpg +0 -0
  141. package/dist/customer-portal/img/countries/ar.png +0 -0
  142. package/dist/customer-portal/img/countries/cn.png +0 -0
  143. package/dist/customer-portal/img/countries/fr.png +0 -0
  144. package/dist/customer-portal/img/countries/jp.png +0 -0
  145. package/dist/customer-portal/img/countries/sp.png +0 -0
  146. package/dist/customer-portal/img/countries/us.png +0 -0
  147. package/dist/customer-portal/img/email/email-logo.png +0 -0
  148. package/dist/customer-portal/img/icons/caCharts.svg +5396 -0
  149. package/dist/customer-portal/img/icons/caCounts.svg +10950 -0
  150. package/dist/customer-portal/img/icons/caGrids.svg +11059 -0
  151. package/dist/customer-portal/img/icons/caMaps.svg +10944 -0
  152. package/dist/customer-portal/img/icons/caPipelines.svg +11008 -0
  153. package/dist/customer-portal/img/icons/caStatus.svg +16718 -0
  154. package/dist/customer-portal/img/icons/caTargets.svg +10977 -0
  155. package/dist/customer-portal/img/icons/caTasks.svg +10995 -0
  156. package/dist/customer-portal/img/logo/Group.png +0 -0
  157. package/dist/customer-portal/img/logo/aica.svg +16 -0
  158. package/dist/customer-portal/img/logo/logo-dark-full.png +0 -0
  159. package/dist/customer-portal/img/logo/logo-dark-streamline.png +0 -0
  160. package/dist/customer-portal/img/logo/logo-grey.png +0 -0
  161. package/dist/customer-portal/img/logo/logo-light-full.png +0 -0
  162. package/dist/customer-portal/img/logo/logo-light-streamline.png +0 -0
  163. package/dist/customer-portal/img/logo/logo.svg +1 -0
  164. package/dist/customer-portal/img/map/pin-dark.png +0 -0
  165. package/dist/customer-portal/img/map/pin-orange.png +0 -0
  166. package/dist/customer-portal/img/map/pin-red.png +0 -0
  167. package/dist/customer-portal/img/others/auth-cover-bg.jpg +0 -0
  168. package/dist/customer-portal/img/others/auth-side-bg.jpg +0 -0
  169. package/dist/customer-portal/img/others/docs/blank-dark.jpg +0 -0
  170. package/dist/customer-portal/img/others/docs/blank.jpg +0 -0
  171. package/dist/customer-portal/img/others/docs/classic-dark.jpg +0 -0
  172. package/dist/customer-portal/img/others/docs/classic.jpg +0 -0
  173. package/dist/customer-portal/img/others/docs/decked-dark.jpg +0 -0
  174. package/dist/customer-portal/img/others/docs/decked.jpg +0 -0
  175. package/dist/customer-portal/img/others/docs/modern-dark.jpg +0 -0
  176. package/dist/customer-portal/img/others/docs/modern.jpg +0 -0
  177. package/dist/customer-portal/img/others/docs/simple-dark.jpg +0 -0
  178. package/dist/customer-portal/img/others/docs/simple.jpg +0 -0
  179. package/dist/customer-portal/img/others/docs/stackedSide-dark.jpg +0 -0
  180. package/dist/customer-portal/img/others/docs/stackedSide.jpg +0 -0
  181. package/dist/customer-portal/img/others/img-1.jpg +0 -0
  182. package/dist/customer-portal/img/others/img-10.png +0 -0
  183. package/dist/customer-portal/img/others/img-11.jpg +0 -0
  184. package/dist/customer-portal/img/others/img-13.jpg +0 -0
  185. package/dist/customer-portal/img/others/img-14.jpg +0 -0
  186. package/dist/customer-portal/img/others/img-15.jpg +0 -0
  187. package/dist/customer-portal/img/others/img-16.jpg +0 -0
  188. package/dist/customer-portal/img/others/img-17.png +0 -0
  189. package/dist/customer-portal/img/others/img-2-dark.png +0 -0
  190. package/dist/customer-portal/img/others/img-2.png +0 -0
  191. package/dist/customer-portal/img/others/img-8.png +0 -0
  192. package/dist/customer-portal/img/others/img-9.png +0 -0
  193. package/dist/customer-portal/img/others/no-mail-selected-dark.png +0 -0
  194. package/dist/customer-portal/img/others/no-mail-selected.png +0 -0
  195. package/dist/customer-portal/img/others/no-notification.png +0 -0
  196. package/dist/customer-portal/img/others/pending-approval-dark.png +0 -0
  197. package/dist/customer-portal/img/others/pending-approval.png +0 -0
  198. package/dist/customer-portal/img/others/upload-dark.png +0 -0
  199. package/dist/customer-portal/img/others/upload.png +0 -0
  200. package/dist/customer-portal/img/others/welcome-dark.png +0 -0
  201. package/dist/customer-portal/img/others/welcome.png +0 -0
  202. package/dist/customer-portal/img/products/product-1-2.jpg +0 -0
  203. package/dist/customer-portal/img/products/product-1-3.jpg +0 -0
  204. package/dist/customer-portal/img/products/product-1-4.jpg +0 -0
  205. package/dist/customer-portal/img/products/product-1.jpg +0 -0
  206. package/dist/customer-portal/img/products/product-10.jpg +0 -0
  207. package/dist/customer-portal/img/products/product-11.jpg +0 -0
  208. package/dist/customer-portal/img/products/product-12.jpg +0 -0
  209. package/dist/customer-portal/img/products/product-2-2.jpg +0 -0
  210. package/dist/customer-portal/img/products/product-2.jpg +0 -0
  211. package/dist/customer-portal/img/products/product-3.jpg +0 -0
  212. package/dist/customer-portal/img/products/product-4.jpg +0 -0
  213. package/dist/customer-portal/img/products/product-5.jpg +0 -0
  214. package/dist/customer-portal/img/products/product-6.jpg +0 -0
  215. package/dist/customer-portal/img/products/product-7.jpg +0 -0
  216. package/dist/customer-portal/img/products/product-8.jpg +0 -0
  217. package/dist/customer-portal/img/products/product-9.jpg +0 -0
  218. package/dist/customer-portal/img/theme/bg_center_image.jpg +0 -0
  219. package/dist/customer-portal/img/theme/login_center.jpg +0 -0
  220. package/dist/customer-portal/img/theme/login_side.jpg +0 -0
  221. package/dist/customer-portal/img/theme/login_side_wide.jpg +0 -0
  222. package/dist/customer-portal/img/thumbs/adobe-xd.png +0 -0
  223. package/dist/customer-portal/img/thumbs/avalanche.png +0 -0
  224. package/dist/customer-portal/img/thumbs/bitcoin-cash.png +0 -0
  225. package/dist/customer-portal/img/thumbs/bitcoin-sv.png +0 -0
  226. package/dist/customer-portal/img/thumbs/bitcoin.png +0 -0
  227. package/dist/customer-portal/img/thumbs/cardano.png +0 -0
  228. package/dist/customer-portal/img/thumbs/chainlink.png +0 -0
  229. package/dist/customer-portal/img/thumbs/doge.png +0 -0
  230. package/dist/customer-portal/img/thumbs/drivers-license-back-dark.png +0 -0
  231. package/dist/customer-portal/img/thumbs/drivers-license-back.png +0 -0
  232. package/dist/customer-portal/img/thumbs/drivers-license-front-dark.png +0 -0
  233. package/dist/customer-portal/img/thumbs/drivers-license-front.png +0 -0
  234. package/dist/customer-portal/img/thumbs/dropbox.png +0 -0
  235. package/dist/customer-portal/img/thumbs/eos.png +0 -0
  236. package/dist/customer-portal/img/thumbs/ethereum.png +0 -0
  237. package/dist/customer-portal/img/thumbs/figma.png +0 -0
  238. package/dist/customer-portal/img/thumbs/github.png +0 -0
  239. package/dist/customer-portal/img/thumbs/gitlab.png +0 -0
  240. package/dist/customer-portal/img/thumbs/google-drive.png +0 -0
  241. package/dist/customer-portal/img/thumbs/help-center-category-0-dark.png +0 -0
  242. package/dist/customer-portal/img/thumbs/help-center-category-0.png +0 -0
  243. package/dist/customer-portal/img/thumbs/help-center-category-1-dark.png +0 -0
  244. package/dist/customer-portal/img/thumbs/help-center-category-1.png +0 -0
  245. package/dist/customer-portal/img/thumbs/help-center-category-2-dark.png +0 -0
  246. package/dist/customer-portal/img/thumbs/help-center-category-2.png +0 -0
  247. package/dist/customer-portal/img/thumbs/help-center-category-3-dark.png +0 -0
  248. package/dist/customer-portal/img/thumbs/help-center-category-3.png +0 -0
  249. package/dist/customer-portal/img/thumbs/help-center-category-4-dark.png +0 -0
  250. package/dist/customer-portal/img/thumbs/help-center-category-4.png +0 -0
  251. package/dist/customer-portal/img/thumbs/help-center-category-5-dark.png +0 -0
  252. package/dist/customer-portal/img/thumbs/help-center-category-5.png +0 -0
  253. package/dist/customer-portal/img/thumbs/help-center-category-6-dark.png +0 -0
  254. package/dist/customer-portal/img/thumbs/help-center-category-6.png +0 -0
  255. package/dist/customer-portal/img/thumbs/help-center-category-7-dark.png +0 -0
  256. package/dist/customer-portal/img/thumbs/help-center-category-7.png +0 -0
  257. package/dist/customer-portal/img/thumbs/hubspot.png +0 -0
  258. package/dist/customer-portal/img/thumbs/id-card-back-dark.png +0 -0
  259. package/dist/customer-portal/img/thumbs/id-card-back.png +0 -0
  260. package/dist/customer-portal/img/thumbs/id-card-front-dark.png +0 -0
  261. package/dist/customer-portal/img/thumbs/id-card-front.png +0 -0
  262. package/dist/customer-portal/img/thumbs/jira.png +0 -0
  263. package/dist/customer-portal/img/thumbs/layouts/blank-dark.jpg +0 -0
  264. package/dist/customer-portal/img/thumbs/layouts/blank.jpg +0 -0
  265. package/dist/customer-portal/img/thumbs/layouts/classic-dark.jpg +0 -0
  266. package/dist/customer-portal/img/thumbs/layouts/classic.jpg +0 -0
  267. package/dist/customer-portal/img/thumbs/layouts/decked-dark.jpg +0 -0
  268. package/dist/customer-portal/img/thumbs/layouts/decked.jpg +0 -0
  269. package/dist/customer-portal/img/thumbs/layouts/modern-dark.jpg +0 -0
  270. package/dist/customer-portal/img/thumbs/layouts/modern.jpg +0 -0
  271. package/dist/customer-portal/img/thumbs/layouts/simple-dark.jpg +0 -0
  272. package/dist/customer-portal/img/thumbs/layouts/simple.jpg +0 -0
  273. package/dist/customer-portal/img/thumbs/layouts/stackedSide-dark.jpg +0 -0
  274. package/dist/customer-portal/img/thumbs/layouts/stackedSide.jpg +0 -0
  275. package/dist/customer-portal/img/thumbs/litecoin.png +0 -0
  276. package/dist/customer-portal/img/thumbs/miota.png +0 -0
  277. package/dist/customer-portal/img/thumbs/monero.png +0 -0
  278. package/dist/customer-portal/img/thumbs/notion.png +0 -0
  279. package/dist/customer-portal/img/thumbs/passport-dark.png +0 -0
  280. package/dist/customer-portal/img/thumbs/passport-data-dark.png +0 -0
  281. package/dist/customer-portal/img/thumbs/passport-data.png +0 -0
  282. package/dist/customer-portal/img/thumbs/passport.png +0 -0
  283. package/dist/customer-portal/img/thumbs/polkadot.png +0 -0
  284. package/dist/customer-portal/img/thumbs/polygon.png +0 -0
  285. package/dist/customer-portal/img/thumbs/ripple.png +0 -0
  286. package/dist/customer-portal/img/thumbs/saleforce-crm.png +0 -0
  287. package/dist/customer-portal/img/thumbs/shiba-inu.png +0 -0
  288. package/dist/customer-portal/img/thumbs/sketch.png +0 -0
  289. package/dist/customer-portal/img/thumbs/slack.png +0 -0
  290. package/dist/customer-portal/img/thumbs/solana.png +0 -0
  291. package/dist/customer-portal/img/thumbs/stellar-lumens.png +0 -0
  292. package/dist/customer-portal/img/thumbs/tether-us.png +0 -0
  293. package/dist/customer-portal/img/thumbs/tron.png +0 -0
  294. package/dist/customer-portal/img/thumbs/zapier.png +0 -0
  295. package/dist/customer-portal/img/thumbs/zendesk.png +0 -0
  296. package/dist/customer-portal/img/video/bg-login.mp4 +0 -0
  297. package/dist/customer-portal/index.html +31 -0
  298. package/dist/customer-portal/logo192.png +0 -0
  299. package/dist/customer-portal/logo512.png +0 -0
  300. package/dist/customer-portal/manifest.json +20 -0
  301. package/dist/customer-portal/mstile-150x150.png +0 -0
  302. package/dist/customer-portal/robots.txt +3 -0
  303. package/dist/customer-portal/safari-pinned-tab.svg +70 -0
  304. package/dist/customer-portal/web.config +27 -0
  305. package/dist/ui/config.js +20 -16
  306. package/dist/ui/menudata/menus.json +606 -0
  307. package/index.bundle.js +72 -37
  308. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ import{r as i,bq as P,c as p,j as o,bK as R}from"./index-737fd7d3.js";const L=i.forwardRef((w,C)=>{const{checked:r,checkedContent:m,className:g,color:x,defaultChecked:a,disabled:n,isLoading:d=!1,labelRef:b,name:j,onChange:s,readOnly:h,unCheckedContent:y,field:l,...N}=w,{themeColor:v,primaryColorLevel:S}=P(),[c,f]=i.useState(a||r);i.useEffect(()=>{typeof r<"u"&&f(r)},[r]);const u=(()=>{let e=c,t={value:e};return l&&(e=typeof l.value=="boolean"?l.value:a,t={value:e,checked:e}),a&&(t.defaultChecked=a),t})(),$=e=>{const t=!c;n||h||d||(typeof r>"u"?(f(t),s==null||s(t,e)):s==null||s(c,e))},k=x||`${v}-${S}`,E=p("switcher",(c||u.checked)&&`switcher-checked bg-${k} dark:bg-${k}`,n&&"switcher-disabled",g);return o.jsxs("label",{ref:b,className:E,children:[o.jsx("input",{ref:C,type:"checkbox",disabled:n,readOnly:h,name:j,onChange:$,...u,...l,...N}),d?o.jsx(R,{className:p("switcher-toggle-loading",c?"switcher-checked-loading":"switcher-uncheck-loading")}):o.jsx("div",{className:"switcher-toggle"}),o.jsx("span",{className:"switcher-content",children:c?m:y})]})});L.displayName="Switcher";export{L as S};
@@ -0,0 +1 @@
1
+ import{r as d,c as p,j as a,bo as B,bp as F,bL as q,bM as R,bN as W,bv as Q,b as U,bq as z}from"./index-737fd7d3.js";import{M as V}from"./Select-19bd23ac.js";import{h as G,i as _,j as J}from"./index.esm-7fca4988.js";function K(){const[n,t]=d.useState({width:void 0,height:void 0});return d.useEffect(()=>{function e(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),n}const X={xl:1280,lg:1024,md:768,sm:640,xs:576},Y=n=>{const t=K(),{bodyOpenClassName:e,children:o,className:s,closable:r=!0,closeTimeoutMS:l=150,contentClassName:u,height:m,isOpen:g,onClose:h,overlayClassName:N,portalClassName:b,style:c,width:i=520,...f}=n,x=S=>{h==null||h(S)},T=a.jsx(F,{style:{fontSize:"30px"},absolute:!0,className:"ltr:right-6 rtl:left-6",onClick:x}),j={content:{inset:"unset"},...c};i!==void 0&&(j.content.width=i,typeof t.width<"u"&&t.width<=X.sm&&(j.content.width="auto")),m!==void 0&&(j.content.height=m);const k=p("dialog-content",u);return a.jsx(V,{className:{base:p("dialog",s),afterOpen:"dialog-after-open",beforeClose:"dialog-before-close"},overlayClassName:{base:p("dialog-overlay",N),afterOpen:"dialog-overlay-after-open",beforeClose:"dialog-overlay-before-close"},portalClassName:p("dialog-portal",b),bodyOpenClassName:p("dialog-open",e),ariaHideApp:!1,isOpen:g,style:{...j},closeTimeoutMS:l,...f,children:a.jsxs(B.div,{className:k,initial:{transform:"scale(0.9)"},animate:{transform:g?"scale(1)":"scale(0.9)"},children:[r&&T,o]})})};Y.displayName="Dialog";const P=7,Z=({className:n,onArrow:t})=>{const[e,o]=d.useState(!1);return a.jsx("li",{className:n,role:"presentation",onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},onClick:()=>t("nextMore"),children:e?a.jsx(q,{}):a.jsx(R,{})})},ee=({className:n,onArrow:t})=>{const[e,o]=d.useState(!1);return a.jsx("li",{className:n,role:"presentation",onMouseEnter:()=>{o(!0)},onMouseLeave:()=>{o(!1)},onClick:()=>t("prevMore"),children:e?a.jsx(W,{}):a.jsx(R,{})})},te=n=>{const{pageCount:t,currentPage:e,onChange:o,pagerClass:s}=n,[r,l]=d.useState(!1),[u,m]=d.useState(!1);d.useEffect(()=>{t>P?(e>P-2&&l(!0),e<t-2&&m(!0),e>=t-3&&e<=t&&m(!1),e>=1&&e<=4&&l(!1)):(l(!1),m(!1))},[e,t]);const g=(c,i)=>{i.preventDefault();let f=c;f<1&&(f=1),f>t&&(f=t),f!==e&&o(f)},h=d.useCallback(c=>{let i=e;c==="nextMore"&&(i=e+5),c==="prevMore"&&(i=e-5),o(i)},[e,o]),N=d.useMemo(()=>{const c=[];if(r&&!u){const i=t-(P-2);for(let f=i;f<t;f++)c.push(f)}else if(!r&&u)for(let i=2;i<P;i++)c.push(i);else if(r&&u){const i=Math.floor(P/2)-1,f=e>=t-2&&e<=t;for(let x=e-i;x<=e+(f?0:i);x++)c.push(x)}else for(let i=2;i<t;i++)c.push(i);return c.length>P-2?[]:c},[r,u,e,t]),b=c=>p(s.default,e===c?s.active:s.inactive);return a.jsxs("ul",{children:[t>0&&a.jsx("li",{className:b(1),role:"presentation",onClick:c=>g(1,c),children:"1"}),r&&a.jsx(ee,{className:p(s.default,s.inactive),onArrow:c=>h(c)}),N.map((c,i)=>a.jsx("li",{className:b(c),role:"presentation",onClick:f=>g(c,f),children:c},i)),u&&a.jsx(Z,{className:p(s.default,s.inactive),onArrow:c=>h(c)}),t>1&&a.jsx("li",{className:b(t),role:"presentation",onClick:c=>g(t,c),children:t})]})},se=n=>{const{currentPage:t,pagerClass:e,onPrev:o}=n,s=t<=1,r=u=>{s||o(u)},l=p(e.default,"pagination-pager-prev",s?e.disabled:e.inactive);return a.jsx("span",{className:l,role:"presentation",onClick:r,children:a.jsx(Q,{})})},ae=n=>{const{currentPage:t,pageCount:e,pagerClass:o,onNext:s}=n,r=t===e||e===0,l=m=>{m.preventDefault(),!r&&s(m)},u=p(o.default,"pagination-pager-next",r?o.disabled:o.inactive);return a.jsx("span",{className:u,role:"presentation",onClick:l,children:a.jsx(U,{})})},oe=n=>{const{total:t}=n;return a.jsxs("div",{className:"pagination-total",children:["Total ",a.jsx("span",{children:t})," Items"]})},ne=n=>{const{className:t,currentPage:e=1,displayTotal:o=!1,onChange:s,pageSize:r=1,total:l=5}=n,[u,m]=d.useState(l),[g,h]=d.useState(r),{themeColor:N,primaryColorLevel:b}=z(),c=d.useMemo(()=>typeof u=="number"?Math.ceil(u/g):null,[u,g]),i=d.useCallback(C=>{const y=parseInt(C,10),M=c;let v;return M?(y<1&&(v=1),y>M&&(v=M)):(isNaN(y)||y<1)&&(v=1),(v===void 0&&isNaN(y)||v===0)&&(v=1),v===void 0?y:v},[c]),[f,x]=d.useState(e?i(e):1);d.useEffect(()=>{l!==u&&m(l),r!==g&&h(r),e!==f&&x(e)},[l,r,e]);const T=C=>{x(i(C)),s==null||s(i(C))},j=d.useCallback(()=>{const C=f-1;x(i(C)),s==null||s(i(C))},[s,f,i]),E=d.useCallback(()=>{const C=f+1;x(i(C)),s==null||s(i(C))},[s,f,i]),k={default:"pagination-pager",inactive:"pagination-pager-inactive",active:`text-${N}-${b} bg-${N}-50 hover:bg-${N}-50 dark:bg-${N}-${b} dark:text-gray-100`,disabled:"pagination-pager-disabled"},S=p("pagination",t);return a.jsxs("div",{className:S,children:[o&&a.jsx(oe,{total:l}),a.jsx(se,{currentPage:f,pagerClass:k,onPrev:j}),a.jsx(te,{pageCount:c,currentPage:f,pagerClass:k,onChange:T}),a.jsx(ae,{currentPage:f,pageCount:c,pagerClass:k,onNext:E})]})};ne.displayName="Pagination";const re=d.forwardRef((n,t)=>{const{animation:e=!0,asElement:o="span",className:s,height:r,style:l,variant:u="block",width:m}=n;return a.jsx(o,{ref:t,className:p("skeleton",u==="circle"&&"skeleton-circle",u==="block"&&"skeleton-block",e&&"animate-pulse",s),style:{width:m,height:r,...l}})});re.displayName="Skeleton";const H=d.forwardRef((n,t)=>{const{asElement:e="table",borderlessRow:o,children:s,className:r,compact:l=!1,hoverable:u=!0,overflow:m=!0,...g}=n,h=p(e==="table"?"table-default":"table-flex",u&&"table-hover",l&&"table-compact",o&&"borderless-row",r);return a.jsx("div",{className:p(m&&"overflow-x-auto"),children:a.jsx(e,{className:h,...g,ref:t,children:s})})});H.displayName="Table";const D=d.forwardRef((n,t)=>{const{asElement:e="thead",children:o,className:s,...r}=n,l=p(e!=="thead"&&"thead",s);return a.jsx(e,{className:l,...r,ref:t,children:o})});D.displayName="THead";const A=d.forwardRef((n,t)=>{const{asElement:e="tbody",children:o,className:s,...r}=n,l=p(e!=="tbody"&&"tbody",s);return a.jsx(e,{className:l,...r,ref:t,children:o})});A.displayName="TBody";const I=d.forwardRef((n,t)=>{const{asElement:e="tfoot",children:o,className:s,...r}=n,l=p(e!=="tfoot"&&"tfoot",s);return a.jsx(e,{className:l,...r,ref:t,children:o})});I.displayName="TFoot";const L=d.forwardRef((n,t)=>{const{asElement:e="tr",children:o,className:s,...r}=n,l=p(e!=="tr"&&"tr",s);return a.jsx(e,{ref:t,className:l,...r,children:o})});L.displayName="Tr";const $=d.forwardRef((n,t)=>{const{asElement:e="th",children:o,className:s,...r}=n,l=p(e!=="th"&&"th",s);return a.jsx(e,{className:l,...r,ref:t,children:o})});$.displayName="Th";const O=d.forwardRef((n,t)=>{const{asElement:e="td",children:o,className:s,...r}=n,l=p(e!=="td"&&"td",s);return a.jsx(e,{ref:t,className:l,...r,children:o})});O.displayName="Td";const le=({sort:n})=>{const{themeColor:t,primaryColorLevel:e}=z(),o=`text-${t}-${e}`,s=()=>typeof n=="boolean"?a.jsx(G,{}):n==="asc"?a.jsx(_,{className:o}):n==="desc"?a.jsx(J,{className:o}):null;return a.jsx("div",{className:"inline-flex",children:s()})},w=H;w.THead=D;w.TBody=A;w.TFoot=I;w.Th=$;w.Tr=L;w.Td=O;w.Sorter=le;const ie=d.forwardRef((n,t)=>{const{className:e,children:o,prefix:s,suffix:r,prefixClass:l,suffixClass:u,...m}=n;return a.jsxs("div",{ref:t,className:p("tag",e),...m,children:[s&&typeof s=="boolean"&&a.jsx("span",{className:p("tag-affix tag-prefix",l)}),typeof s=="object"&&s,o,r&&typeof r=="boolean"&&a.jsx("span",{className:p("tag-affix tag-suffix",u)}),typeof r=="object"&&r]})});ie.displayName="Tag";export{Y as D,ne as P,re as S,w as T,ie as a};
@@ -0,0 +1 @@
1
+ import{bi as a,bj as o}from"./index-737fd7d3.js";async function c(t,e,s,p,n){return(await a.apiV10SupportTicketsPost(e,s,p,n)).data}async function u(){return(await o.apiV10SupportCategoryGetCategoryPost(!0)).data}async function d(t){return(await a.apiV10SupportTicketsMyGet(t,0,100)).data}async function k(t){return(await a.apiV10SupportTicketsTicketIdGet(t)).data}async function S(t,e,s){return(await a.apiV10SupportTicketsTicketIdMessagesPost(t,e,void 0,s)).data}async function T(t,e){return(await a.apiV10SupportTicketsTicketIdUpdateStatusPost(t,e)).data}export{u as a,d as b,c,k as d,S as e,T as f};
@@ -0,0 +1,127 @@
1
+ import{bY as wi,bZ as Si,r as U,b_ as pr,b$ as Ci,c0 as So,c1 as Ei,c2 as Ai,c3 as _i,j as G,c4 as Ri,bb as ct,c5 as Pi,R as Ot,bt as Gt,b9 as ki,G as hr,g as Ti,bq as Oi,c as Fr,bp as Mi,ar as Ii,as as Fi}from"./index-737fd7d3.js";import{d as $i}from"./cloneDeep-958c9090.js";import{B as Yt}from"./Button-312a6bfe.js";import{a as B,G as Li,c as Di,k as zi,_ as Le,r as Ni}from"./warning-eb037686.js";const Ui={black:"#000",white:"#fff"},zt=Ui,ji={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},mt=ji,Hi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},gt=Hi,Bi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},vt=Bi,Wi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},yt=Wi,Vi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},bt=Vi,Ki={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},kt=Ki,Gi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yi=Gi;function Nt(e){let o="https://mui.com/production-error/?code="+e;for(let t=1;t<arguments.length;t+=1)o+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+e+"; visit "+o+" for the full message."}const qi=Object.freeze(Object.defineProperty({__proto__:null,default:Nt},Symbol.toStringTag,{value:"Module"})),Co="$$material";var Zi=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xi=wi(function(e){return Zi.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Qi=!1,Ji=Xi,ea=function(o){return o!=="theme"},$r=function(o){return typeof o=="string"&&o.charCodeAt(0)>96?Ji:ea},Lr=function(o,t,n){var r;if(t){var i=t.shouldForwardProp;r=o.__emotion_forwardProp&&i?function(a){return o.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&n&&(r=o.__emotion_forwardProp),r},ta=function(o){var t=o.cache,n=o.serialized,r=o.isStringTag;return Ei(t,n,r),Ai(function(){return _i(t,n,r)}),null},na=function e(o,t){var n=o.__emotion_real===o,r=n&&o.__emotion_base||o,i,a;t!==void 0&&(i=t.label,a=t.target);var s=Lr(o,t,n),f=s||$r(r),p=!f("as");return function(){var c=arguments,u=n&&o.__emotion_styles!==void 0?o.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)u.push.apply(u,c);else{var l=c[0];u.push(l[0]);for(var d=c.length,m=1;m<d;m++)u.push(c[m],l[m])}var b=Si(function(_,S,F){var T=p&&_.as||r,k="",I=[],x=_;if(_.theme==null){x={};for(var O in _)x[O]=_[O];x.theme=U.useContext(pr)}typeof _.className=="string"?k=Ci(S.registered,I,_.className):_.className!=null&&(k=_.className+" ");var g=So(u.concat(I),S.registered,x);k+=S.key+"-"+g.name,a!==void 0&&(k+=" "+a);var y=p&&s===void 0?$r(T):f,C={};for(var E in _)p&&E==="as"||y(E)&&(C[E]=_[E]);return C.className=k,F&&(C.ref=F),U.createElement(U.Fragment,null,U.createElement(ta,{cache:S,serialized:g,isStringTag:typeof T=="string"}),U.createElement(T,C))});return b.displayName=i!==void 0?i:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",b.defaultProps=o.defaultProps,b.__emotion_real=b,b.__emotion_base=r,b.__emotion_styles=u,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return a===void 0&&Qi?"NO_COMPONENT_SELECTOR":"."+a}}),b.withComponent=function(_,S){var F=e(_,B({},t,S,{shouldForwardProp:Lr(b,S,!0)}));return F.apply(void 0,u)},b}},ra=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Zn=na.bind(null);ra.forEach(function(e){Zn[e]=Zn(e)});function oa(e){return e==null||Object.keys(e).length===0}function ia(e){const{styles:o,defaultTheme:t={}}=e,n=typeof o=="function"?r=>o(oa(r)?t:r):o;return G.jsx(Li,{styles:n})}/**
2
+ * @mui/styled-engine v5.18.0
3
+ *
4
+ * @license MIT
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */function aa(e,o){return Zn(e,o)}const sa=(e,o)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=o(e.__emotion_styles))},Dr=[];function la(e){return Dr[0]=e,So(Dr)}const ca=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ia,StyledEngineProvider:Ri,ThemeContext:pr,css:Di,default:aa,internal_processStyles:sa,internal_serializeStyles:la,keyframes:zi},Symbol.toStringTag,{value:"Module"}));function lt(e){if(typeof e!="object"||e===null)return!1;const o=Object.getPrototypeOf(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Eo(e){if(U.isValidElement(e)||!lt(e))return e;const o={};return Object.keys(e).forEach(t=>{o[t]=Eo(e[t])}),o}function Je(e,o,t={clone:!0}){const n=t.clone?B({},e):e;return lt(e)&&lt(o)&&Object.keys(o).forEach(r=>{U.isValidElement(o[r])?n[r]=o[r]:lt(o[r])&&Object.prototype.hasOwnProperty.call(e,r)&&lt(e[r])?n[r]=Je(e[r],o[r],t):t.clone?n[r]=lt(o[r])?Eo(o[r]):o[r]:n[r]=o[r]}),n}const ua=Object.freeze(Object.defineProperty({__proto__:null,default:Je,isPlainObject:lt},Symbol.toStringTag,{value:"Module"})),fa=["values","unit","step"],da=e=>{const o=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return o.sort((t,n)=>t.val-n.val),o.reduce((t,n)=>B({},t,{[n.key]:n.val}),{})};function Ao(e){const{values:o={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5}=e,r=Le(e,fa),i=da(o),a=Object.keys(i);function s(l){return`@media (min-width:${typeof o[l]=="number"?o[l]:l}${t})`}function f(l){return`@media (max-width:${(typeof o[l]=="number"?o[l]:l)-n/100}${t})`}function p(l,d){const m=a.indexOf(d);return`@media (min-width:${typeof o[l]=="number"?o[l]:l}${t}) and (max-width:${(m!==-1&&typeof o[a[m]]=="number"?o[a[m]]:d)-n/100}${t})`}function c(l){return a.indexOf(l)+1<a.length?p(l,a[a.indexOf(l)+1]):s(l)}function u(l){const d=a.indexOf(l);return d===0?s(a[1]):d===a.length-1?f(a[d]):p(l,a[a.indexOf(l)+1]).replace("@media","@media not all and")}return B({keys:a,values:i,up:s,down:f,between:p,only:c,not:u,unit:t},r)}const pa={borderRadius:4},ha=pa;function It(e,o){return o?Je(e,o,{clone:!1}):e}const mr={xs:0,sm:600,md:900,lg:1200,xl:1536},zr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mr[e]}px)`};function it(e,o,t){const n=e.theme||{};if(Array.isArray(o)){const i=n.breakpoints||zr;return o.reduce((a,s,f)=>(a[i.up(i.keys[f])]=t(o[f]),a),{})}if(typeof o=="object"){const i=n.breakpoints||zr;return Object.keys(o).reduce((a,s)=>{if(Object.keys(i.values||mr).indexOf(s)!==-1){const f=i.up(s);a[f]=t(o[s],s)}else{const f=s;a[f]=o[f]}return a},{})}return t(o)}function ma(e={}){var o;return((o=e.keys)==null?void 0:o.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{}))||{}}function Nr(e,o){return e.reduce((t,n)=>{const r=t[n];return(!r||Object.keys(r).length===0)&&delete t[n],t},o)}function qe(e){if(typeof e!="string")throw new Error(Nt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const ga=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"}));function yn(e,o,t=!0){if(!o||typeof o!="string")return null;if(e&&e.vars&&t){const n=`vars.${o}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(n!=null)return n}return o.split(".").reduce((n,r)=>n&&n[r]!=null?n[r]:null,e)}function cn(e,o,t,n=t){let r;return typeof e=="function"?r=e(t):Array.isArray(e)?r=e[t]||n:r=yn(e,t)||n,o&&(r=o(r,n,e)),r}function Ce(e){const{prop:o,cssProperty:t=e.prop,themeKey:n,transform:r}=e,i=a=>{if(a[o]==null)return null;const s=a[o],f=a.theme,p=yn(f,n)||{};return it(a,s,u=>{let l=cn(p,r,u);return u===l&&typeof u=="string"&&(l=cn(p,r,`${o}${u==="default"?"":qe(u)}`,u)),t===!1?l:{[t]:l}})};return i.propTypes={},i.filterProps=[o],i}function va(e){const o={};return t=>(o[t]===void 0&&(o[t]=e(t)),o[t])}const ya={m:"margin",p:"padding"},ba={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ur={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xa=va(e=>{if(e.length>2)if(Ur[e])e=Ur[e];else return[e];const[o,t]=e.split(""),n=ya[o],r=ba[t]||"";return Array.isArray(r)?r.map(i=>n+i):[n+r]}),gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...gr,...vr];function Ut(e,o,t,n){var r;const i=(r=yn(e,o,!1))!=null?r:t;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function _o(e){return Ut(e,"spacing",8)}function jt(e,o){if(typeof o=="string"||o==null)return o;const t=Math.abs(o),n=e(t);return o>=0?n:typeof n=="number"?-n:`-${n}`}function wa(e,o){return t=>e.reduce((n,r)=>(n[r]=jt(o,t),n),{})}function Sa(e,o,t,n){if(o.indexOf(t)===-1)return null;const r=xa(t),i=wa(r,n),a=e[t];return it(e,a,i)}function Ro(e,o){const t=_o(e.theme);return Object.keys(e).map(n=>Sa(e,o,n,t)).reduce(It,{})}function we(e){return Ro(e,gr)}we.propTypes={};we.filterProps=gr;function Se(e){return Ro(e,vr)}Se.propTypes={};Se.filterProps=vr;function Ca(e=8){if(e.mui)return e;const o=_o({spacing:e}),t=(...n)=>(n.length===0?[1]:n).map(i=>{const a=o(i);return typeof a=="number"?`${a}px`:a}).join(" ");return t.mui=!0,t}function bn(...e){const o=e.reduce((n,r)=>(r.filterProps.forEach(i=>{n[i]=r}),n),{}),t=n=>Object.keys(n).reduce((r,i)=>o[i]?It(r,o[i](n)):r,{});return t.propTypes={},t.filterProps=e.reduce((n,r)=>n.concat(r.filterProps),[]),t}function Ue(e){return typeof e!="number"?e:`${e}px solid`}function We(e,o){return Ce({prop:e,themeKey:"borders",transform:o})}const Ea=We("border",Ue),Aa=We("borderTop",Ue),_a=We("borderRight",Ue),Ra=We("borderBottom",Ue),Pa=We("borderLeft",Ue),ka=We("borderColor"),Ta=We("borderTopColor"),Oa=We("borderRightColor"),Ma=We("borderBottomColor"),Ia=We("borderLeftColor"),Fa=We("outline",Ue),$a=We("outlineColor"),xn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const o=Ut(e.theme,"shape.borderRadius",4),t=n=>({borderRadius:jt(o,n)});return it(e,e.borderRadius,t)}return null};xn.propTypes={};xn.filterProps=["borderRadius"];bn(Ea,Aa,_a,Ra,Pa,ka,Ta,Oa,Ma,Ia,xn,Fa,$a);const wn=e=>{if(e.gap!==void 0&&e.gap!==null){const o=Ut(e.theme,"spacing",8),t=n=>({gap:jt(o,n)});return it(e,e.gap,t)}return null};wn.propTypes={};wn.filterProps=["gap"];const Sn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const o=Ut(e.theme,"spacing",8),t=n=>({columnGap:jt(o,n)});return it(e,e.columnGap,t)}return null};Sn.propTypes={};Sn.filterProps=["columnGap"];const Cn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const o=Ut(e.theme,"spacing",8),t=n=>({rowGap:jt(o,n)});return it(e,e.rowGap,t)}return null};Cn.propTypes={};Cn.filterProps=["rowGap"];const La=Ce({prop:"gridColumn"}),Da=Ce({prop:"gridRow"}),za=Ce({prop:"gridAutoFlow"}),Na=Ce({prop:"gridAutoColumns"}),Ua=Ce({prop:"gridAutoRows"}),ja=Ce({prop:"gridTemplateColumns"}),Ha=Ce({prop:"gridTemplateRows"}),Ba=Ce({prop:"gridTemplateAreas"}),Wa=Ce({prop:"gridArea"});bn(wn,Sn,Cn,La,Da,za,Na,Ua,ja,Ha,Ba,Wa);function Et(e,o){return o==="grey"?o:e}const Va=Ce({prop:"color",themeKey:"palette",transform:Et}),Ka=Ce({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Et}),Ga=Ce({prop:"backgroundColor",themeKey:"palette",transform:Et});bn(Va,Ka,Ga);function $e(e){return e<=1&&e!==0?`${e*100}%`:e}const Ya=Ce({prop:"width",transform:$e}),yr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const o=t=>{var n,r;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[t])||mr[t];return i?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:$e(t)}};return it(e,e.maxWidth,o)}return null};yr.filterProps=["maxWidth"];const qa=Ce({prop:"minWidth",transform:$e}),Za=Ce({prop:"height",transform:$e}),Xa=Ce({prop:"maxHeight",transform:$e}),Qa=Ce({prop:"minHeight",transform:$e});Ce({prop:"size",cssProperty:"width",transform:$e});Ce({prop:"size",cssProperty:"height",transform:$e});const Ja=Ce({prop:"boxSizing"});bn(Ya,yr,qa,Za,Xa,Qa,Ja);const es={border:{themeKey:"borders",transform:Ue},borderTop:{themeKey:"borders",transform:Ue},borderRight:{themeKey:"borders",transform:Ue},borderBottom:{themeKey:"borders",transform:Ue},borderLeft:{themeKey:"borders",transform:Ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ue},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xn},color:{themeKey:"palette",transform:Et},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Et},backgroundColor:{themeKey:"palette",transform:Et},p:{style:Se},pt:{style:Se},pr:{style:Se},pb:{style:Se},pl:{style:Se},px:{style:Se},py:{style:Se},padding:{style:Se},paddingTop:{style:Se},paddingRight:{style:Se},paddingBottom:{style:Se},paddingLeft:{style:Se},paddingX:{style:Se},paddingY:{style:Se},paddingInline:{style:Se},paddingInlineStart:{style:Se},paddingInlineEnd:{style:Se},paddingBlock:{style:Se},paddingBlockStart:{style:Se},paddingBlockEnd:{style:Se},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:wn},rowGap:{style:Cn},columnGap:{style:Sn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$e},maxWidth:{style:yr},minWidth:{transform:$e},height:{transform:$e},maxHeight:{transform:$e},minHeight:{transform:$e},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ht=es;function ts(...e){const o=e.reduce((n,r)=>n.concat(Object.keys(r)),[]),t=new Set(o);return e.every(n=>t.size===Object.keys(n).length)}function ns(e,o){return typeof e=="function"?e(o):e}function Po(){function e(t,n,r,i){const a={[t]:n,theme:r},s=i[t];if(!s)return{[t]:n};const{cssProperty:f=t,themeKey:p,transform:c,style:u}=s;if(n==null)return null;if(p==="typography"&&n==="inherit")return{[t]:n};const l=yn(r,p)||{};return u?u(a):it(a,n,m=>{let b=cn(l,c,m);return m===b&&typeof m=="string"&&(b=cn(l,c,`${t}${m==="default"?"":qe(m)}`,m)),f===!1?b:{[f]:b}})}function o(t){var n;const{sx:r,theme:i={},nested:a}=t||{};if(!r)return null;const s=(n=i.unstable_sxConfig)!=null?n:Ht;function f(p){let c=p;if(typeof p=="function")c=p(i);else if(typeof p!="object")return p;if(!c)return null;const u=ma(i.breakpoints),l=Object.keys(u);let d=u;return Object.keys(c).forEach(m=>{const b=ns(c[m],i);if(b!=null)if(typeof b=="object")if(s[m])d=It(d,e(m,b,i,s));else{const _=it({theme:i},b,S=>({[m]:S}));ts(_,b)?d[m]=o({sx:b,theme:i,nested:!0}):d=It(d,_)}else d=It(d,e(m,b,i,s))}),!a&&i.modularCssLayers?{"@layer sx":Nr(l,d)}:Nr(l,d)}return Array.isArray(r)?r.map(f):f(r)}return o}const ko=Po();ko.filterProps=["sx"];const br=ko;function To(e,o){const t=this;return t.vars&&typeof t.getColorSchemeSelector=="function"?{[t.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:o}:t.palette.mode===e?o:{}}const rs=["breakpoints","palette","spacing","shape"];function xr(e={},...o){const{breakpoints:t={},palette:n={},spacing:r,shape:i={}}=e,a=Le(e,rs),s=Ao(t),f=Ca(r);let p=Je({breakpoints:s,direction:"ltr",components:{},palette:B({mode:"light"},n),spacing:f,shape:B({},ha,i)},a);return p.applyStyles=To,p=o.reduce((c,u)=>Je(c,u),p),p.unstable_sxConfig=B({},Ht,a==null?void 0:a.unstable_sxConfig),p.unstable_sx=function(u){return br({sx:u,theme:this})},p}const os=Object.freeze(Object.defineProperty({__proto__:null,default:xr,private_createBreakpoints:Ao,unstable_applyStyles:To},Symbol.toStringTag,{value:"Module"}));function is(e){return Object.keys(e).length===0}function as(e=null){const o=U.useContext(pr);return!o||is(o)?e:o}const ss=xr();function ls(e=ss){return as(e)}const cs=["sx"],us=e=>{var o,t;const n={systemProps:{},otherProps:{}},r=(o=e==null||(t=e.theme)==null?void 0:t.unstable_sxConfig)!=null?o:Ht;return Object.keys(e).forEach(i=>{r[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function fs(e){const{sx:o}=e,t=Le(e,cs),{systemProps:n,otherProps:r}=us(t);let i;return Array.isArray(o)?i=[n,...o]:typeof o=="function"?i=(...a)=>{const s=o(...a);return lt(s)?B({},n,s):n}:i=B({},n,o),B({},r,{sx:i})}const ds=Object.freeze(Object.defineProperty({__proto__:null,default:br,extendSxProp:fs,unstable_createStyleFunctionSx:Po,unstable_defaultSxConfig:Ht},Symbol.toStringTag,{value:"Module"})),jr=e=>e,ps=()=>{let e=jr;return{configure(o){e=o},generate(o){return e(o)},reset(){e=jr}}},hs=ps(),ms=hs,gs={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function En(e,o,t="Mui"){const n=gs[o];return n?`${t}-${n}`:`${ms.generate(e)}-${o}`}function wr(e,o,t="Mui"){const n={};return o.forEach(r=>{n[r]=En(e,r,t)}),n}var Oo={exports:{}},me={};/**
8
+ * @license React
9
+ * react-is.production.js
10
+ *
11
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var Sr=Symbol.for("react.transitional.element"),Cr=Symbol.for("react.portal"),An=Symbol.for("react.fragment"),_n=Symbol.for("react.strict_mode"),Rn=Symbol.for("react.profiler"),Pn=Symbol.for("react.consumer"),kn=Symbol.for("react.context"),Tn=Symbol.for("react.forward_ref"),On=Symbol.for("react.suspense"),Mn=Symbol.for("react.suspense_list"),In=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),vs=Symbol.for("react.view_transition"),ys=Symbol.for("react.client.reference");function Ve(e){if(typeof e=="object"&&e!==null){var o=e.$$typeof;switch(o){case Sr:switch(e=e.type,e){case An:case Rn:case _n:case On:case Mn:case vs:return e;default:switch(e=e&&e.$$typeof,e){case kn:case Tn:case Fn:case In:return e;case Pn:return e;default:return o}}case Cr:return o}}}me.ContextConsumer=Pn;me.ContextProvider=kn;me.Element=Sr;me.ForwardRef=Tn;me.Fragment=An;me.Lazy=Fn;me.Memo=In;me.Portal=Cr;me.Profiler=Rn;me.StrictMode=_n;me.Suspense=On;me.SuspenseList=Mn;me.isContextConsumer=function(e){return Ve(e)===Pn};me.isContextProvider=function(e){return Ve(e)===kn};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sr};me.isForwardRef=function(e){return Ve(e)===Tn};me.isFragment=function(e){return Ve(e)===An};me.isLazy=function(e){return Ve(e)===Fn};me.isMemo=function(e){return Ve(e)===In};me.isPortal=function(e){return Ve(e)===Cr};me.isProfiler=function(e){return Ve(e)===Rn};me.isStrictMode=function(e){return Ve(e)===_n};me.isSuspense=function(e){return Ve(e)===On};me.isSuspenseList=function(e){return Ve(e)===Mn};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===An||e===Rn||e===_n||e===On||e===Mn||typeof e=="object"&&e!==null&&(e.$$typeof===Fn||e.$$typeof===In||e.$$typeof===kn||e.$$typeof===Pn||e.$$typeof===Tn||e.$$typeof===ys||e.getModuleId!==void 0)};me.typeOf=Ve;Oo.exports=me;var Hr=Oo.exports;const bs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Mo(e){const o=`${e}`.match(bs);return o&&o[1]||""}function Io(e,o=""){return e.displayName||e.name||Mo(e)||o}function Br(e,o,t){const n=Io(o);return e.displayName||(n!==""?`${t}(${n})`:t)}function xs(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Io(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Hr.ForwardRef:return Br(e,e.render,"ForwardRef");case Hr.Memo:return Br(e,e.type,"memo");default:return}}}const ws=Object.freeze(Object.defineProperty({__proto__:null,default:xs,getFunctionName:Mo},Symbol.toStringTag,{value:"Module"}));function Xn(e,o){const t=B({},o);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=B({},e[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const r=e[n]||{},i=o[n];t[n]={},!i||!Object.keys(i)?t[n]=r:!r||!Object.keys(r)?t[n]=i:(t[n]=B({},i),Object.keys(r).forEach(a=>{t[n][a]=Xn(r[a],i[a])}))}else t[n]===void 0&&(t[n]=e[n])}),t}const Ss=typeof window<"u"?U.useLayoutEffect:U.useEffect,un=Ss;function wt(e,o=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(o,Math.min(e,t))}const Cs=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));function Wr(...e){return e.reduce((o,t)=>t==null?o:function(...r){o.apply(this,r),t.apply(this,r)},()=>{})}function He(e){return e&&e.ownerDocument||document}function Er(e){return He(e).defaultView||window}function Qn(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Es({controlled:e,default:o,name:t,state:n="value"}){const{current:r}=U.useRef(e!==void 0),[i,a]=U.useState(o),s=r?e:i,f=U.useCallback(p=>{r||a(p)},[]);return[s,f]}function Ft(e){const o=U.useRef(e);return un(()=>{o.current=e}),U.useRef((...t)=>(0,o.current)(...t)).current}function ht(...e){return U.useMemo(()=>e.every(o=>o==null)?null:o=>{e.forEach(t=>{Qn(t,o)})},e)}const Vr={};function As(e,o){const t=U.useRef(Vr);return t.current===Vr&&(t.current=e(o)),t}const _s=[];function Rs(e){U.useEffect(e,_s)}class $n{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new $n}start(o,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},o)}}function ff(){const e=As($n.create).current;return Rs(e.disposeEffect),e}let Ln=!0,Jn=!1;const Ps=new $n,ks={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ts(e){const{type:o,tagName:t}=e;return!!(t==="INPUT"&&ks[o]&&!e.readOnly||t==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Os(e){e.metaKey||e.altKey||e.ctrlKey||(Ln=!0)}function Wn(){Ln=!1}function Ms(){this.visibilityState==="hidden"&&Jn&&(Ln=!0)}function Is(e){e.addEventListener("keydown",Os,!0),e.addEventListener("mousedown",Wn,!0),e.addEventListener("pointerdown",Wn,!0),e.addEventListener("touchstart",Wn,!0),e.addEventListener("visibilitychange",Ms,!0)}function Fs(e){const{target:o}=e;try{return o.matches(":focus-visible")}catch{}return Ln||Ts(o)}function $s(){const e=U.useCallback(r=>{r!=null&&Is(r.ownerDocument)},[]),o=U.useRef(!1);function t(){return o.current?(Jn=!0,Ps.start(100,()=>{Jn=!1}),o.current=!1,!0):!1}function n(r){return Fs(r)?(o.current=!0,!0):!1}return{isFocusVisibleRef:o,onFocus:n,onBlur:t,ref:e}}function Ls(e){const o=e.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}const Ds={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},zs=Ds;function Ar(e,o,t=void 0){const n={};return Object.keys(e).forEach(r=>{n[r]=e[r].reduce((i,a)=>{if(a){const s=o(a);s!==""&&i.push(s),t&&t[a]&&i.push(t[a])}return i},[]).join(" ")}),n}function $t(e){return typeof e=="string"}function Ns(e,o,t){return e===void 0||$t(e)?o:B({},o,{ownerState:B({},o.ownerState,t)})}function Fo(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(o=0;o<r;o++)e[o]&&(t=Fo(e[o]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Kr(){for(var e,o,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&(o=Fo(e))&&(n&&(n+=" "),n+=o);return n}function Lt(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function Gr(e){if(e===void 0)return{};const o={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function Us(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:r,className:i}=e;if(!o){const d=Kr(t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),m=B({},t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),b=B({},t,r,n);return d.length>0&&(b.className=d),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=Lt(B({},r,n)),s=Gr(n),f=Gr(r),p=o(a),c=Kr(p==null?void 0:p.className,t==null?void 0:t.className,i,r==null?void 0:r.className,n==null?void 0:n.className),u=B({},p==null?void 0:p.style,t==null?void 0:t.style,r==null?void 0:r.style,n==null?void 0:n.style),l=B({},p,t,f,s);return c.length>0&&(l.className=c),Object.keys(u).length>0&&(l.style=u),{props:l,internalRef:p.ref}}function js(e,o,t){return typeof e=="function"?e(o,t):e}const Hs=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xe(e){var o;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1}=e,a=Le(e,Hs),s=i?{}:js(n,r),{props:f,internalRef:p}=Us(B({},a,{externalSlotProps:s})),c=ht(p,s==null?void 0:s.ref,(o=e.additionalProps)==null?void 0:o.ref);return Ns(t,B({},f,{ref:c}),r)}function _r(e){if(parseInt(U.version,10)>=19){var o;return(e==null||(o=e.props)==null?void 0:o.ref)||null}return(e==null?void 0:e.ref)||null}const Bs=U.createContext(),Ws=()=>{const e=U.useContext(Bs);return e??!1},Vs=U.createContext(void 0);function Ks(e){const{theme:o,name:t,props:n}=e;if(!o||!o.components||!o.components[t])return n;const r=o.components[t];return r.defaultProps?Xn(r.defaultProps,n):!r.styleOverrides&&!r.variants?Xn(r,n):n}function Gs({props:e,name:o}){const t=U.useContext(Vs);return Ks({props:e,name:o,theme:{components:t}})}function Ys(e,o){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},o)}var Ee={},$o={exports:{}};(function(e){function o(t){return t&&t.__esModule?t:{default:t}}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})($o);var Lo=$o.exports;const qs=ct(qi),Zs=ct(Cs);var Do=Lo;Object.defineProperty(Ee,"__esModule",{value:!0});var Yr=Ee.alpha=jo;Ee.blend=sl;Ee.colorChannel=void 0;var er=Ee.darken=Pr;Ee.decomposeColor=Be;Ee.emphasize=Ho;var Xs=Ee.getContrastRatio=nl;Ee.getLuminance=fn;Ee.hexToRgb=zo;Ee.hslToRgb=Uo;var tr=Ee.lighten=kr;Ee.private_safeAlpha=rl;Ee.private_safeColorChannel=void 0;Ee.private_safeDarken=ol;Ee.private_safeEmphasize=al;Ee.private_safeLighten=il;Ee.recomposeColor=_t;Ee.rgbToHex=tl;var qr=Do(qs),Qs=Do(Zs);function Rr(e,o=0,t=1){return(0,Qs.default)(e,o,t)}function zo(e){e=e.slice(1);const o=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(o);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,r)=>r<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Js(e){const o=e.toString(16);return o.length===1?`0${o}`:o}function Be(e){if(e.type)return e;if(e.charAt(0)==="#")return Be(zo(e));const o=e.indexOf("("),t=e.substring(0,o);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error((0,qr.default)(9,e));let n=e.substring(o+1,e.length-1),r;if(t==="color"){if(n=n.split(" "),r=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error((0,qr.default)(10,r))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:r}}const No=e=>{const o=Be(e);return o.values.slice(0,3).map((t,n)=>o.type.indexOf("hsl")!==-1&&n!==0?`${t}%`:t).join(" ")};Ee.colorChannel=No;const el=(e,o)=>{try{return No(e)}catch{return e}};Ee.private_safeColorChannel=el;function _t(e){const{type:o,colorSpace:t}=e;let{values:n}=e;return o.indexOf("rgb")!==-1?n=n.map((r,i)=>i<3?parseInt(r,10):r):o.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),o.indexOf("color")!==-1?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${o}(${n})`}function tl(e){if(e.indexOf("#")===0)return e;const{values:o}=Be(e);return`#${o.map((t,n)=>Js(n===3?Math.round(255*t):t)).join("")}`}function Uo(e){e=Be(e);const{values:o}=e,t=o[0],n=o[1]/100,r=o[2]/100,i=n*Math.min(r,1-r),a=(p,c=(p+t/30)%12)=>r-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const f=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",f.push(o[3])),_t({type:s,values:f})}function fn(e){e=Be(e);let o=e.type==="hsl"||e.type==="hsla"?Be(Uo(e)).values:e.values;return o=o.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*o[0]+.7152*o[1]+.0722*o[2]).toFixed(3))}function nl(e,o){const t=fn(e),n=fn(o);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function jo(e,o){return e=Be(e),o=Rr(o),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${o}`:e.values[3]=o,_t(e)}function rl(e,o,t){try{return jo(e,o)}catch{return e}}function Pr(e,o){if(e=Be(e),o=Rr(o),e.type.indexOf("hsl")!==-1)e.values[2]*=1-o;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]*=1-o;return _t(e)}function ol(e,o,t){try{return Pr(e,o)}catch{return e}}function kr(e,o){if(e=Be(e),o=Rr(o),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*o;else if(e.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*o;else if(e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*o;return _t(e)}function il(e,o,t){try{return kr(e,o)}catch{return e}}function Ho(e,o=.15){return fn(e)>.5?Pr(e,o):kr(e,o)}function al(e,o,t){try{return Ho(e,o)}catch{return e}}function sl(e,o,t,n=1){const r=(f,p)=>Math.round((f**(1/n)*(1-t)+p**(1/n)*t)**n),i=Be(e),a=Be(o),s=[r(i.values[0],a.values[0]),r(i.values[1],a.values[1]),r(i.values[2],a.values[2])];return _t({type:"rgb",values:s})}const ll=["mode","contrastThreshold","tonalOffset"],Zr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zt.white,default:zt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Vn={text:{primary:zt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Xr(e,o,t,n){const r=n.light||n,i=n.dark||n*1.5;e[o]||(e.hasOwnProperty(t)?e[o]=e[t]:o==="light"?e.light=tr(e.main,r):o==="dark"&&(e.dark=er(e.main,i)))}function cl(e="light"){return e==="dark"?{main:vt[200],light:vt[50],dark:vt[400]}:{main:vt[700],light:vt[400],dark:vt[800]}}function ul(e="light"){return e==="dark"?{main:gt[200],light:gt[50],dark:gt[400]}:{main:gt[500],light:gt[300],dark:gt[700]}}function fl(e="light"){return e==="dark"?{main:mt[500],light:mt[300],dark:mt[700]}:{main:mt[700],light:mt[400],dark:mt[800]}}function dl(e="light"){return e==="dark"?{main:yt[400],light:yt[300],dark:yt[700]}:{main:yt[700],light:yt[500],dark:yt[900]}}function pl(e="light"){return e==="dark"?{main:bt[400],light:bt[300],dark:bt[700]}:{main:bt[800],light:bt[500],dark:bt[900]}}function hl(e="light"){return e==="dark"?{main:kt[400],light:kt[300],dark:kt[700]}:{main:"#ed6c02",light:kt[500],dark:kt[900]}}function ml(e){const{mode:o="light",contrastThreshold:t=3,tonalOffset:n=.2}=e,r=Le(e,ll),i=e.primary||cl(o),a=e.secondary||ul(o),s=e.error||fl(o),f=e.info||dl(o),p=e.success||pl(o),c=e.warning||hl(o);function u(b){return Xs(b,Vn.text.primary)>=t?Vn.text.primary:Zr.text.primary}const l=({color:b,name:_,mainShade:S=500,lightShade:F=300,darkShade:T=700})=>{if(b=B({},b),!b.main&&b[S]&&(b.main=b[S]),!b.hasOwnProperty("main"))throw new Error(Nt(11,_?` (${_})`:"",S));if(typeof b.main!="string")throw new Error(Nt(12,_?` (${_})`:"",JSON.stringify(b.main)));return Xr(b,"light",F,n),Xr(b,"dark",T,n),b.contrastText||(b.contrastText=u(b.main)),b},d={dark:Vn,light:Zr};return Je(B({common:B({},zt),mode:o,primary:l({color:i,name:"primary"}),secondary:l({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:l({color:s,name:"error"}),warning:l({color:c,name:"warning"}),info:l({color:f,name:"info"}),success:l({color:p,name:"success"}),grey:Yi,contrastThreshold:t,getContrastText:u,augmentColor:l,tonalOffset:n},d[o]),r)}const gl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function vl(e){return Math.round(e*1e5)/1e5}const Qr={textTransform:"uppercase"},Jr='"Roboto", "Helvetica", "Arial", sans-serif';function yl(e,o){const t=typeof o=="function"?o(e):o,{fontFamily:n=Jr,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:f=700,htmlFontSize:p=16,allVariants:c,pxToRem:u}=t,l=Le(t,gl),d=r/14,m=u||(S=>`${S/p*d}rem`),b=(S,F,T,k,I)=>B({fontFamily:n,fontWeight:S,fontSize:m(F),lineHeight:T},n===Jr?{letterSpacing:`${vl(k/F)}em`}:{},I,c),_={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,Qr),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,Qr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Je(B({htmlFontSize:p,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:f},_),l,{clone:!1})}const bl=.2,xl=.14,wl=.12;function ve(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bl})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xl})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wl})`].join(",")}const Sl=["none",ve(0,2,1,-1,0,1,1,0,0,1,3,0),ve(0,3,1,-2,0,2,2,0,0,1,5,0),ve(0,3,3,-2,0,3,4,0,0,1,8,0),ve(0,2,4,-1,0,4,5,0,0,1,10,0),ve(0,3,5,-1,0,5,8,0,0,1,14,0),ve(0,3,5,-1,0,6,10,0,0,1,18,0),ve(0,4,5,-2,0,7,10,1,0,2,16,1),ve(0,5,5,-3,0,8,10,1,0,3,14,2),ve(0,5,6,-3,0,9,12,1,0,3,16,2),ve(0,6,6,-3,0,10,14,1,0,4,18,3),ve(0,6,7,-4,0,11,15,1,0,4,20,3),ve(0,7,8,-4,0,12,17,2,0,5,22,4),ve(0,7,8,-4,0,13,19,2,0,5,24,4),ve(0,7,9,-4,0,14,21,2,0,5,26,4),ve(0,8,9,-5,0,15,22,2,0,6,28,5),ve(0,8,10,-5,0,16,24,2,0,6,30,5),ve(0,8,11,-5,0,17,26,2,0,6,32,5),ve(0,9,11,-5,0,18,28,2,0,7,34,6),ve(0,9,12,-6,0,19,29,2,0,7,36,6),ve(0,10,13,-6,0,20,31,3,0,8,38,7),ve(0,10,13,-6,0,21,33,3,0,8,40,7),ve(0,10,14,-6,0,22,35,3,0,8,42,7),ve(0,11,14,-7,0,23,36,3,0,9,44,8),ve(0,11,15,-7,0,24,38,3,0,9,46,8)],Cl=Sl,El=["duration","easing","delay"],Al={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},_l={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function eo(e){return`${Math.round(e)}ms`}function Rl(e){if(!e)return 0;const o=e/36;return Math.round((4+15*o**.25+o/5)*10)}function Pl(e){const o=B({},Al,e.easing),t=B({},_l,e.duration);return B({getAutoHeightDuration:Rl,create:(r=["all"],i={})=>{const{duration:a=t.standard,easing:s=o.easeInOut,delay:f=0}=i;return Le(i,El),(Array.isArray(r)?r:[r]).map(p=>`${p} ${typeof a=="string"?a:eo(a)} ${s} ${typeof f=="string"?f:eo(f)}`).join(",")}},e,{easing:o,duration:t})}const kl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tl=kl,Ol=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ml(e={},...o){const{mixins:t={},palette:n={},transitions:r={},typography:i={}}=e,a=Le(e,Ol);if(e.vars&&e.generateCssVars===void 0)throw new Error(Nt(18));const s=ml(n),f=xr(e);let p=Je(f,{mixins:Ys(f.breakpoints,t),palette:s,shadows:Cl.slice(),typography:yl(s,i),transitions:Pl(r),zIndex:B({},Tl)});return p=Je(p,a),p=o.reduce((c,u)=>Je(c,u),p),p.unstable_sxConfig=B({},Ht,a==null?void 0:a.unstable_sxConfig),p.unstable_sx=function(u){return br({sx:u,theme:this})},p}const Il=Ml(),Bo=Il;function Fl(){const e=ls(Bo);return e[Co]||e}var Bt={},Kn={exports:{}},to;function $l(){return to||(to=1,function(e){function o(t,n){if(t==null)return{};var r={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(n.indexOf(i)!==-1)continue;r[i]=t[i]}return r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(Kn)),Kn.exports}const Ll=ct(ca),Dl=ct(ua),zl=ct(ga),Nl=ct(ws),Ul=ct(os),jl=ct(ds);var Rt=Lo;Object.defineProperty(Bt,"__esModule",{value:!0});var Hl=Bt.default=tc;Bt.shouldForwardProp=nn;Bt.systemDefaultTheme=void 0;var Ne=Rt(Ni()),nr=Rt($l()),dn=ql(Ll),Bl=Dl;Rt(zl);Rt(Nl);var Wl=Rt(Ul),Vl=Rt(jl);const Kl=["ownerState"],Gl=["variants"],Yl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Wo(e){if(typeof WeakMap!="function")return null;var o=new WeakMap,t=new WeakMap;return(Wo=function(n){return n?t:o})(e)}function ql(e,o){if(!o&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=Wo(o);if(t&&t.has(e))return t.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Zl(e){return Object.keys(e).length===0}function Xl(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function no(e,o){return o&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${o}{${String(e.styles)}}`),e}const Ql=Bt.systemDefaultTheme=(0,Wl.default)(),Jl=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qt({defaultTheme:e,theme:o,themeId:t}){return Zl(o)?e:o[t]||o}function ec(e){return e?(o,t)=>t[e]:null}function rn(e,o,t){let{ownerState:n}=o,r=(0,nr.default)(o,Kl);const i=typeof e=="function"?e((0,Ne.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>rn(a,(0,Ne.default)({ownerState:n},r),t));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let f=(0,nr.default)(i,Gl);return a.forEach(p=>{let c=!0;if(typeof p.props=="function"?c=p.props((0,Ne.default)({ownerState:n},r,n)):Object.keys(p.props).forEach(u=>{(n==null?void 0:n[u])!==p.props[u]&&r[u]!==p.props[u]&&(c=!1)}),c){Array.isArray(f)||(f=[f]);const u=typeof p.style=="function"?p.style((0,Ne.default)({ownerState:n},r,n)):p.style;f.push(t?no((0,dn.internal_serializeStyles)(u),t):u)}}),f}return t?no((0,dn.internal_serializeStyles)(i),t):i}function tc(e={}){const{themeId:o,defaultTheme:t=Ql,rootShouldForwardProp:n=nn,slotShouldForwardProp:r=nn}=e,i=a=>(0,Vl.default)((0,Ne.default)({},a,{theme:qt((0,Ne.default)({},a,{defaultTheme:t,themeId:o}))}));return i.__mui_systemSx=!0,(a,s={})=>{(0,dn.internal_processStyles)(a,x=>x.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:f,slot:p,skipVariantsResolver:c,skipSx:u,overridesResolver:l=ec(Jl(p))}=s,d=(0,nr.default)(s,Yl),m=f&&f.startsWith("Mui")||p?"components":"custom",b=c!==void 0?c:p&&p!=="Root"&&p!=="root"||!1,_=u||!1;let S,F=nn;p==="Root"||p==="root"?F=n:p?F=r:Xl(a)&&(F=void 0);const T=(0,dn.default)(a,(0,Ne.default)({shouldForwardProp:F,label:S},d)),k=x=>typeof x=="function"&&x.__emotion_real!==x||(0,Bl.isPlainObject)(x)?O=>{const g=qt({theme:O.theme,defaultTheme:t,themeId:o});return rn(x,(0,Ne.default)({},O,{theme:g}),g.modularCssLayers?m:void 0)}:x,I=(x,...O)=>{let g=k(x);const y=O?O.map(k):[];f&&l&&y.push(A=>{const R=qt((0,Ne.default)({},A,{defaultTheme:t,themeId:o}));if(!R.components||!R.components[f]||!R.components[f].styleOverrides)return null;const w=R.components[f].styleOverrides,P={};return Object.entries(w).forEach(([v,h])=>{P[v]=rn(h,(0,Ne.default)({},A,{theme:R}),R.modularCssLayers?"theme":void 0)}),l(A,P)}),f&&!b&&y.push(A=>{var R;const w=qt((0,Ne.default)({},A,{defaultTheme:t,themeId:o})),P=w==null||(R=w.components)==null||(R=R[f])==null?void 0:R.variants;return rn({variants:P},(0,Ne.default)({},A,{theme:w}),w.modularCssLayers?"theme":void 0)}),_||y.push(i);const C=y.length-O.length;if(Array.isArray(x)&&C>0){const A=new Array(C).fill("");g=[...x,...A],g.raw=[...x.raw,...A]}const E=T(g,...y);return a.muiName&&(E.muiName=a.muiName),E};return T.withConfig&&(I.withConfig=T.withConfig),I}}function Tr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const nc=e=>Tr(e)&&e!=="classes",rc=nc,oc=Hl({themeId:Co,defaultTheme:Bo,rootShouldForwardProp:rc}),et=oc;function Vo(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(o=0;o<r;o++)e[o]&&(t=Vo(e[o]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ot(){for(var e,o,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&(o=Vo(e))&&(n&&(n+=" "),n+=o);return n}function Or(e){return Gs(e)}function ic(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,Pi(e,o)}const ro={disabled:!1},Ko=Ot.createContext(null);var ac=function(o){return o.scrollTop},Mt="unmounted",ut="exited",ft="entering",St="entered",rr="exiting",at=function(e){ic(o,e);function o(n,r){var i;i=e.call(this,n,r)||this;var a=r,s=a&&!a.isMounting?n.enter:n.appear,f;return i.appearStatus=null,n.in?s?(f=ut,i.appearStatus=ft):f=St:n.unmountOnExit||n.mountOnEnter?f=Mt:f=ut,i.state={status:f},i.nextCallback=null,i}o.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Mt?{status:ut}:null};var t=o.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==ft&&a!==St&&(i=ft):(a===ft||a===St)&&(i=rr)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var r=this.props.timeout,i,a,s;return i=a=s=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,s=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:s}},t.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===ft){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this);a&&ac(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ut&&this.setState({status:Mt})},t.performEnter=function(r){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:r,f=this.props.nodeRef?[s]:[Gt.findDOMNode(this),s],p=f[0],c=f[1],u=this.getTimeouts(),l=s?u.appear:u.enter;if(!r&&!a||ro.disabled){this.safeSetState({status:St},function(){i.props.onEntered(p)});return}this.props.onEnter(p,c),this.safeSetState({status:ft},function(){i.props.onEntering(p,c),i.onTransitionEnd(l,function(){i.safeSetState({status:St},function(){i.props.onEntered(p,c)})})})},t.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Gt.findDOMNode(this);if(!i||ro.disabled){this.safeSetState({status:ut},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:rr},function(){r.props.onExiting(s),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:ut},function(){r.props.onExited(s)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},t.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,r(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Gt.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=f[0],c=f[1];this.props.addEndListener(p,c)}r!=null&&setTimeout(this.nextCallback,r)},t.render=function(){var r=this.state.status;if(r===Mt)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Le(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ot.createElement(Ko.Provider,{value:null},typeof a=="function"?a(r,s):Ot.cloneElement(Ot.Children.only(a),s))},o}(Ot.Component);at.contextType=Ko;at.propTypes={};function xt(){}at.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xt,onEntering:xt,onEntered:xt,onExit:xt,onExiting:xt,onExited:xt};at.UNMOUNTED=Mt;at.EXITED=ut;at.ENTERING=ft;at.ENTERED=St;at.EXITING=rr;const sc=at,lc=e=>e.scrollTop;function oo(e,o){var t,n;const{timeout:r,easing:i,style:a={}}=e;return{duration:(t=a.transitionDuration)!=null?t:typeof r=="number"?r:r[o.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof i=="object"?i[o.mode]:i,delay:a.transitionDelay}}function cc(e){return typeof e=="function"?e():e}const uc=U.forwardRef(function(o,t){const{children:n,container:r,disablePortal:i=!1}=o,[a,s]=U.useState(null),f=ht(U.isValidElement(n)?_r(n):null,t);if(un(()=>{i||s(cc(r)||document.body)},[r,i]),un(()=>{if(a&&!i)return Qn(t,a),()=>{Qn(t,null)}},[t,a,i]),i){if(U.isValidElement(n)){const p={ref:f};return U.cloneElement(n,p)}return G.jsx(U.Fragment,{children:n})}return G.jsx(U.Fragment,{children:a&&ki.createPortal(n,a)})}),fc=uc,dc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pc={entering:{opacity:1},entered:{opacity:1}},hc=U.forwardRef(function(o,t){const n=Fl(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:f,in:p,onEnter:c,onEntered:u,onEntering:l,onExit:d,onExited:m,onExiting:b,style:_,timeout:S=r,TransitionComponent:F=sc}=o,T=Le(o,dc),k=U.useRef(null),I=ht(k,_r(s),t),x=w=>P=>{if(w){const v=k.current;P===void 0?w(v):w(v,P)}},O=x(l),g=x((w,P)=>{lc(w);const v=oo({style:_,timeout:S,easing:f},{mode:"enter"});w.style.webkitTransition=n.transitions.create("opacity",v),w.style.transition=n.transitions.create("opacity",v),c&&c(w,P)}),y=x(u),C=x(b),E=x(w=>{const P=oo({style:_,timeout:S,easing:f},{mode:"exit"});w.style.webkitTransition=n.transitions.create("opacity",P),w.style.transition=n.transitions.create("opacity",P),d&&d(w)}),A=x(m),R=w=>{i&&i(k.current,w)};return G.jsx(F,B({appear:a,in:p,nodeRef:k,onEnter:g,onEntered:y,onEntering:O,onExit:E,onExited:A,onExiting:C,addEndListener:R,timeout:S},T,{children:(w,P)=>U.cloneElement(s,B({style:B({opacity:0,visibility:w==="exited"&&!p?"hidden":void 0},pc[w],_,s.props.style),ref:I},P))}))}),mc=hc;function gc(e){return En("MuiBackdrop",e)}wr("MuiBackdrop",["root","invisible"]);const vc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],yc=e=>{const{classes:o,invisible:t}=e;return Ar({root:["root",t&&"invisible"]},gc,o)},bc=et("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.invisible&&o.invisible]}})(({ownerState:e})=>B({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),xc=U.forwardRef(function(o,t){var n,r,i;const a=Or({props:o,name:"MuiBackdrop"}),{children:s,className:f,component:p="div",components:c={},componentsProps:u={},invisible:l=!1,open:d,slotProps:m={},slots:b={},TransitionComponent:_=mc,transitionDuration:S}=a,F=Le(a,vc),T=B({},a,{component:p,invisible:l}),k=yc(T),I=(n=m.root)!=null?n:u.root;return G.jsx(_,B({in:d,timeout:S},F,{children:G.jsx(bc,B({"aria-hidden":!0},I,{as:(r=(i=b.root)!=null?i:c.Root)!=null?r:p,className:ot(k.root,f,I==null?void 0:I.className),ownerState:B({},T,I==null?void 0:I.ownerState),classes:k,ref:t,children:s}))}))}),wc=xc;function Sc(e){const o=He(e);return o.body===e?Er(e).innerWidth>o.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dt(e,o){o?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function io(e){return parseInt(Er(e).getComputedStyle(e).paddingRight,10)||0}function Cc(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function ao(e,o,t,n,r){const i=[o,t,...n];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,f=!Cc(a);s&&f&&Dt(a,r)})}function Gn(e,o){let t=-1;return e.some((n,r)=>o(n)?(t=r,!0):!1),t}function Ec(e,o){const t=[],n=e.container;if(!o.disableScrollLock){if(Sc(n)){const a=Ls(He(n));t.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${io(n)+a}px`;const s=He(n).querySelectorAll(".mui-fixed");[].forEach.call(s,f=>{t.push({value:f.style.paddingRight,property:"padding-right",el:f}),f.style.paddingRight=`${io(f)+a}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=He(n).body;else{const a=n.parentElement,s=Er(n);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}t.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{t.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function Ac(e){const o=[];return[].forEach.call(e.children,t=>{t.getAttribute("aria-hidden")==="true"&&o.push(t)}),o}class _c{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(o,t){let n=this.modals.indexOf(o);if(n!==-1)return n;n=this.modals.length,this.modals.push(o),o.modalRef&&Dt(o.modalRef,!1);const r=Ac(t);ao(t,o.mount,o.modalRef,r,!0);const i=Gn(this.containers,a=>a.container===t);return i!==-1?(this.containers[i].modals.push(o),n):(this.containers.push({modals:[o],container:t,restore:null,hiddenSiblings:r}),n)}mount(o,t){const n=Gn(this.containers,i=>i.modals.indexOf(o)!==-1),r=this.containers[n];r.restore||(r.restore=Ec(r,t))}remove(o,t=!0){const n=this.modals.indexOf(o);if(n===-1)return n;const r=Gn(this.containers,a=>a.modals.indexOf(o)!==-1),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(o),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),o.modalRef&&Dt(o.modalRef,t),ao(i.container,o.mount,o.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Dt(a.modalRef,!1)}return n}isTopModal(o){return this.modals.length>0&&this.modals[this.modals.length-1]===o}}const Rc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pc(e){const o=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(o)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:o}function kc(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const o=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let t=o(`[name="${e.name}"]:checked`);return t||(t=o(`[name="${e.name}"]`)),t!==e}function Tc(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||kc(e))}function Oc(e){const o=[],t=[];return Array.from(e.querySelectorAll(Rc)).forEach((n,r)=>{const i=Pc(n);i===-1||!Tc(n)||(i===0?o.push(n):t.push({documentOrder:r,tabIndex:i,node:n}))}),t.sort((n,r)=>n.tabIndex===r.tabIndex?n.documentOrder-r.documentOrder:n.tabIndex-r.tabIndex).map(n=>n.node).concat(o)}function Mc(){return!0}function Ic(e){const{children:o,disableAutoFocus:t=!1,disableEnforceFocus:n=!1,disableRestoreFocus:r=!1,getTabbable:i=Oc,isEnabled:a=Mc,open:s}=e,f=U.useRef(!1),p=U.useRef(null),c=U.useRef(null),u=U.useRef(null),l=U.useRef(null),d=U.useRef(!1),m=U.useRef(null),b=ht(_r(o),m),_=U.useRef(null);U.useEffect(()=>{!s||!m.current||(d.current=!t)},[t,s]),U.useEffect(()=>{if(!s||!m.current)return;const T=He(m.current);return m.current.contains(T.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),d.current&&m.current.focus()),()=>{r||(u.current&&u.current.focus&&(f.current=!0,u.current.focus()),u.current=null)}},[s]),U.useEffect(()=>{if(!s||!m.current)return;const T=He(m.current),k=O=>{_.current=O,!(n||!a()||O.key!=="Tab")&&T.activeElement===m.current&&O.shiftKey&&(f.current=!0,c.current&&c.current.focus())},I=()=>{const O=m.current;if(O===null)return;if(!T.hasFocus()||!a()||f.current){f.current=!1;return}if(O.contains(T.activeElement)||n&&T.activeElement!==p.current&&T.activeElement!==c.current)return;if(T.activeElement!==l.current)l.current=null;else if(l.current!==null)return;if(!d.current)return;let g=[];if((T.activeElement===p.current||T.activeElement===c.current)&&(g=i(m.current)),g.length>0){var y,C;const E=!!((y=_.current)!=null&&y.shiftKey&&((C=_.current)==null?void 0:C.key)==="Tab"),A=g[0],R=g[g.length-1];typeof A!="string"&&typeof R!="string"&&(E?R.focus():A.focus())}else O.focus()};T.addEventListener("focusin",I),T.addEventListener("keydown",k,!0);const x=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(x),T.removeEventListener("focusin",I),T.removeEventListener("keydown",k,!0)}},[t,n,r,a,s,i]);const S=T=>{u.current===null&&(u.current=T.relatedTarget),d.current=!0,l.current=T.target;const k=o.props.onFocus;k&&k(T)},F=T=>{u.current===null&&(u.current=T.relatedTarget),d.current=!0};return G.jsxs(U.Fragment,{children:[G.jsx("div",{tabIndex:s?0:-1,onFocus:F,ref:p,"data-testid":"sentinelStart"}),U.cloneElement(o,{ref:b,onFocus:S}),G.jsx("div",{tabIndex:s?0:-1,onFocus:F,ref:c,"data-testid":"sentinelEnd"})]})}function Fc(e){return typeof e=="function"?e():e}function $c(e){return e?e.props.hasOwnProperty("in"):!1}const Lc=new _c;function Dc(e){const{container:o,disableEscapeKeyDown:t=!1,disableScrollLock:n=!1,manager:r=Lc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:f,onClose:p,open:c,rootRef:u}=e,l=U.useRef({}),d=U.useRef(null),m=U.useRef(null),b=ht(m,u),[_,S]=U.useState(!c),F=$c(f);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const k=()=>He(d.current),I=()=>(l.current.modalRef=m.current,l.current.mount=d.current,l.current),x=()=>{r.mount(I(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},O=Ft(()=>{const v=Fc(o)||k().body;r.add(I(),v),m.current&&x()}),g=U.useCallback(()=>r.isTopModal(I()),[r]),y=Ft(v=>{d.current=v,v&&(c&&g()?x():m.current&&Dt(m.current,T))}),C=U.useCallback(()=>{r.remove(I(),T)},[T,r]);U.useEffect(()=>()=>{C()},[C]),U.useEffect(()=>{c?O():(!F||!i)&&C()},[c,C,F,i,O]);const E=v=>h=>{var $;($=v.onKeyDown)==null||$.call(v,h),!(h.key!=="Escape"||h.which===229||!g())&&(t||(h.stopPropagation(),p&&p(h,"escapeKeyDown")))},A=v=>h=>{var $;($=v.onClick)==null||$.call(v,h),h.target===h.currentTarget&&p&&p(h,"backdropClick")};return{getRootProps:(v={})=>{const h=Lt(e);delete h.onTransitionEnter,delete h.onTransitionExited;const $=B({},h,v);return B({role:"presentation"},$,{onKeyDown:E($),ref:b})},getBackdropProps:(v={})=>{const h=v;return B({"aria-hidden":!0},h,{onClick:A(h),open:c})},getTransitionProps:()=>{const v=()=>{S(!1),a&&a()},h=()=>{S(!0),s&&s(),i&&C()};return{onEnter:Wr(v,f==null?void 0:f.props.onEnter),onExited:Wr(h,f==null?void 0:f.props.onExited)}},rootRef:b,portalRef:y,isTopModal:g,exited:_,hasTransition:F}}function zc(e){return En("MuiModal",e)}wr("MuiModal",["root","hidden","backdrop"]);const Nc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Uc=e=>{const{open:o,exited:t,classes:n}=e;return Ar({root:["root",!o&&t&&"hidden"],backdrop:["backdrop"]},zc,n)},jc=et("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.open&&t.exited&&o.hidden]}})(({theme:e,ownerState:o})=>B({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!o.open&&o.exited&&{visibility:"hidden"})),Hc=et(wc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,o)=>o.backdrop})({zIndex:-1}),Bc=U.forwardRef(function(o,t){var n,r,i,a,s,f;const p=Or({name:"MuiModal",props:o}),{BackdropComponent:c=Hc,BackdropProps:u,className:l,closeAfterTransition:d=!1,children:m,container:b,component:_,components:S={},componentsProps:F={},disableAutoFocus:T=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:I=!1,disablePortal:x=!1,disableRestoreFocus:O=!1,disableScrollLock:g=!1,hideBackdrop:y=!1,keepMounted:C=!1,onBackdropClick:E,open:A,slotProps:R,slots:w}=p,P=Le(p,Nc),v=B({},p,{closeAfterTransition:d,disableAutoFocus:T,disableEnforceFocus:k,disableEscapeKeyDown:I,disablePortal:x,disableRestoreFocus:O,disableScrollLock:g,hideBackdrop:y,keepMounted:C}),{getRootProps:h,getBackdropProps:$,getTransitionProps:M,portalRef:z,isTopModal:Y,exited:j,hasTransition:W}=Dc(B({},v,{rootRef:t})),D=B({},v,{exited:j}),L=Uc(D),Z={};if(m.props.tabIndex===void 0&&(Z.tabIndex="-1"),W){const{onEnter:ge,onExited:re}=M();Z.onEnter=ge,Z.onExited=re}const ie=(n=(r=w==null?void 0:w.root)!=null?r:S.Root)!=null?n:jc,ne=(i=(a=w==null?void 0:w.backdrop)!=null?a:S.Backdrop)!=null?i:c,te=(s=R==null?void 0:R.root)!=null?s:F.root,ae=(f=R==null?void 0:R.backdrop)!=null?f:F.backdrop,de=Xe({elementType:ie,externalSlotProps:te,externalForwardedProps:P,getSlotProps:h,additionalProps:{ref:t,as:_},ownerState:D,className:ot(l,te==null?void 0:te.className,L==null?void 0:L.root,!D.open&&D.exited&&(L==null?void 0:L.hidden))}),he=Xe({elementType:ne,externalSlotProps:ae,additionalProps:u,getSlotProps:ge=>$(B({},ge,{onClick:re=>{E&&E(re),ge!=null&&ge.onClick&&ge.onClick(re)}})),className:ot(ae==null?void 0:ae.className,u==null?void 0:u.className,L==null?void 0:L.backdrop),ownerState:D});return!C&&!A&&(!W||j)?null:G.jsx(fc,{ref:z,container:b,disablePortal:x,children:G.jsxs(ie,B({},de,{children:[!y&&c?G.jsx(ne,B({},he)):null,G.jsx(Ic,{disableEnforceFocus:k,disableAutoFocus:T,disableRestoreFocus:O,isEnabled:Y,open:A,children:U.cloneElement(m,Z)})]}))})}),Wc=Bc;function Vc(e,o,t=(n,r)=>n===r){return e.length===o.length&&e.every((n,r)=>t(n,o[r]))}const Kc=2;function Go(e,o){return e-o}function so(e,o){var t;const{index:n}=(t=e.reduce((r,i,a)=>{const s=Math.abs(o-i);return r===null||s<r.distance||s===r.distance?{distance:s,index:a}:r},null))!=null?t:{};return n}function Zt(e,o){if(o.current!==void 0&&e.changedTouches){const t=e;for(let n=0;n<t.changedTouches.length;n+=1){const r=t.changedTouches[n];if(r.identifier===o.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function pn(e,o,t){return(e-o)*100/(t-o)}function Gc(e,o,t){return(t-o)*e+o}function Yc(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const o=e.toString().split(".")[1];return o?o.length:0}function qc(e,o,t){const n=Math.round((e-t)/o)*o+t;return Number(n.toFixed(Yc(o)))}function lo({values:e,newValue:o,index:t}){const n=e.slice();return n[t]=o,n.sort(Go)}function Xt({sliderRef:e,activeIndex:o,setActive:t}){var n,r;const i=He(e.current);if(!((n=e.current)!=null&&n.contains(i.activeElement))||Number(i==null||(r=i.activeElement)==null?void 0:r.getAttribute("data-index"))!==o){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${o}"]`).focus()}t&&t(o)}function Qt(e,o){return typeof e=="number"&&typeof o=="number"?e===o:typeof e=="object"&&typeof o=="object"?Vc(e,o):!1}const Zc={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Xc=e=>e;let Jt;function co(){return Jt===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Jt=CSS.supports("touch-action","none"):Jt=!0),Jt}function Qc(e){const{"aria-labelledby":o,defaultValue:t,disabled:n=!1,disableSwap:r=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:f=0,name:p,onChange:c,onChangeCommitted:u,orientation:l="horizontal",rootRef:d,scale:m=Xc,step:b=1,shiftStep:_=10,tabIndex:S,value:F}=e,T=U.useRef(void 0),[k,I]=U.useState(-1),[x,O]=U.useState(-1),[g,y]=U.useState(!1),C=U.useRef(0),[E,A]=Es({controlled:F,default:t??f,name:"Slider"}),R=c&&((N,H,K)=>{const Q=N.nativeEvent||N,J=new Q.constructor(Q.type,Q);Object.defineProperty(J,"target",{writable:!0,value:{value:H,name:p}}),c(J,H,K)}),w=Array.isArray(E);let P=w?E.slice().sort(Go):[E];P=P.map(N=>N==null?f:wt(N,f,s));const v=a===!0&&b!==null?[...Array(Math.floor((s-f)/b)+1)].map((N,H)=>({value:f+b*H})):a||[],h=v.map(N=>N.value),{isFocusVisibleRef:$,onBlur:M,onFocus:z,ref:Y}=$s(),[j,W]=U.useState(-1),D=U.useRef(null),L=ht(Y,D),Z=ht(d,L),ie=N=>H=>{var K;const Q=Number(H.currentTarget.getAttribute("data-index"));z(H),$.current===!0&&W(Q),O(Q),N==null||(K=N.onFocus)==null||K.call(N,H)},ne=N=>H=>{var K;M(H),$.current===!1&&W(-1),O(-1),N==null||(K=N.onBlur)==null||K.call(N,H)},te=(N,H)=>{const K=Number(N.currentTarget.getAttribute("data-index")),Q=P[K],J=h.indexOf(Q);let ee=H;if(v&&b==null){const xe=h[h.length-1];ee>xe?ee=xe:ee<h[0]?ee=h[0]:ee=ee<Q?h[J-1]:h[J+1]}if(ee=wt(ee,f,s),w){r&&(ee=wt(ee,P[K-1]||-1/0,P[K+1]||1/0));const xe=ee;ee=lo({values:P,newValue:ee,index:K});let Pe=K;r||(Pe=ee.indexOf(xe)),Xt({sliderRef:D,activeIndex:Pe})}A(ee),W(K),R&&!Qt(ee,E)&&R(N,ee,K),u&&u(N,ee)},ae=N=>H=>{var K;if(b!==null){const Q=Number(H.currentTarget.getAttribute("data-index")),J=P[Q];let ee=null;(H.key==="ArrowLeft"||H.key==="ArrowDown")&&H.shiftKey||H.key==="PageDown"?ee=Math.max(J-_,f):((H.key==="ArrowRight"||H.key==="ArrowUp")&&H.shiftKey||H.key==="PageUp")&&(ee=Math.min(J+_,s)),ee!==null&&(te(H,ee),H.preventDefault())}N==null||(K=N.onKeyDown)==null||K.call(N,H)};un(()=>{if(n&&D.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[n]),n&&k!==-1&&I(-1),n&&j!==-1&&W(-1);const de=N=>H=>{var K;(K=N.onChange)==null||K.call(N,H),te(H,H.target.valueAsNumber)},he=U.useRef(void 0);let ge=l;i&&l==="horizontal"&&(ge+="-reverse");const re=({finger:N,move:H=!1})=>{const{current:K}=D,{width:Q,height:J,bottom:ee,left:xe}=K.getBoundingClientRect();let Pe;ge.indexOf("vertical")===0?Pe=(ee-N.y)/J:Pe=(N.x-xe)/Q,ge.indexOf("-reverse")!==-1&&(Pe=1-Pe);let ce;if(ce=Gc(Pe,f,s),b)ce=qc(ce,b,f);else{const Ze=so(h,ce);ce=h[Ze]}ce=wt(ce,f,s);let Me=0;if(w){H?Me=he.current:Me=so(P,ce),r&&(ce=wt(ce,P[Me-1]||-1/0,P[Me+1]||1/0));const Ze=ce;ce=lo({values:P,newValue:ce,index:Me}),r&&H||(Me=ce.indexOf(Ze),he.current=Me)}return{newValue:ce,activeIndex:Me}},X=Ft(N=>{const H=Zt(N,T);if(!H)return;if(C.current+=1,N.type==="mousemove"&&N.buttons===0){ue(N);return}const{newValue:K,activeIndex:Q}=re({finger:H,move:!0});Xt({sliderRef:D,activeIndex:Q,setActive:I}),A(K),!g&&C.current>Kc&&y(!0),R&&!Qt(K,E)&&R(N,K,Q)}),ue=Ft(N=>{const H=Zt(N,T);if(y(!1),!H)return;const{newValue:K}=re({finger:H,move:!0});I(-1),N.type==="touchend"&&O(-1),u&&u(N,K),T.current=void 0,oe()}),se=Ft(N=>{if(n)return;co()||N.preventDefault();const H=N.changedTouches[0];H!=null&&(T.current=H.identifier);const K=Zt(N,T);if(K!==!1){const{newValue:J,activeIndex:ee}=re({finger:K});Xt({sliderRef:D,activeIndex:ee,setActive:I}),A(J),R&&!Qt(J,E)&&R(N,J,ee)}C.current=0;const Q=He(D.current);Q.addEventListener("touchmove",X,{passive:!0}),Q.addEventListener("touchend",ue,{passive:!0})}),oe=U.useCallback(()=>{const N=He(D.current);N.removeEventListener("mousemove",X),N.removeEventListener("mouseup",ue),N.removeEventListener("touchmove",X),N.removeEventListener("touchend",ue)},[ue,X]);U.useEffect(()=>{const{current:N}=D;return N.addEventListener("touchstart",se,{passive:co()}),()=>{N.removeEventListener("touchstart",se),oe()}},[oe,se]),U.useEffect(()=>{n&&oe()},[n,oe]);const ye=N=>H=>{var K;if((K=N.onMouseDown)==null||K.call(N,H),n||H.defaultPrevented||H.button!==0)return;H.preventDefault();const Q=Zt(H,T);if(Q!==!1){const{newValue:ee,activeIndex:xe}=re({finger:Q});Xt({sliderRef:D,activeIndex:xe,setActive:I}),A(ee),R&&!Qt(ee,E)&&R(H,ee,xe)}C.current=0;const J=He(D.current);J.addEventListener("mousemove",X,{passive:!0}),J.addEventListener("mouseup",ue)},le=pn(w?P[0]:f,f,s),pe=pn(P[P.length-1],f,s)-le,_e=(N={})=>{const H=Lt(N),K={onMouseDown:ye(H||{})},Q=B({},H,K);return B({},N,{ref:Z},Q)},q=N=>H=>{var K;(K=N.onMouseOver)==null||K.call(N,H);const Q=Number(H.currentTarget.getAttribute("data-index"));O(Q)},V=N=>H=>{var K;(K=N.onMouseLeave)==null||K.call(N,H),O(-1)};return{active:k,axis:ge,axisProps:Zc,dragging:g,focusedThumbIndex:j,getHiddenInputProps:(N={})=>{var H;const K=Lt(N),Q={onChange:de(K||{}),onFocus:ie(K||{}),onBlur:ne(K||{}),onKeyDown:ae(K||{})},J=B({},K,Q);return B({tabIndex:S,"aria-labelledby":o,"aria-orientation":l,"aria-valuemax":m(s),"aria-valuemin":m(f),name:p,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(H=e.step)!=null?H:void 0,disabled:n},N,J,{style:B({},zs,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:_e,getThumbProps:(N={})=>{const H=Lt(N),K={onMouseOver:q(H||{}),onMouseLeave:V(H||{})};return B({},N,H,K)},marks:v,open:x,range:w,rootRef:Z,trackLeap:pe,trackOffset:le,values:P,getThumbStyle:N=>({pointerEvents:k!==-1&&k!==N?"none":void 0})}}const Jc=e=>!e||!$t(e),eu=Jc;function tu(e){return En("MuiSlider",e)}const nu=wr("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),je=nu,ru=e=>{const{open:o}=e;return{offset:ot(o&&je.valueLabelOpen),circle:je.valueLabelCircle,label:je.valueLabelLabel}};function ou(e){const{children:o,className:t,value:n}=e,r=ru(e);return o?U.cloneElement(o,{className:ot(o.props.className)},G.jsxs(U.Fragment,{children:[o.props.children,G.jsx("span",{className:ot(r.offset,t),"aria-hidden":!0,children:G.jsx("span",{className:r.circle,children:G.jsx("span",{className:r.label,children:n})})})]})):null}const iu=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function uo(e){return e}const au=et("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[`color${qe(t.color)}`],t.size!=="medium"&&o[`size${qe(t.size)}`],t.marked&&o.marked,t.orientation==="vertical"&&o.vertical,t.track==="inverted"&&o.trackInverted,t.track===!1&&o.trackFalse]}})(({theme:e})=>{var o;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${je.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${je.dragging}`]:{[`& .${je.thumb}, & .${je.track}`]:{transition:"none"}},variants:[...Object.keys(((o=e.vars)!=null?o:e).palette).filter(t=>{var n;return((n=e.vars)!=null?n:e).palette[t].main}).map(t=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),su=et("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,o)=>o.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),lu=et("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,o)=>o.track})(({theme:e})=>{var o;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((o=e.vars)!=null?o:e).palette).filter(t=>{var n;return((n=e.vars)!=null?n:e).palette[t].main}).map(t=>({props:{color:t,track:"inverted"},style:B({},e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:B({backgroundColor:tr(e.palette[t].main,.62),borderColor:tr(e.palette[t].main,.62)},e.applyStyles("dark",{backgroundColor:er(e.palette[t].main,.5)}),e.applyStyles("dark",{borderColor:er(e.palette[t].main,.5)})))}))]}}),cu=et("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.thumb,o[`thumbColor${qe(t.color)}`],t.size!=="medium"&&o[`thumbSize${qe(t.size)}`]]}})(({theme:e})=>{var o;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${je.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((o=e.vars)!=null?o:e).palette).filter(t=>{var n;return((n=e.vars)!=null?n:e).palette[t].main}).map(t=>({props:{color:t},style:{[`&:hover, &.${je.focusVisible}`]:B({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Yr(e.palette[t].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${je.active}`]:B({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Yr(e.palette[t].main,.16)}`})}}))]}}),uu=et(ou,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,o)=>o.valueLabel})(({theme:e})=>B({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${je.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${je.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),fu=et("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Tr(e)&&e!=="markActive",overridesResolver:(e,o)=>{const{markActive:t}=e;return[o.mark,t&&o.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),du=et("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Tr(e)&&e!=="markLabelActive",overridesResolver:(e,o)=>o.markLabel})(({theme:e})=>B({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),pu=e=>{const{disabled:o,dragging:t,marked:n,orientation:r,track:i,classes:a,color:s,size:f}=e,p={root:["root",o&&"disabled",t&&"dragging",n&&"marked",r==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${qe(s)}`,f&&`size${qe(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",o&&"disabled",f&&`thumbSize${qe(f)}`,s&&`thumbColor${qe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ar(p,tu,a)},hu=({children:e})=>e,mu=U.forwardRef(function(o,t){var n,r,i,a,s,f,p,c,u,l,d,m,b,_,S,F,T,k,I,x,O,g,y,C;const E=Or({props:o,name:"MuiSlider"}),A=Ws(),{"aria-label":R,"aria-valuetext":w,"aria-labelledby":P,component:v="span",components:h={},componentsProps:$={},color:M="primary",classes:z,className:Y,disableSwap:j=!1,disabled:W=!1,getAriaLabel:D,getAriaValueText:L,marks:Z=!1,max:ie=100,min:ne=0,orientation:te="horizontal",shiftStep:ae=10,size:de="medium",step:he=1,scale:ge=uo,slotProps:re,slots:X,track:ue="normal",valueLabelDisplay:se="off",valueLabelFormat:oe=uo}=E,ye=Le(E,iu),le=B({},E,{isRtl:A,max:ie,min:ne,classes:z,disabled:W,disableSwap:j,orientation:te,marks:Z,color:M,size:de,step:he,shiftStep:ae,scale:ge,track:ue,valueLabelDisplay:se,valueLabelFormat:oe}),{axisProps:pe,getRootProps:_e,getHiddenInputProps:q,getThumbProps:V,open:fe,active:be,axis:Re,focusedThumbIndex:N,range:H,dragging:K,marks:Q,values:J,trackOffset:ee,trackLeap:xe,getThumbStyle:Pe}=Qc(B({},le,{rootRef:t}));le.marked=Q.length>0&&Q.some(Ae=>Ae.label),le.dragging=K,le.focusedThumbIndex=N;const ce=pu(le),Me=(n=(r=X==null?void 0:X.root)!=null?r:h.Root)!=null?n:au,Ze=(i=(a=X==null?void 0:X.rail)!=null?a:h.Rail)!=null?i:su,Pt=(s=(f=X==null?void 0:X.track)!=null?f:h.Track)!=null?s:lu,st=(p=(c=X==null?void 0:X.thumb)!=null?c:h.Thumb)!=null?p:cu,Wt=(u=(l=X==null?void 0:X.valueLabel)!=null?l:h.ValueLabel)!=null?u:uu,De=(d=(m=X==null?void 0:X.mark)!=null?m:h.Mark)!=null?d:fu,ze=(b=(_=X==null?void 0:X.markLabel)!=null?_:h.MarkLabel)!=null?b:du,tt=(S=(F=X==null?void 0:X.input)!=null?F:h.Input)!=null?S:"input",nt=(T=re==null?void 0:re.root)!=null?T:$.root,Vt=(k=re==null?void 0:re.rail)!=null?k:$.rail,Ke=(I=re==null?void 0:re.track)!=null?I:$.track,Ge=(x=re==null?void 0:re.thumb)!=null?x:$.thumb,Nn=(O=re==null?void 0:re.valueLabel)!=null?O:$.valueLabel,pi=(g=re==null?void 0:re.mark)!=null?g:$.mark,hi=(y=re==null?void 0:re.markLabel)!=null?y:$.markLabel,mi=(C=re==null?void 0:re.input)!=null?C:$.input,gi=Xe({elementType:Me,getSlotProps:_e,externalSlotProps:nt,externalForwardedProps:ye,additionalProps:B({},eu(Me)&&{as:v}),ownerState:B({},le,nt==null?void 0:nt.ownerState),className:[ce.root,Y]}),vi=Xe({elementType:Ze,externalSlotProps:Vt,ownerState:le,className:ce.rail}),yi=Xe({elementType:Pt,externalSlotProps:Ke,additionalProps:{style:B({},pe[Re].offset(ee),pe[Re].leap(xe))},ownerState:B({},le,Ke==null?void 0:Ke.ownerState),className:ce.track}),Un=Xe({elementType:st,getSlotProps:V,externalSlotProps:Ge,ownerState:B({},le,Ge==null?void 0:Ge.ownerState),className:ce.thumb}),bi=Xe({elementType:Wt,externalSlotProps:Nn,ownerState:B({},le,Nn==null?void 0:Nn.ownerState),className:ce.valueLabel}),jn=Xe({elementType:De,externalSlotProps:pi,ownerState:le,className:ce.mark}),Hn=Xe({elementType:ze,externalSlotProps:hi,ownerState:le,className:ce.markLabel}),xi=Xe({elementType:tt,getSlotProps:q,externalSlotProps:mi,ownerState:le});return G.jsxs(Me,B({},gi,{children:[G.jsx(Ze,B({},vi)),G.jsx(Pt,B({},yi)),Q.filter(Ae=>Ae.value>=ne&&Ae.value<=ie).map((Ae,Te)=>{const Bn=pn(Ae.value,ne,ie),Kt=pe[Re].offset(Bn);let rt;return ue===!1?rt=J.indexOf(Ae.value)!==-1:rt=ue==="normal"&&(H?Ae.value>=J[0]&&Ae.value<=J[J.length-1]:Ae.value<=J[0])||ue==="inverted"&&(H?Ae.value<=J[0]||Ae.value>=J[J.length-1]:Ae.value>=J[0]),G.jsxs(U.Fragment,{children:[G.jsx(De,B({"data-index":Te},jn,!$t(De)&&{markActive:rt},{style:B({},Kt,jn.style),className:ot(jn.className,rt&&ce.markActive)})),Ae.label!=null?G.jsx(ze,B({"aria-hidden":!0,"data-index":Te},Hn,!$t(ze)&&{markLabelActive:rt},{style:B({},Kt,Hn.style),className:ot(ce.markLabel,Hn.className,rt&&ce.markLabelActive),children:Ae.label})):null]},Te)}),J.map((Ae,Te)=>{const Bn=pn(Ae,ne,ie),Kt=pe[Re].offset(Bn),rt=se==="off"?hu:Wt;return G.jsx(rt,B({},!$t(rt)&&{valueLabelFormat:oe,valueLabelDisplay:se,value:typeof oe=="function"?oe(ge(Ae),Te):oe,index:Te,open:fe===Te||be===Te||se==="on",disabled:W},bi,{children:G.jsx(st,B({"data-index":Te},Un,{className:ot(ce.thumb,Un.className,be===Te&&ce.active,N===Te&&ce.focusVisible),style:B({},Kt,Pe(Te),Un.style),children:G.jsx(tt,B({"data-index":Te,"aria-label":D?D(Te):R,"aria-valuenow":ge(Ae),"aria-labelledby":P,"aria-valuetext":L?L(ge(Ae),Te):w,value:J[Te]},xi))}))}),Te)})]}))}),gu=mu;function vu(e){return hr({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M13.85 4.44l-3.28-3.3-.35-.14H2.5l-.5.5V7h1V2h6v3.5l.5.5H13v1h1V4.8l-.15-.36zM10 5V2l3 3h-3zM2.5 8l-.5.5v6l.5.5h11l.5-.5v-6l-.5-.5h-11zM13 13v1H3V9h10v4zm-8-1h-.32v1H4v-3h1.06c.75 0 1.13.36 1.13 1a.94.94 0 0 1-.32.72A1.33 1.33 0 0 1 5 12zm-.06-1.45h-.26v.93h.26c.36 0 .54-.16.54-.47 0-.31-.18-.46-.54-.46zM9 12.58a1.48 1.48 0 0 0 .44-1.12c0-1-.53-1.46-1.6-1.46H6.78v3h1.06A1.6 1.6 0 0 0 9 12.58zm-1.55-.13v-1.9h.33a.94.94 0 0 1 .7.25.91.91 0 0 1 .25.67 1 1 0 0 1-.25.72.94.94 0 0 1-.69.26h-.34zm4.45-.61h-.97V13h-.68v-3h1.74v.55h-1.06v.74h.97v.55z"}}]})(e)}function yu(e){return hr({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 1h11l.5.5v5l-.15.35-.85.86v6.79l-.5.5h-10l-.5-.5v-13l.5-.5zM6 2H5v2h1V2zm0 12h4V7.68l-.85-.85L9 6.47V2H7v2.5l-.5.5H6v1H5V5h-.5L4 4.5V2H3v12h2v-1h1v1zm0-2v1h1v-1H6zm0-1v1H5v-1h1zm0-1h1v1H6v-1zm0-1v1H5V9h1zm0-1h1v1H6V8zm0-1v1H5V7h1zm0 0h1V6H6v1zm6.15.15l.85-.86V2h-3v4.27l.85.85.15.35V14h1V7.5l.15-.35z"}}]})(e)}function bu(e){return hr({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M13.71 4.29l-3-3L10 1H4L3 2v12l1 1h9l1-1V5l-.29-.71zM13 14H4V2h5v4h4v8zm-3-9V2l3 3h-3z"}}]})(e)}const xu=1e3,wu=e=>Math.round(e/xu),Yn=({children:e})=>G.jsx("span",{className:"text-4xl",children:e}),Yo=e=>{const{file:o,children:t}=e,{type:n,name:r,size:i}=o,a=()=>n.split("/")[0]==="image"?G.jsx("img",{className:"upload-file-image",src:URL.createObjectURL(o),alt:`file preview ${r}`}):n==="application/zip"?G.jsx(Yn,{children:G.jsx(yu,{})}):n==="application/pdf"?G.jsx(Yn,{children:G.jsx(vu,{})}):G.jsx(Yn,{children:G.jsx(bu,{})});return G.jsxs("div",{className:"upload-file",children:[G.jsxs("div",{className:"flex",children:[G.jsx("div",{className:"upload-file-thumbnail",children:a()}),G.jsxs("div",{className:"upload-file-info",children:[G.jsx("h6",{className:"upload-file-name",children:r}),G.jsxs("span",{className:"upload-file-size",children:[wu(i)," kb"]})]})]}),t]})};Yo.displayName="UploadFileItem";var or=function(e,o){return or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},or(e,o)};function Su(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");or(e,o);function t(){this.constructor=e}e.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}var ke=function(){return ke=Object.assign||function(o){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}return o},ke.apply(this,arguments)};var fo=!1,dt,ir,ar,on,an,qo,sn,sr,lr,cr,Zo,ur,fr,Xo,Qo;function Ie(){if(!fo){fo=!0;var e=navigator.userAgent,o=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),t=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(ur=/\b(iPhone|iP[ao]d)/.exec(e),fr=/\b(iP[ao]d)/.exec(e),cr=/Android/i.exec(e),Xo=/FBAN\/\w+;/i.exec(e),Qo=/Mobile/i.exec(e),Zo=!!/Win64/.exec(e),o){dt=o[1]?parseFloat(o[1]):o[5]?parseFloat(o[5]):NaN,dt&&document&&document.documentMode&&(dt=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);qo=n?parseFloat(n[1])+4:dt,ir=o[2]?parseFloat(o[2]):NaN,ar=o[3]?parseFloat(o[3]):NaN,on=o[4]?parseFloat(o[4]):NaN,on?(o=/(?:Chrome\/(\d+\.\d+))/.exec(e),an=o&&o[1]?parseFloat(o[1]):NaN):an=NaN}else dt=ir=ar=an=on=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);sn=r?parseFloat(r[1].replace("_",".")):!0}else sn=!1;sr=!!t[2],lr=!!t[3]}else sn=sr=lr=!1}}var dr={ie:function(){return Ie()||dt},ieCompatibilityMode:function(){return Ie()||qo>dt},ie64:function(){return dr.ie()&&Zo},firefox:function(){return Ie()||ir},opera:function(){return Ie()||ar},webkit:function(){return Ie()||on},safari:function(){return dr.webkit()},chrome:function(){return Ie()||an},windows:function(){return Ie()||sr},osx:function(){return Ie()||sn},linux:function(){return Ie()||lr},iphone:function(){return Ie()||ur},mobile:function(){return Ie()||ur||fr||cr||Qo},nativeApp:function(){return Ie()||Xo},android:function(){return Ie()||cr},ipad:function(){return Ie()||fr}},Cu=dr,en=!!(typeof window<"u"&&window.document&&window.document.createElement),Eu={canUseDOM:en,canUseWorkers:typeof Worker<"u",canUseEventListeners:en&&!!(window.addEventListener||window.attachEvent),canUseViewport:en&&!!window.screen,isInWorker:!en},Au=Eu,Jo=Au,ei;Jo.canUseDOM&&(ei=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
16
+ * Checks if an event is supported in the current execution environment.
17
+ *
18
+ * NOTE: This will not work correctly for non-generic events such as `change`,
19
+ * `reset`, `load`, `error`, and `select`.
20
+ *
21
+ * Borrows from Modernizr.
22
+ *
23
+ * @param {string} eventNameSuffix Event name, e.g. "click".
24
+ * @param {?boolean} capture Check if the capture phase is supported.
25
+ * @return {boolean} True if the event is supported.
26
+ * @internal
27
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
28
+ */function _u(e,o){if(!Jo.canUseDOM||o&&!("addEventListener"in document))return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n=typeof r[t]=="function"}return!n&&ei&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var Ru=_u,Pu=Cu,ku=Ru,po=10,ho=40,mo=800;function ti(e){var o=0,t=0,n=0,r=0;return"detail"in e&&(t=e.detail),"wheelDelta"in e&&(t=-e.wheelDelta/120),"wheelDeltaY"in e&&(t=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(o=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(o=t,t=0),n=o*po,r=t*po,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(e.deltaMode==1?(n*=ho,r*=ho):(n*=mo,r*=mo)),n&&!o&&(o=n<1?-1:1),r&&!t&&(t=r<1?-1:1),{spinX:o,spinY:t,pixelX:n,pixelY:r}}ti.getEventType=function(){return Pu.firefox()?"DOMMouseScroll":ku("wheel")?"wheel":"mousewheel"};var Tu=ti,Ou=Tu;const Mu=Ti(Ou);function Iu(e,o,t,n,r,i){i===void 0&&(i=0);var a=At(e,o,i),s=a.width,f=a.height,p=Math.min(s,t),c=Math.min(f,n);return p>c*r?{width:c*r,height:c}:{width:p,height:p/r}}function Fu(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function Tt(e,o,t,n,r){r===void 0&&(r=0);var i=At(o.width,o.height,r),a=i.width,s=i.height;return{x:go(e.x,a,t.width,n),y:go(e.y,s,t.height,n)}}function go(e,o,t,n){var r=o*n/2-t/2;return Dn(e,-r,r)}function vo(e,o){return Math.sqrt(Math.pow(e.y-o.y,2)+Math.pow(e.x-o.x,2))}function yo(e,o){return Math.atan2(o.y-e.y,o.x-e.x)*180/Math.PI}function $u(e,o,t,n,r,i,a){i===void 0&&(i=0),a===void 0&&(a=!0);var s=a?Lu:Du,f=At(o.width,o.height,i),p=At(o.naturalWidth,o.naturalHeight,i),c={x:s(100,((f.width-t.width/r)/2-e.x/r)/f.width*100),y:s(100,((f.height-t.height/r)/2-e.y/r)/f.height*100),width:s(100,t.width/f.width*100/r),height:s(100,t.height/f.height*100/r)},u=Math.round(s(p.width,c.width*p.width/100)),l=Math.round(s(p.height,c.height*p.height/100)),d=p.width>=p.height*n,m=d?{width:Math.round(l*n),height:l}:{width:u,height:Math.round(u/n)},b=ke(ke({},m),{x:Math.round(s(p.width-m.width,c.x*p.width/100)),y:Math.round(s(p.height-m.height,c.y*p.height/100))});return{croppedAreaPercentages:c,croppedAreaPixels:b}}function Lu(e,o){return Math.min(e,Math.max(0,o))}function Du(e,o){return o}function zu(e,o,t,n,r,i){var a=At(o.width,o.height,t),s=Dn(n.width/a.width*(100/e.width),r,i),f={x:s*a.width/2-n.width/2-a.width*s*(e.x/100),y:s*a.height/2-n.height/2-a.height*s*(e.y/100)};return{crop:f,zoom:s}}function Nu(e,o,t){var n=Fu(o);return t.height>t.width?t.height/(e.height*n):t.width/(e.width*n)}function Uu(e,o,t,n,r,i){t===void 0&&(t=0);var a=At(o.naturalWidth,o.naturalHeight,t),s=Dn(Nu(e,o,n),r,i),f=n.height>n.width?n.height/e.height:n.width/e.width,p={x:((a.width-e.width)/2-e.x)*f,y:((a.height-e.height)/2-e.y)*f};return{crop:p,zoom:s}}function bo(e,o){return{x:(o.x+e.x)/2,y:(o.y+e.y)/2}}function ju(e){return e*Math.PI/180}function At(e,o,t){var n=ju(t);return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*o),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*o)}}function Dn(e,o,t){return Math.min(Math.max(e,o),t)}function tn(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.filter(function(t){return typeof t=="string"&&t.length>0}).join(" ").trim()}var Hu=`.reactEasyCrop_Container {
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ right: 0;
33
+ bottom: 0;
34
+ overflow: hidden;
35
+ user-select: none;
36
+ touch-action: none;
37
+ cursor: move;
38
+ display: flex;
39
+ justify-content: center;
40
+ align-items: center;
41
+ }
42
+
43
+ .reactEasyCrop_Image,
44
+ .reactEasyCrop_Video {
45
+ will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
46
+ }
47
+
48
+ .reactEasyCrop_Contain {
49
+ max-width: 100%;
50
+ max-height: 100%;
51
+ margin: auto;
52
+ position: absolute;
53
+ top: 0;
54
+ bottom: 0;
55
+ left: 0;
56
+ right: 0;
57
+ }
58
+ .reactEasyCrop_Cover_Horizontal {
59
+ width: 100%;
60
+ height: auto;
61
+ }
62
+ .reactEasyCrop_Cover_Vertical {
63
+ width: auto;
64
+ height: 100%;
65
+ }
66
+
67
+ .reactEasyCrop_CropArea {
68
+ position: absolute;
69
+ left: 50%;
70
+ top: 50%;
71
+ transform: translate(-50%, -50%);
72
+ border: 1px solid rgba(255, 255, 255, 0.5);
73
+ box-sizing: border-box;
74
+ box-shadow: 0 0 0 9999em;
75
+ color: rgba(0, 0, 0, 0.5);
76
+ overflow: hidden;
77
+ }
78
+
79
+ .reactEasyCrop_CropAreaRound {
80
+ border-radius: 50%;
81
+ }
82
+
83
+ .reactEasyCrop_CropAreaGrid::before {
84
+ content: ' ';
85
+ box-sizing: border-box;
86
+ position: absolute;
87
+ border: 1px solid rgba(255, 255, 255, 0.5);
88
+ top: 0;
89
+ bottom: 0;
90
+ left: 33.33%;
91
+ right: 33.33%;
92
+ border-top: 0;
93
+ border-bottom: 0;
94
+ }
95
+
96
+ .reactEasyCrop_CropAreaGrid::after {
97
+ content: ' ';
98
+ box-sizing: border-box;
99
+ position: absolute;
100
+ border: 1px solid rgba(255, 255, 255, 0.5);
101
+ top: 33.33%;
102
+ bottom: 33.33%;
103
+ left: 0;
104
+ right: 0;
105
+ border-left: 0;
106
+ border-right: 0;
107
+ }
108
+ `,Bu=1,Wu=3,Vu=1,Ku=function(e){Su(o,e);function o(){var t=e!==null&&e.apply(this,arguments)||this;return t.cropperRef=U.createRef(),t.imageRef=U.createRef(),t.videoRef=U.createRef(),t.containerPosition={x:0,y:0},t.containerRef=null,t.styleRef=null,t.containerRect=null,t.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},t.dragStartPosition={x:0,y:0},t.dragStartCrop={x:0,y:0},t.gestureZoomStart=0,t.gestureRotationStart=0,t.isTouching=!1,t.lastPinchDistance=0,t.lastPinchRotation=0,t.rafDragTimeout=null,t.rafPinchTimeout=null,t.wheelTimer=null,t.currentDoc=typeof document<"u"?document:null,t.currentWindow=typeof window<"u"?window:null,t.resizeObserver=null,t.previousCropSize=null,t.isInitialized=!1,t.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},t.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!t.containerRef)){var n=!0;t.resizeObserver=new window.ResizeObserver(function(r){if(n){n=!1;return}t.computeSizes()}),t.resizeObserver.observe(t.containerRef)}},t.preventZoomSafari=function(n){return n.preventDefault()},t.cleanEvents=function(){t.currentDoc&&(t.currentDoc.removeEventListener("mousemove",t.onMouseMove),t.currentDoc.removeEventListener("mouseup",t.onDragStopped),t.currentDoc.removeEventListener("touchmove",t.onTouchMove),t.currentDoc.removeEventListener("touchend",t.onDragStopped),t.currentDoc.removeEventListener("gesturechange",t.onGestureChange),t.currentDoc.removeEventListener("gestureend",t.onGestureEnd),t.currentDoc.removeEventListener("scroll",t.onScroll))},t.clearScrollEvent=function(){t.containerRef&&t.containerRef.removeEventListener("wheel",t.onWheel),t.wheelTimer&&clearTimeout(t.wheelTimer)},t.onMediaLoad=function(){var n=t.computeSizes();n&&(t.previousCropSize=n,t.emitCropData(),t.setInitialCrop(n),t.isInitialized=!0),t.props.onMediaLoaded&&t.props.onMediaLoaded(t.mediaSize)},t.setInitialCrop=function(n){if(t.props.initialCroppedAreaPercentages){var r=zu(t.props.initialCroppedAreaPercentages,t.mediaSize,t.props.rotation,n,t.props.minZoom,t.props.maxZoom),i=r.crop,a=r.zoom;t.props.onCropChange(i),t.props.onZoomChange&&t.props.onZoomChange(a)}else if(t.props.initialCroppedAreaPixels){var s=Uu(t.props.initialCroppedAreaPixels,t.mediaSize,t.props.rotation,n,t.props.minZoom,t.props.maxZoom),i=s.crop,a=s.zoom;t.props.onCropChange(i),t.props.onZoomChange&&t.props.onZoomChange(a)}},t.computeSizes=function(){var n,r,i,a,s,f,p=t.imageRef.current||t.videoRef.current;if(p&&t.containerRef){t.containerRect=t.containerRef.getBoundingClientRect(),t.saveContainerPosition();var c=t.containerRect.width/t.containerRect.height,u=((n=t.imageRef.current)===null||n===void 0?void 0:n.naturalWidth)||((r=t.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,l=((i=t.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((a=t.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,d=p.offsetWidth<u||p.offsetHeight<l,m=u/l,b=void 0;if(d)switch(t.state.mediaObjectFit){default:case"contain":b=c>m?{width:t.containerRect.height*m,height:t.containerRect.height}:{width:t.containerRect.width,height:t.containerRect.width/m};break;case"horizontal-cover":b={width:t.containerRect.width,height:t.containerRect.width/m};break;case"vertical-cover":b={width:t.containerRect.height*m,height:t.containerRect.height};break}else b={width:p.offsetWidth,height:p.offsetHeight};t.mediaSize=ke(ke({},b),{naturalWidth:u,naturalHeight:l}),t.props.setMediaSize&&t.props.setMediaSize(t.mediaSize);var _=t.props.cropSize?t.props.cropSize:Iu(t.mediaSize.width,t.mediaSize.height,t.containerRect.width,t.containerRect.height,t.props.aspect,t.props.rotation);return(((s=t.state.cropSize)===null||s===void 0?void 0:s.height)!==_.height||((f=t.state.cropSize)===null||f===void 0?void 0:f.width)!==_.width)&&t.props.onCropSizeChange&&t.props.onCropSizeChange(_),t.setState({cropSize:_},t.recomputeCropPosition),t.props.setCropSize&&t.props.setCropSize(_),_}},t.saveContainerPosition=function(){if(t.containerRef){var n=t.containerRef.getBoundingClientRect();t.containerPosition={x:n.left,y:n.top}}},t.onMouseDown=function(n){t.currentDoc&&(n.preventDefault(),t.currentDoc.addEventListener("mousemove",t.onMouseMove),t.currentDoc.addEventListener("mouseup",t.onDragStopped),t.saveContainerPosition(),t.onDragStart(o.getMousePoint(n)))},t.onMouseMove=function(n){return t.onDrag(o.getMousePoint(n))},t.onScroll=function(n){t.currentDoc&&(n.preventDefault(),t.saveContainerPosition())},t.onTouchStart=function(n){t.currentDoc&&(t.isTouching=!0,!(t.props.onTouchRequest&&!t.props.onTouchRequest(n))&&(t.currentDoc.addEventListener("touchmove",t.onTouchMove,{passive:!1}),t.currentDoc.addEventListener("touchend",t.onDragStopped),t.saveContainerPosition(),n.touches.length===2?t.onPinchStart(n):n.touches.length===1&&t.onDragStart(o.getTouchPoint(n.touches[0]))))},t.onTouchMove=function(n){n.preventDefault(),n.touches.length===2?t.onPinchMove(n):n.touches.length===1&&t.onDrag(o.getTouchPoint(n.touches[0]))},t.onGestureStart=function(n){t.currentDoc&&(n.preventDefault(),t.currentDoc.addEventListener("gesturechange",t.onGestureChange),t.currentDoc.addEventListener("gestureend",t.onGestureEnd),t.gestureZoomStart=t.props.zoom,t.gestureRotationStart=t.props.rotation)},t.onGestureChange=function(n){if(n.preventDefault(),!t.isTouching){var r=o.getMousePoint(n),i=t.gestureZoomStart-1+n.scale;if(t.setNewZoom(i,r,{shouldUpdatePosition:!0}),t.props.onRotationChange){var a=t.gestureRotationStart+n.rotation;t.props.onRotationChange(a)}}},t.onGestureEnd=function(n){t.cleanEvents()},t.onDragStart=function(n){var r,i,a=n.x,s=n.y;t.dragStartPosition={x:a,y:s},t.dragStartCrop=ke({},t.props.crop),(i=(r=t.props).onInteractionStart)===null||i===void 0||i.call(r)},t.onDrag=function(n){var r=n.x,i=n.y;t.currentWindow&&(t.rafDragTimeout&&t.currentWindow.cancelAnimationFrame(t.rafDragTimeout),t.rafDragTimeout=t.currentWindow.requestAnimationFrame(function(){if(t.state.cropSize&&!(r===void 0||i===void 0)){var a=r-t.dragStartPosition.x,s=i-t.dragStartPosition.y,f={x:t.dragStartCrop.x+a,y:t.dragStartCrop.y+s},p=t.props.restrictPosition?Tt(f,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):f;t.props.onCropChange(p)}}))},t.onDragStopped=function(){var n,r;t.isTouching=!1,t.cleanEvents(),t.emitCropData(),(r=(n=t.props).onInteractionEnd)===null||r===void 0||r.call(n)},t.onWheel=function(n){if(t.currentWindow&&!(t.props.onWheelRequest&&!t.props.onWheelRequest(n))){n.preventDefault();var r=o.getMousePoint(n),i=Mu(n).pixelY,a=t.props.zoom-i*t.props.zoomSpeed/200;t.setNewZoom(a,r,{shouldUpdatePosition:!0}),t.state.hasWheelJustStarted||t.setState({hasWheelJustStarted:!0},function(){var s,f;return(f=(s=t.props).onInteractionStart)===null||f===void 0?void 0:f.call(s)}),t.wheelTimer&&clearTimeout(t.wheelTimer),t.wheelTimer=t.currentWindow.setTimeout(function(){return t.setState({hasWheelJustStarted:!1},function(){var s,f;return(f=(s=t.props).onInteractionEnd)===null||f===void 0?void 0:f.call(s)})},250)}},t.getPointOnContainer=function(n,r){var i=n.x,a=n.y;if(!t.containerRect)throw new Error("The Cropper is not mounted");return{x:t.containerRect.width/2-(i-r.x),y:t.containerRect.height/2-(a-r.y)}},t.getPointOnMedia=function(n){var r=n.x,i=n.y,a=t.props,s=a.crop,f=a.zoom;return{x:(r+s.x)/f,y:(i+s.y)/f}},t.setNewZoom=function(n,r,i){var a=i===void 0?{}:i,s=a.shouldUpdatePosition,f=s===void 0?!0:s;if(!(!t.state.cropSize||!t.props.onZoomChange)){var p=Dn(n,t.props.minZoom,t.props.maxZoom);if(f){var c=t.getPointOnContainer(r,t.containerPosition),u=t.getPointOnMedia(c),l={x:u.x*p-c.x,y:u.y*p-c.y},d=t.props.restrictPosition?Tt(l,t.mediaSize,t.state.cropSize,p,t.props.rotation):l;t.props.onCropChange(d)}t.props.onZoomChange(p)}},t.getCropData=function(){if(!t.state.cropSize)return null;var n=t.props.restrictPosition?Tt(t.props.crop,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):t.props.crop;return $u(n,t.mediaSize,t.state.cropSize,t.getAspect(),t.props.zoom,t.props.rotation,t.props.restrictPosition)},t.emitCropData=function(){var n=t.getCropData();if(n){var r=n.croppedAreaPercentages,i=n.croppedAreaPixels;t.props.onCropComplete&&t.props.onCropComplete(r,i),t.props.onCropAreaChange&&t.props.onCropAreaChange(r,i)}},t.emitCropAreaChange=function(){var n=t.getCropData();if(n){var r=n.croppedAreaPercentages,i=n.croppedAreaPixels;t.props.onCropAreaChange&&t.props.onCropAreaChange(r,i)}},t.recomputeCropPosition=function(){if(t.state.cropSize){var n=t.props.crop;if(t.isInitialized&&t.previousCropSize){var r=Math.abs(t.previousCropSize.width-t.state.cropSize.width)>1e-6||Math.abs(t.previousCropSize.height-t.state.cropSize.height)>1e-6;if(r){var i=t.state.cropSize.width/t.previousCropSize.width,a=t.state.cropSize.height/t.previousCropSize.height;n={x:t.props.crop.x*i,y:t.props.crop.y*a}}}var s=t.props.restrictPosition?Tt(n,t.mediaSize,t.state.cropSize,t.props.zoom,t.props.rotation):n;t.previousCropSize=t.state.cropSize,t.props.onCropChange(s),t.emitCropData()}},t.onKeyDown=function(n){var r,i,a=t.props,s=a.crop,f=a.onCropChange,p=a.keyboardStep,c=a.zoom,u=a.rotation,l=p;if(t.state.cropSize){n.shiftKey&&(l*=.2);var d=ke({},s);switch(n.key){case"ArrowUp":d.y-=l,n.preventDefault();break;case"ArrowDown":d.y+=l,n.preventDefault();break;case"ArrowLeft":d.x-=l,n.preventDefault();break;case"ArrowRight":d.x+=l,n.preventDefault();break;default:return}t.props.restrictPosition&&(d=Tt(d,t.mediaSize,t.state.cropSize,c,u)),n.repeat||(i=(r=t.props).onInteractionStart)===null||i===void 0||i.call(r),f(d)}},t.onKeyUp=function(n){var r,i;switch(n.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":n.preventDefault();break;default:return}t.emitCropData(),(i=(r=t.props).onInteractionEnd)===null||i===void 0||i.call(r)},t}return o.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=Hu,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},o.prototype.componentWillUnmount=function(){var t,n;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((n=this.styleRef.parentNode)===null||n===void 0||n.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},o.prototype.componentDidUpdate=function(t){var n,r,i,a,s,f,p,c,u;t.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):t.aspect!==this.props.aspect?this.computeSizes():t.objectFit!==this.props.objectFit?this.computeSizes():t.zoom!==this.props.zoom?this.recomputeCropPosition():((n=t.cropSize)===null||n===void 0?void 0:n.height)!==((r=this.props.cropSize)===null||r===void 0?void 0:r.height)||((i=t.cropSize)===null||i===void 0?void 0:i.width)!==((a=this.props.cropSize)===null||a===void 0?void 0:a.width)?this.computeSizes():(((s=t.crop)===null||s===void 0?void 0:s.x)!==((f=this.props.crop)===null||f===void 0?void 0:f.x)||((p=t.crop)===null||p===void 0?void 0:p.y)!==((c=this.props.crop)===null||c===void 0?void 0:c.y))&&this.emitCropAreaChange(),t.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),t.video!==this.props.video&&((u=this.videoRef.current)===null||u===void 0||u.load());var l=this.getObjectFit();l!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:l},this.computeSizes)},o.prototype.getAspect=function(){var t=this.props,n=t.cropSize,r=t.aspect;return n?n.width/n.height:r},o.prototype.getObjectFit=function(){var t,n,r,i;if(this.props.objectFit==="cover"){var a=this.imageRef.current||this.videoRef.current;if(a&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var s=this.containerRect.width/this.containerRect.height,f=((t=this.imageRef.current)===null||t===void 0?void 0:t.naturalWidth)||((n=this.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,p=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalHeight)||((i=this.videoRef.current)===null||i===void 0?void 0:i.videoHeight)||0,c=f/p;return c<s?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},o.prototype.onPinchStart=function(t){var n=o.getTouchPoint(t.touches[0]),r=o.getTouchPoint(t.touches[1]);this.lastPinchDistance=vo(n,r),this.lastPinchRotation=yo(n,r),this.onDragStart(bo(n,r))},o.prototype.onPinchMove=function(t){var n=this;if(!(!this.currentDoc||!this.currentWindow)){var r=o.getTouchPoint(t.touches[0]),i=o.getTouchPoint(t.touches[1]),a=bo(r,i);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var s=vo(r,i),f=n.props.zoom*(s/n.lastPinchDistance);n.setNewZoom(f,a,{shouldUpdatePosition:!1}),n.lastPinchDistance=s;var p=yo(r,i),c=n.props.rotation+(p-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(c),n.lastPinchRotation=p})}},o.prototype.render=function(){var t=this,n,r=this.props,i=r.image,a=r.video,s=r.mediaProps,f=r.cropperProps,p=r.transform,c=r.crop,u=c.x,l=c.y,d=r.rotation,m=r.zoom,b=r.cropShape,_=r.showGrid,S=r.roundCropAreaPixels,F=r.style,T=F.containerStyle,k=F.cropAreaStyle,I=F.mediaStyle,x=r.classes,O=x.containerClassName,g=x.cropAreaClassName,y=x.mediaClassName,C=(n=this.state.mediaObjectFit)!==null&&n!==void 0?n:this.getObjectFit();return U.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(A){return t.containerRef=A},"data-testid":"container",style:T,className:tn("reactEasyCrop_Container",O)},i?U.createElement("img",ke({alt:"",className:tn("reactEasyCrop_Image",C==="contain"&&"reactEasyCrop_Contain",C==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",C==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",y)},s,{src:i,ref:this.imageRef,style:ke(ke({},I),{transform:p||"translate(".concat(u,"px, ").concat(l,"px) rotate(").concat(d,"deg) scale(").concat(m,")")}),onLoad:this.onMediaLoad})):a&&U.createElement("video",ke({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:tn("reactEasyCrop_Video",C==="contain"&&"reactEasyCrop_Contain",C==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",C==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",y)},s,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:ke(ke({},I),{transform:p||"translate(".concat(u,"px, ").concat(l,"px) rotate(").concat(d,"deg) scale(").concat(m,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(E){return U.createElement("source",ke({key:E.src},E))})),this.state.cropSize&&U.createElement("div",ke({ref:this.cropperRef,style:ke(ke({},k),{width:S?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:S?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:tn("reactEasyCrop_CropArea",b==="round"&&"reactEasyCrop_CropAreaRound",_&&"reactEasyCrop_CropAreaGrid",g)},f)))},o.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Wu,minZoom:Bu,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Vu},o.getMousePoint=function(t){return{x:Number(t.clientX),y:Number(t.clientY)}},o.getTouchPoint=function(t){return{x:Number(t.clientX),y:Number(t.clientY)}},o}(U.Component);function Gu(e,o){return new Promise((t,n)=>{const r=new Image;r.src=e,r.onload=()=>{const i=document.createElement("canvas");i.width=o.width,i.height=o.height;const a=i.getContext("2d");if(!a)return n(new Error("Canvas context error"));a.drawImage(r,o.x,o.y,o.width,o.height,0,0,o.width,o.height),i.toBlob(s=>{if(!s)return n(new Error("Crop failed"));t(s)},"image/jpeg")},r.onerror=()=>n(new Error("Image load error"))})}function Yu(e,o){return o.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function ni(e,o){return new Promise(function(t,n){let r;return qu(e).then(function(i){try{return r=i,t(new Blob([o.slice(0,2),r,o.slice(2)],{type:"image/jpeg"}))}catch(a){return n(a)}},n)})}const qu=e=>new Promise((o,t)=>{const n=new FileReader;n.addEventListener("load",({target:{result:r}})=>{const i=new DataView(r);let a=0;if(i.getUint16(a)!==65496)return t("not a valid JPEG");for(a+=2;;){const s=i.getUint16(a);if(s===65498)break;const f=i.getUint16(a+2);if(s===65505&&i.getUint32(a+4)===1165519206){const p=a+10;let c;switch(i.getUint16(p)){case 18761:c=!0;break;case 19789:c=!1;break;default:return t("TIFF header contains invalid endian")}if(i.getUint16(p+2,c)!==42)return t("TIFF header contains invalid version");const u=i.getUint32(p+4,c),l=p+u+2+12*i.getUint16(p+u,c);for(let d=p+u+2;d<l;d+=12)if(i.getUint16(d,c)==274){if(i.getUint16(d+2,c)!==3)return t("Orientation data type is invalid");if(i.getUint32(d+4,c)!==1)return t("Orientation data count is invalid");i.setUint16(d+8,1,c);break}return o(r.slice(a,a+2+f))}a+=2+f}return o(new Blob)}),n.readAsArrayBuffer(e)});var hn={},Zu={get exports(){return hn},set exports(e){hn=e}};(function(e){var o,t,n={};Zu.exports=n,n.parse=function(r,i){for(var a=n.bin.readUshort,s=n.bin.readUint,f=0,p={},c=new Uint8Array(r),u=c.length-4;s(c,u)!=101010256;)u--;f=u,f+=4;var l=a(c,f+=4);a(c,f+=2);var d=s(c,f+=2),m=s(c,f+=4);f+=4,f=m;for(var b=0;b<l;b++){s(c,f),f+=4,f+=4,f+=4,s(c,f+=4),d=s(c,f+=4);var _=s(c,f+=4),S=a(c,f+=4),F=a(c,f+2),T=a(c,f+4);f+=6;var k=s(c,f+=8);f+=4,f+=S+F+T,n._readLocal(c,k,p,d,_,i)}return p},n._readLocal=function(r,i,a,s,f,p){var c=n.bin.readUshort,u=n.bin.readUint;u(r,i),c(r,i+=4),c(r,i+=2);var l=c(r,i+=2);u(r,i+=2),u(r,i+=4),i+=4;var d=c(r,i+=8),m=c(r,i+=2);i+=2;var b=n.bin.readUTF8(r,i,d);if(i+=d,i+=m,p)a[b]={size:f,csize:s};else{var _=new Uint8Array(r.buffer,i);if(l==0)a[b]=new Uint8Array(_.buffer.slice(i,i+s));else{if(l!=8)throw"unknown compression method: "+l;var S=new Uint8Array(f);n.inflateRaw(_,S),a[b]=S}}},n.inflateRaw=function(r,i){return n.F.inflate(r,i)},n.inflate=function(r,i){return r[0],r[1],n.inflateRaw(new Uint8Array(r.buffer,r.byteOffset+2,r.length-6),i)},n.deflate=function(r,i){i==null&&(i={level:6});var a=0,s=new Uint8Array(50+Math.floor(1.1*r.length));s[a]=120,s[a+1]=156,a+=2,a=n.F.deflateRaw(r,s,a,i.level);var f=n.adler(r,0,r.length);return s[a+0]=f>>>24&255,s[a+1]=f>>>16&255,s[a+2]=f>>>8&255,s[a+3]=f>>>0&255,new Uint8Array(s.buffer,0,a+4)},n.deflateRaw=function(r,i){i==null&&(i={level:6});var a=new Uint8Array(50+Math.floor(1.1*r.length)),s=n.F.deflateRaw(r,a,s,i.level);return new Uint8Array(a.buffer,0,s)},n.encode=function(r,i){i==null&&(i=!1);var a=0,s=n.bin.writeUint,f=n.bin.writeUshort,p={};for(var c in r){var u=!n._noNeed(c)&&!i,l=r[c],d=n.crc.crc(l,0,l.length);p[c]={cpr:u,usize:l.length,crc:d,file:u?n.deflateRaw(l):l}}for(var c in p)a+=p[c].file.length+30+46+2*n.bin.sizeUTF8(c);a+=22;var m=new Uint8Array(a),b=0,_=[];for(var c in p){var S=p[c];_.push(b),b=n._writeHeader(m,b,c,S,0)}var F=0,T=b;for(var c in p)S=p[c],_.push(b),b=n._writeHeader(m,b,c,S,1,_[F++]);var k=b-T;return s(m,b,101010256),b+=4,f(m,b+=4,F),f(m,b+=2,F),s(m,b+=2,k),s(m,b+=4,T),b+=4,b+=2,m.buffer},n._noNeed=function(r){var i=r.split(".").pop().toLowerCase();return"png,jpg,jpeg,zip".indexOf(i)!=-1},n._writeHeader=function(r,i,a,s,f,p){var c=n.bin.writeUint,u=n.bin.writeUshort,l=s.file;return c(r,i,f==0?67324752:33639248),i+=4,f==1&&(i+=2),u(r,i,20),u(r,i+=2,0),u(r,i+=2,s.cpr?8:0),c(r,i+=2,0),c(r,i+=4,s.crc),c(r,i+=4,l.length),c(r,i+=4,s.usize),u(r,i+=4,n.bin.sizeUTF8(a)),u(r,i+=2,0),i+=2,f==1&&(i+=2,i+=2,c(r,i+=6,p),i+=4),i+=n.bin.writeUTF8(r,i,a),f==0&&(r.set(l,i),i+=l.length),i},n.crc={table:function(){for(var r=new Uint32Array(256),i=0;i<256;i++){for(var a=i,s=0;s<8;s++)1&a?a=3988292384^a>>>1:a>>>=1;r[i]=a}return r}(),update:function(r,i,a,s){for(var f=0;f<s;f++)r=n.crc.table[255&(r^i[a+f])]^r>>>8;return r},crc:function(r,i,a){return 4294967295^n.crc.update(4294967295,r,i,a)}},n.adler=function(r,i,a){for(var s=1,f=0,p=i,c=i+a;p<c;){for(var u=Math.min(p+5552,c);p<u;)f+=s+=r[p++];s%=65521,f%=65521}return f<<16|s},n.bin={readUshort:function(r,i){return r[i]|r[i+1]<<8},writeUshort:function(r,i,a){r[i]=255&a,r[i+1]=a>>8&255},readUint:function(r,i){return 16777216*r[i+3]+(r[i+2]<<16|r[i+1]<<8|r[i])},writeUint:function(r,i,a){r[i]=255&a,r[i+1]=a>>8&255,r[i+2]=a>>16&255,r[i+3]=a>>24&255},readASCII:function(r,i,a){for(var s="",f=0;f<a;f++)s+=String.fromCharCode(r[i+f]);return s},writeASCII:function(r,i,a){for(var s=0;s<a.length;s++)r[i+s]=a.charCodeAt(s)},pad:function(r){return r.length<2?"0"+r:r},readUTF8:function(r,i,a){for(var s,f="",p=0;p<a;p++)f+="%"+n.bin.pad(r[i+p].toString(16));try{s=decodeURIComponent(f)}catch{return n.bin.readASCII(r,i,a)}return s},writeUTF8:function(r,i,a){for(var s=a.length,f=0,p=0;p<s;p++){var c=a.charCodeAt(p);if(!(4294967168&c))r[i+f]=c,f++;else if(!(4294965248&c))r[i+f]=192|c>>6,r[i+f+1]=128|c>>0&63,f+=2;else if(!(4294901760&c))r[i+f]=224|c>>12,r[i+f+1]=128|c>>6&63,r[i+f+2]=128|c>>0&63,f+=3;else{if(4292870144&c)throw"e";r[i+f]=240|c>>18,r[i+f+1]=128|c>>12&63,r[i+f+2]=128|c>>6&63,r[i+f+3]=128|c>>0&63,f+=4}}return f},sizeUTF8:function(r){for(var i=r.length,a=0,s=0;s<i;s++){var f=r.charCodeAt(s);if(!(4294967168&f))a++;else if(!(4294965248&f))a+=2;else if(!(4294901760&f))a+=3;else{if(4292870144&f)throw"e";a+=4}}return a}},n.F={},n.F.deflateRaw=function(r,i,a,s){var f=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][s],p=n.F.U,c=n.F._goodIndex;n.F._hash;var u=n.F._putsE,l=0,d=a<<3,m=0,b=r.length;if(s==0){for(;l<b;)u(i,d,l+(E=Math.min(65535,b-l))==b?1:0),d=n.F._copyExact(r,l,E,i,d+8),l+=E;return d>>>3}var _=p.lits,S=p.strt,F=p.prev,T=0,k=0,I=0,x=0,O=0,g=0;for(b>2&&(S[g=n.F._hash(r,0)]=0),l=0;l<b;l++){if(O=g,l+1<b-2){g=n.F._hash(r,l+1);var y=l+1&32767;F[y]=S[g],S[g]=y}if(m<=l){(T>14e3||k>26697)&&b-l>100&&(m<l&&(_[T]=l-m,T+=2,m=l),d=n.F._writeBlock(l==b-1||m==b?1:0,_,T,x,r,I,l-I,i,d),T=k=x=0,I=l);var C=0;l<b-2&&(C=n.F._bestMatch(r,l,F,O,Math.min(f[2],b-l),f[3]));var E=C>>>16,A=65535&C;if(C!=0){A=65535&C;var R=c(E=C>>>16,p.of0);p.lhst[257+R]++;var w=c(A,p.df0);p.dhst[w]++,x+=p.exb[R]+p.dxb[w],_[T]=E<<23|l-m,_[T+1]=A<<16|R<<8|w,T+=2,m=l+E}else p.lhst[r[l]]++;k++}}for(I==l&&r.length!=0||(m<l&&(_[T]=l-m,T+=2,m=l),d=n.F._writeBlock(1,_,T,x,r,I,l-I,i,d),T=0,k=0,T=k=x=0,I=l);7&d;)d++;return d>>>3},n.F._bestMatch=function(r,i,a,s,f,p){var c=32767&i,u=a[c],l=c-u+32768&32767;if(u==c||s!=n.F._hash(r,i-l))return 0;for(var d=0,m=0,b=Math.min(32767,i);l<=b&&--p!=0&&u!=c;){if(d==0||r[i+d]==r[i+d-l]){var _=n.F._howLong(r,i,l);if(_>d){if(m=l,(d=_)>=f)break;l+2<_&&(_=l+2);for(var S=0,F=0;F<_-2;F++){var T=i-l+F+32768&32767,k=T-a[T]+32768&32767;k>S&&(S=k,u=T)}}}l+=(c=u)-(u=a[c])+32768&32767}return d<<16|m},n.F._howLong=function(r,i,a){if(r[i]!=r[i-a]||r[i+1]!=r[i+1-a]||r[i+2]!=r[i+2-a])return 0;var s=i,f=Math.min(r.length,i+258);for(i+=3;i<f&&r[i]==r[i-a];)i++;return i-s},n.F._hash=function(r,i){return(r[i]<<8|r[i+1])+(r[i+2]<<4)&65535},n.saved=0,n.F._writeBlock=function(r,i,a,s,f,p,c,u,l){var d,m,b,_,S,F,T,k,I,x=n.F.U,O=n.F._putsF,g=n.F._putsE;x.lhst[256]++,m=(d=n.F.getTrees())[0],b=d[1],_=d[2],S=d[3],F=d[4],T=d[5],k=d[6],I=d[7];var y=32+(l+3&7?8-(l+3&7):0)+(c<<3),C=s+n.F.contSize(x.fltree,x.lhst)+n.F.contSize(x.fdtree,x.dhst),E=s+n.F.contSize(x.ltree,x.lhst)+n.F.contSize(x.dtree,x.dhst);E+=14+3*T+n.F.contSize(x.itree,x.ihst)+(2*x.ihst[16]+3*x.ihst[17]+7*x.ihst[18]);for(var A=0;A<286;A++)x.lhst[A]=0;for(A=0;A<30;A++)x.dhst[A]=0;for(A=0;A<19;A++)x.ihst[A]=0;var R=y<C&&y<E?0:C<E?1:2;if(O(u,l,r),O(u,l+1,R),l+=3,R==0){for(;7&l;)l++;l=n.F._copyExact(f,p,c,u,l)}else{var w,P;if(R==1&&(w=x.fltree,P=x.fdtree),R==2){n.F.makeCodes(x.ltree,m),n.F.revCodes(x.ltree,m),n.F.makeCodes(x.dtree,b),n.F.revCodes(x.dtree,b),n.F.makeCodes(x.itree,_),n.F.revCodes(x.itree,_),w=x.ltree,P=x.dtree,g(u,l,S-257),g(u,l+=5,F-1),g(u,l+=5,T-4),l+=4;for(var v=0;v<T;v++)g(u,l+3*v,x.itree[1+(x.ordr[v]<<1)]);l+=3*T,l=n.F._codeTiny(k,x.itree,u,l),l=n.F._codeTiny(I,x.itree,u,l)}for(var h=p,$=0;$<a;$+=2){for(var M=i[$],z=M>>>23,Y=h+(8388607&M);h<Y;)l=n.F._writeLit(f[h++],w,u,l);if(z!=0){var j=i[$+1],W=j>>16,D=j>>8&255,L=255&j;g(u,l=n.F._writeLit(257+D,w,u,l),z-x.of0[D]),l+=x.exb[D],O(u,l=n.F._writeLit(L,P,u,l),W-x.df0[L]),l+=x.dxb[L],h+=z}}l=n.F._writeLit(256,w,u,l)}return l},n.F._copyExact=function(r,i,a,s,f){var p=f>>>3;return s[p]=a,s[p+1]=a>>>8,s[p+2]=255-s[p],s[p+3]=255-s[p+1],p+=4,s.set(new Uint8Array(r.buffer,i,a),p),f+(a+4<<3)},n.F.getTrees=function(){for(var r=n.F.U,i=n.F._hufTree(r.lhst,r.ltree,15),a=n.F._hufTree(r.dhst,r.dtree,15),s=[],f=n.F._lenCodes(r.ltree,s),p=[],c=n.F._lenCodes(r.dtree,p),u=0;u<s.length;u+=2)r.ihst[s[u]]++;for(u=0;u<p.length;u+=2)r.ihst[p[u]]++;for(var l=n.F._hufTree(r.ihst,r.itree,7),d=19;d>4&&r.itree[1+(r.ordr[d-1]<<1)]==0;)d--;return[i,a,l,f,c,d,s,p]},n.F.getSecond=function(r){for(var i=[],a=0;a<r.length;a+=2)i.push(r[a+1]);return i},n.F.nonZero=function(r){for(var i="",a=0;a<r.length;a+=2)r[a+1]!=0&&(i+=(a>>1)+",");return i},n.F.contSize=function(r,i){for(var a=0,s=0;s<i.length;s++)a+=i[s]*r[1+(s<<1)];return a},n.F._codeTiny=function(r,i,a,s){for(var f=0;f<r.length;f+=2){var p=r[f],c=r[f+1];s=n.F._writeLit(p,i,a,s);var u=p==16?2:p==17?3:7;p>15&&(n.F._putsE(a,s,c,u),s+=u)}return s},n.F._lenCodes=function(r,i){for(var a=r.length;a!=2&&r[a-1]==0;)a-=2;for(var s=0;s<a;s+=2){var f=r[s+1],p=s+3<a?r[s+3]:-1,c=s+5<a?r[s+5]:-1,u=s==0?-1:r[s-1];if(f==0&&p==f&&c==f){for(var l=s+5;l+2<a&&r[l+2]==f;)l+=2;(d=Math.min(l+1-s>>>1,138))<11?i.push(17,d-3):i.push(18,d-11),s+=2*d-2}else if(f==u&&p==f&&c==f){for(l=s+5;l+2<a&&r[l+2]==f;)l+=2;var d=Math.min(l+1-s>>>1,6);i.push(16,d-3),s+=2*d-2}else i.push(f,0)}return a>>>1},n.F._hufTree=function(r,i,a){var s=[],f=r.length,p=i.length,c=0;for(c=0;c<p;c+=2)i[c]=0,i[c+1]=0;for(c=0;c<f;c++)r[c]!=0&&s.push({lit:c,f:r[c]});var u=s.length,l=s.slice(0);if(u==0)return 0;if(u==1){var d=s[0].lit;return l=d==0?1:0,i[1+(d<<1)]=1,i[1+(l<<1)]=1,1}s.sort(function(k,I){return k.f-I.f});var m=s[0],b=s[1],_=0,S=1,F=2;for(s[0]={lit:-1,f:m.f+b.f,l:m,r:b,d:0};S!=u-1;)m=_!=S&&(F==u||s[_].f<s[F].f)?s[_++]:s[F++],b=_!=S&&(F==u||s[_].f<s[F].f)?s[_++]:s[F++],s[S++]={lit:-1,f:m.f+b.f,l:m,r:b};var T=n.F.setDepth(s[S-1],0);for(T>a&&(n.F.restrictDepth(l,a,T),T=a),c=0;c<u;c++)i[1+(l[c].lit<<1)]=l[c].d;return T},n.F.setDepth=function(r,i){return r.lit!=-1?(r.d=i,i):Math.max(n.F.setDepth(r.l,i+1),n.F.setDepth(r.r,i+1))},n.F.restrictDepth=function(r,i,a){var s=0,f=1<<a-i,p=0;for(r.sort(function(u,l){return l.d==u.d?u.f-l.f:l.d-u.d}),s=0;s<r.length&&r[s].d>i;s++){var c=r[s].d;r[s].d=i,p+=f-(1<<a-c)}for(p>>>=a-i;p>0;)(c=r[s].d)<i?(r[s].d++,p-=1<<i-c-1):s++;for(;s>=0;s--)r[s].d==i&&p<0&&(r[s].d--,p++);p!=0&&console.log("debt left")},n.F._goodIndex=function(r,i){var a=0;return i[16|a]<=r&&(a|=16),i[8|a]<=r&&(a|=8),i[4|a]<=r&&(a|=4),i[2|a]<=r&&(a|=2),i[1|a]<=r&&(a|=1),a},n.F._writeLit=function(r,i,a,s){return n.F._putsF(a,s,i[r<<1]),s+i[1+(r<<1)]},n.F.inflate=function(r,i){var a=Uint8Array;if(r[0]==3&&r[1]==0)return i||new a(0);var s=n.F,f=s._bitsF,p=s._bitsE,c=s._decodeTiny,u=s.makeCodes,l=s.codes2map,d=s._get17,m=s.U,b=i==null;b&&(i=new a(r.length>>>2<<3));for(var _,S,F=0,T=0,k=0,I=0,x=0,O=0,g=0,y=0,C=0;F==0;)if(F=f(r,C,1),T=f(r,C+1,2),C+=3,T!=0){if(b&&(i=n.F._check(i,y+(1<<17))),T==1&&(_=m.flmap,S=m.fdmap,O=511,g=31),T==2){k=p(r,C,5)+257,I=p(r,C+5,5)+1,x=p(r,C+10,4)+4,C+=14;for(var E=0;E<38;E+=2)m.itree[E]=0,m.itree[E+1]=0;var A=1;for(E=0;E<x;E++){var R=p(r,C+3*E,3);m.itree[1+(m.ordr[E]<<1)]=R,R>A&&(A=R)}C+=3*x,u(m.itree,A),l(m.itree,A,m.imap),_=m.lmap,S=m.dmap,C=c(m.imap,(1<<A)-1,k+I,r,C,m.ttree);var w=s._copyOut(m.ttree,0,k,m.ltree);O=(1<<w)-1;var P=s._copyOut(m.ttree,k,I,m.dtree);g=(1<<P)-1,u(m.ltree,w),l(m.ltree,w,_),u(m.dtree,P),l(m.dtree,P,S)}for(;;){var v=_[d(r,C)&O];C+=15&v;var h=v>>>4;if(!(h>>>8))i[y++]=h;else{if(h==256)break;var $=y+h-254;if(h>264){var M=m.ldef[h-257];$=y+(M>>>3)+p(r,C,7&M),C+=7&M}var z=S[d(r,C)&g];C+=15&z;var Y=z>>>4,j=m.ddef[Y],W=(j>>>4)+f(r,C,15&j);for(C+=15&j,b&&(i=n.F._check(i,y+(1<<17)));y<$;)i[y]=i[y++-W],i[y]=i[y++-W],i[y]=i[y++-W],i[y]=i[y++-W];y=$}}}else{7&C&&(C+=8-(7&C));var D=4+(C>>>3),L=r[D-4]|r[D-3]<<8;b&&(i=n.F._check(i,y+L)),i.set(new a(r.buffer,r.byteOffset+D,L),y),C=D+L<<3,y+=L}return i.length==y?i:i.slice(0,y)},n.F._check=function(r,i){var a=r.length;if(i<=a)return r;var s=new Uint8Array(Math.max(a<<1,i));return s.set(r,0),s},n.F._decodeTiny=function(r,i,a,s,f,p){for(var c=n.F._bitsE,u=n.F._get17,l=0;l<a;){var d=r[u(s,f)&i];f+=15&d;var m=d>>>4;if(m<=15)p[l]=m,l++;else{var b=0,_=0;m==16?(_=3+c(s,f,2),f+=2,b=p[l-1]):m==17?(_=3+c(s,f,3),f+=3):m==18&&(_=11+c(s,f,7),f+=7);for(var S=l+_;l<S;)p[l]=b,l++}}return f},n.F._copyOut=function(r,i,a,s){for(var f=0,p=0,c=s.length>>>1;p<a;){var u=r[p+i];s[p<<1]=0,s[1+(p<<1)]=u,u>f&&(f=u),p++}for(;p<c;)s[p<<1]=0,s[1+(p<<1)]=0,p++;return f},n.F.makeCodes=function(r,i){for(var a,s,f,p,c=n.F.U,u=r.length,l=c.bl_count,d=0;d<=i;d++)l[d]=0;for(d=1;d<u;d+=2)l[r[d]]++;var m=c.next_code;for(a=0,l[0]=0,s=1;s<=i;s++)a=a+l[s-1]<<1,m[s]=a;for(f=0;f<u;f+=2)(p=r[f+1])!=0&&(r[f]=m[p],m[p]++)},n.F.codes2map=function(r,i,a){for(var s=r.length,f=n.F.U.rev15,p=0;p<s;p+=2)if(r[p+1]!=0)for(var c=p>>1,u=r[p+1],l=c<<4|u,d=i-u,m=r[p]<<d,b=m+(1<<d);m!=b;)a[f[m]>>>15-i]=l,m++},n.F.revCodes=function(r,i){for(var a=n.F.U.rev15,s=15-i,f=0;f<r.length;f+=2){var p=r[f]<<i-r[f+1];r[f]=a[p]>>>s}},n.F._putsE=function(r,i,a){a<<=7&i;var s=i>>>3;r[s]|=a,r[s+1]|=a>>>8},n.F._putsF=function(r,i,a){a<<=7&i;var s=i>>>3;r[s]|=a,r[s+1]|=a>>>8,r[s+2]|=a>>>16},n.F._bitsE=function(r,i,a){return(r[i>>>3]|r[1+(i>>>3)]<<8)>>>(7&i)&(1<<a)-1},n.F._bitsF=function(r,i,a){return(r[i>>>3]|r[1+(i>>>3)]<<8|r[2+(i>>>3)]<<16)>>>(7&i)&(1<<a)-1},n.F._get17=function(r,i){return(r[i>>>3]|r[1+(i>>>3)]<<8|r[2+(i>>>3)]<<16)>>>(7&i)},n.F._get25=function(r,i){return(r[i>>>3]|r[1+(i>>>3)]<<8|r[2+(i>>>3)]<<16|r[3+(i>>>3)]<<24)>>>(7&i)},n.F.U=(o=Uint16Array,t=Uint32Array,{next_code:new o(16),bl_count:new o(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new o(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new t(32),flmap:new o(512),fltree:[],fdmap:new o(32),fdtree:[],lmap:new o(32768),ltree:[],ttree:[],dmap:new o(32768),dtree:[],imap:new o(512),itree:[],rev15:new o(32768),lhst:new t(286),dhst:new t(30),ihst:new t(19),lits:new t(15e3),strt:new o(65536),prev:new o(32768)}),function(){for(var r=n.F.U,i=0;i<32768;i++){var a=i;a=(4278255360&(a=(4042322160&(a=(3435973836&(a=(2863311530&a)>>>1|(1431655765&a)<<1))>>>2|(858993459&a)<<2))>>>4|(252645135&a)<<4))>>>8|(16711935&a)<<8,r.rev15[i]=(a>>>16|a<<16)>>>17}function s(f,p,c){for(;p--!=0;)f.push(0,c)}for(i=0;i<32;i++)r.ldef[i]=r.of0[i]<<3|r.exb[i],r.ddef[i]=r.df0[i]<<4|r.dxb[i];s(r.fltree,144,8),s(r.fltree,112,9),s(r.fltree,24,7),s(r.fltree,8,8),n.F.makeCodes(r.fltree,9),n.F.codes2map(r.fltree,9,r.flmap),n.F.revCodes(r.fltree,9),s(r.fdtree,32,5),n.F.makeCodes(r.fdtree,5),n.F.codes2map(r.fdtree,5,r.fdmap),n.F.revCodes(r.fdtree,5),s(r.itree,19,0),s(r.ltree,286,0),s(r.dtree,30,0),s(r.ttree,320,0)}()})();var Xu=Yu({__proto__:null,default:hn},[hn]);const Ye=function(){var e={nextZero(c,u){for(;c[u]!=0;)u++;return u},readUshort:(c,u)=>c[u]<<8|c[u+1],writeUshort(c,u,l){c[u]=l>>8&255,c[u+1]=255&l},readUint:(c,u)=>16777216*c[u]+(c[u+1]<<16|c[u+2]<<8|c[u+3]),writeUint(c,u,l){c[u]=l>>24&255,c[u+1]=l>>16&255,c[u+2]=l>>8&255,c[u+3]=255&l},readASCII(c,u,l){let d="";for(let m=0;m<l;m++)d+=String.fromCharCode(c[u+m]);return d},writeASCII(c,u,l){for(let d=0;d<l.length;d++)c[u+d]=l.charCodeAt(d)},readBytes(c,u,l){const d=[];for(let m=0;m<l;m++)d.push(c[u+m]);return d},pad:c=>c.length<2?`0${c}`:c,readUTF8(c,u,l){let d,m="";for(let b=0;b<l;b++)m+=`%${e.pad(c[u+b].toString(16))}`;try{d=decodeURIComponent(m)}catch{return e.readASCII(c,u,l)}return d}};function o(c,u,l,d){const m=u*l,b=i(d),_=Math.ceil(u*b/8),S=new Uint8Array(4*m),F=new Uint32Array(S.buffer),{ctype:T}=d,{depth:k}=d,I=e.readUshort;if(T==6){const M=m<<2;if(k==8)for(var x=0;x<M;x+=4)S[x]=c[x],S[x+1]=c[x+1],S[x+2]=c[x+2],S[x+3]=c[x+3];if(k==16)for(x=0;x<M;x++)S[x]=c[x<<1]}else if(T==2){const M=d.tabs.tRNS;if(M==null){if(k==8)for(x=0;x<m;x++){var O=3*x;F[x]=255<<24|c[O+2]<<16|c[O+1]<<8|c[O]}if(k==16)for(x=0;x<m;x++)O=6*x,F[x]=255<<24|c[O+4]<<16|c[O+2]<<8|c[O]}else{var g=M[0];const z=M[1],Y=M[2];if(k==8)for(x=0;x<m;x++){var y=x<<2;O=3*x,F[x]=255<<24|c[O+2]<<16|c[O+1]<<8|c[O],c[O]==g&&c[O+1]==z&&c[O+2]==Y&&(S[y+3]=0)}if(k==16)for(x=0;x<m;x++)y=x<<2,O=6*x,F[x]=255<<24|c[O+4]<<16|c[O+2]<<8|c[O],I(c,O)==g&&I(c,O+2)==z&&I(c,O+4)==Y&&(S[y+3]=0)}}else if(T==3){const M=d.tabs.PLTE,z=d.tabs.tRNS,Y=z?z.length:0;if(k==1)for(var C=0;C<l;C++){var E=C*_,A=C*u;for(x=0;x<u;x++){y=A+x<<2;var R=3*(w=c[E+(x>>3)]>>7-((7&x)<<0)&1);S[y]=M[R],S[y+1]=M[R+1],S[y+2]=M[R+2],S[y+3]=w<Y?z[w]:255}}if(k==2)for(C=0;C<l;C++)for(E=C*_,A=C*u,x=0;x<u;x++)y=A+x<<2,R=3*(w=c[E+(x>>2)]>>6-((3&x)<<1)&3),S[y]=M[R],S[y+1]=M[R+1],S[y+2]=M[R+2],S[y+3]=w<Y?z[w]:255;if(k==4)for(C=0;C<l;C++)for(E=C*_,A=C*u,x=0;x<u;x++)y=A+x<<2,R=3*(w=c[E+(x>>1)]>>4-((1&x)<<2)&15),S[y]=M[R],S[y+1]=M[R+1],S[y+2]=M[R+2],S[y+3]=w<Y?z[w]:255;if(k==8)for(x=0;x<m;x++){var w;y=x<<2,R=3*(w=c[x]),S[y]=M[R],S[y+1]=M[R+1],S[y+2]=M[R+2],S[y+3]=w<Y?z[w]:255}}else if(T==4){if(k==8)for(x=0;x<m;x++){y=x<<2;var P=c[v=x<<1];S[y]=P,S[y+1]=P,S[y+2]=P,S[y+3]=c[v+1]}if(k==16)for(x=0;x<m;x++){var v;y=x<<2,P=c[v=x<<2],S[y]=P,S[y+1]=P,S[y+2]=P,S[y+3]=c[v+2]}}else if(T==0)for(g=d.tabs.tRNS?d.tabs.tRNS:-1,C=0;C<l;C++){const M=C*_,z=C*u;if(k==1)for(var h=0;h<u;h++){var $=(P=255*(c[M+(h>>>3)]>>>7-(7&h)&1))==255*g?0:255;F[z+h]=$<<24|P<<16|P<<8|P}else if(k==2)for(h=0;h<u;h++)$=(P=85*(c[M+(h>>>2)]>>>6-((3&h)<<1)&3))==85*g?0:255,F[z+h]=$<<24|P<<16|P<<8|P;else if(k==4)for(h=0;h<u;h++)$=(P=17*(c[M+(h>>>1)]>>>4-((1&h)<<2)&15))==17*g?0:255,F[z+h]=$<<24|P<<16|P<<8|P;else if(k==8)for(h=0;h<u;h++)$=(P=c[M+h])==g?0:255,F[z+h]=$<<24|P<<16|P<<8|P;else if(k==16)for(h=0;h<u;h++)P=c[M+(h<<1)],$=I(c,M+(h<<1))==g?0:255,F[z+h]=$<<24|P<<16|P<<8|P}return S}function t(c,u,l,d){const m=i(c),b=Math.ceil(l*m/8),_=new Uint8Array((b+1+c.interlace)*d);return u=c.tabs.CgBI?r(u,_):n(u,_),c.interlace==0?u=a(u,c,0,l,d):c.interlace==1&&(u=function(F,T){const k=T.width,I=T.height,x=i(T),O=x>>3,g=Math.ceil(k*x/8),y=new Uint8Array(I*g);let C=0;const E=[0,0,4,0,2,0,1],A=[0,4,0,2,0,1,0],R=[8,8,8,4,4,2,2],w=[8,8,4,4,2,2,1];let P=0;for(;P<7;){const h=R[P],$=w[P];let M=0,z=0,Y=E[P];for(;Y<I;)Y+=h,z++;let j=A[P];for(;j<k;)j+=$,M++;const W=Math.ceil(M*x/8);a(F,T,C,M,z);let D=0,L=E[P];for(;L<I;){let Z=A[P],ie=C+D*W<<3;for(;Z<k;){var v;if(x==1&&(v=(v=F[ie>>3])>>7-(7&ie)&1,y[L*g+(Z>>3)]|=v<<7-((7&Z)<<0)),x==2&&(v=(v=F[ie>>3])>>6-(7&ie)&3,y[L*g+(Z>>2)]|=v<<6-((3&Z)<<1)),x==4&&(v=(v=F[ie>>3])>>4-(7&ie)&15,y[L*g+(Z>>1)]|=v<<4-((1&Z)<<2)),x>=8){const ne=L*g+Z*O;for(let te=0;te<O;te++)y[ne+te]=F[(ie>>3)+te]}ie+=x,Z+=$}D++,L+=h}M*z!=0&&(C+=z*(1+W)),P+=1}return y}(u,c)),u}function n(c,u){return r(new Uint8Array(c.buffer,2,c.length-6),u)}var r=function(){const c={H:{}};return c.H.N=function(u,l){const d=Uint8Array;let m,b,_=0,S=0,F=0,T=0,k=0,I=0,x=0,O=0,g=0;if(u[0]==3&&u[1]==0)return l||new d(0);const y=c.H,C=y.b,E=y.e,A=y.R,R=y.n,w=y.A,P=y.Z,v=y.m,h=l==null;for(h&&(l=new d(u.length>>>2<<5));_==0;)if(_=C(u,g,1),S=C(u,g+1,2),g+=3,S!=0){if(h&&(l=c.H.W(l,O+(1<<17))),S==1&&(m=v.J,b=v.h,I=511,x=31),S==2){F=E(u,g,5)+257,T=E(u,g+5,5)+1,k=E(u,g+10,4)+4,g+=14;let M=1;for(var $=0;$<38;$+=2)v.Q[$]=0,v.Q[$+1]=0;for($=0;$<k;$++){const j=E(u,g+3*$,3);v.Q[1+(v.X[$]<<1)]=j,j>M&&(M=j)}g+=3*k,R(v.Q,M),w(v.Q,M,v.u),m=v.w,b=v.d,g=A(v.u,(1<<M)-1,F+T,u,g,v.v);const z=y.V(v.v,0,F,v.C);I=(1<<z)-1;const Y=y.V(v.v,F,T,v.D);x=(1<<Y)-1,R(v.C,z),w(v.C,z,m),R(v.D,Y),w(v.D,Y,b)}for(;;){const M=m[P(u,g)&I];g+=15&M;const z=M>>>4;if(!(z>>>8))l[O++]=z;else{if(z==256)break;{let Y=O+z-254;if(z>264){const Z=v.q[z-257];Y=O+(Z>>>3)+E(u,g,7&Z),g+=7&Z}const j=b[P(u,g)&x];g+=15&j;const W=j>>>4,D=v.c[W],L=(D>>>4)+C(u,g,15&D);for(g+=15&D;O<Y;)l[O]=l[O++-L],l[O]=l[O++-L],l[O]=l[O++-L],l[O]=l[O++-L];O=Y}}}}else{7&g&&(g+=8-(7&g));const M=4+(g>>>3),z=u[M-4]|u[M-3]<<8;h&&(l=c.H.W(l,O+z)),l.set(new d(u.buffer,u.byteOffset+M,z),O),g=M+z<<3,O+=z}return l.length==O?l:l.slice(0,O)},c.H.W=function(u,l){const d=u.length;if(l<=d)return u;const m=new Uint8Array(d<<1);return m.set(u,0),m},c.H.R=function(u,l,d,m,b,_){const S=c.H.e,F=c.H.Z;let T=0;for(;T<d;){const k=u[F(m,b)&l];b+=15&k;const I=k>>>4;if(I<=15)_[T]=I,T++;else{let x=0,O=0;I==16?(O=3+S(m,b,2),b+=2,x=_[T-1]):I==17?(O=3+S(m,b,3),b+=3):I==18&&(O=11+S(m,b,7),b+=7);const g=T+O;for(;T<g;)_[T]=x,T++}}return b},c.H.V=function(u,l,d,m){let b=0,_=0;const S=m.length>>>1;for(;_<d;){const F=u[_+l];m[_<<1]=0,m[1+(_<<1)]=F,F>b&&(b=F),_++}for(;_<S;)m[_<<1]=0,m[1+(_<<1)]=0,_++;return b},c.H.n=function(u,l){const d=c.H.m,m=u.length;let b,_,S,F;const T=d.j;for(var k=0;k<=l;k++)T[k]=0;for(k=1;k<m;k+=2)T[u[k]]++;const I=d.K;for(b=0,T[0]=0,_=1;_<=l;_++)b=b+T[_-1]<<1,I[_]=b;for(S=0;S<m;S+=2)F=u[S+1],F!=0&&(u[S]=I[F],I[F]++)},c.H.A=function(u,l,d){const m=u.length,b=c.H.m.r;for(let _=0;_<m;_+=2)if(u[_+1]!=0){const S=_>>1,F=u[_+1],T=S<<4|F,k=l-F;let I=u[_]<<k;const x=I+(1<<k);for(;I!=x;)d[b[I]>>>15-l]=T,I++}},c.H.l=function(u,l){const d=c.H.m.r,m=15-l;for(let b=0;b<u.length;b+=2){const _=u[b]<<l-u[b+1];u[b]=d[_]>>>m}},c.H.M=function(u,l,d){d<<=7&l;const m=l>>>3;u[m]|=d,u[m+1]|=d>>>8},c.H.I=function(u,l,d){d<<=7&l;const m=l>>>3;u[m]|=d,u[m+1]|=d>>>8,u[m+2]|=d>>>16},c.H.e=function(u,l,d){return(u[l>>>3]|u[1+(l>>>3)]<<8)>>>(7&l)&(1<<d)-1},c.H.b=function(u,l,d){return(u[l>>>3]|u[1+(l>>>3)]<<8|u[2+(l>>>3)]<<16)>>>(7&l)&(1<<d)-1},c.H.Z=function(u,l){return(u[l>>>3]|u[1+(l>>>3)]<<8|u[2+(l>>>3)]<<16)>>>(7&l)},c.H.i=function(u,l){return(u[l>>>3]|u[1+(l>>>3)]<<8|u[2+(l>>>3)]<<16|u[3+(l>>>3)]<<24)>>>(7&l)},c.H.m=function(){const u=Uint16Array,l=Uint32Array;return{K:new u(16),j:new u(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new u(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new l(32),J:new u(512),_:[],h:new u(32),$:[],w:new u(32768),C:[],v:[],d:new u(32768),D:[],u:new u(512),Q:[],r:new u(32768),s:new l(286),Y:new l(30),a:new l(19),t:new l(15e3),k:new u(65536),g:new u(32768)}}(),function(){const u=c.H.m;for(var l=0;l<32768;l++){let m=l;m=(2863311530&m)>>>1|(1431655765&m)<<1,m=(3435973836&m)>>>2|(858993459&m)<<2,m=(4042322160&m)>>>4|(252645135&m)<<4,m=(4278255360&m)>>>8|(16711935&m)<<8,u.r[l]=(m>>>16|m<<16)>>>17}function d(m,b,_){for(;b--!=0;)m.push(0,_)}for(l=0;l<32;l++)u.q[l]=u.S[l]<<3|u.T[l],u.c[l]=u.p[l]<<4|u.z[l];d(u._,144,8),d(u._,112,9),d(u._,24,7),d(u._,8,8),c.H.n(u._,9),c.H.A(u._,9,u.J),c.H.l(u._,9),d(u.$,32,5),c.H.n(u.$,5),c.H.A(u.$,5,u.h),c.H.l(u.$,5),d(u.Q,19,0),d(u.C,286,0),d(u.D,30,0),d(u.v,320,0)}(),c.H.N}();function i(c){return[1,null,3,1,2,null,4][c.ctype]*c.depth}function a(c,u,l,d,m){let b=i(u);const _=Math.ceil(d*b/8);let S,F;b=Math.ceil(b/8);let T=c[l],k=0;if(T>1&&(c[l]=[0,0,1][T-2]),T==3)for(k=b;k<_;k++)c[k+1]=c[k+1]+(c[k+1-b]>>>1)&255;for(let I=0;I<m;I++)if(S=l+I*_,F=S+I+1,T=c[F-1],k=0,T==0)for(;k<_;k++)c[S+k]=c[F+k];else if(T==1){for(;k<b;k++)c[S+k]=c[F+k];for(;k<_;k++)c[S+k]=c[F+k]+c[S+k-b]}else if(T==2)for(;k<_;k++)c[S+k]=c[F+k]+c[S+k-_];else if(T==3){for(;k<b;k++)c[S+k]=c[F+k]+(c[S+k-_]>>>1);for(;k<_;k++)c[S+k]=c[F+k]+(c[S+k-_]+c[S+k-b]>>>1)}else{for(;k<b;k++)c[S+k]=c[F+k]+s(0,c[S+k-_],0);for(;k<_;k++)c[S+k]=c[F+k]+s(c[S+k-b],c[S+k-_],c[S+k-b-_])}return c}function s(c,u,l){const d=c+u-l,m=d-c,b=d-u,_=d-l;return m*m<=b*b&&m*m<=_*_?c:b*b<=_*_?u:l}function f(c,u,l){l.width=e.readUint(c,u),u+=4,l.height=e.readUint(c,u),u+=4,l.depth=c[u],u++,l.ctype=c[u],u++,l.compress=c[u],u++,l.filter=c[u],u++,l.interlace=c[u],u++}function p(c,u,l,d,m,b,_,S,F){const T=Math.min(u,m),k=Math.min(l,b);let I=0,x=0;for(let P=0;P<k;P++)for(let v=0;v<T;v++)if(_>=0&&S>=0?(I=P*u+v<<2,x=(S+P)*m+_+v<<2):(I=(-S+P)*u-_+v<<2,x=P*m+v<<2),F==0)d[x]=c[I],d[x+1]=c[I+1],d[x+2]=c[I+2],d[x+3]=c[I+3];else if(F==1){var O=c[I+3]*.00392156862745098,g=c[I]*O,y=c[I+1]*O,C=c[I+2]*O,E=d[x+3]*(1/255),A=d[x]*E,R=d[x+1]*E,w=d[x+2]*E;const h=1-O,$=O+E*h,M=$==0?0:1/$;d[x+3]=255*$,d[x+0]=(g+A*h)*M,d[x+1]=(y+R*h)*M,d[x+2]=(C+w*h)*M}else if(F==2)O=c[I+3],g=c[I],y=c[I+1],C=c[I+2],E=d[x+3],A=d[x],R=d[x+1],w=d[x+2],O==E&&g==A&&y==R&&C==w?(d[x]=0,d[x+1]=0,d[x+2]=0,d[x+3]=0):(d[x]=g,d[x+1]=y,d[x+2]=C,d[x+3]=O);else if(F==3){if(O=c[I+3],g=c[I],y=c[I+1],C=c[I+2],E=d[x+3],A=d[x],R=d[x+1],w=d[x+2],O==E&&g==A&&y==R&&C==w)continue;if(O<220&&E>20)return!1}return!0}return{decode:function(u){const l=new Uint8Array(u);let d=8;const m=e,b=m.readUshort,_=m.readUint,S={tabs:{},frames:[]},F=new Uint8Array(l.length);let T,k=0,I=0;const x=[137,80,78,71,13,10,26,10];for(var O=0;O<8;O++)if(l[O]!=x[O])throw"The input is not a PNG file!";for(;d<l.length;){const P=m.readUint(l,d);d+=4;const v=m.readASCII(l,d,4);if(d+=4,v=="IHDR")f(l,d,S);else if(v=="iCCP"){for(var g=d;l[g]!=0;)g++;m.readASCII(l,d,g-d),l[g+1];const h=l.slice(g+2,d+P);let $=null;try{$=n(h)}catch{$=r(h)}S.tabs[v]=$}else if(v=="CgBI")S.tabs[v]=l.slice(d,d+4);else if(v=="IDAT"){for(O=0;O<P;O++)F[k+O]=l[d+O];k+=P}else if(v=="acTL")S.tabs[v]={num_frames:_(l,d),num_plays:_(l,d+4)},T=new Uint8Array(l.length);else if(v=="fcTL"){I!=0&&((w=S.frames[S.frames.length-1]).data=t(S,T.slice(0,I),w.rect.width,w.rect.height),I=0);const h={x:_(l,d+12),y:_(l,d+16),width:_(l,d+4),height:_(l,d+8)};let $=b(l,d+22);$=b(l,d+20)/($==0?100:$);const M={rect:h,delay:Math.round(1e3*$),dispose:l[d+24],blend:l[d+25]};S.frames.push(M)}else if(v=="fdAT"){for(O=0;O<P-4;O++)T[I+O]=l[d+O+4];I+=P-4}else if(v=="pHYs")S.tabs[v]=[m.readUint(l,d),m.readUint(l,d+4),l[d+8]];else if(v=="cHRM")for(S.tabs[v]=[],O=0;O<8;O++)S.tabs[v].push(m.readUint(l,d+4*O));else if(v=="tEXt"||v=="zTXt"){S.tabs[v]==null&&(S.tabs[v]={});var y=m.nextZero(l,d),C=m.readASCII(l,d,y-d),E=d+P-y-1;if(v=="tEXt")R=m.readASCII(l,y+1,E);else{var A=n(l.slice(y+2,y+2+E));R=m.readUTF8(A,0,A.length)}S.tabs[v][C]=R}else if(v=="iTXt"){S.tabs[v]==null&&(S.tabs[v]={}),y=0,g=d,y=m.nextZero(l,g),C=m.readASCII(l,g,y-g);const h=l[g=y+1];var R;l[g+1],g+=2,y=m.nextZero(l,g),m.readASCII(l,g,y-g),g=y+1,y=m.nextZero(l,g),m.readUTF8(l,g,y-g),E=P-((g=y+1)-d),h==0?R=m.readUTF8(l,g,E):(A=n(l.slice(g,g+E)),R=m.readUTF8(A,0,A.length)),S.tabs[v][C]=R}else if(v=="PLTE")S.tabs[v]=m.readBytes(l,d,P);else if(v=="hIST"){const h=S.tabs.PLTE.length/3;for(S.tabs[v]=[],O=0;O<h;O++)S.tabs[v].push(b(l,d+2*O))}else if(v=="tRNS")S.ctype==3?S.tabs[v]=m.readBytes(l,d,P):S.ctype==0?S.tabs[v]=b(l,d):S.ctype==2&&(S.tabs[v]=[b(l,d),b(l,d+2),b(l,d+4)]);else if(v=="gAMA")S.tabs[v]=m.readUint(l,d)/1e5;else if(v=="sRGB")S.tabs[v]=l[d];else if(v=="bKGD")S.ctype==0||S.ctype==4?S.tabs[v]=[b(l,d)]:S.ctype==2||S.ctype==6?S.tabs[v]=[b(l,d),b(l,d+2),b(l,d+4)]:S.ctype==3&&(S.tabs[v]=l[d]);else if(v=="IEND")break;d+=P,m.readUint(l,d),d+=4}var w;return I!=0&&((w=S.frames[S.frames.length-1]).data=t(S,T.slice(0,I),w.rect.width,w.rect.height)),S.data=t(S,F,S.width,S.height),delete S.compress,delete S.interlace,delete S.filter,S},toRGBA8:function(u){const l=u.width,d=u.height;if(u.tabs.acTL==null)return[o(u.data,l,d,u).buffer];const m=[];u.frames[0].data==null&&(u.frames[0].data=u.data);const b=l*d*4,_=new Uint8Array(b),S=new Uint8Array(b),F=new Uint8Array(b);for(let k=0;k<u.frames.length;k++){const I=u.frames[k],x=I.rect.x,O=I.rect.y,g=I.rect.width,y=I.rect.height,C=o(I.data,g,y,u);if(k!=0)for(var T=0;T<b;T++)F[T]=_[T];if(I.blend==0?p(C,g,y,_,l,d,x,O,0):I.blend==1&&p(C,g,y,_,l,d,x,O,1),m.push(_.buffer.slice(0)),I.dispose!=0){if(I.dispose==1)p(S,g,y,_,l,d,x,O,0);else if(I.dispose==2)for(T=0;T<b;T++)_[T]=F[T]}}return m},_paeth:s,_copyTile:p,_bin:e}}();(function(){const{_copyTile:e}=Ye,{_bin:o}=Ye,t=Ye._paeth;var n={table:function(){const g=new Uint32Array(256);for(let y=0;y<256;y++){let C=y;for(let E=0;E<8;E++)1&C?C=3988292384^C>>>1:C>>>=1;g[y]=C}return g}(),update(g,y,C,E){for(let A=0;A<E;A++)g=n.table[255&(g^y[C+A])]^g>>>8;return g},crc:(g,y,C)=>4294967295^n.update(4294967295,g,y,C)};function r(g,y,C,E){y[C]+=g[0]*E>>4,y[C+1]+=g[1]*E>>4,y[C+2]+=g[2]*E>>4,y[C+3]+=g[3]*E>>4}function i(g){return Math.max(0,Math.min(255,g))}function a(g,y){const C=g[0]-y[0],E=g[1]-y[1],A=g[2]-y[2],R=g[3]-y[3];return C*C+E*E+A*A+R*R}function s(g,y,C,E,A,R,w){w==null&&(w=1);const P=E.length,v=[];for(var h=0;h<P;h++){const L=E[h];v.push([L>>>0&255,L>>>8&255,L>>>16&255,L>>>24&255])}for(h=0;h<P;h++){let L=4294967295;for(var $=0,M=0;M<P;M++){var z=a(v[h],v[M]);M!=h&&z<L&&(L=z,$=M)}}const Y=new Uint32Array(A.buffer),j=new Int16Array(y*C*4),W=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(h=0;h<W.length;h++)W[h]=255*((W[h]+.5)/16-.5);for(let L=0;L<C;L++)for(let Z=0;Z<y;Z++){var D;h=4*(L*y+Z),w!=2?D=[i(g[h]+j[h]),i(g[h+1]+j[h+1]),i(g[h+2]+j[h+2]),i(g[h+3]+j[h+3])]:(z=W[4*(3&L)+(3&Z)],D=[i(g[h]+z),i(g[h+1]+z),i(g[h+2]+z),i(g[h+3]+z)]),$=0;let ie=16777215;for(M=0;M<P;M++){const ae=a(D,v[M]);ae<ie&&(ie=ae,$=M)}const ne=v[$],te=[D[0]-ne[0],D[1]-ne[1],D[2]-ne[2],D[3]-ne[3]];w==1&&(Z!=y-1&&r(te,j,h+4,7),L!=C-1&&(Z!=0&&r(te,j,h+4*y-4,3),r(te,j,h+4*y,5),Z!=y-1&&r(te,j,h+4*y+4,1))),R[h>>2]=$,Y[h>>2]=E[$]}}function f(g,y,C,E,A){A==null&&(A={});const{crc:R}=n,w=o.writeUint,P=o.writeUshort,v=o.writeASCII;let h=8;const $=g.frames.length>1;let M,z=!1,Y=33+($?20:0);if(A.sRGB!=null&&(Y+=13),A.pHYs!=null&&(Y+=21),A.iCCP!=null&&(M=pako.deflate(A.iCCP),Y+=21+M.length+4),g.ctype==3){for(var j=g.plte.length,W=0;W<j;W++)g.plte[W]>>>24!=255&&(z=!0);Y+=8+3*j+4+(z?8+1*j+4:0)}for(var D=0;D<g.frames.length;D++)$&&(Y+=38),Y+=(ne=g.frames[D]).cimg.length+12,D!=0&&(Y+=4);Y+=12;const L=new Uint8Array(Y),Z=[137,80,78,71,13,10,26,10];for(W=0;W<8;W++)L[W]=Z[W];if(w(L,h,13),h+=4,v(L,h,"IHDR"),h+=4,w(L,h,y),h+=4,w(L,h,C),h+=4,L[h]=g.depth,h++,L[h]=g.ctype,h++,L[h]=0,h++,L[h]=0,h++,L[h]=0,h++,w(L,h,R(L,h-17,17)),h+=4,A.sRGB!=null&&(w(L,h,1),h+=4,v(L,h,"sRGB"),h+=4,L[h]=A.sRGB,h++,w(L,h,R(L,h-5,5)),h+=4),A.iCCP!=null){const te=13+M.length;w(L,h,te),h+=4,v(L,h,"iCCP"),h+=4,v(L,h,"ICC profile"),h+=11,h+=2,L.set(M,h),h+=M.length,w(L,h,R(L,h-(te+4),te+4)),h+=4}if(A.pHYs!=null&&(w(L,h,9),h+=4,v(L,h,"pHYs"),h+=4,w(L,h,A.pHYs[0]),h+=4,w(L,h,A.pHYs[1]),h+=4,L[h]=A.pHYs[2],h++,w(L,h,R(L,h-13,13)),h+=4),$&&(w(L,h,8),h+=4,v(L,h,"acTL"),h+=4,w(L,h,g.frames.length),h+=4,w(L,h,A.loop!=null?A.loop:0),h+=4,w(L,h,R(L,h-12,12)),h+=4),g.ctype==3){for(w(L,h,3*(j=g.plte.length)),h+=4,v(L,h,"PLTE"),h+=4,W=0;W<j;W++){const te=3*W,ae=g.plte[W],de=255&ae,he=ae>>>8&255,ge=ae>>>16&255;L[h+te+0]=de,L[h+te+1]=he,L[h+te+2]=ge}if(h+=3*j,w(L,h,R(L,h-3*j-4,3*j+4)),h+=4,z){for(w(L,h,j),h+=4,v(L,h,"tRNS"),h+=4,W=0;W<j;W++)L[h+W]=g.plte[W]>>>24&255;h+=j,w(L,h,R(L,h-j-4,j+4)),h+=4}}let ie=0;for(D=0;D<g.frames.length;D++){var ne=g.frames[D];$&&(w(L,h,26),h+=4,v(L,h,"fcTL"),h+=4,w(L,h,ie++),h+=4,w(L,h,ne.rect.width),h+=4,w(L,h,ne.rect.height),h+=4,w(L,h,ne.rect.x),h+=4,w(L,h,ne.rect.y),h+=4,P(L,h,E[D]),h+=2,P(L,h,1e3),h+=2,L[h]=ne.dispose,h++,L[h]=ne.blend,h++,w(L,h,R(L,h-30,30)),h+=4);const te=ne.cimg;w(L,h,(j=te.length)+(D==0?0:4)),h+=4;const ae=h;v(L,h,D==0?"IDAT":"fdAT"),h+=4,D!=0&&(w(L,h,ie++),h+=4),L.set(te,h),h+=j,w(L,h,R(L,ae,h-ae)),h+=4}return w(L,h,0),h+=4,v(L,h,"IEND"),h+=4,w(L,h,R(L,h-4,4)),h+=4,L.buffer}function p(g,y,C){for(let E=0;E<g.frames.length;E++){const A=g.frames[E];A.rect.width;const R=A.rect.height,w=new Uint8Array(R*A.bpl+R);A.cimg=d(A.img,R,A.bpp,A.bpl,w,y,C)}}function c(g,y,C,E,A){const R=A[0],w=A[1],P=A[2],v=A[3],h=A[4],$=A[5];let M=6,z=8,Y=255;for(var j=0;j<g.length;j++){const ue=new Uint8Array(g[j]);for(var W=ue.length,D=0;D<W;D+=4)Y&=ue[D+3]}const L=Y!=255,Z=function(se,oe,ye,le,pe,_e){const q=[];for(var V=0;V<se.length;V++){const K=new Uint8Array(se[V]),Q=new Uint32Array(K.buffer);var fe;let J=0,ee=0,xe=oe,Pe=ye,ce=le?1:0;if(V!=0){const Me=_e||le||V==1||q[V-2].dispose!=0?1:2;let Ze=0,Pt=1e9;for(let st=0;st<Me;st++){var be=new Uint8Array(se[V-1-st]);const Wt=new Uint32Array(se[V-1-st]);let De=oe,ze=ye,tt=-1,nt=-1;for(let Ke=0;Ke<ye;Ke++)for(let Ge=0;Ge<oe;Ge++)Q[N=Ke*oe+Ge]!=Wt[N]&&(Ge<De&&(De=Ge),Ge>tt&&(tt=Ge),Ke<ze&&(ze=Ke),Ke>nt&&(nt=Ke));tt==-1&&(De=ze=tt=nt=0),pe&&((1&De)==1&&De--,(1&ze)==1&&ze--);const Vt=(tt-De+1)*(nt-ze+1);Vt<Pt&&(Pt=Vt,Ze=st,J=De,ee=ze,xe=tt-De+1,Pe=nt-ze+1)}be=new Uint8Array(se[V-1-Ze]),Ze==1&&(q[V-1].dispose=2),fe=new Uint8Array(xe*Pe*4),e(be,oe,ye,fe,xe,Pe,-J,-ee,0),ce=e(K,oe,ye,fe,xe,Pe,-J,-ee,3)?1:0,ce==1?l(K,oe,ye,fe,{x:J,y:ee,width:xe,height:Pe}):e(K,oe,ye,fe,xe,Pe,-J,-ee,0)}else fe=K.slice(0);q.push({rect:{x:J,y:ee,width:xe,height:Pe},img:fe,blend:ce,dispose:0})}if(le)for(V=0;V<q.length;V++){if((H=q[V]).blend==1)continue;const K=H.rect,Q=q[V-1].rect,J=Math.min(K.x,Q.x),ee=Math.min(K.y,Q.y),xe={x:J,y:ee,width:Math.max(K.x+K.width,Q.x+Q.width)-J,height:Math.max(K.y+K.height,Q.y+Q.height)-ee};q[V-1].dispose=1,V-1!=0&&u(se,oe,ye,q,V-1,xe,pe),u(se,oe,ye,q,V,xe,pe)}let Re=0;if(se.length!=1)for(var N=0;N<q.length;N++){var H;Re+=(H=q[N]).rect.width*H.rect.height}return q}(g,y,C,R,w,P),ie={},ne=[],te=[];if(E!=0){const ue=[];for(D=0;D<Z.length;D++)ue.push(Z[D].img.buffer);const se=function(pe){let _e=0;for(var q=0;q<pe.length;q++)_e+=pe[q].byteLength;const V=new Uint8Array(_e);let fe=0;for(q=0;q<pe.length;q++){const be=new Uint8Array(pe[q]),Re=be.length;for(let N=0;N<Re;N+=4){let H=be[N],K=be[N+1],Q=be[N+2];const J=be[N+3];J==0&&(H=K=Q=0),V[fe+N]=H,V[fe+N+1]=K,V[fe+N+2]=Q,V[fe+N+3]=J}fe+=Re}return V.buffer}(ue),oe=b(se,E);for(D=0;D<oe.plte.length;D++)ne.push(oe.plte[D].est.rgba);let ye=0;for(D=0;D<Z.length;D++){const le=(de=Z[D]).img.length;var ae=new Uint8Array(oe.inds.buffer,ye>>2,le>>2);te.push(ae);const pe=new Uint8Array(oe.abuf,ye,le);$&&s(de.img,de.rect.width,de.rect.height,ne,pe,ae),de.img.set(pe),ye+=le}}else for(j=0;j<Z.length;j++){var de=Z[j];const ue=new Uint32Array(de.img.buffer);var he=de.rect.width;for(W=ue.length,ae=new Uint8Array(W),te.push(ae),D=0;D<W;D++){const se=ue[D];if(D!=0&&se==ue[D-1])ae[D]=ae[D-1];else if(D>he&&se==ue[D-he])ae[D]=ae[D-he];else{let oe=ie[se];if(oe==null&&(ie[se]=oe=ne.length,ne.push(se),ne.length>=300))break;ae[D]=oe}}}const ge=ne.length;for(ge<=256&&h==0&&(z=ge<=2?1:ge<=4?2:ge<=16?4:8,z=Math.max(z,v)),j=0;j<Z.length;j++){(de=Z[j]).rect.x,de.rect.y,he=de.rect.width;const ue=de.rect.height;let se=de.img;new Uint32Array(se.buffer);let oe=4*he,ye=4;if(ge<=256&&h==0){oe=Math.ceil(z*he/8);var re=new Uint8Array(oe*ue);const le=te[j];for(let pe=0;pe<ue;pe++){D=pe*oe;const _e=pe*he;if(z==8)for(var X=0;X<he;X++)re[D+X]=le[_e+X];else if(z==4)for(X=0;X<he;X++)re[D+(X>>1)]|=le[_e+X]<<4-4*(1&X);else if(z==2)for(X=0;X<he;X++)re[D+(X>>2)]|=le[_e+X]<<6-2*(3&X);else if(z==1)for(X=0;X<he;X++)re[D+(X>>3)]|=le[_e+X]<<7-1*(7&X)}se=re,M=3,ye=1}else if(L==0&&Z.length==1){re=new Uint8Array(he*ue*3);const le=he*ue;for(D=0;D<le;D++){const pe=3*D,_e=4*D;re[pe]=se[_e],re[pe+1]=se[_e+1],re[pe+2]=se[_e+2]}se=re,M=2,ye=3,oe=3*he}de.img=se,de.bpl=oe,de.bpp=ye}return{ctype:M,depth:z,plte:ne,frames:Z}}function u(g,y,C,E,A,R,w){const P=Uint8Array,v=Uint32Array,h=new P(g[A-1]),$=new v(g[A-1]),M=A+1<g.length?new P(g[A+1]):null,z=new P(g[A]),Y=new v(z.buffer);let j=y,W=C,D=-1,L=-1;for(let ie=0;ie<R.height;ie++)for(let ne=0;ne<R.width;ne++){const te=R.x+ne,ae=R.y+ie,de=ae*y+te,he=Y[de];he==0||E[A-1].dispose==0&&$[de]==he&&(M==null||M[4*de+3]!=0)||(te<j&&(j=te),te>D&&(D=te),ae<W&&(W=ae),ae>L&&(L=ae))}D==-1&&(j=W=D=L=0),w&&((1&j)==1&&j--,(1&W)==1&&W--),R={x:j,y:W,width:D-j+1,height:L-W+1};const Z=E[A];Z.rect=R,Z.blend=1,Z.img=new Uint8Array(R.width*R.height*4),E[A-1].dispose==0?(e(h,y,C,Z.img,R.width,R.height,-R.x,-R.y,0),l(z,y,C,Z.img,R)):e(z,y,C,Z.img,R.width,R.height,-R.x,-R.y,0)}function l(g,y,C,E,A){e(g,y,C,E,A.width,A.height,-A.x,-A.y,2)}function d(g,y,C,E,A,R,w){const P=[];let v,h=[0,1,2,3,4];R!=-1?h=[R]:(y*E>5e5||C==1)&&(h=[0]),w&&(v={level:0});const $=Xu;for(var M=0;M<h.length;M++){for(let j=0;j<y;j++)m(A,g,j,E,C,h[M]);P.push($.deflate(A,v))}let z,Y=1e9;for(M=0;M<P.length;M++)P[M].length<Y&&(z=M,Y=P[M].length);return P[z]}function m(g,y,C,E,A,R){const w=C*E;let P=w+C;if(g[P]=R,P++,R==0)if(E<500)for(var v=0;v<E;v++)g[P+v]=y[w+v];else g.set(new Uint8Array(y.buffer,w,E),P);else if(R==1){for(v=0;v<A;v++)g[P+v]=y[w+v];for(v=A;v<E;v++)g[P+v]=y[w+v]-y[w+v-A]+256&255}else if(C==0){for(v=0;v<A;v++)g[P+v]=y[w+v];if(R==2)for(v=A;v<E;v++)g[P+v]=y[w+v];if(R==3)for(v=A;v<E;v++)g[P+v]=y[w+v]-(y[w+v-A]>>1)+256&255;if(R==4)for(v=A;v<E;v++)g[P+v]=y[w+v]-t(y[w+v-A],0,0)+256&255}else{if(R==2)for(v=0;v<E;v++)g[P+v]=y[w+v]+256-y[w+v-E]&255;if(R==3){for(v=0;v<A;v++)g[P+v]=y[w+v]+256-(y[w+v-E]>>1)&255;for(v=A;v<E;v++)g[P+v]=y[w+v]+256-(y[w+v-E]+y[w+v-A]>>1)&255}if(R==4){for(v=0;v<A;v++)g[P+v]=y[w+v]+256-t(0,y[w+v-E],0)&255;for(v=A;v<E;v++)g[P+v]=y[w+v]+256-t(y[w+v-A],y[w+v-E],y[w+v-A-E])&255}}}function b(g,y){const C=new Uint8Array(g),E=C.slice(0),A=new Uint32Array(E.buffer),R=_(E,y),w=R[0],P=R[1],v=C.length,h=new Uint8Array(v>>2);let $;if(C.length<2e7)for(var M=0;M<v;M+=4)$=S(w,z=C[M]*(1/255),Y=C[M+1]*(1/255),j=C[M+2]*(1/255),W=C[M+3]*(1/255)),h[M>>2]=$.ind,A[M>>2]=$.est.rgba;else for(M=0;M<v;M+=4){var z=C[M]*.00392156862745098,Y=C[M+1]*(1/255),j=C[M+2]*(1/255),W=C[M+3]*(1/255);for($=w;$.left;)$=F($.est,z,Y,j,W)<=0?$.left:$.right;h[M>>2]=$.ind,A[M>>2]=$.est.rgba}return{abuf:E.buffer,inds:h,plte:P}}function _(g,y,C){C==null&&(C=1e-4);const E=new Uint32Array(g.buffer),A={i0:0,i1:g.length,bst:null,est:null,tdst:0,left:null,right:null};A.bst=I(g,A.i0,A.i1),A.est=x(A.bst);const R=[A];for(;R.length<y;){let P=0,v=0;for(var w=0;w<R.length;w++)R[w].est.L>P&&(P=R[w].est.L,v=w);if(P<C)break;const h=R[v],$=T(g,E,h.i0,h.i1,h.est.e,h.est.eMq255);if(h.i0>=$||h.i1<=$){h.est.L=0;continue}const M={i0:h.i0,i1:$,bst:null,est:null,tdst:0,left:null,right:null};M.bst=I(g,M.i0,M.i1),M.est=x(M.bst);const z={i0:$,i1:h.i1,bst:null,est:null,tdst:0,left:null,right:null};for(z.bst={R:[],m:[],N:h.bst.N-M.bst.N},w=0;w<16;w++)z.bst.R[w]=h.bst.R[w]-M.bst.R[w];for(w=0;w<4;w++)z.bst.m[w]=h.bst.m[w]-M.bst.m[w];z.est=x(z.bst),h.left=M,h.right=z,R[v]=M,R.push(z)}for(R.sort((P,v)=>v.bst.N-P.bst.N),w=0;w<R.length;w++)R[w].ind=w;return[A,R]}function S(g,y,C,E,A){if(g.left==null)return g.tdst=function(M,z,Y,j,W){const D=z-M[0],L=Y-M[1],Z=j-M[2],ie=W-M[3];return D*D+L*L+Z*Z+ie*ie}(g.est.q,y,C,E,A),g;const R=F(g.est,y,C,E,A);let w=g.left,P=g.right;R>0&&(w=g.right,P=g.left);const v=S(w,y,C,E,A);if(v.tdst<=R*R)return v;const h=S(P,y,C,E,A);return h.tdst<v.tdst?h:v}function F(g,y,C,E,A){const{e:R}=g;return R[0]*y+R[1]*C+R[2]*E+R[3]*A-g.eMq}function T(g,y,C,E,A,R){for(E-=4;C<E;){for(;k(g,C,A)<=R;)C+=4;for(;k(g,E,A)>R;)E-=4;if(C>=E)break;const w=y[C>>2];y[C>>2]=y[E>>2],y[E>>2]=w,C+=4,E-=4}for(;k(g,C,A)>R;)C-=4;return C+4}function k(g,y,C){return g[y]*C[0]+g[y+1]*C[1]+g[y+2]*C[2]+g[y+3]*C[3]}function I(g,y,C){const E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],A=[0,0,0,0],R=C-y>>2;for(let w=y;w<C;w+=4){const P=g[w]*.00392156862745098,v=g[w+1]*(1/255),h=g[w+2]*(1/255),$=g[w+3]*(1/255);A[0]+=P,A[1]+=v,A[2]+=h,A[3]+=$,E[0]+=P*P,E[1]+=P*v,E[2]+=P*h,E[3]+=P*$,E[5]+=v*v,E[6]+=v*h,E[7]+=v*$,E[10]+=h*h,E[11]+=h*$,E[15]+=$*$}return E[4]=E[1],E[8]=E[2],E[9]=E[6],E[12]=E[3],E[13]=E[7],E[14]=E[11],{R:E,m:A,N:R}}function x(g){const{R:y}=g,{m:C}=g,{N:E}=g,A=C[0],R=C[1],w=C[2],P=C[3],v=E==0?0:1/E,h=[y[0]-A*A*v,y[1]-A*R*v,y[2]-A*w*v,y[3]-A*P*v,y[4]-R*A*v,y[5]-R*R*v,y[6]-R*w*v,y[7]-R*P*v,y[8]-w*A*v,y[9]-w*R*v,y[10]-w*w*v,y[11]-w*P*v,y[12]-P*A*v,y[13]-P*R*v,y[14]-P*w*v,y[15]-P*P*v],$=h,M=O;let z=[Math.random(),Math.random(),Math.random(),Math.random()],Y=0,j=0;if(E!=0)for(let D=0;D<16&&(z=M.multVec($,z),j=Math.sqrt(M.dot(z,z)),z=M.sml(1/j,z),!(D!=0&&Math.abs(j-Y)<1e-9));D++)Y=j;const W=[A*v,R*v,w*v,P*v];return{Cov:h,q:W,e:z,L:Y,eMq255:M.dot(M.sml(255,W),z),eMq:M.dot(z,W),rgba:(Math.round(255*W[3])<<24|Math.round(255*W[2])<<16|Math.round(255*W[1])<<8|Math.round(255*W[0])<<0)>>>0}}var O={multVec:(g,y)=>[g[0]*y[0]+g[1]*y[1]+g[2]*y[2]+g[3]*y[3],g[4]*y[0]+g[5]*y[1]+g[6]*y[2]+g[7]*y[3],g[8]*y[0]+g[9]*y[1]+g[10]*y[2]+g[11]*y[3],g[12]*y[0]+g[13]*y[1]+g[14]*y[2]+g[15]*y[3]],dot:(g,y)=>g[0]*y[0]+g[1]*y[1]+g[2]*y[2]+g[3]*y[3],sml:(g,y)=>[g*y[0],g*y[1],g*y[2],g*y[3]]};Ye.encode=function(y,C,E,A,R,w,P){A==null&&(A=0),P==null&&(P=!1);const v=c(y,C,E,A,[!1,!1,!1,0,P,!1]);return p(v,-1),f(v,C,E,R,w)},Ye.encodeLL=function(y,C,E,A,R,w,P,v){const h={ctype:0+(A==1?0:2)+(R==0?0:4),depth:w,frames:[]},$=(A+R)*w,M=$*C;for(let z=0;z<y.length;z++)h.frames.push({rect:{x:0,y:0,width:C,height:E},img:new Uint8Array(y[z]),blend:0,dispose:1,bpp:Math.ceil($/8),bpl:Math.ceil(M/8)});return p(h,0,!0),f(h,C,E,P,v)},Ye.encode.compress=c,Ye.encode.dither=s,Ye.quantize=b,Ye.quantize.getKDtree=_,Ye.quantize.getNearest=S})();const ri={toArrayBuffer(e,o){const t=e.width,n=e.height,r=t<<2,i=e.getContext("2d").getImageData(0,0,t,n),a=new Uint32Array(i.data.buffer),s=(32*t+31)/32<<2,f=s*n,p=122+f,c=new ArrayBuffer(p),u=new DataView(c),l=1<<20;let d,m,b,_,S=l,F=0,T=0,k=0;function I(g){u.setUint16(T,g,!0),T+=2}function x(g){u.setUint32(T,g,!0),T+=4}function O(g){T+=g}I(19778),x(p),O(4),x(122),x(108),x(t),x(-n>>>0),I(1),I(32),x(3),x(f),x(2835),x(2835),O(8),x(16711680),x(65280),x(255),x(4278190080),x(1466527264),function g(){for(;F<n&&S>0;){for(_=122+F*s,d=0;d<r;)S--,m=a[k++],b=m>>>24,u.setUint32(_+d,m<<8|b),d+=4;F++}k<a.length?(S=l,setTimeout(g,ri._dly)):o(c)}()},toBlob(e,o){this.toArrayBuffer(e,t=>{o(new Blob([t],{type:"image/bmp"}))})},_dly:9};var Fe={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},Qu={[Fe.CHROME]:16384,[Fe.FIREFOX]:11180,[Fe.DESKTOP_SAFARI]:16384,[Fe.IE]:8192,[Fe.IOS]:4096,[Fe.ETC]:8192};const Mr=typeof window<"u",oi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,mn=Mr&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),Ju=(Mr||oi)&&(mn&&mn.getOriginalSymbol(window,"File")||typeof File<"u"&&File),ii=(Mr||oi)&&(mn&&mn.getOriginalSymbol(window,"FileReader")||typeof FileReader<"u"&&FileReader);function Ir(e,o,t=Date.now()){return new Promise(n=>{const r=e.split(","),i=r[0].match(/:(.*?);/)[1],a=globalThis.atob(r[1]);let s=a.length;const f=new Uint8Array(s);for(;s--;)f[s]=a.charCodeAt(s);const p=new Blob([f],{type:i});p.name=o,p.lastModified=t,n(p)})}function ai(e){return new Promise((o,t)=>{const n=new ii;n.onload=()=>o(n.result),n.onerror=r=>t(r),n.readAsDataURL(e)})}function si(e){return new Promise((o,t)=>{const n=new Image;n.onload=()=>o(n),n.onerror=r=>t(r),n.src=e})}function pt(){if(pt.cachedResult!==void 0)return pt.cachedResult;let e=Fe.ETC;const{userAgent:o}=navigator;return/Chrom(e|ium)/i.test(o)?e=Fe.CHROME:/iP(ad|od|hone)/i.test(o)&&/WebKit/i.test(o)?e=Fe.IOS:/Safari/i.test(o)?e=Fe.DESKTOP_SAFARI:/Firefox/i.test(o)?e=Fe.FIREFOX:(/MSIE/i.test(o)||document.documentMode)&&(e=Fe.IE),pt.cachedResult=e,pt.cachedResult}function li(e,o){const t=pt(),n=Qu[t];let r=e,i=o,a=r*i;const s=r>i?i/r:r/i;for(;a>n*n;){const f=(n+r)/2,p=(n+i)/2;f<p?(i=p,r=p*s):(i=f*s,r=f),a=r*i}return{width:r,height:i}}function zn(e,o){let t,n;try{if(t=new OffscreenCanvas(e,o),n=t.getContext("2d"),n===null)throw new Error("getContext of OffscreenCanvas returns null")}catch{t=document.createElement("canvas"),n=t.getContext("2d")}return t.width=e,t.height=o,[t,n]}function ci(e,o){const{width:t,height:n}=li(e.width,e.height),[r,i]=zn(t,n);return o&&/jpe?g/.test(o)&&(i.fillStyle="white",i.fillRect(0,0,r.width,r.height)),i.drawImage(e,0,0,r.width,r.height),r}function ln(){return ln.cachedResult!==void 0||(ln.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&typeof document<"u"&&"ontouchend"in document),ln.cachedResult}function gn(e,o={}){return new Promise(function(t,n){let r,i;var a=function(){try{return i=ci(r,o.fileType||e.type),t([r,i])}catch(f){return n(f)}},s=function(f){try{var p=function(c){try{throw c}catch(u){return n(u)}};try{let c;return ai(e).then(function(u){try{return c=u,si(c).then(function(l){try{return r=l,function(){try{return a()}catch(d){return n(d)}}()}catch(d){return p(d)}},p)}catch(l){return p(l)}},p)}catch(c){p(c)}}catch(c){return n(c)}};try{if(ln()||[Fe.DESKTOP_SAFARI,Fe.MOBILE_SAFARI].includes(pt()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(f){try{return r=f,a()}catch{return s()}},s)}catch{s()}})}function vn(e,o,t,n,r=1){return new Promise(function(i,a){let s;if(o==="image/png"){let p,c,u;return p=e.getContext("2d"),{data:c}=p.getImageData(0,0,e.width,e.height),u=Ye.encode([c.buffer],e.width,e.height,4096*r),s=new Blob([u],{type:o}),s.name=t,s.lastModified=n,f.call(this)}{let p=function(){return f.call(this)};if(o==="image/bmp")return new Promise(c=>ri.toBlob(e,c)).then((function(c){try{return s=c,s.name=t,s.lastModified=n,p.call(this)}catch(u){return a(u)}}).bind(this),a);{let c=function(){return p.call(this)};if(typeof OffscreenCanvas=="function"&&e instanceof OffscreenCanvas)return e.convertToBlob({type:o,quality:r}).then((function(u){try{return s=u,s.name=t,s.lastModified=n,c.call(this)}catch(l){return a(l)}}).bind(this),a);{let u;return u=e.toDataURL(o,r),Ir(u,t,n).then((function(l){try{return s=l,c.call(this)}catch(d){return a(d)}}).bind(this),a)}}}function f(){return i(s)}})}function Qe(e){e.width=0,e.height=0}function Ct(){return new Promise(function(e,o){let t,n,r,i;return Ct.cachedResult!==void 0?e(Ct.cachedResult):Ir("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return t=a,gn(t).then(function(s){try{return n=s[1],vn(n,t.type,t.name,t.lastModified).then(function(f){try{return r=f,Qe(n),gn(r).then(function(p){try{return i=p[0],Ct.cachedResult=i.width===1&&i.height===2,e(Ct.cachedResult)}catch(c){return o(c)}},o)}catch(p){return o(p)}},o)}catch(f){return o(f)}},o)}catch(s){return o(s)}},o)})}function ui(e){return new Promise((o,t)=>{const n=new ii;n.onload=r=>{const i=new DataView(r.target.result);if(i.getUint16(0,!1)!=65496)return o(-2);const a=i.byteLength;let s=2;for(;s<a;){if(i.getUint16(s+2,!1)<=8)return o(-1);const f=i.getUint16(s,!1);if(s+=2,f==65505){if(i.getUint32(s+=2,!1)!=1165519206)return o(-1);const p=i.getUint16(s+=6,!1)==18761;s+=i.getUint32(s+4,p);const c=i.getUint16(s,p);s+=2;for(let u=0;u<c;u++)if(i.getUint16(s+12*u,p)==274)return o(i.getUint16(s+12*u+8,p))}else{if((65280&f)!=65280)break;s+=i.getUint16(s,!1)}}return o(-1)},n.onerror=r=>t(r),n.readAsArrayBuffer(e)})}function fi(e,o){const{width:t}=e,{height:n}=e,{maxWidthOrHeight:r}=o;let i,a=e;return isFinite(r)&&(t>r||n>r)&&([a,i]=zn(t,n),t>n?(a.width=r,a.height=n/t*r):(a.width=t/n*r,a.height=r),i.drawImage(e,0,0,a.width,a.height),Qe(e)),a}function di(e,o){const{width:t}=e,{height:n}=e,[r,i]=zn(t,n);switch(o>4&&o<9?(r.width=n,r.height=t):(r.width=t,r.height=n),o){case 2:i.transform(-1,0,0,1,t,0);break;case 3:i.transform(-1,0,0,-1,t,n);break;case 4:i.transform(1,0,0,-1,0,n);break;case 5:i.transform(0,1,1,0,0,0);break;case 6:i.transform(0,1,-1,0,n,0);break;case 7:i.transform(0,-1,-1,0,n,t);break;case 8:i.transform(0,-1,1,0,0,t)}return i.drawImage(e,0,0,t,n),Qe(e),r}function xo(e,o,t=0){return new Promise(function(n,r){let i,a,s,f,p,c,u,l,d,m,b,_,S,F,T,k,I,x,O,g;function y(E=5){if(o.signal&&o.signal.aborted)throw o.signal.reason;i+=E,o.onProgress(Math.min(i,100))}function C(E){if(o.signal&&o.signal.aborted)throw o.signal.reason;i=Math.min(Math.max(E,i),100),o.onProgress(i)}return i=t,a=o.maxIteration||10,s=1024*o.maxSizeMB*1024,y(),gn(e,o).then((function(E){try{return[,f]=E,y(),p=fi(f,o),y(),new Promise(function(A,R){var w;if(!(w=o.exifOrientation))return ui(e).then((function(v){try{return w=v,P.call(this)}catch(h){return R(h)}}).bind(this),R);function P(){return A(w)}return P.call(this)}).then((function(A){try{return c=A,y(),Ct().then((function(R){try{return u=R?p:di(p,c),y(),l=o.initialQuality||1,d=o.fileType||e.type,vn(u,d,e.name,e.lastModified,l).then((function(w){try{{let v=function(){if(a--&&(T>s||T>S)){let $,M;return $=g?.95*O.width:O.width,M=g?.95*O.height:O.height,[I,x]=zn($,M),x.drawImage(O,0,0,$,M),l*=d==="image/png"?.85:.95,vn(I,d,e.name,e.lastModified,l).then(function(z){try{return k=z,Qe(O),O=I,T=k.size,C(Math.min(99,Math.floor((F-T)/(F-s)*100))),v}catch(Y){return r(Y)}},r)}return[1]},h=function(){return Qe(O),Qe(I),Qe(p),Qe(u),Qe(f),C(100),n(k)};if(m=w,y(),b=m.size>s,_=m.size>e.size,!b&&!_)return C(100),n(m);var P;return S=e.size,F=m.size,T=F,O=u,g=!o.alwaysKeepResolution&&b,(P=(function($){for(;$;){if($.then)return void $.then(P,r);try{if($.pop){if($.length)return $.pop()?h.call(this):$;$=v}else $=$.call(this)}catch(M){return r(M)}}}).bind(this))(v)}}catch(v){return r(v)}}).bind(this),r)}catch(w){return r(w)}}).bind(this),r)}catch(R){return r(R)}}).bind(this),r)}catch(A){return r(A)}}).bind(this),r)})}const ef=`
109
+ let scriptImported = false
110
+ self.addEventListener('message', async (e) => {
111
+ const { file, id, imageCompressionLibUrl, options } = e.data
112
+ options.onProgress = (progress) => self.postMessage({ progress, id })
113
+ try {
114
+ if (!scriptImported) {
115
+ // console.log('[worker] importScripts', imageCompressionLibUrl)
116
+ self.importScripts(imageCompressionLibUrl)
117
+ scriptImported = true
118
+ }
119
+ // console.log('[worker] self', self)
120
+ const compressedFile = await imageCompression(file, options)
121
+ self.postMessage({ file: compressedFile, id })
122
+ } catch (e) {
123
+ // console.error('[worker] error', e)
124
+ self.postMessage({ error: e.message + '\\n' + e.stack, id })
125
+ }
126
+ })
127
+ `;let qn;function tf(e,o){return new Promise((t,n)=>{qn||(qn=function(a){const s=[];return typeof a=="function"?s.push(`(${a})()`):s.push(a),URL.createObjectURL(new Blob(s))}(ef));const r=new Worker(qn);r.addEventListener("message",function(a){if(o.signal&&o.signal.aborted)r.terminate();else if(a.data.progress===void 0){if(a.data.error)return n(new Error(a.data.error)),void r.terminate();t(a.data.file),r.terminate()}else o.onProgress(a.data.progress)}),r.addEventListener("error",n),o.signal&&o.signal.addEventListener("abort",()=>{n(o.signal.reason),r.terminate()}),r.postMessage({file:e,imageCompressionLibUrl:o.libURL,options:{...o,onProgress:void 0,signal:void 0}})})}function Oe(e,o){return new Promise(function(t,n){let r,i,a,s,f,p;if(r={...o},a=0,{onProgress:s}=r,r.maxSizeMB=r.maxSizeMB||Number.POSITIVE_INFINITY,f=typeof r.useWebWorker!="boolean"||r.useWebWorker,delete r.useWebWorker,r.onProgress=d=>{a=d,typeof s=="function"&&s(a)},!(e instanceof Blob||e instanceof Ju))return n(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return n(new Error("The file given is not an image"));if(p=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!f||typeof Worker!="function"||p)return xo(e,r).then((function(d){try{return i=d,l.call(this)}catch(m){return n(m)}}).bind(this),n);var c=(function(){try{return l.call(this)}catch(d){return n(d)}}).bind(this),u=function(d){try{return xo(e,r).then(function(m){try{return i=m,c()}catch(b){return n(b)}},n)}catch(m){return n(m)}};try{return r.libURL=r.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",tf(e,r).then(function(d){try{return i=d,c()}catch{return u()}},u)}catch{u()}function l(){try{i.name=e.name,i.lastModified=e.lastModified}catch{}try{r.preserveExif&&e.type==="image/jpeg"&&(!r.fileType||r.fileType&&r.fileType===e.type)&&(i=ni(e,i))}catch{}return t(i)}})}Oe.getDataUrlFromFile=ai,Oe.getFilefromDataUrl=Ir,Oe.loadImage=si,Oe.drawImageInCanvas=ci,Oe.drawFileInCanvas=gn,Oe.canvasToFile=vn,Oe.getExifOrientation=ui,Oe.handleMaxWidthOrHeight=fi,Oe.followExifOrientation=di,Oe.cleanupCanvasMemory=Qe,Oe.isAutoOrientationInBrowser=Ct,Oe.approximateBelowMaximumCanvasSizeOfBrowser=li,Oe.copyExifWithoutOrientation=ni,Oe.getBrowserName=pt,Oe.version="2.0.2";function nf({maxSizeMB:e=1,maxWidthOrHeight:o=1920}={}){const[t,n]=U.useState(!1);return{compressImage:async i=>{if(!i||!i.type.startsWith("image/"))return i;try{n(!0);const a=await Oe(i,{maxSizeMB:e,maxWidthOrHeight:o,useWebWorker:!0,fileType:i.type});return new File([a],i.name,{type:i.type})}catch(a){return console.error("Image compression failed:",a),i}finally{n(!1)}},loading:t}}const wo=e=>Object.keys(e).map(o=>e[o]),rf=["pdf","doc","docx","xls","xlsx","ppt","pptx","txt","csv","jpg","jpeg","png","gif","bmp","webp","tiff","svg","zip","rar","7z","tar","gz","rtf","json"],of=e=>{var t;const o=(t=e.name.split(".").pop())==null?void 0:t.toLowerCase();return rf.includes(o||"")},af=U.forwardRef((e,o)=>{const{accept:t,beforeUpload:n,disabled:r=!1,draggable:i=!1,fileList:a=[],multiple:s,onChange:f,onFileRemove:p,showList:c=!0,tip:u,uploadLimit:l,children:d,className:m,field:b,aspectRatio:_=2,objectFit:S="horizontal-cover",cropNeeded:F=!0,...T}=e,k=U.useRef(null),I=U.useRef(null),[x,O]=U.useState(a),[g,y]=U.useState(!1),[C,E]=U.useState(!1),[A,R]=U.useState(null),[w,P]=U.useState(null),[v,h]=U.useState({x:0,y:0}),[$,M]=U.useState(1),[z,Y]=U.useState(null),{compressImage:j,loading:W}=nf(),{themeColor:D,primaryColorLevel:L}=Oi();U.useEffect(()=>{JSON.stringify(x)!==JSON.stringify(a)&&O(a)},[a]),U.useEffect(()=>{const q=fe=>{if(!fe.clipboardData)return;const be=fe.clipboardData.items,Re=[];for(const N of be)if(N.kind==="file"){const H=N.getAsFile();H&&Re.push(H)}Re.length>0&&ae(Re)},V=I.current;return V==null||V.addEventListener("paste",q),()=>V==null?void 0:V.removeEventListener("paste",q)},[x]);const Z=(q="")=>{Ii.push(G.jsx(Fi,{type:"danger",duration:2e3,children:q||"Upload Failed!"}),{placement:"top-center"})},ie=(q,V)=>{if(q)for(const fe of Array.from(q))V.push(fe);return V},ne=q=>{let V=$i(x);return typeof l=="number"&&l!==0&&V.length>=l?(l===1&&(V.shift(),V=ie(q,V)),wo({...V})):(V=ie(q,V),wo({...V}))},te=q=>x.some(V=>V.name===q.name&&V.size===q.size&&V.lastModified===q.lastModified),ae=async q=>{const V=Array.from(q),fe=[];for(const H of V){if(!of(H)){Z("Unsupported file type.");continue}if(te(H)){Z(`Duplicate file skipped: ${H.name}`);continue}fe.push(H)}if(fe.length===0)return;const be=fe[0];let Re=be;if(be&&be.type.startsWith("image/")&&(Re=await j(be),F)){const H=new FileReader;H.onloadend=()=>{R(H.result),E(!0),Y(Re)},H.readAsDataURL(Re);return}const N=ne(fe);O(N),f==null||f(N,x)},de=q=>{q.target.files&&ae(q.target.files)},he=q=>{const V=x.filter((fe,be)=>be!==q);O(V),p==null||p(V)},ge=()=>{O([]),p==null||p([])},re=q=>{var V;r||(V=k.current)==null||V.click(),q.stopPropagation()},X=()=>!i&&!d?G.jsx(Yt,{disabled:r,onClick:q=>q.preventDefault(),children:"Upload"}):i&&!d?G.jsx("span",{children:"Choose a file or drag and drop here"}):d,ue=U.useCallback(()=>{i&&y(!1)},[i]),se=U.useCallback(()=>{i&&!r&&y(!0)},[i,r]),oe=U.useCallback(()=>{i&&y(!1)},[i]),ye={onDragLeave:ue,onDragOver:se,onDrop:oe},le=`border-${D}-${L}`,pe=Fr("upload",i&&"upload-draggable",i&&!r&&`hover:${le}`,i&&r&&"disabled",g&&le,m),_e=Fr("upload-input",i&&"draggable");return G.jsxs(G.Fragment,{children:[G.jsxs("div",{ref:q=>{I.current=q,typeof o=="function"?o(q):o&&(o.current=q)},className:pe,...i?ye:{onClick:re},...T,children:[G.jsx("input",{ref:k,className:_e,type:"file",disabled:r,multiple:s,accept:t,title:"",value:"",onChange:de,...b,...T}),X()]}),u,c&&x.length>0&&G.jsxs("div",{className:"upload-file-list",children:[G.jsxs("div",{className:"flex justify-between items-center mb-2",children:[G.jsx("span",{children:"Uploaded Files"}),x.length>1&&G.jsx(Yt,{size:"sm",variant:"solid",onClick:ge,children:"Clear All"})]}),x.map((q,V)=>G.jsx(Yo,{file:q,children:G.jsx(Mi,{className:"upload-file-remove",onClick:()=>he(V)})},q.name+V))]}),G.jsx(Wc,{open:C,onClose:()=>E(!1),children:G.jsx("div",{className:"fixed inset-0 flex justify-center items-center bg-black bg-opacity-70 z-50",children:G.jsxs("div",{className:"bg-white p-4 rounded-lg w-[90vw] max-w-md",children:[G.jsx("div",{className:"relative w-full h-64",children:G.jsx(Ku,{image:A,crop:v,zoom:$,aspect:_,onCropChange:h,onZoomChange:M,objectFit:S,onCropComplete:(q,V)=>P(V)})}),G.jsx(gu,{value:$,min:1,max:3,step:.1,onChange:(q,V)=>M(V)}),G.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[G.jsx(Yt,{onClick:()=>E(!1),children:"Cancel"}),G.jsx(Yt,{onClick:async()=>{const q=await Gu(A,w),V=new File([q],z.name,{type:z.type}),fe=ne({0:V,length:1,item:be=>V});O(fe),f==null||f(fe,x),E(!1)},children:"Crop"})]})]})})})]})});af.displayName="Upload";export{lc as A,oo as B,ms as C,Ls as D,$t as E,Ws as F,Ns as G,$n as H,Lo as I,Wc as M,fc as P,Ko as T,af as U,ic as _,wr as a,ot as b,qe as c,Ar as d,Wr as e,Er as f,En as g,Qn as h,un as i,Es as j,Ft as k,ht as l,$s as m,Yr as n,He as o,ff as p,fs as q,Ll as r,et as s,Xe as t,Or as u,rc as v,Xn as w,Fl as x,_r as y,sc as z};
@@ -0,0 +1 @@
1
+ import{at as a}from"./index-737fd7d3.js";async function i(e,o){return(await a.apiV10UserSend2FALogiCodeToUserIdTwoFATypePost(e,o)).data}export{i as a};