@clickview/library-editor 1.57.0 → 1.58.0-rc.0

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 (216) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{152-library-editor-01b4461ff1.chunk.css → 463-library-editor-911bfc41fe.chunk.css} +1 -1
  3. package/dist/css/{5524-library-editor-de77327cdc.chunk.css → 4719-library-editor-7e2ac516b4.chunk.css} +1 -1
  4. package/dist/css/{61-library-editor-b5c939f10f.chunk.css → 4796-library-editor-2a18ebe0b9.chunk.css} +4 -4
  5. package/dist/css/{4001-library-editor-da87291909.chunk.css → 5319-library-editor-fe54adac16.chunk.css} +2 -2
  6. package/dist/css/library-editor-app-380eaa3fce.css +62 -0
  7. package/dist/scripts/{1010-f1c8bca022.chunk.js → 1010-a34c5ba546.chunk.js} +1 -1
  8. package/dist/scripts/1015-fde8b5ba1e.chunk.js +2 -0
  9. package/dist/scripts/1015-fde8b5ba1e.chunk.js.LICENSE.txt +41 -0
  10. package/dist/scripts/{7408-c1551d3e0d.chunk.js → 1080-78e6c18aa7.chunk.js} +1 -1
  11. package/dist/scripts/1115-c6cc1353bd.chunk.js +1 -0
  12. package/dist/scripts/1200-193f4b5bbd.chunk.js +1 -0
  13. package/dist/scripts/1524-1e4a0330df.chunk.js +1 -0
  14. package/dist/scripts/{1934-562cd9f48b.chunk.js → 1934-84460445ad.chunk.js} +1 -1
  15. package/dist/scripts/1973-47ac2859c2.chunk.js +1 -0
  16. package/dist/scripts/{2998-aae0ec14de.chunk.js → 2035-d874bdac26.chunk.js} +1 -1
  17. package/dist/scripts/2539-915297f0b5.chunk.js +1 -0
  18. package/dist/scripts/2591-fba291a9c0.chunk.js +1 -0
  19. package/dist/scripts/2598-225a27335b.chunk.js +1 -0
  20. package/dist/scripts/2614-aed18ce4af.chunk.js +1 -0
  21. package/dist/scripts/2648-3893c6b865.chunk.js +1 -0
  22. package/dist/scripts/{2803-fbb9d2439d.chunk.js → 2803-7a2cdecd93.chunk.js} +1 -1
  23. package/dist/scripts/{2888-c2c8b859cd.chunk.js → 2888-3298161a61.chunk.js} +1 -1
  24. package/dist/scripts/299-df09594cf4.chunk.js +1 -0
  25. package/dist/scripts/3288-ab3ca0da7f.chunk.js +1 -0
  26. package/dist/scripts/3305-b4175d4211.chunk.js +1 -0
  27. package/dist/scripts/3373-3286d26d40.chunk.js +1 -0
  28. package/dist/scripts/{5286-c574f5b574.chunk.js → 3391-469c93ab2c.chunk.js} +1 -1
  29. package/dist/scripts/{3400-ebc91cde7a.chunk.js → 3400-7a082a0377.chunk.js} +1 -1
  30. package/dist/scripts/3450-ad966a93e7.chunk.js +1 -0
  31. package/dist/scripts/{1832-52444b0088.chunk.js → 3475-d6fd75feeb.chunk.js} +1 -1
  32. package/dist/scripts/{3639-c5cc04c72d.chunk.js → 3639-631906e5be.chunk.js} +1 -1
  33. package/dist/scripts/3643-a191b71123.chunk.js +1 -0
  34. package/dist/scripts/{3763-47619f0e54.chunk.js → 3763-7ae73d91fa.chunk.js} +1 -1
  35. package/dist/scripts/3873-42f43a345f.chunk.js +1 -0
  36. package/dist/scripts/4027-fd3b5a0220.chunk.js +1 -0
  37. package/dist/scripts/416-4e7988439a.chunk.js +1 -0
  38. package/dist/scripts/{4201-ffd35af9cb.chunk.js → 4201-8856b389f1.chunk.js} +1 -1
  39. package/dist/scripts/4245-bcb3d8e3e4.chunk.js +1 -0
  40. package/dist/scripts/{4860-6001ab4e2a.chunk.js → 4327-b8cd9a74f9.chunk.js} +1 -1
  41. package/dist/scripts/{6732-85afd02f41.chunk.js → 4567-3ca6ef4308.chunk.js} +1 -1
  42. package/dist/scripts/{4591-78600e384c.chunk.js → 4591-9ea0b32ac6.chunk.js} +1 -1
  43. package/dist/scripts/463-f5f80e35df.chunk.js +2 -0
  44. package/dist/scripts/4719-8c6ca32259.chunk.js +1 -0
  45. package/dist/scripts/4796-284cbfa43b.chunk.js +2 -0
  46. package/dist/scripts/4851-5877fa3e54.chunk.js +1 -0
  47. package/dist/scripts/{5173-f2d72d7c3e.chunk.js → 5173-9338a14ee3.chunk.js} +1 -1
  48. package/dist/scripts/{8906-2ae58fb990.chunk.js → 5180-37c1d4f9bd.chunk.js} +1 -1
  49. package/dist/scripts/5182-0c4b67f64d.chunk.js +2 -0
  50. package/dist/scripts/5193-e559c4c41a.chunk.js +1 -0
  51. package/dist/scripts/5319-4f146e8e39.chunk.js +2 -0
  52. package/dist/scripts/{259-ef5133c0fd.chunk.js → 5327-9b16f6b411.chunk.js} +1 -1
  53. package/dist/scripts/5346-6ecbb5b2b1.chunk.js +1 -0
  54. package/dist/scripts/{5412-e2505df3a4.chunk.js → 5412-bc03f5a901.chunk.js} +1 -1
  55. package/dist/scripts/{5418-f84d0ff359.chunk.js → 5418-a9d060f9d0.chunk.js} +1 -1
  56. package/dist/scripts/5424-fa6c668f42.chunk.js +1 -0
  57. package/dist/scripts/{546-2ee5c90feb.chunk.js → 546-36e1e11039.chunk.js} +1 -1
  58. package/dist/scripts/{7295-49780496e2.chunk.js → 5736-83fa0776d5.chunk.js} +1 -1
  59. package/dist/scripts/576-243c823838.chunk.js +1 -0
  60. package/dist/scripts/5814-5a46f1f264.chunk.js +1 -0
  61. package/dist/scripts/5972-d637eea712.chunk.js +1 -0
  62. package/dist/scripts/6239-92a0bebbeb.chunk.js +1 -0
  63. package/dist/scripts/6350-862d3edb93.chunk.js +1 -0
  64. package/dist/scripts/6439-8aac0bd92a.chunk.js +1 -0
  65. package/dist/scripts/{8762-be126e413d.chunk.js → 6450-a3ca4cdb2a.chunk.js} +1 -1
  66. package/dist/scripts/6467-db60883ef6.chunk.js +1 -0
  67. package/dist/scripts/{1086-7632f7b45b.chunk.js → 6587-eed4f0308b.chunk.js} +1 -1
  68. package/dist/scripts/{1409-ae672618b1.chunk.js → 6677-66b4b60478.chunk.js} +1 -1
  69. package/dist/scripts/6768-5f9040eac8.chunk.js +1 -0
  70. package/dist/scripts/{6774-a002ac7253.chunk.js → 6774-7ed47e1b8c.chunk.js} +1 -1
  71. package/dist/scripts/{6788-dc6b522995.chunk.js → 6788-d3b052f1a9.chunk.js} +1 -1
  72. package/dist/scripts/7071-4b42b6a81f.chunk.js +1 -0
  73. package/dist/scripts/7153-b8a8099148.chunk.js +1 -0
  74. package/dist/scripts/7182-9378cbae60.chunk.js +2 -0
  75. package/dist/scripts/7182-9378cbae60.chunk.js.LICENSE.txt +8 -0
  76. package/dist/scripts/{7190-2b40df1e89.chunk.js → 7190-35f785a3e3.chunk.js} +1 -1
  77. package/dist/scripts/{5747-7ca7ad6c1d.chunk.js → 7366-1132e85416.chunk.js} +1 -1
  78. package/dist/scripts/7384-29be02029c.chunk.js +1 -0
  79. package/dist/scripts/7416-4d6b9b9a5b.chunk.js +1 -0
  80. package/dist/scripts/7696-08e022c4b5.chunk.js +1 -0
  81. package/dist/scripts/775-2c991c9c6e.chunk.js +1 -0
  82. package/dist/scripts/777-1b328a0073.chunk.js +2 -0
  83. package/dist/scripts/8113-e17a857adc.chunk.js +1 -0
  84. package/dist/scripts/{9695-636ea0ef64.chunk.js → 8143-3c844e6f7b.chunk.js} +1 -1
  85. package/dist/scripts/{8362-267efdac61.chunk.js → 8362-a48a464bd6.chunk.js} +1 -1
  86. package/dist/scripts/8542-6f5077cb9a.chunk.js +1 -0
  87. package/dist/scripts/8591-047736d51e.chunk.js +1 -0
  88. package/dist/scripts/8757-9ff47570ba.chunk.js +2 -0
  89. package/dist/scripts/8757-9ff47570ba.chunk.js.LICENSE.txt +44 -0
  90. package/dist/scripts/{7376-e3bf3a94f9.chunk.js → 8797-2e772deab9.chunk.js} +1 -1
  91. package/dist/scripts/8862-0ce7a20f11.chunk.js +1 -0
  92. package/dist/scripts/{5707-b2b239ff4e.chunk.js → 8915-53b71a635d.chunk.js} +1 -1
  93. package/dist/scripts/{2692-1ddd87476e.chunk.js → 8989-258e7f8a87.chunk.js} +1 -1
  94. package/dist/scripts/9011-4862aa077d.chunk.js +1 -0
  95. package/dist/scripts/{6093-e19df1d1fa.chunk.js → 9037-7ce5f91571.chunk.js} +1 -1
  96. package/dist/scripts/9217-9c61b07e9e.chunk.js +1 -0
  97. package/dist/scripts/{9357-e71ea6a34d.chunk.js → 9357-64d247d840.chunk.js} +1 -1
  98. package/dist/scripts/{3551-d2ea1832c5.chunk.js → 95-bd02e086ac.chunk.js} +1 -1
  99. package/dist/scripts/{8726-2d0bc64637.chunk.js → 9620-3ba8334ebc.chunk.js} +1 -1
  100. package/dist/scripts/{5424-65be3c657c.chunk.js → 9734-37ab55da4e.chunk.js} +1 -1
  101. package/dist/scripts/9766-753d188467.chunk.js +2 -0
  102. package/dist/scripts/9766-753d188467.chunk.js.LICENSE.txt +6 -0
  103. package/dist/scripts/{9927-7a935c955d.chunk.js → 9825-965bc63629.chunk.js} +1 -1
  104. package/dist/scripts/9928-f43d6de0a3.chunk.js +1 -0
  105. package/dist/scripts/bundle-5438371664.min.js +2 -0
  106. package/dist/scripts/bundle-5438371664.min.js.LICENSE.txt +124 -0
  107. package/dist/scripts/{polyfills-5ce436cbbe.min.js → polyfills-4c06ebd0dd.min.js} +1 -1
  108. package/package.json +4 -5
  109. package/dist/css/library-editor-app-6b401b236c.css +0 -62
  110. package/dist/scripts/101-c2af2cc10c.chunk.js +0 -1
  111. package/dist/scripts/112-5209a9a2d0.chunk.js +0 -1
  112. package/dist/scripts/1216-83f6fbc7be.chunk.js +0 -1
  113. package/dist/scripts/1269-02d8d91784.chunk.js +0 -1
  114. package/dist/scripts/152-808e046b1f.chunk.js +0 -2
  115. package/dist/scripts/1703-0f9e8a489f.chunk.js +0 -1
  116. package/dist/scripts/1876-0a931d62d9.chunk.js +0 -1
  117. package/dist/scripts/1973-7a1768228d.chunk.js +0 -1
  118. package/dist/scripts/2417-9731b9da6b.chunk.js +0 -1
  119. package/dist/scripts/243-c4bb9e995e.chunk.js +0 -1
  120. package/dist/scripts/2482-ded3090c15.chunk.js +0 -1
  121. package/dist/scripts/2601-0bbd055a92.chunk.js +0 -1
  122. package/dist/scripts/2644-17c596a0c9.chunk.js +0 -1
  123. package/dist/scripts/2648-0a58c0fc05.chunk.js +0 -1
  124. package/dist/scripts/2802-d428814c29.chunk.js +0 -2
  125. package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +0 -8
  126. package/dist/scripts/299-5585deab1d.chunk.js +0 -1
  127. package/dist/scripts/343-a3dabdd615.chunk.js +0 -1
  128. package/dist/scripts/35-dde0c25008.chunk.js +0 -1
  129. package/dist/scripts/3746-588ea9d62d.chunk.js +0 -1
  130. package/dist/scripts/376-d76b864238.chunk.js +0 -1
  131. package/dist/scripts/3969-c636ff3159.chunk.js +0 -1
  132. package/dist/scripts/3978-46652b7a6d.chunk.js +0 -1
  133. package/dist/scripts/4001-e9f2e6c242.chunk.js +0 -2
  134. package/dist/scripts/4024-e9e014aae3.chunk.js +0 -1
  135. package/dist/scripts/4245-db2d86c59d.chunk.js +0 -1
  136. package/dist/scripts/4523-4dc52522e2.chunk.js +0 -1
  137. package/dist/scripts/471-8eefc9b28a.chunk.js +0 -2
  138. package/dist/scripts/471-8eefc9b28a.chunk.js.LICENSE.txt +0 -13
  139. package/dist/scripts/5046-b65e8db7c0.chunk.js +0 -1
  140. package/dist/scripts/514-eeb95eba47.chunk.js +0 -1
  141. package/dist/scripts/535-794be8eab5.chunk.js +0 -1
  142. package/dist/scripts/5524-04583b6e40.chunk.js +0 -1
  143. package/dist/scripts/5850-fd3912ade8.chunk.js +0 -1
  144. package/dist/scripts/5891-ac4d3f803a.chunk.js +0 -1
  145. package/dist/scripts/61-4b8d6a6f6d.chunk.js +0 -2
  146. package/dist/scripts/6352-50c10c1bc6.chunk.js +0 -1
  147. package/dist/scripts/6963-254d82f6c2.chunk.js +0 -1
  148. package/dist/scripts/7002-6d9f52d6d3.chunk.js +0 -1
  149. package/dist/scripts/7053-91a52f57d7.chunk.js +0 -1
  150. package/dist/scripts/7071-6d98c3dcfa.chunk.js +0 -1
  151. package/dist/scripts/708-f7536cb7a4.chunk.js +0 -1
  152. package/dist/scripts/7153-fc080e3d53.chunk.js +0 -1
  153. package/dist/scripts/7827-c1f1b4f608.chunk.js +0 -1
  154. package/dist/scripts/8113-d678e76098.chunk.js +0 -1
  155. package/dist/scripts/8213-6c873c853e.chunk.js +0 -1
  156. package/dist/scripts/8542-64733a5c92.chunk.js +0 -1
  157. package/dist/scripts/8591-149f4a2b62.chunk.js +0 -1
  158. package/dist/scripts/8727-188101f028.chunk.js +0 -1
  159. package/dist/scripts/8952-4201ae6599.chunk.js +0 -2
  160. package/dist/scripts/9369-d0cfe79b64.chunk.js +0 -2
  161. package/dist/scripts/9383-4ed13f5993.chunk.js +0 -1
  162. package/dist/scripts/bundle-e23c97dca7.min.js +0 -2
  163. package/dist/scripts/bundle-e23c97dca7.min.js.LICENSE.txt +0 -1
  164. package/typings/libs/CVLanguages.d.ts +0 -24
  165. package/typings/libs/LazyLoad.d.ts +0 -30
  166. package/typings/libs/LazyLoad.ts +0 -27
  167. package/typings/libs/cookiesjs.d.ts +0 -24
  168. /package/dist/css/{7408-library-editor-2a67dae087.chunk.css → 1080-library-editor-2a67dae087.chunk.css} +0 -0
  169. /package/dist/css/{376-library-editor-ce09c2fd78.chunk.css → 1524-library-editor-ce09c2fd78.chunk.css} +0 -0
  170. /package/dist/css/{6352-library-editor-33de5ce339.chunk.css → 2591-library-editor-33de5ce339.chunk.css} +0 -0
  171. /package/dist/css/{3978-library-editor-5a1c6fc3b4.chunk.css → 2598-library-editor-5a1c6fc3b4.chunk.css} +0 -0
  172. /package/dist/css/{3746-library-editor-46e4b6af59.chunk.css → 2614-library-editor-46e4b6af59.chunk.css} +0 -0
  173. /package/dist/css/{7053-library-editor-cbe896c46a.chunk.css → 3288-library-editor-cbe896c46a.chunk.css} +0 -0
  174. /package/dist/css/{2644-library-editor-9a25c88900.chunk.css → 3305-library-editor-9a25c88900.chunk.css} +0 -0
  175. /package/dist/css/{5046-library-editor-765ea88cb0.chunk.css → 3373-library-editor-765ea88cb0.chunk.css} +0 -0
  176. /package/dist/css/{1832-library-editor-e123877850.chunk.css → 3475-library-editor-e123877850.chunk.css} +0 -0
  177. /package/dist/css/{3969-library-editor-30997910e2.chunk.css → 3643-library-editor-30997910e2.chunk.css} +0 -0
  178. /package/dist/css/{4860-library-editor-f5eddb2400.chunk.css → 4327-library-editor-f5eddb2400.chunk.css} +0 -0
  179. /package/dist/css/{6732-library-editor-0be4d10f09.chunk.css → 4567-library-editor-0be4d10f09.chunk.css} +0 -0
  180. /package/dist/css/{1086-library-editor-9f7cd4e27e.chunk.css → 5180-library-editor-9f7cd4e27e.chunk.css} +0 -0
  181. /package/dist/css/{9369-library-editor-e354d61dfe.chunk.css → 5182-library-editor-e354d61dfe.chunk.css} +0 -0
  182. /package/dist/css/{4024-library-editor-b0081783ab.chunk.css → 5193-library-editor-b0081783ab.chunk.css} +0 -0
  183. /package/dist/css/{2601-library-editor-8922d361d6.chunk.css → 5346-library-editor-8922d361d6.chunk.css} +0 -0
  184. /package/dist/css/{1703-library-editor-3334df179f.chunk.css → 5424-library-editor-3334df179f.chunk.css} +0 -0
  185. /package/dist/css/{7295-library-editor-34087db2b0.chunk.css → 5736-library-editor-34087db2b0.chunk.css} +0 -0
  186. /package/dist/css/{535-library-editor-fa24102d7f.chunk.css → 576-library-editor-fa24102d7f.chunk.css} +0 -0
  187. /package/dist/css/{5891-library-editor-46e4b6af59.chunk.css → 5814-library-editor-46e4b6af59.chunk.css} +0 -0
  188. /package/dist/css/{708-library-editor-7ffe353138.chunk.css → 5972-library-editor-7ffe353138.chunk.css} +0 -0
  189. /package/dist/css/{243-library-editor-decee8d957.chunk.css → 6239-library-editor-decee8d957.chunk.css} +0 -0
  190. /package/dist/css/{4523-library-editor-c52f3ffbb0.chunk.css → 6350-library-editor-c52f3ffbb0.chunk.css} +0 -0
  191. /package/dist/css/{2482-library-editor-1b6dc45d45.chunk.css → 6439-library-editor-1b6dc45d45.chunk.css} +0 -0
  192. /package/dist/css/{2692-library-editor-9f7cd4e27e.chunk.css → 6450-library-editor-9f7cd4e27e.chunk.css} +0 -0
  193. /package/dist/css/{1876-library-editor-3334df179f.chunk.css → 6467-library-editor-3334df179f.chunk.css} +0 -0
  194. /package/dist/css/{8762-library-editor-9f7cd4e27e.chunk.css → 6587-library-editor-9f7cd4e27e.chunk.css} +0 -0
  195. /package/dist/css/{1409-library-editor-bc215e1152.chunk.css → 6677-library-editor-bc215e1152.chunk.css} +0 -0
  196. /package/dist/css/{9383-library-editor-02381b537c.chunk.css → 6768-library-editor-02381b537c.chunk.css} +0 -0
  197. /package/dist/css/{5747-library-editor-de4ea80bfc.chunk.css → 7366-library-editor-de4ea80bfc.chunk.css} +0 -0
  198. /package/dist/css/{2417-library-editor-46f8e6e95b.chunk.css → 7384-library-editor-46f8e6e95b.chunk.css} +0 -0
  199. /package/dist/css/{101-library-editor-cc4c4155eb.chunk.css → 7696-library-editor-cc4c4155eb.chunk.css} +0 -0
  200. /package/dist/css/{8952-library-editor-5d85817bef.chunk.css → 777-library-editor-5d85817bef.chunk.css} +0 -0
  201. /package/dist/css/{9695-library-editor-c5004a1fec.chunk.css → 8143-library-editor-c5004a1fec.chunk.css} +0 -0
  202. /package/dist/css/{343-library-editor-d2f704c6a5.chunk.css → 8862-library-editor-d2f704c6a5.chunk.css} +0 -0
  203. /package/dist/css/{8906-library-editor-9f7cd4e27e.chunk.css → 8989-library-editor-9f7cd4e27e.chunk.css} +0 -0
  204. /package/dist/css/{112-library-editor-6a2d152d7d.chunk.css → 9011-library-editor-6a2d152d7d.chunk.css} +0 -0
  205. /package/dist/css/{6093-library-editor-446ee2e049.chunk.css → 9037-library-editor-446ee2e049.chunk.css} +0 -0
  206. /package/dist/css/{6963-library-editor-46e4b6af59.chunk.css → 9217-library-editor-46e4b6af59.chunk.css} +0 -0
  207. /package/dist/css/{3551-library-editor-787101ac7a.chunk.css → 95-library-editor-787101ac7a.chunk.css} +0 -0
  208. /package/dist/css/{5424-library-editor-30b3c7de26.chunk.css → 9734-library-editor-30b3c7de26.chunk.css} +0 -0
  209. /package/dist/css/{514-library-editor-4cb4f22674.chunk.css → 9766-library-editor-4cb4f22674.chunk.css} +0 -0
  210. /package/dist/css/{9927-library-editor-a11669ad9d.chunk.css → 9825-library-editor-a11669ad9d.chunk.css} +0 -0
  211. /package/dist/scripts/{1934-562cd9f48b.chunk.js.LICENSE.txt → 1934-84460445ad.chunk.js.LICENSE.txt} +0 -0
  212. /package/dist/scripts/{152-808e046b1f.chunk.js.LICENSE.txt → 463-f5f80e35df.chunk.js.LICENSE.txt} +0 -0
  213. /package/dist/scripts/{4001-e9f2e6c242.chunk.js.LICENSE.txt → 4796-284cbfa43b.chunk.js.LICENSE.txt} +0 -0
  214. /package/dist/scripts/{61-4b8d6a6f6d.chunk.js.LICENSE.txt → 5182-0c4b67f64d.chunk.js.LICENSE.txt} +0 -0
  215. /package/dist/scripts/{8952-4201ae6599.chunk.js.LICENSE.txt → 5319-4f146e8e39.chunk.js.LICENSE.txt} +0 -0
  216. /package/dist/scripts/{9369-d0cfe79b64.chunk.js.LICENSE.txt → 777-1b328a0073.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 152-808e046b1f.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[152],{20455:function(t,e,n){"use strict";n.d(e,{LB:function(){return Wt},y9:function(){return le},g4:function(){return nt},Lg:function(){return st},we:function(){return pt},pE:function(){return k},ey:function(){return C},VK:function(){return N},_8:function(){return M},hI:function(){return R},Cj:function(){return Gt},O1:function(){return Zt},Zj:function(){return $t},VT:function(){return y},Dy:function(){return m}});var r=n(1024),o=n.n(r),i=n(30314),a=n(17592);const s={display:"none"};function c(t){let{id:e,value:n}=t;return o().createElement("div",{id:e,style:s},n)}function u(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;return o().createElement("div",{id:e,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const l=(0,r.createContext)(null),f={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},p={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function d(t){let{announcements:e=p,container:n,hiddenTextDescribedById:s,screenReaderInstructions:d=f}=t;const{announce:h,announcement:g}=function(){const[t,e]=(0,r.useState)("");return{announce:(0,r.useCallback)((t=>{null!=t&&e(t)}),[]),announcement:t}}(),y=(0,a.Ld)("DndLiveRegion"),[m,v]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{v(!0)}),[]),function(t){const e=(0,r.useContext)(l);(0,r.useEffect)((()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)}),[t,e])}((0,r.useMemo)((()=>({onDragStart(t){let{active:n}=t;h(e.onDragStart({active:n}))},onDragMove(t){let{active:n,over:r}=t;e.onDragMove&&h(e.onDragMove({active:n,over:r}))},onDragOver(t){let{active:n,over:r}=t;h(e.onDragOver({active:n,over:r}))},onDragEnd(t){let{active:n,over:r}=t;h(e.onDragEnd({active:n,over:r}))},onDragCancel(t){let{active:n,over:r}=t;h(e.onDragCancel({active:n,over:r}))}})),[h,e])),!m)return null;const b=o().createElement(o().Fragment,null,o().createElement(c,{id:s,value:d.draggable}),o().createElement(u,{id:y,announcement:g}));return n?(0,i.createPortal)(b,n):b}var h;function g(){}function y(t,e){return(0,r.useMemo)((()=>({sensor:t,options:null!=e?e:{}})),[t,e])}function m(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,r.useMemo)((()=>[...e].filter((t=>null!=t))),[...e])}!function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"}(h||(h={}));const v=Object.freeze({x:0,y:0});function b(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _(t,e){const n=(0,a.DC)(t);return n?(n.x-e.left)/e.width*100+"% "+(n.y-e.top)/e.height*100+"%":"0 0"}function w(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return n-r}function S(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return r-n}function x(t){let{left:e,top:n,height:r,width:o}=t;return[{x:e,y:n},{x:e+o,y:n},{x:e,y:n+r},{x:e+o,y:n+r}]}function M(t,e){if(!t||0===t.length)return null;const[n]=t;return e?n[e]:n}function E(t,e,n){return void 0===e&&(e=t.left),void 0===n&&(n=t.top),{x:e+.5*t.width,y:n+.5*t.height}}const k=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const o=E(e,e.left,e.top),i=[];for(const t of r){const{id:e}=t,r=n.get(e);if(r){const n=b(E(r),o);i.push({id:e,data:{droppableContainer:t,value:n}})}}return i.sort(w)},C=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const o=x(e),i=[];for(const t of r){const{id:e}=t,r=n.get(e);if(r){const n=x(r),a=o.reduce(((t,e,r)=>t+b(n[r],e)),0),s=Number((a/4).toFixed(4));i.push({id:e,data:{droppableContainer:t,value:s}})}}return i.sort(w)};function D(t,e){const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),o=Math.min(e.left+e.width,t.left+t.width),i=Math.min(e.top+e.height,t.top+t.height),a=o-r,s=i-n;if(r<o&&n<i){const n=e.width*e.height,r=t.width*t.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const j=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const o=[];for(const t of r){const{id:r}=t,i=n.get(r);if(i){const n=D(i,e);n>0&&o.push({id:r,data:{droppableContainer:t,value:n}})}}return o.sort(S)};function O(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:v}function I(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((e,n)=>({...e,top:e.top+t*n.y,bottom:e.bottom+t*n.y,left:e.left+t*n.x,right:e.right+t*n.x})),{...e})}}const T=I(1);function L(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}const A={ignoreTransform:!1};function N(t,e){void 0===e&&(e=A);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{getComputedStyle:e}=(0,a.Jj)(t),{transform:r,transformOrigin:o}=e(t);r&&(n=function(t,e,n){const r=L(e);if(!r)return t;const{scaleX:o,scaleY:i,x:a,y:s}=r,c=t.left-a-(1-o)*parseFloat(n),u=t.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),l=o?t.width/o:t.width,f=i?t.height/i:t.height;return{width:l,height:f,top:u,right:c+l,bottom:u+f,left:c}}(n,r,o))}const{top:r,left:o,width:i,height:s,bottom:c,right:u}=n;return{top:r,left:o,width:i,height:s,bottom:c,right:u}}function z(t){return N(t,{ignoreTransform:!0})}function R(t,e){const n=[];return t?function r(o){if(null!=e&&n.length>=e)return n;if(!o)return n;if((0,a.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,a.Re)(o)||(0,a.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:i}=(0,a.Jj)(o),s=i(o);return o!==t&&function(t,e){void 0===e&&(e=(0,a.Jj)(t).getComputedStyle(t));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((t=>{const r=e[t];return"string"==typeof r&&n.test(r)}))}(o,s)&&n.push(o),function(t,e){return void 0===e&&(e=(0,a.Jj)(t).getComputedStyle(t)),"fixed"===e.position}(o,s)?n:r(o.parentNode)}(t):n}function P(t){const[e]=R(t,1);return null!=e?e:null}function B(t){return a.Nq&&t?(0,a.FJ)(t)?t:(0,a.UG)(t)?(0,a.qk)(t)||t===(0,a.r3)(t).scrollingElement?window:(0,a.Re)(t)?t:null:null:null}function F(t){return(0,a.FJ)(t)?t.scrollX:t.scrollLeft}function U(t){return(0,a.FJ)(t)?t.scrollY:t.scrollTop}function K(t){return{x:F(t),y:U(t)}}var H;function q(t){return!(!a.Nq||!t)&&t===document.scrollingElement}function W(t){const e={x:0,y:0},n=q(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},r={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height};return{isTop:t.scrollTop<=e.y,isLeft:t.scrollLeft<=e.x,isBottom:t.scrollTop>=r.y,isRight:t.scrollLeft>=r.x,maxScroll:r,minScroll:e}}!function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"}(H||(H={}));const Y={x:.2,y:.2};function V(t,e,n,r,o){let{top:i,left:a,right:s,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=Y);const{isTop:u,isBottom:l,isLeft:f,isRight:p}=W(t),d={x:0,y:0},h={x:0,y:0},g=e.height*o.y,y=e.width*o.x;return!u&&i<=e.top+g?(d.y=H.Backward,h.y=r*Math.abs((e.top+g-i)/g)):!l&&c>=e.bottom-g&&(d.y=H.Forward,h.y=r*Math.abs((e.bottom-g-c)/g)),!p&&s>=e.right-y?(d.x=H.Forward,h.x=r*Math.abs((e.right-y-s)/y)):!f&&a<=e.left+y&&(d.x=H.Backward,h.x=r*Math.abs((e.left+y-a)/y)),{direction:d,speed:h}}function Q(t){if(t===document.scrollingElement){const{innerWidth:t,innerHeight:e}=window;return{top:0,left:0,right:t,bottom:e,width:t,height:e}}const{top:e,left:n,right:r,bottom:o}=t.getBoundingClientRect();return{top:e,left:n,right:r,bottom:o,width:t.clientWidth,height:t.clientHeight}}function Z(t){return t.reduce(((t,e)=>(0,a.IH)(t,K(e))),v)}function G(t,e){if(void 0===e&&(e=N),!t)return;const{top:n,left:r,bottom:o,right:i}=e(t);P(t)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}const J=[["x",["left","right"],function(t){return t.reduce(((t,e)=>t+F(e)),0)}],["y",["top","bottom"],function(t){return t.reduce(((t,e)=>t+U(e)),0)}]];class X{constructor(t,e){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=R(e),r=Z(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[t,e,o]of J)for(const i of e)Object.defineProperty(this,i,{get:()=>{const e=o(n),a=r[t]-e;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ${constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((t=>{var e;return null==(e=this.target)?void 0:e.removeEventListener(...t)}))},this.target=t}add(t,e,n){var r;null==(r=this.target)||r.addEventListener(t,e,n),this.listeners.push([t,e,n])}}function tt(t,e){const n=Math.abs(t.x),r=Math.abs(t.y);return"number"==typeof e?Math.sqrt(n**2+r**2)>e:"x"in e&&"y"in e?n>e.x&&r>e.y:"x"in e?n>e.x:"y"in e&&r>e.y}var et,nt;function rt(t){t.preventDefault()}function ot(t){t.stopPropagation()}!function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"}(et||(et={})),function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter"}(nt||(nt={}));const it={start:[nt.Space,nt.Enter],cancel:[nt.Esc],end:[nt.Space,nt.Enter]},at=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case nt.Right:return{...n,x:n.x+25};case nt.Left:return{...n,x:n.x-25};case nt.Down:return{...n,y:n.y+25};case nt.Up:return{...n,y:n.y-25}}};class st{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:e}}=t;this.props=t,this.listeners=new $((0,a.r3)(e)),this.windowListeners=new $((0,a.Jj)(e)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(et.Resize,this.handleCancel),this.windowListeners.add(et.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(et.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:t,onStart:e}=this.props,n=t.node.current;n&&G(n),e(v)}handleKeyDown(t){if((0,a.vd)(t)){const{active:e,context:n,options:r}=this.props,{keyboardCodes:o=it,coordinateGetter:i=at,scrollBehavior:s="smooth"}=r,{code:c}=t;if(o.end.includes(c))return void this.handleEnd(t);if(o.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:u}=n.current,l=u?{x:u.left,y:u.top}:v;this.referenceCoordinates||(this.referenceCoordinates=l);const f=i(t,{active:e,context:n.current,currentCoordinates:l});if(f){const e=(0,a.$X)(f,l),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=t.code,{isTop:i,isRight:a,isLeft:c,isBottom:u,maxScroll:l,minScroll:p}=W(n),d=Q(n),h={x:Math.min(o===nt.Right?d.right-d.width/2:d.right,Math.max(o===nt.Right?d.left:d.left+d.width/2,f.x)),y:Math.min(o===nt.Down?d.bottom-d.height/2:d.bottom,Math.max(o===nt.Down?d.top:d.top+d.height/2,f.y))},g=o===nt.Right&&!a||o===nt.Left&&!c,y=o===nt.Down&&!u||o===nt.Up&&!i;if(g&&h.x!==f.x){const t=n.scrollLeft+e.x,i=o===nt.Right&&t<=l.x||o===nt.Left&&t>=p.x;if(i&&!e.y)return void n.scrollTo({left:t,behavior:s});r.x=i?n.scrollLeft-t:o===nt.Right?n.scrollLeft-l.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(y&&h.y!==f.y){const t=n.scrollTop+e.y,i=o===nt.Down&&t<=l.y||o===nt.Up&&t>=p.y;if(i&&!e.x)return void n.scrollTo({top:t,behavior:s});r.y=i?n.scrollTop-t:o===nt.Down?n.scrollTop-l.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(t,(0,a.IH)((0,a.$X)(f,this.referenceCoordinates),r))}}}handleMove(t,e){const{onMove:n}=this.props;t.preventDefault(),n(e)}handleEnd(t){const{onEnd:e}=this.props;t.preventDefault(),this.detach(),e()}handleCancel(t){const{onCancel:e}=this.props;t.preventDefault(),this.detach(),e()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ct(t){return Boolean(t&&"distance"in t)}function ut(t){return Boolean(t&&"delay"in t)}st.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:r=it,onActivation:o}=e,{active:i}=n;const{code:a}=t.nativeEvent;if(r.start.includes(a)){const e=i.activatorNode.current;return!(e&&t.target!==e||(t.preventDefault(),null==o||o({event:t.nativeEvent}),0))}return!1}}];class lt{constructor(t,e,n){var r;void 0===n&&(n=function(t){const{EventTarget:e}=(0,a.Jj)(t);return t instanceof e?t:(0,a.r3)(t)}(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=e;const{event:o}=t,{target:i}=o;this.props=t,this.events=e,this.document=(0,a.r3)(i),this.documentListeners=new $(this.document),this.listeners=new $(n),this.windowListeners=new $((0,a.Jj)(i)),this.initialCoordinates=null!=(r=(0,a.DC)(o))?r:v,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:e}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(et.Resize,this.handleCancel),this.windowListeners.add(et.DragStart,rt),this.windowListeners.add(et.VisibilityChange,this.handleCancel),this.windowListeners.add(et.ContextMenu,rt),this.documentListeners.add(et.Keydown,this.handleKeydown),e){if(ct(e))return;if(ut(e))return void(this.timeoutId=setTimeout(this.handleStart,e.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:e}=this.props;t&&(this.activated=!0,this.documentListeners.add(et.Click,ot,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(et.SelectionChange,this.removeTextSelection),e(t))}handleMove(t){var e;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!r)return;const c=null!=(e=(0,a.DC)(t))?e:v,u=(0,a.$X)(r,c);if(!n&&s){if(ut(s))return tt(u,s.tolerance)?this.handleCancel():void 0;if(ct(s))return null!=s.tolerance&&tt(u,s.tolerance)?this.handleCancel():tt(u,s.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===nt.Esc&&this.handleCancel()}removeTextSelection(){var t;null==(t=this.document.getSelection())||t.removeAllRanges()}}const ft={move:{name:"pointermove"},end:{name:"pointerup"}};class pt extends lt{constructor(t){const{event:e}=t,n=(0,a.r3)(e.target);super(t,ft,n)}}pt.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const dt={move:{name:"mousemove"},end:{name:"mouseup"}};var ht;!function(t){t[t.RightClick=2]="RightClick"}(ht||(ht={})),class extends lt{constructor(t){super(t,dt,(0,a.r3)(t.event.target))}}.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return n.button!==ht.RightClick&&(null==r||r({event:n}),!0)}}];const gt={move:{name:"touchmove"},end:{name:"touchend"}};var yt,mt;(class extends lt{constructor(t){super(t,gt)}static setup(){return window.addEventListener(gt.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(gt.move.name,t)};function t(){}}}).activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"}(yt||(yt={})),function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"}(mt||(mt={}));const vt={x:{[H.Backward]:!1,[H.Forward]:!1},y:{[H.Backward]:!1,[H.Forward]:!1}};var bt,_t;!function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"}(bt||(bt={})),function(t){t.Optimized="optimized"}(_t||(_t={}));const wt=new Map;function St(t,e){return(0,a.Gj)((n=>t?n||("function"==typeof e?e(t):t):null),[e,t])}function xt(t){let{callback:e,disabled:n}=t;const o=(0,a.zX)(e),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:t}=window;return new t(o)}),[n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Mt(t){return new X(N(t),t)}function Et(t,e,n){void 0===e&&(e=Mt);const[o,i]=(0,r.useReducer)((function(r){if(!t)return null;var o;if(!1===t.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=e(t);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),s=function(t){let{callback:e,disabled:n}=t;const o=(0,a.zX)(e),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:t}=window;return new t(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){i();break}}}}),c=xt({callback:i});return(0,a.LI)((()=>{i(),t?(null==c||c.observe(t),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())}),[t]),o}const kt=[];function Ct(t,e){void 0===e&&(e=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),e),(0,r.useEffect)((()=>{const e=t!==v;e&&!n.current&&(n.current=t),!e&&n.current&&(n.current=null)}),[t]),n.current?(0,a.$X)(t,n.current):v}function Dt(t){return(0,r.useMemo)((()=>t?function(t){const e=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}(t):null),[t])}const jt=[];function Ot(t){if(!t)return null;if(t.children.length>1)return t;const e=t.children[0];return(0,a.Re)(e)?e:t}const It=[{sensor:pt,options:{}},{sensor:st,options:{}}],Tt={current:{}},Lt={draggable:{measure:z},droppable:{measure:z,strategy:bt.WhileDragging,frequency:_t.Optimized},dragOverlay:{measure:N}};class At extends Map{get(t){var e;return null!=t&&null!=(e=super.get(t))?e:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((t=>{let{disabled:e}=t;return!e}))}getNodeFor(t){var e,n;return null!=(e=null==(n=this.get(t))?void 0:n.node.current)?e:void 0}}const Nt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new At,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Lt,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},zt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Rt=(0,r.createContext)(zt),Pt=(0,r.createContext)(Nt);function Bt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new At}}}function Ft(t,e){switch(e.type){case h.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case h.DragMove:return t.draggable.active?{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}}:t;case h.DragEnd:case h.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{const{element:n}=e,{id:r}=n,o=new At(t.droppable.containers);return o.set(r,n),{...t,droppable:{...t.droppable,containers:o}}}case h.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=e,i=t.droppable.containers.get(n);if(!i||r!==i.key)return t;const a=new At(t.droppable.containers);return a.set(n,{...i,disabled:o}),{...t,droppable:{...t.droppable,containers:a}}}case h.UnregisterDroppable:{const{id:n,key:r}=e,o=t.droppable.containers.get(n);if(!o||r!==o.key)return t;const i=new At(t.droppable.containers);return i.delete(n),{...t,droppable:{...t.droppable,containers:i}}}default:return t}}function Ut(t){let{disabled:e}=t;const{active:n,activatorEvent:o,draggableNodes:i}=(0,r.useContext)(Rt),s=(0,a.D9)(o),c=(0,a.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!e&&!o&&s&&null!=c){if(!(0,a.vd)(s))return;if(document.activeElement===s.target)return;const t=i.get(c);if(!t)return;const{activatorNode:e,node:n}=t;if(!e.current&&!n.current)return;requestAnimationFrame((()=>{for(const t of[e.current,n.current]){if(!t)continue;const e=(0,a.so)(t);if(e){e.focus();break}}}))}}),[o,e,i,c,s]),null}function Kt(t,e){let{transform:n,...r}=e;return null!=t&&t.length?t.reduce(((t,e)=>e({transform:t,...r})),n):n}const Ht=(0,r.createContext)({...v,scaleX:1,scaleY:1});var qt;!function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"}(qt||(qt={}));const Wt=(0,r.memo)((function(t){var e,n,s,c;let{id:u,accessibility:f,autoScroll:p=!0,children:g,sensors:y=It,collisionDetection:m=j,measuring:b,modifiers:_,...w}=t;const S=(0,r.useReducer)(Ft,void 0,Bt),[x,E]=S,[k,C]=function(){const[t]=(0,r.useState)((()=>new Set)),e=(0,r.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]);return[(0,r.useCallback)((e=>{let{type:n,event:r}=e;t.forEach((t=>{var e;return null==(e=t[n])?void 0:e.call(t,r)}))}),[t]),e]}(),[D,I]=(0,r.useState)(qt.Uninitialized),L=D===qt.Initialized,{draggable:{active:A,nodes:z,translate:F},droppable:{containers:U}}=x,W=A?z.get(A):null,Y=(0,r.useRef)({initial:null,translated:null}),Q=(0,r.useMemo)((()=>{var t;return null!=A?{id:A,data:null!=(t=null==W?void 0:W.data)?t:Tt,rect:Y}:null}),[A,W]),G=(0,r.useRef)(null),[J,$]=(0,r.useState)(null),[tt,et]=(0,r.useState)(null),nt=(0,a.Ey)(w,Object.values(w)),rt=(0,a.Ld)("DndDescribedBy",u),ot=(0,r.useMemo)((()=>U.getEnabled()),[U]),it=(at=b,(0,r.useMemo)((()=>({draggable:{...Lt.draggable,...null==at?void 0:at.draggable},droppable:{...Lt.droppable,...null==at?void 0:at.droppable},dragOverlay:{...Lt.dragOverlay,...null==at?void 0:at.dragOverlay}})),[null==at?void 0:at.draggable,null==at?void 0:at.droppable,null==at?void 0:at.dragOverlay]));var at;const{droppableRects:st,measureDroppableContainers:ct,measuringScheduled:ut}=function(t,e){let{dragging:n,dependencies:o,config:i}=e;const[s,c]=(0,r.useState)(null),u=null!=s,{frequency:l,measure:f,strategy:p}=i,d=(0,r.useRef)(t),h=function(){switch(p){case bt.Always:return!1;case bt.BeforeDragging:return n;default:return!n}}(),g=(0,a.Ey)(h),y=(0,r.useCallback)((function(t){void 0===t&&(t=[]),g.current||c((e=>e?e.concat(t):t))}),[g]),m=(0,r.useRef)(null),v=(0,a.Gj)((e=>{if(h&&!n)return wt;const r=s;if(!e||e===wt||d.current!==t||null!=r){const e=new Map;for(let n of t){if(!n)continue;if(r&&r.length>0&&!r.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,o=t?new X(f(t),t):null;n.rect.current=o,o&&e.set(n.id,o)}return e}return e}),[t,s,n,h,f]);return(0,r.useEffect)((()=>{d.current=t}),[t]),(0,r.useEffect)((()=>{h||requestAnimationFrame((()=>y()))}),[n,h]),(0,r.useEffect)((()=>{u&&c(null)}),[u]),(0,r.useEffect)((()=>{h||"number"!=typeof l||null!==m.current||(m.current=setTimeout((()=>{y(),m.current=null}),l))}),[l,h,y,...o]),{droppableRects:v,measureDroppableContainers:y,measuringScheduled:u}}(ot,{dragging:L,dependencies:[F.x,F.y],config:it.droppable}),lt=function(t,e){const n=null!==e?t.get(e):void 0,r=n?n.node.current:null;return(0,a.Gj)((t=>{var n;return null===e?null:null!=(n=null!=r?r:t)?n:null}),[r,e])}(z,A),ft=(0,r.useMemo)((()=>tt?(0,a.DC)(tt):null),[tt]),pt=function(){const t=!1===(null==J?void 0:J.autoScrollEnabled),e="object"==typeof p?!1===p.enabled:!1===p,n=L&&!t&&!e;return"object"==typeof p?{...p,enabled:n}:{enabled:n}}(),dt=function(t,e){return St(t,e)}(lt,it.draggable.measure);!function(t){let{activeNode:e,measure:n,initialRect:o,config:i=!0}=t;const s=(0,r.useRef)(!1),{x:c,y:u}="boolean"==typeof i?{x:i,y:i}:i;(0,a.LI)((()=>{if(!c&&!u||!e)return void(s.current=!1);if(s.current||!o)return;const t=null==e?void 0:e.node.current;if(!t||!1===t.isConnected)return;const r=O(n(t),o);if(c||(r.x=0),u||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const e=P(t);e&&e.scrollBy({top:r.y,left:r.x})}}),[e,c,u,o,n])}({activeNode:A?z.get(A):null,config:pt.layoutShiftCompensation,initialRect:dt,measure:it.draggable.measure});const ht=Et(lt,it.draggable.measure,dt),gt=Et(lt?lt.parentElement:null),_t=(0,r.useRef)({activatorEvent:null,active:null,activeNode:lt,collisionRect:null,collisions:null,droppableRects:st,draggableNodes:z,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Mt=U.getNodeFor(null==(e=_t.current.over)?void 0:e.id),At=function(t){let{measure:e}=t;const[n,o]=(0,r.useState)(null),i=xt({callback:(0,r.useCallback)((t=>{for(const{target:n}of t)if((0,a.Re)(n)){o((t=>{const r=e(n);return t?{...t,width:r.width,height:r.height}:r}));break}}),[e])}),s=(0,r.useCallback)((t=>{const n=Ot(t);null==i||i.disconnect(),n&&(null==i||i.observe(n)),o(n?e(n):null)}),[e,i]),[c,u]=(0,a.wm)(s);return(0,r.useMemo)((()=>({nodeRef:c,rect:n,setRef:u})),[n,c,u])}({measure:it.dragOverlay.measure}),Nt=null!=(n=At.nodeRef.current)?n:lt,zt=L?null!=(s=At.rect)?s:ht:null,Wt=Boolean(At.nodeRef.current&&At.rect),Yt=O(Vt=Wt?null:ht,St(Vt));var Vt;const Qt=Dt(Nt?(0,a.Jj)(Nt):null),Zt=function(t){const e=(0,r.useRef)(t),n=(0,a.Gj)((n=>t?n&&n!==kt&&t&&e.current&&t.parentNode===e.current.parentNode?n:R(t):kt),[t]);return(0,r.useEffect)((()=>{e.current=t}),[t]),n}(L?null!=Mt?Mt:lt:null),Gt=function(t,e){void 0===e&&(e=N);const[n]=t,o=Dt(n?(0,a.Jj)(n):null),[i,s]=(0,r.useReducer)((function(){return t.length?t.map((t=>q(t)?o:new X(e(t),t))):jt}),jt),c=xt({callback:s});return t.length>0&&i===jt&&s(),(0,a.LI)((()=>{t.length?t.forEach((t=>null==c?void 0:c.observe(t))):(null==c||c.disconnect(),s())}),[t]),i}(Zt),Jt=Kt(_,{transform:{x:F.x-Yt.x,y:F.y-Yt.y,scaleX:1,scaleY:1},activatorEvent:tt,active:Q,activeNodeRect:ht,containerNodeRect:gt,draggingNodeRect:zt,over:_t.current.over,overlayNodeRect:At.rect,scrollableAncestors:Zt,scrollableAncestorRects:Gt,windowRect:Qt}),Xt=ft?(0,a.IH)(ft,F):null,$t=function(t){const[e,n]=(0,r.useState)(null),o=(0,r.useRef)(t),i=(0,r.useCallback)((t=>{const e=B(t.target);e&&n((t=>t?(t.set(e,K(e)),new Map(t)):null))}),[]);return(0,r.useEffect)((()=>{const e=o.current;if(t!==e){r(e);const a=t.map((t=>{const e=B(t);return e?(e.addEventListener("scroll",i,{passive:!0}),[e,K(e)]):null})).filter((t=>null!=t));n(a.length?new Map(a):null),o.current=t}return()=>{r(t),r(e)};function r(t){t.forEach((t=>{const e=B(t);null==e||e.removeEventListener("scroll",i)}))}}),[i,t]),(0,r.useMemo)((()=>t.length?e?Array.from(e.values()).reduce(((t,e)=>(0,a.IH)(t,e)),v):Z(t):v),[t,e])}(Zt),te=Ct($t),ee=Ct($t,[ht]),ne=(0,a.IH)(Jt,te),re=zt?T(zt,Jt):null,oe=Q&&re?m({active:Q,collisionRect:re,droppableRects:st,droppableContainers:ot,pointerCoordinates:Xt}):null,ie=M(oe,"id"),[ae,se]=(0,r.useState)(null),ce=function(t,e,n){return{...t,scaleX:e&&n?e.width/n.width:1,scaleY:e&&n?e.height/n.height:1}}(Wt?Jt:(0,a.IH)(Jt,ee),null!=(c=null==ae?void 0:ae.rect)?c:null,ht),ue=(0,r.useCallback)(((t,e)=>{let{sensor:n,options:r}=e;if(null==G.current)return;const o=z.get(G.current);if(!o)return;const a=t.nativeEvent,s=new n({active:G.current,activeNode:o,event:a,options:r,context:_t,onStart(t){const e=G.current;if(null==e)return;const n=z.get(e);if(!n)return;const{onDragStart:r}=nt.current,o={active:{id:e,data:n.data,rect:Y}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),I(qt.Initializing),E({type:h.DragStart,initialCoordinates:t,active:e}),k({type:"onDragStart",event:o})}))},onMove(t){E({type:h.DragMove,coordinates:t})},onEnd:c(h.DragEnd),onCancel:c(h.DragCancel)});function c(t){return async function(){const{active:e,collisions:n,over:r,scrollAdjustedTranslate:o}=_t.current;let s=null;if(e&&o){const{cancelDrop:i}=nt.current;s={activatorEvent:a,active:e,collisions:n,delta:o,over:r},t===h.DragEnd&&"function"==typeof i&&await Promise.resolve(i(s))&&(t=h.DragCancel)}G.current=null,(0,i.unstable_batchedUpdates)((()=>{E({type:t}),I(qt.Uninitialized),se(null),$(null),et(null);const e=t===h.DragEnd?"onDragEnd":"onDragCancel";if(s){const t=nt.current[e];null==t||t(s),k({type:e,event:s})}}))}}(0,i.unstable_batchedUpdates)((()=>{$(s),et(t.nativeEvent)}))}),[z]),le=(0,r.useCallback)(((t,e)=>(n,r)=>{const o=n.nativeEvent,i=z.get(r);if(null!==G.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===t(n,e.options,a)&&(o.dndKit={capturedBy:e.sensor},G.current=r,ue(n,e))}),[z,ue]),fe=function(t,e){return(0,r.useMemo)((()=>t.reduce(((t,n)=>{const{sensor:r}=n;return[...t,...r.activators.map((t=>({eventName:t.eventName,handler:e(t.handler,n)})))]}),[])),[t,e])}(y,le);!function(t){(0,r.useEffect)((()=>{if(!a.Nq)return;const e=t.map((t=>{let{sensor:e}=t;return null==e.setup?void 0:e.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((t=>{let{sensor:e}=t;return e})))}(y),(0,a.LI)((()=>{ht&&D===qt.Initializing&&I(qt.Initialized)}),[ht,D]),(0,r.useEffect)((()=>{const{onDragMove:t}=nt.current,{active:e,activatorEvent:n,collisions:r,over:o}=_t.current;if(!e||!n)return;const a={active:e,activatorEvent:n,collisions:r,delta:{x:ne.x,y:ne.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==t||t(a),k({type:"onDragMove",event:a})}))}),[ne.x,ne.y]),(0,r.useEffect)((()=>{const{active:t,activatorEvent:e,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=_t.current;if(!t||null==G.current||!e||!o)return;const{onDragOver:a}=nt.current,s=r.get(ie),c=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,u={active:t,activatorEvent:e,collisions:n,delta:{x:o.x,y:o.y},over:c};(0,i.unstable_batchedUpdates)((()=>{se(c),null==a||a(u),k({type:"onDragOver",event:u})}))}),[ie]),(0,a.LI)((()=>{_t.current={activatorEvent:tt,active:Q,activeNode:lt,collisionRect:re,collisions:oe,droppableRects:st,draggableNodes:z,draggingNode:Nt,draggingNodeRect:zt,droppableContainers:U,over:ae,scrollableAncestors:Zt,scrollAdjustedTranslate:ne},Y.current={initial:zt,translated:re}}),[Q,lt,oe,re,z,Nt,zt,st,U,ae,Zt,ne]),function(t){let{acceleration:e,activator:n=yt.Pointer,canScroll:o,draggingRect:i,enabled:s,interval:c=5,order:u=mt.TreeOrder,pointerCoordinates:l,scrollableAncestors:f,scrollableAncestorRects:p,delta:d,threshold:h}=t;const g=function(t){let{delta:e,disabled:n}=t;const r=(0,a.D9)(e);return(0,a.Gj)((t=>{if(n||!r||!t)return vt;const o=Math.sign(e.x-r.x),i=Math.sign(e.y-r.y);return{x:{[H.Backward]:t.x[H.Backward]||-1===o,[H.Forward]:t.x[H.Forward]||1===o},y:{[H.Backward]:t.y[H.Backward]||-1===i,[H.Forward]:t.y[H.Forward]||1===i}}}),[n,e,r])}({delta:d,disabled:!s}),[y,m]=(0,a.Yz)(),v=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),_=(0,r.useMemo)((()=>{switch(n){case yt.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case yt.DraggableRect:return i}}),[n,i,l]),w=(0,r.useRef)(null),S=(0,r.useCallback)((()=>{const t=w.current;if(!t)return;const e=v.current.x*b.current.x,n=v.current.y*b.current.y;t.scrollBy(e,n)}),[]),x=(0,r.useMemo)((()=>u===mt.TreeOrder?[...f].reverse():f),[u,f]);(0,r.useEffect)((()=>{if(s&&f.length&&_){for(const t of x){if(!1===(null==o?void 0:o(t)))continue;const n=f.indexOf(t),r=p[n];if(!r)continue;const{direction:i,speed:a}=V(t,r,_,e,h);for(const t of["x","y"])g[t][i[t]]||(a[t]=0,i[t]=0);if(a.x>0||a.y>0)return m(),w.current=t,y(S,c),v.current=a,void(b.current=i)}v.current={x:0,y:0},b.current={x:0,y:0},m()}else m()}),[e,S,o,m,s,c,JSON.stringify(_),JSON.stringify(g),y,f,x,p,JSON.stringify(h)])}({...pt,delta:F,draggingRect:re,pointerCoordinates:Xt,scrollableAncestors:Zt,scrollableAncestorRects:Gt});const pe=(0,r.useMemo)((()=>({active:Q,activeNode:lt,activeNodeRect:ht,activatorEvent:tt,collisions:oe,containerNodeRect:gt,dragOverlay:At,draggableNodes:z,droppableContainers:U,droppableRects:st,over:ae,measureDroppableContainers:ct,scrollableAncestors:Zt,scrollableAncestorRects:Gt,measuringConfiguration:it,measuringScheduled:ut,windowRect:Qt})),[Q,lt,ht,tt,oe,gt,At,z,U,st,ae,ct,Zt,Gt,it,ut,Qt]),de=(0,r.useMemo)((()=>({activatorEvent:tt,activators:fe,active:Q,activeNodeRect:ht,ariaDescribedById:{draggable:rt},dispatch:E,draggableNodes:z,over:ae,measureDroppableContainers:ct})),[tt,fe,Q,ht,E,rt,z,ae,ct]);return o().createElement(l.Provider,{value:C},o().createElement(Rt.Provider,{value:de},o().createElement(Pt.Provider,{value:pe},o().createElement(Ht.Provider,{value:ce},g)),o().createElement(Ut,{disabled:!1===(null==f?void 0:f.restoreFocus)})),o().createElement(d,{...f,hiddenTextDescribedById:rt}))})),Yt=(0,r.createContext)(null),Vt="button",Qt="Droppable";function Zt(t){let{id:e,data:n,disabled:o=!1,attributes:i}=t;const s=(0,a.Ld)(Qt),{activators:c,activatorEvent:u,active:l,activeNodeRect:f,ariaDescribedById:p,draggableNodes:d,over:h}=(0,r.useContext)(Rt),{role:g=Vt,roleDescription:y="draggable",tabIndex:m=0}=null!=i?i:{},v=(null==l?void 0:l.id)===e,b=(0,r.useContext)(v?Ht:Yt),[_,w]=(0,a.wm)(),[S,x]=(0,a.wm)(),M=function(t,e){return(0,r.useMemo)((()=>t.reduce(((t,n)=>{let{eventName:r,handler:o}=n;return t[r]=t=>{o(t,e)},t}),{})),[t,e])}(c,e),E=(0,a.Ey)(n);return(0,a.LI)((()=>(d.set(e,{id:e,key:s,node:_,activatorNode:S,data:E}),()=>{const t=d.get(e);t&&t.key===s&&d.delete(e)})),[d,e]),{active:l,activatorEvent:u,activeNodeRect:f,attributes:(0,r.useMemo)((()=>({role:g,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!v||g!==Vt)||void 0,"aria-roledescription":y,"aria-describedby":p.draggable})),[o,g,m,v,y,p.draggable]),isDragging:v,listeners:o?void 0:M,node:_,over:h,setNodeRef:w,setActivatorNodeRef:x,transform:b}}function Gt(){return(0,r.useContext)(Pt)}const Jt="Droppable",Xt={timeout:25};function $t(t){let{data:e,disabled:n=!1,id:o,resizeObserverConfig:i}=t;const s=(0,a.Ld)(Jt),{active:c,dispatch:u,over:l,measureDroppableContainers:f}=(0,r.useContext)(Rt),p=(0,r.useRef)({disabled:n}),d=(0,r.useRef)(!1),g=(0,r.useRef)(null),y=(0,r.useRef)(null),{disabled:m,updateMeasurementsFor:v,timeout:b}={...Xt,...i},_=(0,a.Ey)(null!=v?v:o),w=xt({callback:(0,r.useCallback)((()=>{d.current?(null!=y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{f(Array.isArray(_.current)?_.current:[_.current]),y.current=null}),b)):d.current=!0}),[b]),disabled:m||!c}),S=(0,r.useCallback)(((t,e)=>{w&&(e&&(w.unobserve(e),d.current=!1),t&&w.observe(t))}),[w]),[x,M]=(0,a.wm)(S),E=(0,a.Ey)(e);return(0,r.useEffect)((()=>{w&&x.current&&(w.disconnect(),d.current=!1,w.observe(x.current))}),[x,w]),(0,a.LI)((()=>(u({type:h.RegisterDroppable,element:{id:o,key:s,disabled:n,node:x,rect:g,data:E}}),()=>u({type:h.UnregisterDroppable,key:s,id:o}))),[o]),(0,r.useEffect)((()=>{n!==p.current.disabled&&(u({type:h.SetDroppableDisabled,id:o,key:s,disabled:n}),p.current.disabled=n)}),[o,s,n,u]),{active:c,rect:g,isOver:(null==l?void 0:l.id)===o,node:x,over:l,setNodeRef:M}}function te(t){let{animation:e,children:n}=t;const[i,s]=(0,r.useState)(null),[c,u]=(0,r.useState)(null),l=(0,a.D9)(n);return n||i||!l||s(l),(0,a.LI)((()=>{if(!c)return;const t=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=t&&null!=n?Promise.resolve(e(n,c)).then((()=>{s(null)})):s(null)}),[e,i,c]),o().createElement(o().Fragment,null,n,i?(0,r.cloneElement)(i,{ref:u}):null)}const ee={x:0,y:0,scaleX:1,scaleY:1};function ne(t){let{children:e}=t;return o().createElement(Rt.Provider,{value:zt},o().createElement(Ht.Provider,{value:ee},e))}const re={position:"fixed",touchAction:"none"},oe=t=>(0,a.vd)(t)?"transform 250ms ease":void 0,ie=(0,r.forwardRef)(((t,e)=>{let{as:n,activatorEvent:r,adjustScale:i,children:s,className:c,rect:u,style:l,transform:f,transition:p=oe}=t;if(!u)return null;const d=i?f:{...f,scaleX:1,scaleY:1},h={...re,width:u.width,height:u.height,top:u.top,left:u.left,transform:a.ux.Transform.toString(d),transformOrigin:i&&r?_(r,u):void 0,transition:"function"==typeof p?p(r):p,...l};return o().createElement(n,{className:c,style:h,ref:e},s)})),ae=t=>e=>{let{active:n,dragOverlay:r}=e;const o={},{styles:i,className:a}=t;if(null!=i&&i.active)for(const[t,e]of Object.entries(i.active))void 0!==e&&(o[t]=n.node.style.getPropertyValue(t),n.node.style.setProperty(t,e));if(null!=i&&i.dragOverlay)for(const[t,e]of Object.entries(i.dragOverlay))void 0!==e&&r.node.style.setProperty(t,e);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[t,e]of Object.entries(o))n.node.style.setProperty(t,e);null!=a&&a.active&&n.node.classList.remove(a.active)}},se={duration:250,easing:"ease",keyframes:t=>{let{transform:{initial:e,final:n}}=t;return[{transform:a.ux.Transform.toString(e)},{transform:a.ux.Transform.toString(n)}]},sideEffects:ae({styles:{active:{opacity:"0"}}})};let ce=0;function ue(t){return(0,r.useMemo)((()=>{if(null!=t)return ce++,ce}),[t])}const le=o().memo((t=>{let{adjustScale:e=!1,children:n,dropAnimation:i,style:s,transition:c,modifiers:u,wrapperElement:l="div",className:f,zIndex:p=999}=t;const{activatorEvent:d,active:h,activeNodeRect:g,containerNodeRect:y,draggableNodes:m,droppableContainers:v,dragOverlay:b,over:_,measuringConfiguration:w,scrollableAncestors:S,scrollableAncestorRects:x,windowRect:M}=Gt(),E=(0,r.useContext)(Ht),k=ue(null==h?void 0:h.id),C=Kt(u,{activatorEvent:d,active:h,activeNodeRect:g,containerNodeRect:y,draggingNodeRect:b.rect,over:_,overlayNodeRect:b.rect,scrollableAncestors:S,scrollableAncestorRects:x,transform:E,windowRect:M}),D=St(g),j=function(t){let{config:e,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=t;return(0,a.zX)(((t,i)=>{if(null===e)return;const s=n.get(t);if(!s)return;const c=s.node.current;if(!c)return;const u=Ot(i);if(!u)return;const{transform:l}=(0,a.Jj)(i).getComputedStyle(i),f=L(l);if(!f)return;const p="function"==typeof e?e:function(t){const{duration:e,easing:n,sideEffects:r,keyframes:o}={...se,...t};return t=>{let{active:i,dragOverlay:a,transform:s,...c}=t;if(!e)return;const u=a.rect.left-i.rect.left,l=a.rect.top-i.rect.top,f={scaleX:1!==s.scaleX?i.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?i.rect.height*s.scaleY/a.rect.height:1},p={x:s.x-u,y:s.y-l,...f},d=o({...c,active:i,dragOverlay:a,transform:{initial:s,final:p}}),[h]=d,g=d[d.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const y=null==r?void 0:r({active:i,dragOverlay:a,...c}),m=a.node.animate(d,{duration:e,easing:n,fill:"forwards"});return new Promise((t=>{m.onfinish=()=>{null==y||y(),t()}}))}}(e);return G(c,o.draggable.measure),p({active:{id:t,data:s.data,node:c,rect:o.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:f})}))}({config:i,draggableNodes:m,droppableContainers:v,measuringConfiguration:w}),O=D?b.setRef:void 0;return o().createElement(ne,null,o().createElement(te,{animation:j},h&&k?o().createElement(ie,{key:k,id:h.id,ref:O,as:l,activatorEvent:d,adjustScale:e,className:f,transition:c,rect:D,style:{zIndex:p,...s},transform:C},n):null))}))},95339:function(t,e,n){"use strict";n.d(e,{DL:function(){return r}}),n(17592);const r=({transform:t})=>({...t,x:0})},67445:function(t,e,n){"use strict";n.d(e,{Fo:function(){return g},U2:function(){return l},is:function(){return E},nB:function(){return S},qw:function(){return p}});var r=n(1024),o=n.n(r),i=n(20455),a=n(17592);function s(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}function c(t,e){return t.reduce(((t,n,r)=>{const o=e.get(n);return o&&(t[r]=o),t}),Array(t.length))}function u(t){return null!==t&&t>=0}const l=t=>{let{rects:e,activeIndex:n,overIndex:r,index:o}=t;const i=s(e,r,n),a=e[o],c=i[o];return c&&a?{x:c.left-a.left,y:c.top-a.top,scaleX:c.width/a.width,scaleY:c.height/a.height}:null},f={scaleX:1,scaleY:1},p=t=>{var e;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=t;const s=null!=(e=i[n])?e:r;if(!s)return null;if(o===n){const t=i[a];return t?{x:0,y:n<a?t.top+t.height-(s.top+s.height):t.top-s.top,...f}:null}const c=function(t,e,n){const r=t[e],o=t[e-1],i=t[e+1];return r?n<e?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-s.height-c,...f}:o<n&&o>=a?{x:0,y:s.height+c,...f}:{x:0,y:0,...f}},d="Sortable",h=o().createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:l,disabled:{draggable:!1,droppable:!1}});function g(t){let{children:e,id:n,items:s,strategy:u=l,disabled:f=!1}=t;const{active:p,dragOverlay:g,droppableRects:y,over:m,measureDroppableContainers:v,measuringScheduled:b}=(0,i.Cj)(),_=(0,a.Ld)(d,n),w=Boolean(null!==g.rect),S=(0,r.useMemo)((()=>s.map((t=>"object"==typeof t&&"id"in t?t.id:t))),[s]),x=null!=p,M=p?S.indexOf(p.id):-1,E=m?S.indexOf(m.id):-1,k=(0,r.useRef)(S),C=!function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(S,k.current),D=-1!==E&&-1===M||C,j=function(t){return"boolean"==typeof t?{draggable:t,droppable:t}:t}(f);(0,a.LI)((()=>{C&&x&&!b&&v(S)}),[C,S,x,v,b]),(0,r.useEffect)((()=>{k.current=S}),[S]);const O=(0,r.useMemo)((()=>({activeIndex:M,containerId:_,disabled:j,disableTransforms:D,items:S,overIndex:E,useDragOverlay:w,sortedRects:c(S,y),strategy:u})),[M,_,j.draggable,j.droppable,D,S,E,y,w,u]);return o().createElement(h.Provider,{value:O},e)}const y=t=>{let{id:e,items:n,activeIndex:r,overIndex:o}=t;return s(n,r,o).indexOf(e)},m=t=>{let{containerId:e,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:c,transition:u}=t;return!(!u||!r||s!==i&&o===a||!n&&(a===o||e!==c))},v={duration:200,easing:"ease"},b="transform",_=a.ux.Transition.toString({property:b,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function S(t){let{animateLayoutChanges:e=m,attributes:n,disabled:o,data:s,getNewIndex:c=y,id:l,strategy:f,resizeObserverConfig:p,transition:d=v}=t;const{items:g,containerId:S,activeIndex:x,disabled:M,disableTransforms:E,sortedRects:k,overIndex:C,useDragOverlay:D,strategy:j}=(0,r.useContext)(h),O=function(t,e){var n,r;return"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(n=null==t?void 0:t.draggable)?n:e.draggable,droppable:null!=(r=null==t?void 0:t.droppable)?r:e.droppable}}(o,M),I=g.indexOf(l),T=(0,r.useMemo)((()=>({sortable:{containerId:S,index:I,items:g},...s})),[S,s,I,g]),L=(0,r.useMemo)((()=>g.slice(g.indexOf(l))),[g,l]),{rect:A,node:N,isOver:z,setNodeRef:R}=(0,i.Zj)({id:l,data:T,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:L,...p}}),{active:P,activatorEvent:B,activeNodeRect:F,attributes:U,setNodeRef:K,listeners:H,isDragging:q,over:W,setActivatorNodeRef:Y,transform:V}=(0,i.O1)({id:l,data:T,attributes:{...w,...n},disabled:O.draggable}),Q=(0,a.HB)(R,K),Z=Boolean(P),G=Z&&!E&&u(x)&&u(C),J=!D&&q,X=J&&G?V:null,$=G?null!=X?X:(null!=f?f:j)({rects:k,activeNodeRect:F,activeIndex:x,overIndex:C,index:I}):null,tt=u(x)&&u(C)?c({id:l,items:g,activeIndex:x,overIndex:C}):I,et=null==P?void 0:P.id,nt=(0,r.useRef)({activeId:et,items:g,newIndex:tt,containerId:S}),rt=g!==nt.current.items,ot=e({active:P,containerId:S,isDragging:q,isSorting:Z,id:l,index:I,items:g,newIndex:nt.current.newIndex,previousItems:nt.current.items,previousContainerId:nt.current.containerId,transition:d,wasDragging:null!=nt.current.activeId}),it=function(t){let{disabled:e,index:n,node:o,rect:s}=t;const[c,u]=(0,r.useState)(null),l=(0,r.useRef)(n);return(0,a.LI)((()=>{if(!e&&n!==l.current&&o.current){const t=s.current;if(t){const e=(0,i.VK)(o.current,{ignoreTransform:!0}),n={x:t.left-e.left,y:t.top-e.top,scaleX:t.width/e.width,scaleY:t.height/e.height};(n.x||n.y)&&u(n)}}n!==l.current&&(l.current=n)}),[e,n,o,s]),(0,r.useEffect)((()=>{c&&requestAnimationFrame((()=>{u(null)}))}),[c]),c}({disabled:!ot,index:I,node:N,rect:A});return(0,r.useEffect)((()=>{Z&&nt.current.newIndex!==tt&&(nt.current.newIndex=tt),S!==nt.current.containerId&&(nt.current.containerId=S),g!==nt.current.items&&(nt.current.items=g)}),[Z,tt,S,g]),(0,r.useEffect)((()=>{if(et===nt.current.activeId)return;if(et&&!nt.current.activeId)return void(nt.current.activeId=et);const t=setTimeout((()=>{nt.current.activeId=et}),50);return()=>clearTimeout(t)}),[et]),{active:P,activeIndex:x,attributes:U,data:T,rect:A,index:I,newIndex:tt,items:g,isOver:z,isSorting:Z,isDragging:q,listeners:H,node:N,overIndex:C,over:W,setNodeRef:Q,setActivatorNodeRef:Y,setDroppableNodeRef:R,setDraggableNodeRef:K,transform:null!=it?it:$,transition:it||rt&&nt.current.newIndex===I?_:J&&!(0,a.vd)(B)||!d?void 0:Z||ot?a.ux.Transition.toString({...d,property:b}):void 0}}function x(t){if(!t)return!1;const e=t.data.current;return!!(e&&"sortable"in e&&"object"==typeof e.sortable&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const M=[i.g4.Down,i.g4.Right,i.g4.Up,i.g4.Left],E=(t,e)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:s,over:c,scrollableAncestors:u}}=e;if(M.includes(t.code)){if(t.preventDefault(),!n||!r)return;const e=[];s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const a=o.get(n.id);if(a)switch(t.code){case i.g4.Down:r.top<a.top&&e.push(n);break;case i.g4.Up:r.top>a.top&&e.push(n);break;case i.g4.Left:r.left>a.left&&e.push(n);break;case i.g4.Right:r.left<a.left&&e.push(n)}}));const p=(0,i.ey)({active:n,collisionRect:r,droppableRects:o,droppableContainers:e,pointerCoordinates:null});let d=(0,i._8)(p,"id");if(d===(null==c?void 0:c.id)&&p.length>1&&(d=p[1].id),null!=d){const t=s.get(n.id),e=s.get(d),c=e?o.get(e.id):null,p=null==e?void 0:e.node.current;if(p&&c&&t&&e){const n=(0,i.hI)(p).some(((t,e)=>u[e]!==t)),o=k(t,e),s=(f=e,!(!x(l=t)||!x(f))&&!!k(l,f)&&l.data.current.sortable.index<f.data.current.sortable.index),d=n||!o?{x:0,y:0}:{x:s?r.width-c.width:0,y:s?r.height-c.height:0},h={x:c.left,y:c.top};return d.x&&d.y?h:(0,a.$X)(h,d)}}}var l,f};function k(t,e){return!(!x(t)||!x(e))&&t.data.current.sortable.containerId===e.data.current.sortable.containerId}},17592:function(t,e,n){"use strict";n.d(e,{$X:function(){return M},D9:function(){return b},DC:function(){return k},Ey:function(){return y},FJ:function(){return a},Gj:function(){return m},HB:function(){return o},IH:function(){return x},Jj:function(){return c},LI:function(){return d},Ld:function(){return w},Nq:function(){return i},Re:function(){return l},UG:function(){return s},Yz:function(){return g},qk:function(){return u},r3:function(){return p},so:function(){return j},ux:function(){return C},vZ:function(){return f},vd:function(){return E},wm:function(){return v},zX:function(){return h}});var r=n(1024);function o(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,r.useMemo)((()=>t=>{e.forEach((e=>e(t)))}),e)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(t){const e=Object.prototype.toString.call(t);return"[object Window]"===e||"[object global]"===e}function s(t){return"nodeType"in t}function c(t){var e,n;return t?a(t)?t:s(t)&&null!=(e=null==(n=t.ownerDocument)?void 0:n.defaultView)?e:window:window}function u(t){const{Document:e}=c(t);return t instanceof e}function l(t){return!a(t)&&t instanceof c(t).HTMLElement}function f(t){return t instanceof c(t).SVGElement}function p(t){return t?a(t)?t.document:s(t)?u(t)?t:l(t)||f(t)?t.ownerDocument:document:document:document}const d=i?r.useLayoutEffect:r.useEffect;function h(t){const e=(0,r.useRef)(t);return d((()=>{e.current=t})),(0,r.useCallback)((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return null==e.current?void 0:e.current(...n)}),[])}function g(){const t=(0,r.useRef)(null);return[(0,r.useCallback)(((e,n)=>{t.current=setInterval(e,n)}),[]),(0,r.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}function y(t,e){void 0===e&&(e=[t]);const n=(0,r.useRef)(t);return d((()=>{n.current!==t&&(n.current=t)}),e),n}function m(t,e){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const e=t(n.current);return n.current=e,e}),[...e])}function v(t){const e=h(t),n=(0,r.useRef)(null),o=(0,r.useCallback)((t=>{t!==n.current&&(null==e||e(t,n.current)),n.current=t}),[]);return[n,o]}function b(t){const e=(0,r.useRef)();return(0,r.useEffect)((()=>{e.current=t}),[t]),e.current}let _={};function w(t,e){return(0,r.useMemo)((()=>{if(e)return e;const n=null==_[t]?0:_[t]+1;return _[t]=n,t+"-"+n}),[t,e])}function S(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((e,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=e[n];null!=r&&(e[n]=r+t*o)}return e}),{...e})}}const x=S(1),M=S(-1);function E(t){if(!t)return!1;const{KeyboardEvent:e}=c(t.target);return e&&t instanceof e}function k(t){if(function(t){if(!t)return!1;const{TouchEvent:e}=c(t.target);return e&&t instanceof e}(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return function(t){return"clientX"in t&&"clientY"in t}(t)?{x:t.clientX,y:t.clientY}:null}const C=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[C.Translate.toString(t),C.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),D="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function j(t){return t.matches(D)?t:t.querySelector(D)}},29014:function(t){window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Disable=0]="Disable",t[t.Enable=1]="Enable"}(e.CookiePolicy||(e.CookiePolicy={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);e.renderButtons=r.renderButtons;var o=n(3);e.close=o.close,e.launchAsync=o.launchAsync;var i=n(0);e.CookiePolicy=i.CookiePolicy,window.addEventListener("load",(function(){var t;window.hasOwnProperty("Promise")||((t=document.createElement("script")).src="https://contentstorage.onenote.office.net/onenoteltir/permanent-static-resources/promise-polyfill.min.js",document.head.appendChild(t)),r.renderButtons()}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={af:"Indompelende leser",am:"በህያው ስሜት ፈጣሪ ዕይታ አንባቢ",ar:"القارئ الشامل",as:"ইমাৰচিভ ৰিডাৰ",az:"İmmersiv Oxuyucu",be:"Імерсіўны чытальнік",bg:"Концентриран четец",bn:"মনোগ্রাহী পাঠক","bn-bd":"ইমার্সিভ পাঠক",bs:"Koncentrirani čitalac",ca:"Lector immersiu",cs:"Asistivní čtečka","cy-gb":"Darllenydd Ymdrwythol",da:"Forenklet læser",de:"Plastischer Reader",el:"Προηγμένο πρόγραμμα ανάγνωσης",en:"Immersive Reader",es:"Lector inmersivo",et:"Süvaluger",eu:"Irakurgailu murgiltzailea",fa:"خواننده همه‌جانبه",fi:"Syventävä lukuohjelma",fil:"Immersive Reader",fr:"Lecteur immersif","ga-ie":"Léitheoir tumthach",gd:"An leughadair ùr-nòsach",gl:"Lector avanzado",gu:"ઇમર્સિવ રીડર",ha:"Mai karatu Mai barbazawa",he:"תצוגת קריאה מודרנית",hi:"इमर्सिव रीडर",hr:"Stopljeni čitač",hu:"Modern olvasó",hy:"Խորասուզված ընթերցիչ",id:"Pembaca Imersif",ig:"Ọgụụ Kenzipụtara",is:"Aðgengilegt lestrarumhverfi",it:"Strumento di lettura immersiva",ja:"イマーシブ リーダー",ka:"იმერსიული წამკითხველი",kk:"Иммерсивті оқу құралы",km:"កម្មវិធីអានពណ៌រំលេចនៅលើអេក្រង់",kn:"ಇಮ್ಮರ್ಸಿವ್ ಓದುಗ",ko:"몰입형 리더",kok:"तंद्री लागिल्लो वाचक","ku-arab":"خوێنەری پڕ",ky:"Курчаган Окугуч",lb:"Immersive Reader",lo:"ຕົວອ່ານອິມເມີສີບ",lt:"Įtraukianti skaitytuvė",lv:"Tīrskata lasītājs",mi:"Pūpānui Rumaki",mk:"Сеопфатен читач",ml:"ഇമ്മേഴ്‌സീവ് റീഡർ",mn:"Идэвхтэй уншигч",mr:"इमर्सिव्ह वाचक",ms:"Pembaca Imersif",mt:"Qarrej Immersiv",ne:"इमेर्सिभ रिडर",nl:"Insluitende lezer","nn-no":"Engasjerande lesar",no:"Engasjerende leser",nso:"Go Bala ka Mongwalo o Mokoto",or:"ଇମରସିଭ୍ ରିଡର୍",pa:"ਇਮਰਸਿਵ ਰੀਡਰ","pa-arab":"گھیرن آلا مطالعہ کار",pl:"Czytnik immersyjny",prs:"خواننده نمایش",pt:"Leitura Avançada",quc:"Nim ucholajil sik'inel uwach",quz:"Wankisqa Ñawiq",ro:"Immersive Reader",ru:"Иммерсивное средство чтения",rw:"Insakazasoma",sd:"امرسو ريڊر",si:"ගිලෙන සුළු කියවනය",sk:"Imerzná čítačka",sl:"Potopni bralnik",sq:"Lexuesi kredhës","sr-cyrl-ba":"Концентрисани читалац","sr-cyrl-rs":"Концентрисани читалац","sr-latn-rs":"Koncentrisani čitalac",sv:"Avancerad läsare",sw:"Kisomaji cha Kuzamisha",ta:"அற்புதமான ரீடர்",te:"మంత్రముగ్ధులను చేసే పఠన సాధనం","tg-cyrl-tj":"Хонандаи фарогир",th:"โปรแกรมช่วยอ่าน",ti:"ኣንባቢ ሕሉው ስምዒት ፈጣሪ",tk:"Giňişleýin okaýjy",tn:"Sebadi sa Imesife",tr:"Tam Ekran Okuyucu",tt:"Чолгап алучы уку чарасы","ug-cn":"چۆكمە ئوقۇغۇچ",uk:"Занурення в текст",ur:"امرسیو مطالعہ کار",uz:"Immersiv mutolaa vositasi",vi:"Trình đọc Chân thực",wo:"Jàngukaay bu Rafet",xh:"Isifundi Esikhulu",yo:"Ìwò Alámùtán",zh:"沉浸式阅读器","zh-hant":"沈浸式閱讀程式",zu:"Isifundi Sokuzizwisa"};function o(t){var e=document.createElement("img");e.src="https://contentstorage.onenote.office.net/onenoteltir/permanent-static-resources/immersive-reader-icon.svg";var n=t.getAttribute("data-icon-px-size")||"20";e.style.height=e.style.width=n+"px",e.style.verticalAlign="middle",e.style.marginTop="-2px";var r=t.getAttribute("data-locale")||"en";e.alt=s(r),t.appendChild(e)}function i(t){var e=document.createElement("span");e.style.marginLeft="8px",t.appendChild(e)}function a(t){var e=document.createElement("span"),n=t.getAttribute("data-locale")||"en";e.textContent=s(n),t.appendChild(e)}function s(t){return t=t.toLowerCase(),r[t]?r[t]:"zh-hk"===t||"zh-mo"===t||"zh-tw"===t?r["zh-hant"]:(t=t.substring(0,t.lastIndexOf("-")),r[t]?r[t]:(t=t.substring(0,t.lastIndexOf("-")),r[t]?r[t]:r.en))}e.renderButtons=function(t){var e=document.createElement("style");e.innerHTML=".immersive-reader-button{cursor:pointer;display:inline-block;padding:5px;} .immersive-reader-button:hover{background:rgba(0,0,0,.05);border-radius:2px",document.head.appendChild(e);var n=[].slice.call(document.getElementsByClassName("immersive-reader-button"));t&&t.elements&&(n=t.elements);for(var r=0,c=n;r<c.length;r++){var u=c[r];u.setAttribute("role","button");var l=u.getAttribute("data-locale")||"en";switch(u.setAttribute("aria-label",s(l)),u.getAttribute("data-button-style")||"icon"){case"icon":o(u);break;case"text":a(u);break;case"iconAndText":o(u),i(u),a(u)}}}},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(4),a={};function s(t){return!!t&&new RegExp("^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])$").test(t)}a[i.ErrorCode.TokenExpired]="The access token supplied is expired.",a[i.ErrorCode.Throttled]="You have exceeded your quota.",a[i.ErrorCode.ServerError]="An error occurred when calling the server to process the text.",a[i.ErrorCode.InvalidSubdomain]="The subdomain supplied is invalid.",e.launchAsync=function(t,e,n,c){return new Promise((function(u,l){if(t)if(n)if(n.chunks)if(n.chunks.length)if(s(e)||c&&c.customDomain){var f=Date.now();(c=r({uiZIndex:1e3,timeout:15e3,useWebview:!1,allowFullscreen:!0,hideExitButton:!1,cookiePolicy:o.CookiePolicy.Disable},c)).uiZIndex&&"number"==typeof c.uiZIndex||(c.uiZIndex=1e3);var p=null,d=document.createElement("div"),h=c.useWebview?document.createElement("webview"):document.createElement("iframe"),g=document.createElement("style");g.innerHTML="body{height:100%;overflow:hidden;}";var y=function(){p&&(window.clearTimeout(p),p=null)},m=function(){document.body.contains(d)&&document.body.removeChild(d),window.removeEventListener("message",b),y(),g.parentNode&&g.parentNode.removeChild(g)},v=function(){m(),c.onExit&&c.onExit()};m();var b=function(r){if(r&&r.data)if("ImmersiveReader-ReadyForContent"===r.data){y();var o={cogSvcsAccessToken:t,cogSvcsSubdomain:e,request:n,launchToPostMessageSentDurationInMs:Date.now()-f};h.contentWindow.postMessage(JSON.stringify({messageType:"Content",messageValue:o}),"*")}else if("ImmersiveReader-Exit"===r.data)v();else if(r.data.startsWith("ImmersiveReader-LaunchResponse:")){var s=null,c=null,p=null;try{p=JSON.parse(r.data.substring(31))}catch(t){}p&&p.success?s={container:d,sessionId:p.sessionId}:c=p&&!p.success?{code:p.errorCode,message:a[p.errorCode],sessionId:p.sessionId}:{code:i.ErrorCode.ServerError,message:a[i.ErrorCode.ServerError]},s?(y(),u(s)):c&&(v(),l(c))}};window.addEventListener("message",b),p=window.setTimeout((function(){m(),l({code:i.ErrorCode.Timeout,message:"Page failed to load after timeout ("+c.timeout+" ms)"})}),c.timeout),c.allowFullscreen&&h.setAttribute("allowfullscreen",""),h.style.cssText="position: static; width: 100vw; height: 100vh; left: 0; top: 0; border-width: 0",c.useWebview&&h.addEventListener("loadstop",(function(){h.contentWindow.postMessage(JSON.stringify({messageType:"WebviewHost"}),"*")}));var _=(c.customDomain?c.customDomain:"https://"+e+".cognitiveservices.azure.com/immersivereader/webapp/v1.0/")+"reader?exitCallback=ImmersiveReader-Exit&sdkPlatform=js&sdkVersion=1.0.0";_+="&cookiePolicy="+(c.cookiePolicy===o.CookiePolicy.Enable?"enable":"disable"),c.hideExitButton&&(_+="&hideExitButton=true"),c.uiLang&&(_+="&omkt="+c.uiLang),h.src=_,d.style.cssText="position: fixed; width: 100vw; height: 100vh; left: 0; top: 0; border-width: 0; -webkit-perspective: 1px; z-index: "+c.uiZIndex+"; background: white; overflow: hidden",d.appendChild(h),document.body.appendChild(d),document.head.appendChild(g)}else l({code:i.ErrorCode.InvalidSubdomain,message:a[i.ErrorCode.InvalidSubdomain]});else l({code:i.ErrorCode.BadArgument,message:"Chunks must not be empty"});else l({code:i.ErrorCode.BadArgument,message:"Chunks must not be null"});else l({code:i.ErrorCode.BadArgument,message:"Content must not be null"});else l({code:i.ErrorCode.BadArgument,message:"Token must not be null"})}))},e.close=function(){window.postMessage("ImmersiveReader-Exit","*")},e.isValidSubdomain=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.BadArgument="BadArgument",t.Timeout="Timeout",t.TokenExpired="TokenExpired",t.Throttled="Throttled",t.ServerError="ServerError",t.InvalidSubdomain="InvalidSubdomain"}(e.ErrorCode||(e.ErrorCode={}))}])},28171:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(r=n(62726))&&r.__esModule?r:{default:r},a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.segments,r=void 0===n?50:n,o=e.iterationLimit,a=void 0===o?100:o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.p1=new i.default,this.p2=new i.default,this.segments=r,this.iterationLimit=a}return o(t,[{key:"drawToCanvas",value:function(t,e,n,r){this.p1.update(e),this.p2.update(n);var o=this.p1.x>this.p2.x,i=o?this.p2:this.p1,a=o?this.p1:this.p2,s=[],c=!0;if(i.getDistanceTo(a)<r)if(a.x-i.x>.01){var u=a.x-i.x,l=a.y-i.y,f=-this.getCatenaryParameter(u,l,r,this.iterationLimit),p=.5*(f*Math.log((r+l)/(r-l))-u),d=f*Math.cosh(p/f),h=i.x-p,g=i.y-d;s=this.getCurve(f,i,a,h,g,this.segments),c=!1}else{var y=.5*(i.x+a.x),m=.5*(i.y+a.y+r);s=[[i.x,i.y],[y,m],[a.x,a.y]]}else s=[[i.x,i.y],[a.x,a.y]];return c?this.drawLine(s,t):this.drawCurve(s,t),s}},{key:"getCatenaryParameter",value:function(t,e,n,r){for(var o=Math.sqrt(n*n-e*e)/t,i=Math.acosh(o)+1,a=-1,s=0;Math.abs(i-a)>1e-6&&s<r;)a=i,i-=(Math.sinh(i)-o*i)/(Math.cosh(i)-o),s++;return t/(2*i)}},{key:"getCurve",value:function(t,e,n,r,o,i){for(var a=[e.x,t*Math.cosh((e.x-r)/t)+o],s=n.x-e.x,c=i-1,u=0;u<c;u++){var l=e.x+s*(u+.5)/c,f=t*Math.cosh((l-r)/t)+o;a.push(l,f)}return a.push(n.x,t*Math.cosh((n.x-r)/t)+o),a}},{key:"drawLine",value:function(t,e){e.moveTo(t[0][0],t[0][1]),e.lineTo(t[1][0],t[1][1])}},{key:"drawCurve",value:function(t,e){var n=.5*t.length-1,r=t[2],o=t[3],i=[];e.moveTo(t[0],t[1]);for(var a=2;a<n;a++){var s=t[2*a],c=t[2*a+1],u=.5*(s+r),l=.5*(c+o);i.push([r,o,u,l]),e.quadraticCurveTo(r,o,u,l),r=s,o=c}return n=t.length,e.quadraticCurveTo(t[n-4],t[n-3],t[n-2],t[n-1]),i}}]),t}();e.default=a},62726:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e,this.y=n}return n(t,[{key:"update",value:function(t){this.x=t.x,this.y=t.y}},{key:"getDifferenceTo",value:function(e){return new t(this.x-e.x,this.y-e.y)}},{key:"getDistanceTo",value:function(t){var e=this.getDifferenceTo(t);return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}}]),t}();e.default=r},37410:function(t,e,n){"use strict";e.oT=void 0;var r=i(n(28171)),o=i(n(62726));function i(t){return t&&t.__esModule?t:{default:t}}e.oT=r.default,o.default},98886:function(t,e,n){"use strict";n.d(e,{h4:function(){return ft},cn:function(){return P}});var r=n(56784),o=n.n(r),i=n(1024),a=n.n(i),s=n(74161),c=n(6880);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e,n,r,o,i){var a=r-n;return e+n<=t.offset?Object.assign({},t,{offset:t.offset+a}):e>=t.offset&&e+n<=t.offset+t.length?Object.assign({},t,{length:t.length+a}):t.offset>=e&&t.offset+t.length<=e+n&&o>0?Object.assign({},t,{offset:t.offset+o}):t.offset<e&&t.offset+t.length<=e+n&&t.offset+t.length>e&&o>0?[Object.assign({},t,{length:e-t.offset}),Object.assign({},t,{offset:e+o,length:t.offset-e+t.length})]:t.offset>=e&&t.offset+t.length>e+n&&e+n>t.offset&&i>0?[Object.assign({},t,{offset:t.offset+o,length:e+n-t.offset}),Object.assign({},t,{offset:e+n+o+i,length:t.offset+t.length-(e+n)})]:t}var p=function(t,e){return t.offset===e.offset?e.length-t.length:t.offset-e.offset},d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","\n":"<br/>"};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var g=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function y(t){if(-1!==g.indexOf(t.type))return s.renderToStaticMarkup(t);var e=s.renderToStaticMarkup(a().cloneElement(t,{},"\r")).split("\r");return o()(e.length>1,"convertToHTML: Element of type ".concat(t.type," must render children")),o()(e.length<3,"convertToHTML: Element of type ".concat(t.type," cannot use carriage return character")),{start:e[0],end:e[1]}}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null==t)return t;if("string"==typeof t)return t;if(a().isValidElement(t)){if(function(t){return a().isValidElement(t)&&a().Children.count(t.props.children)>0}(t))return s.renderToStaticMarkup(t);var n=y(t);return null!==e&&"object"===h(n)?n.start+e+n.end:n}return o()(Object.prototype.hasOwnProperty.call(t,"start")&&Object.prototype.hasOwnProperty.call(t,"end"),"convertToHTML: received conversion data without either an HTML string, ReactElement or an object with start/end tags"),null!==e?t.start+e+t.end:t}var v=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start";if(a().isValidElement(e)){var r=y(e);if("string"==typeof r)return 0;var o=r[n].length,i=a().Children.toArray(e.props.children)[0];return o+(i&&a().isValidElement(i)?t(i,n):0)}return"object"===h(e)&&e[n]?e[n].length:0},b=function(){return arguments.length>1?arguments[1]:void 0},_=function(t){return function(e){return"function"==typeof t?t(e):t[e]}},w=function(t,e){return function(){var n=t.apply(void 0,arguments);return null!=n?n:e.apply(void 0,arguments)}};function S(t){switch(t){case"BOLD":return a().createElement("strong",null);case"ITALIC":return a().createElement("em",null);case"UNDERLINE":return a().createElement("u",null);case"CODE":return a().createElement("code",null);default:return{start:"",end:""}}}var x=function(t,e){return t.filter((function(t){return!e.some((function(e){return e.style===t.style}))}))},M=function(t,e){return e.reduceRight((function(t,e){var n=t[t.length-1];return o()(n.style===e.style,"Style ".concat(n.style," to be removed doesn't match expected ").concat(e.style)),t.slice(0,-1)}),t)},E=function(t,e){return e.filter((function(e){return t>=e.offset&&t<e.offset+e.length}))},k=function(t,e){var n=t.offset<=e.offset,r=t.offset+t.length>=e.offset+e.length;return n&&r},C=function(t,e){return e.offset+e.length-(t.offset+t.length)},D=function(t,e){for(var n=0;n<t.length;){if(!e.every(k.bind(null,t[n])))return t.slice(n);n++}return[]},j=function(t,e,n){return e+m(t(n.style)).start},O=function(t,e,n){return m(t(n.style)).end+e},I=function(t){return function(e){return t(e)}};I.__isMiddleware=!0;var T=function(t){return function(e){return"function"==typeof t?t(e):t[e.type]}};function L(t,e){if(o()(null!=t,"Expected block HTML value to be non-null"),"function"==typeof t.nest){var n=y(t.nest(e)),r=n.start,i=n.end;return Object.assign({},t,{nestStart:r,nestEnd:i})}if(a().isValidElement(t.nest)){var s=y(t.nest),c=s.start,u=s.end;return Object.assign({},t,{nestStart:c,nestEnd:u})}return o()(Object.prototype.hasOwnProperty.call(t,"nestStart")&&Object.prototype.hasOwnProperty.call(t,"nestEnd"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),t}var A=["1","a","i"],N={unstyled:a().createElement("p",null),paragraph:a().createElement("p",null),"header-one":a().createElement("h1",null),"header-two":a().createElement("h2",null),"header-three":a().createElement("h3",null),"header-four":a().createElement("h4",null),"header-five":a().createElement("h5",null),"header-six":a().createElement("h6",null),blockquote:a().createElement("blockquote",null),"unordered-list-item":{element:a().createElement("li",null),nest:a().createElement("ul",null)},"ordered-list-item":{element:a().createElement("li",null),nest:function(t){var e=A[t%3];return a().createElement("ol",{type:e})}},media:a().createElement("figure",null),atomic:a().createElement("figure",null)},z=function(t,e){return e},R=function(t){var e=t.styleToHTML,n=void 0===e?{}:e,r=t.blockToHTML,i=void 0===r?{}:r,u=t.entityToHTML,h=void 0===u?z:u;return function(t){var e;o()(null!=t,"Expected contentState to be non-null"),e=!0===i.__isMiddleware?i(T(N)):w(T(i),T(N));var r=(0,c.convertToRaw)(t),u=[],g=r.blocks.map((function(t){var i=t.type,c=t.depth,g="",k="",T=e(t);if(!T)throw new Error("convertToHTML: missing HTML definition for block with type ".concat(t.type));if(T.nest)for(;c+1!==u.length||i!==u[c].type;)if(c+1===u.length){var A=u[c];g+=L(e(A),c).nestEnd,k+=L(e(t),c).nestStart,u[c]=t}else if(c+1<u.length){var N=u[u.length-1];g+=L(e(N),c).nestEnd,u=u.slice(0,-1)}else k+=L(e(t),c).nestStart,u.push(t);else g=u.reduceRight((function(t,n){return t+L(e(n),c).nestEnd}),""),u=[];var z,R=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I;o()(null!=t,"Expected raw block to be non-null"),e=!0===n.__isMiddleware?n(S):w(_(n),_(S));for(var r="",i=[],a=t.inlineStyleRanges.sort(p),s=l(t.text),c=0;c<s.length;c++){var u=E(c,a),f=x(i,u),d=x(u,i),h=x(i,f),g=D(h,d),y=g.concat(d).sort(C),v=y.reduce(j.bind(null,e),"");r+=f.concat(g).reduce(O.bind(null,e),"")+v+s[c],i=(i=M(i,g.concat(f))).concat(y),o()(i.length===u.length,"Character ".concat(c,": ").concat(i.length-u.length," styles left on stack that should no longer be there"))}return i.reduceRight((function(t,n){return t+m(e(n.style)).end}),r)}(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b,r=l(t.text),o=n;if(n.__isMiddleware&&(o=n(b)),Object.prototype.hasOwnProperty.call(t,"entityRanges")&&t.entityRanges.length>0){for(var i=t.entityRanges.sort(p),a=t.inlineStyleRanges,s=function(t){var n,s=i[t],c=e[s.key],u=r.slice(s.offset,s.offset+s.length).join(""),p=o(c,u),d=m(p,u);n=d||""===d?l(d):u;var h=v(p,"start"),g=v(p,"end"),y=function(e){return e.reduce((function(e,r,o){var i=function(e,r){return r>t||Object.prototype.hasOwnProperty.call(e,"style")?f(e,s.offset,s.length,n.length,h,g):e}(r,o);return Array.isArray(i)?e.concat(i):e.concat([i])}),[])};i=y(i),a=y(a),r=[].concat(l(r.slice(0,s.offset)),l(n),l(r.slice(s.offset+s.length)))},c=0;c<i.length;c++)s(c);return Object.assign({},t,{text:r.join(""),inlineStyleRanges:a,entityRanges:i})}return t}(function(t){for(var e=l(t.text),n=t.entityRanges.sort(p),r=t.inlineStyleRanges.sort(p),o="",i=function(t){var i=e[t];if(void 0!==d[i]){var a=d[i],s=l(o).length;o+=a;var c=function(t){return f(t,s,i.length,a.length,0,0)};n=n.map(c),r=r.map(c)}else o+=i},a=0;a<e.length;a++)i(a);return Object.assign({},t,{text:o,inlineStyleRanges:r,entityRanges:n})}(t),r.entityMap,h),n),P=function(t){return o()(null!=t,"Expected block HTML value to be non-null"),"string"==typeof t?t:a().isValidElement(t)?(e=t,a().isValidElement(e)&&a().Children.count(e.props.children)>0?s.renderToStaticMarkup(t):y(t)):Object.prototype.hasOwnProperty.call(t,"element")&&a().isValidElement(t.element)?Object.assign({},t,y(t.element)):(o()(Object.prototype.hasOwnProperty.call(t,"start")&&Object.prototype.hasOwnProperty.call(t,"end"),"convertToHTML: received block information without either a ReactElement or an object with start/end tags"),t);var e}(e(t));return z="string"==typeof P?P:P.start+R+P.end,0===R.length&&Object.prototype.hasOwnProperty.call(P,"empty")&&(z=a().isValidElement(P.empty)?s.renderToStaticMarkup(P.empty):P.empty),g+k+z})).join("");return u.reduce((function(t,n){return t+L(e(n),n.depth).nestEnd}),g)}},P=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 1===e.length&&Object.prototype.hasOwnProperty.call(e[0],"_map")&&null!=e[0].getBlockMap?R({}).apply(void 0,e):R.apply(void 0,e)},B=n(20429),F=function(t){var e=document.implementation.createHTMLDocument("");return e.documentElement.innerHTML=t,e};function U(t){var e;return"undefined"!=typeof DOMParser&&null!==(e=(new DOMParser).parseFromString(t,"text/html"))&&null!==e.body||(e=F(t)),e.body}var K=" ",H=new RegExp("\r","g"),q=new RegExp("\n","g"),W=new RegExp("&nbsp;","g"),Y=new RegExp("\r","g"),V=["p","h1","h2","h3","h4","h5","h6","li","blockquote","pre"],Q={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},Z=function(t,e){return t&&!0===t.__isMiddleware?t(e):t},G=function(t,e,n){},J=function(t,e,n){return n},X=function(t,e){},$=function(t){return[]},tt=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")};function et(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,B.Map)();return!0===n?{text:"\r",inlines:[(0,B.OrderedSet)()],entities:new Array(1),blocks:[{type:t,data:r,depth:Math.max(0,Math.min(4,e))}],isNewline:!0}:{text:"\n",inlines:[(0,B.OrderedSet)()],entities:new Array(1),blocks:[]}}function nt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,B.Map)();return{text:"\r",inlines:[(0,B.OrderedSet)()],entities:new Array(1),blocks:[{type:t,data:n,depth:Math.max(0,Math.min(4,e))}]}}function rt(t,e){switch(t){case"h1":return"header-one";case"h2":return"header-two";case"h3":return"header-three";case"h4":return"header-four";case"h5":return"header-five";case"h6":return"header-six";case"li":return"ol"===e?"ordered-list-item":"unordered-list-item";case"blockquote":return"blockquote";case"pre":return"code-block";case"div":case"p":return"unstyled";default:return null}}function ot(t,e,n){return rt(t,n)}function it(t,e,n){var r=Q[t];if(r)n=n.add(r).toOrderedSet();else if(e instanceof HTMLElement){var o=e;n=n.withMutations((function(t){"bold"===o.style.fontWeight&&t.add("BOLD"),"italic"===o.style.fontStyle&&t.add("ITALIC"),"underline"===o.style.textDecoration&&t.add("UNDERLINE"),"line-through"===o.style.textDecoration&&t.add("STRIKETHROUGH")})).toOrderedSet()}return n}function at(t,e){return it(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,B.OrderedSet)())}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.text.slice(0,1),o="\r"===t.text.slice(-1)&&"\r"===r,i="\r"!==t.text&&"\r"!==e.text,a="\r"===t.text&&!t.isNewline&&e.isNewline;if(o&&(i||a)&&(t.text=t.text.slice(0,-1),t.inlines.pop(),t.entities.pop(),t.blocks.pop()),"\r"===t.text.slice(-1)&&!0===n){if(e.text===K||"\n"===e.text)return t;r!==K&&"\n"!==r||(e.text=e.text.slice(1),e.inlines.shift(),e.entities.shift())}var s=0===t.text.length&&e.isNewline;return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks),isNewline:s}}function ct(t,e,n,r,o,i,a,s,c,u,l,f,d,h,g,y){var m=t.nodeName.toLowerCase(),v=!1,b="unstyled";if("#text"===m){var _=t.textContent;if(""===_.trim()&&null===r)return{text:"",inlines:[],entities:[],blocks:[]};if(""===_.trim()&&"code-block"!==r)return function(t){var e=new Array(1);return t&&(e[0]=t),{text:K,inlines:[(0,B.OrderedSet)()],entities:e,blocks:[]}}(y);"code-block"!==r&&(_=_.replace(q,K));var w=Array(_.length).fill(y),S=0;return c(_,l,f,d,h).sort(p).forEach((function(t){var e=t.entity,n=t.offset,r=t.length,o=t.result,i=n+S;null==o&&(o=_.substr(i,r));var a=_.split("");a.splice.bind(a,i,r).apply(a,o.split("")),_=a.join(""),w.splice.bind(w,i,r).apply(w,Array(o.length).fill(e)),S+=o.length-r})),{text:_,inlines:Array(_.length).fill(e),entities:w,blocks:[]}}if("br"===m){var x=r;return null===x?et("unstyled",i,!0):et(x||"unstyled",i,g.flat)}var M={text:"",inlines:[],entities:[],blocks:[]};e=a(m,t,e=it(m,t,e)),"ul"!==m&&"ol"!==m||(n&&(i+=1),n=m,r=null);var E,k,C=u(m,t,n,r);if(!1===C)return{text:"",inlines:[],entities:[],blocks:[]};if("string"==typeof(C=C||{})?(E=C,k=(0,B.Map)()):(E="string"==typeof C?C:C.type,k=C.data?(0,B.Map)(C.data):(0,B.Map)()),r||-1===o.indexOf(m)&&!E)if(!n||"ordered-list-item"!==r&&"unordered-list-item"!==r||"li"!==m)r&&"atomic"!==r&&"atomic"===E&&(r=E,v=!0,M=et(E,i,!0,k));else{var D=rt(m,n);M=nt(D,i),r=D,v=!0,b="ul"===n?"unordered-list-item":"ordered-list-item"}else M=nt(E||rt(m,n),i,k),r=E||rt(m,n),v=!0;var j=t.firstChild;null!=j||!y||"atomic"!==E&&"atomic"!==r||(j=document.createTextNode("a")),null!=j&&(m=j.nodeName.toLowerCase());for(var O=null;j;){O=s(m,j,l,f,d,h),M=st(M,ct(j,e,n,r,o,i,a,s,c,u,l,f,d,h,g,O||y),g.flat);var I=j.nextSibling;if(I&&o.indexOf(m)>=0&&r){var T=u(m,j,n,r),L=void 0,A=void 0;!1!==T&&("string"==typeof(T=T||{})?(L=T,A=(0,B.Map)()):(L=T.type||rt(m,n),A=T.data?(0,B.Map)(T.data):(0,B.Map)()),M=st(M,et(L,i,g.flat,A),g.flat))}I&&(m=I.nodeName.toLowerCase()),j=I}return v&&(M=st(M,nt(b,i,(0,B.Map)()),g.flat)),M}function ut(t,e,n,r,o,i,a,s,c,u,l){var f=l(t=t.trim().replace(H,"").replace(W,K));if(!f)return null;var p=function(t){return V.some((function(e){return-1!==t.indexOf("<".concat(e))}))}(t)?V.concat(["div"]):["div"],d=ct(f,(0,B.OrderedSet)(),"ul",null,p,-1,e,n,r,o,i,a,s,c,u);return 0===d.text.indexOf("\r")&&(d={text:d.text.slice(1),inlines:d.inlines.slice(1),entities:d.entities.slice(1),blocks:d.blocks}),"\r"===d.text.slice(-1)&&(d.text=d.text.slice(0,-1),d.inlines=d.inlines.slice(0,-1),d.entities=d.entities.slice(0,-1),d.blocks.pop()),0===d.blocks.length&&d.blocks.push({type:"unstyled",data:(0,B.Map)(),depth:0}),d.text.split("\r").length===d.blocks.length+1&&d.blocks.unshift({type:"unstyled",data:(0,B.Map)(),depth:0}),d}var lt=function(t){var e=t.htmlToStyle,n=void 0===e?J:e,r=t.htmlToEntity,o=void 0===r?X:r,i=t.textToEntity,a=void 0===i?$:i,s=t.htmlToBlock,u=void 0===s?G:s;return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{flat:!1},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.genKey,s=c.ContentState.createFromText(""),l=function(t,e,n,r,o,i,a,s,u,l,f,p){var d=ut(t,e,n,r,o,i,a,s,u,l,f);if(null==d)return[];var h=0;return d.text.split("\r").map((function(t,e){t=t.replace(Y,"");var n=h+t.length,r=tt(d).inlines.slice(h,n),o=tt(d).entities.slice(h,n),i=(0,B.List)(r.map((function(t,e){var n={style:t,entity:null};return o[e]&&(n.entity=o[e]),c.CharacterMetadata.create(n)})));return h=n+1,new c.ContentBlock({key:p(),type:tt(d).blocks[e].type,data:tt(d).blocks[e].data,depth:tt(d).blocks[e].depth,text:t,characterList:i})}))}(t,Z(n,at),Z(o,X),Z(a,$),Z(u,ot),(function(){var t;return s.createEntity?(s=(t=s).createEntity.apply(t,arguments)).getLastCreatedEntityKey():c.Entity.create.apply(c.Entity,arguments)}),(function(){var t;return s.getEntity?(t=s).getEntity.apply(t,arguments):c.Entity.get.apply(c.Entity,arguments)}),(function(){var t;s.mergeEntityData?s=(t=s).mergeEntityData.apply(t,arguments):c.Entity.mergeData.apply(c.Entity,arguments)}),(function(){var t;s.replaceEntityData?s=(t=s).replaceEntityData.apply(t,arguments):c.Entity.replaceData.apply(c.Entity,arguments)}),e,r,i),f=c.BlockMapBuilder.createFromArray(l),p=l[0].getKey();return s.merge({blockMap:f,selectionBefore:c.SelectionState.createEmpty(p),selectionAfter:c.SelectionState.createEmpty(p)})}},ft=function(){return arguments.length>=1&&"string"==typeof(arguments.length<=0?void 0:arguments[0])?lt({}).apply(void 0,arguments):lt.apply(void 0,arguments)}},20429:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:H(t)}function r(t){return s(t)?t:q(t)}function o(t){return c(t)?t:W(t)}function i(t){return a(t)&&!u(t)?t:Y(t)}function a(t){return!(!t||!t[f])}function s(t){return!(!t||!t[p])}function c(t){return!(!t||!t[d])}function u(t){return s(t)||c(t)}function l(t){return!(!t||!t[h])}e(r,n),e(o,n),e(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=32,m=31,v={},b={value:!1},_={value:!1};function w(t){return t.value=!1,t}function S(t){t&&(t.value=!0)}function x(){}function M(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function E(t){return void 0===t.size&&(t.size=t.__iterate(C)),t.size}function k(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?E(t)+e:e}function C(){return!0}function D(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function j(t,e){return I(t,e,0)}function O(t,e){return I(t,e,e)}function I(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var T="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",A=T||L;function N(t){this.next=t}function z(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function R(){return{value:void 0,done:!0}}function P(t){return!!U(t)}function B(t){return t&&"function"==typeof t.next}function F(t){var e=U(t);return e&&e.call(t)}function U(t){var e=t&&(T&&t[T]||t[L]);if("function"==typeof e)return e}function K(t){return t&&"number"==typeof t.length}function H(t){return null==t?nt():a(t)?t.toSeq():function(t){var e=it(t)||"object"==typeof t&&new X(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function q(t){return null==t?nt().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():rt(t)}function W(t){return null==t?nt():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():ot(t)}function Y(t){return(null==t?nt():a(t)?s(t)?t.entrySeq():t:ot(t)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=0,N.VALUES=1,N.ENTRIES=2,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[A]=function(){return this},e(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(t,e){return at(this,t,e,!0)},H.prototype.__iterator=function(t,e){return st(this,t,e,!0)},e(q,H),q.prototype.toKeyedSeq=function(){return this},e(W,H),W.of=function(){return W(arguments)},W.prototype.toIndexedSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq [","]")},W.prototype.__iterate=function(t,e){return at(this,t,e,!1)},W.prototype.__iterator=function(t,e){return st(this,t,e,!1)},e(Y,H),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},H.isSeq=et,H.Keyed=q,H.Set=Y,H.Indexed=W;var V,Q,Z,G="@@__IMMUTABLE_SEQ__@@";function J(t){this._array=t,this.size=t.length}function X(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function $(t){this._iterable=t,this.size=t.length||t.size}function tt(t){this._iterator=t,this._iteratorCache=[]}function et(t){return!(!t||!t[G])}function nt(){return V||(V=new J([]))}function rt(t){var e=Array.isArray(t)?new J(t).fromEntrySeq():B(t)?new tt(t).fromEntrySeq():P(t)?new $(t).fromEntrySeq():"object"==typeof t?new X(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function ot(t){var e=it(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function it(t){return K(t)?new J(t):B(t)?new tt(t):P(t)?new $(t):void 0}function at(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function st(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new N((function(){var t=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:z(e,r?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,n)}function ct(t,e){return e?ut(e,t,"",{"":t}):lt(t)}function ut(t,e,n,r){return Array.isArray(e)?t.call(r,n,W(e).map((function(n,r){return ut(t,n,r,e)}))):ft(e)?t.call(r,n,q(e).map((function(n,r){return ut(t,n,r,e)}))):e}function lt(t){return Array.isArray(t)?W(t).map(lt).toList():ft(t)?q(t).map(lt).toMap():t}function ft(t){return t&&(t.constructor===Object||void 0===t.constructor)}function pt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function dt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||c(t)!==c(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every((function(t,e){var o=r.next().value;return o&&pt(o[1],t)&&(n||pt(o[0],e))}))&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var f=!0,p=e.__iterate((function(e,r){if(n?!t.has(e):o?!pt(e,t.get(r,v)):!pt(t.get(r,v),e))return f=!1,!1}));return f&&t.size===p}function ht(t,e){if(!(this instanceof ht))return new ht(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Q)return Q;Q=this}}function gt(t,e){if(!t)throw new Error(e)}function yt(t,e,n){if(!(this instanceof yt))return new yt(t,e,n);if(gt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function mt(){throw TypeError("Abstract")}function vt(){}function bt(){}function _t(){}H.prototype[G]=!0,e(J,W),J.prototype.get=function(t,e){return this.has(t)?this._array[k(this,t)]:e},J.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},J.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new N((function(){return o>r?{value:void 0,done:!0}:z(t,o,n[e?r-o++:o++])}))},e(X,q),X.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},X.prototype.has=function(t){return this._object.hasOwnProperty(t)},X.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},X.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new N((function(){var a=r[e?o-i:i];return i++>o?{value:void 0,done:!0}:z(t,a,n[a])}))},X.prototype[h]=!0,e($,W),$.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=F(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},$.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=F(this._iterable);if(!B(n))return new N(R);var r=0;return new N((function(){var e=n.next();return e.done?e:z(t,r++,e.value)}))},e(tt,W),tt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===t(a,i++,this))break}return i},tt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new N((function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return z(t,o,r[o++])}))},e(ht,W),ht.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ht.prototype.get=function(t,e){return this.has(t)?this._value:e},ht.prototype.includes=function(t){return pt(this._value,t)},ht.prototype.slice=function(t,e){var n=this.size;return D(t,e,n)?this:new ht(this._value,O(e,n)-j(t,n))},ht.prototype.reverse=function(){return this},ht.prototype.indexOf=function(t){return pt(this._value,t)?0:-1},ht.prototype.lastIndexOf=function(t){return pt(this._value,t)?this.size:-1},ht.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},ht.prototype.__iterator=function(t,e){var n=this,r=0;return new N((function(){return r<n.size?z(t,r++,n._value):{value:void 0,done:!0}}))},ht.prototype.equals=function(t){return t instanceof ht?pt(this._value,t._value):dt(t)},e(yt,W),yt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},yt.prototype.get=function(t,e){return this.has(t)?this._start+k(this,t)*this._step:e},yt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},yt.prototype.slice=function(t,e){return D(t,e,this.size)?this:(t=j(t,this.size),(e=O(e,this.size))<=t?new yt(0,0):new yt(this.get(t,this._end),this.get(e,this._end),this._step))},yt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},yt.prototype.lastIndexOf=function(t){return this.indexOf(t)},yt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},yt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new N((function(){var a=o;return o+=e?-r:r,i>n?{value:void 0,done:!0}:z(t,i++,a)}))},yt.prototype.equals=function(t){return t instanceof yt?this._start===t._start&&this._end===t._end&&this._step===t._step:dt(this,t)},e(mt,n),e(vt,mt),e(bt,mt),e(_t,mt),mt.Keyed=vt,mt.Indexed=bt,mt.Set=_t;var wt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function St(t){return t>>>1&1073741824|3221225471&t}function xt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return St(n)}if("string"===e)return t.length>It?function(t){var e=At[t];return void 0===e&&(e=Mt(t),Lt===Tt&&(Lt=0,At={}),Lt++,At[t]=e),e}(t):Mt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Dt&&void 0!==(e=Ct.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!kt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++jt,1073741824&jt&&(jt=0),Dt)Ct.set(t,e);else{if(void 0!==Et&&!1===Et(t))throw new Error("Non-extensible objects are not allowed as keys.");if(kt)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(t);if("function"==typeof t.toString)return Mt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Mt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return St(e)}var Et=Object.isExtensible,kt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var Ct,Dt="function"==typeof WeakMap;Dt&&(Ct=new WeakMap);var jt=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var It=16,Tt=255,Lt=0,At={};function Nt(t){gt(t!==1/0,"Cannot perform this action with an infinite size.")}function zt(t){return null==t?Gt():Rt(t)&&!l(t)?t:Gt().withMutations((function(e){var n=r(t);Nt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Rt(t){return!(!t||!t[Bt])}e(zt,vt),zt.prototype.toString=function(){return this.__toString("Map {","}")},zt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},zt.prototype.set=function(t,e){return Jt(this,t,e)},zt.prototype.setIn=function(t,e){return this.updateIn(t,v,(function(){return e}))},zt.prototype.remove=function(t){return Jt(this,t,v)},zt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return v}))},zt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},zt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=ie(this,en(t),e,n);return r===v?void 0:r},zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Gt()},zt.prototype.merge=function(){return ee(this,void 0,arguments)},zt.prototype.mergeWith=function(e){return ee(this,e,t.call(arguments,1))},zt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Gt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]}))},zt.prototype.mergeDeep=function(){return ee(this,ne,arguments)},zt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return ee(this,re(e),n)},zt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Gt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]}))},zt.prototype.sort=function(t){return De(qe(this,t))},zt.prototype.sortBy=function(t,e){return De(qe(this,e,t))},zt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},zt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},zt.prototype.asImmutable=function(){return this.__ensureOwner()},zt.prototype.wasAltered=function(){return this.__altered},zt.prototype.__iterator=function(t,e){return new Yt(this,t,e)},zt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},zt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Zt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},zt.isMap=Rt;var Pt,Bt="@@__IMMUTABLE_MAP__@@",Ft=zt.prototype;function Ut(t,e){this.ownerID=t,this.entries=e}function Kt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Ht(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function qt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Wt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Qt(t._root)}function Vt(t,e){return z(t,e[0],e[1])}function Qt(t,e){return{node:t,index:0,__prev:e}}function Zt(t,e,n,r){var o=Object.create(Ft);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gt(){return Pt||(Pt=Zt(0))}function Jt(t,e,n){var r,o;if(t._root){var i=w(b),a=w(_);if(r=Xt(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===v?-1:1:0)}else{if(n===v)return t;o=1,r=new Ut(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Zt(o,r):Gt()}function Xt(t,e,n,r,o,i,a,s){return t?t.update(e,n,r,o,i,a,s):i===v?t:(S(s),S(a),new Wt(e,r,[o,i]))}function $t(t){return t.constructor===Wt||t.constructor===qt}function te(t,e,n,r,o){if(t.keyHash===r)return new qt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Kt(e,1<<a|1<<s,a===s?[te(t,e,n+5,r,o)]:(i=new Wt(e,r,o),a<s?[t,i]:[i,t]))}function ee(t,e,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(t){return ct(t)}))),o.push(c)}return oe(t,e,o)}function ne(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):pt(t,e)?t:e}function re(t){return function(e,n,r){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return pt(e,o)?e:o}}function oe(t,e,n){return 0===(n=n.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var r=e?function(n,r){t.update(r,v,(function(t){return t===v?n:e(t,n,r)}))}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)})):t.constructor(n[0])}function ie(t,e,n,r){var o=t===v,i=e.next();if(i.done){var a=o?n:t,s=r(a);return s===a?t:s}gt(o||t&&t.set,"invalid keyPath");var c=i.value,u=o?v:t.get(c,v),l=ie(u,e,n,r);return l===u?t:l===v?t.remove(c):(o?Gt():t).set(c,l)}function ae(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function se(t,e,n,r){var o=r?t:M(t);return o[e]=n,o}Ft[Bt]=!0,Ft[g]=Ft.remove,Ft.removeIn=Ft.deleteIn,Ut.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(pt(n,o[i][0]))return o[i][1];return r},Ut.prototype.update=function(t,e,n,r,o,i,a){for(var s=o===v,c=this.entries,u=0,l=c.length;u<l&&!pt(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==c.length){if(!f&&!s&&c.length>=ce)return function(t,e,n,r){t||(t=new x);for(var o=new Wt(t,xt(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,c,r,o);var p=t&&t===this.ownerID,d=p?c:M(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ut(t,d)}},Kt.prototype.get=function(t,e,n,r){void 0===e&&(e=xt(n));var o=1<<((0===t?e:e>>>t)&m),i=this.bitmap;return i&o?this.nodes[ae(i&o-1)].get(t+5,e,n,r):r},Kt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=xt(r));var s=(0===e?n:n>>>e)&m,c=1<<s,u=this.bitmap,l=!!(u&c);if(!l&&o===v)return this;var f=ae(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=Xt(d,t,e+5,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=ue)return function(t,e,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Ht(t,i+1,a)}(t,p,u,s,h);if(l&&!h&&2===p.length&&$t(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&$t(h))return h;var g=t&&t===this.ownerID,b=l?h?u:u^c:u|c,_=l?h?se(p,f,h,g):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(p,f,g):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(p,f,h,g);return g?(this.bitmap=b,this.nodes=_,this):new Kt(t,b,_)},Ht.prototype.get=function(t,e,n,r){void 0===e&&(e=xt(n));var o=(0===t?e:e>>>t)&m,i=this.nodes[o];return i?i.get(t+5,e,n,r):r},Ht.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=xt(r));var s=(0===e?n:n>>>e)&m,c=o===v,u=this.nodes,l=u[s];if(c&&!l)return this;var f=Xt(l,t,e+5,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<le)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Kt(t,o,a)}(t,u,p,s)}else p++;var d=t&&t===this.ownerID,h=se(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Ht(t,p,h)},qt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(pt(n,o[i][0]))return o[i][1];return r},qt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=xt(r));var s=o===v;if(n!==this.keyHash)return s?this:(S(a),S(i),te(this,t,e,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!pt(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===l)return new Wt(t,this.keyHash,c[1^u]);var p=t&&t===this.ownerID,d=p?c:M(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new qt(t,this.keyHash,d)},Wt.prototype.get=function(t,e,n,r){return pt(n,this.entry[0])?this.entry[1]:r},Wt.prototype.update=function(t,e,n,r,o,i,a){var s=o===v,c=pt(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(S(a),s?void S(i):c?t&&t===this.ownerID?(this.entry[1]=o,this):new Wt(t,this.keyHash,[r,o]):(S(i),te(this,t,e,xt(r),[r,o])))},Ut.prototype.iterate=qt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Kt.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},Wt.prototype.iterate=function(t,e){return t(this.entry)},e(Yt,N),Yt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return Vt(t,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Vt(t,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Vt(t,i.entry);e=this._stack=Qt(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ce=8,ue=16,le=8;function fe(t){var e=we();if(null==t)return e;if(pe(t))return t;var n=o(t),r=n.size;return 0===r?e:(Nt(r),r>0&&r<y?_e(0,r,5,null,new ge(n.toArray())):e.withMutations((function(t){t.setSize(r),n.forEach((function(e,n){return t.set(n,e)}))})))}function pe(t){return!(!t||!t[de])}e(fe,bt),fe.of=function(){return this(arguments)},fe.prototype.toString=function(){return this.__toString("List [","]")},fe.prototype.get=function(t,e){if((t=k(this,t))>=0&&t<this.size){var n=Me(this,t+=this._origin);return n&&n.array[t&m]}return e},fe.prototype.set=function(t,e){return function(t,e,n){if((e=k(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?Ee(t,e).set(0,n):Ee(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,o=t._root,i=w(_);return e>=Ce(t._capacity)?r=Se(r,t.__ownerID,0,e,n,i):o=Se(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):_e(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},fe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},fe.prototype.insert=function(t,e){return this.splice(t,0,e)},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):we()},fe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){Ee(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},fe.prototype.pop=function(){return Ee(this,0,-1)},fe.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){Ee(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},fe.prototype.shift=function(){return Ee(this,1)},fe.prototype.merge=function(){return ke(this,void 0,arguments)},fe.prototype.mergeWith=function(e){return ke(this,e,t.call(arguments,1))},fe.prototype.mergeDeep=function(){return ke(this,ne,arguments)},fe.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return ke(this,re(e),n)},fe.prototype.setSize=function(t){return Ee(this,0,t)},fe.prototype.slice=function(t,e){var n=this.size;return D(t,e,n)?this:Ee(this,j(t,n),O(e,n))},fe.prototype.__iterator=function(t,e){var n=0,r=be(this,e);return new N((function(){var e=r();return e===ve?{value:void 0,done:!0}:z(t,n++,e)}))},fe.prototype.__iterate=function(t,e){for(var n,r=0,o=be(this,e);(n=o())!==ve&&!1!==t(n,r++,this););return r},fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?_e(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},fe.isList=pe;var de="@@__IMMUTABLE_LIST__@@",he=fe.prototype;function ge(t,e){this.array=t,this.ownerID=e}he[de]=!0,he[g]=he.remove,he.setIn=Ft.setIn,he.deleteIn=he.removeIn=Ft.removeIn,he.update=Ft.update,he.updateIn=Ft.updateIn,he.mergeIn=Ft.mergeIn,he.mergeDeepIn=Ft.mergeDeepIn,he.withMutations=Ft.withMutations,he.asMutable=Ft.asMutable,he.asImmutable=Ft.asImmutable,he.wasAltered=Ft.wasAltered,ge.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&m;if(r>=this.array.length)return new ge([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-5,n))===a&&i)return this}if(i&&!o)return this;var s=xe(this,t);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},ge.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&m;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-5,n))===i&&o===this.array.length-1)return this}var a=xe(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ye,me,ve={};function be(t,e){var n=t._origin,r=t._capacity,o=Ce(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,c){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,c=a>n?0:n-a,u=r-a;return u>y&&(u=y),function(){if(c===u)return ve;var t=e?--u:c++;return s&&s[t]}}(t,c):function(t,o,i){var s,c=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var t=s();if(t!==ve)return t;s=null}if(u===l)return ve;var n=e?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(t,s,c)}}function _e(t,e,n,r,o,i,a){var s=Object.create(he);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function we(){return ye||(ye=_e(0,0,5))}function Se(t,e,n,r,o,i){var a,s=r>>>n&m,c=t&&s<t.array.length;if(!c&&void 0===o)return t;if(n>0){var u=t&&t.array[s],l=Se(u,e,n-5,r,o,i);return l===u?t:((a=xe(t,e)).array[s]=l,a)}return c&&t.array[s]===o?t:(S(i),a=xe(t,e),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function xe(t,e){return e&&t&&e===t.ownerID?t:new ge(t?t.array.slice():[],e)}function Me(t,e){if(e>=Ce(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&m],r-=5;return n}}function Ee(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new x,o=t._origin,i=t._capacity,a=o+e,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return t;if(a>=s)return t.clear();for(var c=t._level,u=t._root,l=0;a+l<0;)u=new ge(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ce(i),p=Ce(s);p>=1<<c+5;)u=new ge(u&&u.array.length?[u]:[],r),c+=5;var d=t._tail,h=p<f?Me(t,s-1):p>f?new ge([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=xe(u,r),y=c;y>5;y-=5){var v=f>>>y&m;g=g.array[v]=xe(g.array[v],r)}g.array[f>>>5&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var b=a>>>c&m;if(b!==p>>>c&m)break;b&&(l+=(1<<c)*b),c-=5,u=u.array[b]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=c,t._root=u,t._tail=h,t.__hash=void 0,t.__altered=!0,t):_e(a,s,c,u,h)}function ke(t,e,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(t){return ct(t)}))),r.push(u)}return i>t.size&&(t=t.setSize(i)),oe(t,e,r)}function Ce(t){return t<y?0:t-1>>>5<<5}function De(t){return null==t?Ie():je(t)?t:Ie().withMutations((function(e){var n=r(t);Nt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function je(t){return Rt(t)&&l(t)}function Oe(t,e,n,r){var o=Object.create(De.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function Ie(){return me||(me=Oe(Gt(),we()))}function Te(t,e,n){var r,o,i=t._map,a=t._list,s=i.get(e),c=void 0!==s;if(n===v){if(!c)return t;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return t;r=i,o=a.set(s,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):Oe(r,o)}function Le(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ae(t){this._iter=t,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function ze(t){this._iter=t,this.size=t.size}function Re(t){var e=Xe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=$e,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new N((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function Pe(t,e,n){var r=Xe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,v);return i===v?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate((function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(2,o);return new N((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,e.call(n,a[1],s,t),o)}))},r}function Be(t,e){var n=Xe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Re(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=$e,n.__iterate=function(e,n){var r=this;return t.__iterate((function(t,n){return e(t,n,r)}),!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Fe(t,e,n,r){var o=Xe(t);return r&&(o.has=function(r){var o=t.get(r,v);return o!==v&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,v);return i!==v&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate((function(t,i,c){if(e.call(n,t,i,c))return s++,o(t,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),s=0;return new N((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(e.call(n,l,u,t))return z(o,r?u:s++,l,i)}}))},o}function Ue(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),D(e,n,o))return t;var i=j(e,o),a=O(n,o);if(i!=i||a!=a)return Ue(t.toSeq().cacheResult(),e,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=Xe(t);return u.size=0===s?s:t.size&&s||void 0,!r&&et(t)&&s>=0&&(u.get=function(e,n){return(e=k(this,e))>=0&&e<s?t.get(e+i,n):n}),u.__iterateUncached=function(e,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,c=!0,u=0;return t.__iterate((function(t,n){if(!c||!(c=a++<i))return u++,!1!==e(t,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var o=0!==s&&t.__iterator(e,n),a=0,c=0;return new N((function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var t=o.next();return r||1===e?t:z(e,c-1,0===e?void 0:t.value[1],t)}))},u}function Ke(t,e,n,r){var o=Xe(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate((function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new N((function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:z(o,u++,0===o?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:z(o,i,l,t)}))},o}function He(t,e,n){var r=Xe(t);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function t(c,u){var l=this;c.__iterate((function(o,c){return(!e||u<e)&&a(o)?t(o,u+1):!1===r(o,n?c:i++,l)&&(s=!0),!s}),o)}(t,0),i},r.__iteratorUncached=function(r,o){var i=t.__iterator(r,o),s=[],c=0;return new N((function(){for(;i;){var t=i.next();if(!1===t.done){var u=t.value;if(2===r&&(u=u[1]),e&&!(s.length<e)||!a(u))return n?t:z(r,c++,u,t);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}}))},r}function qe(t,e,n){e||(e=tn);var r=s(t),o=0,i=t.toSeq().map((function(e,r){return[r,e,o++,n?n(e,r,t):e]})).toArray();return i.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?q(i):c(t)?W(i):Y(i)}function We(t,e,n){if(e||(e=tn),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return Ye(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return Ye(e,t,n)?n:t}))}function Ye(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Ve(t,e,r){var o=Xe(t);return o.size=new J(r).map((function(t){return t.size})).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map((function(t){return t=n(t),F(o?t.reverse():t)})),a=0,s=!1;return new N((function(){var n;return s||(n=i.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:z(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function Qe(t,e){return et(t)?e:t.constructor(e)}function Ze(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ge(t){return Nt(t.size),E(t)}function Je(t){return s(t)?r:c(t)?o:i}function Xe(t){return Object.create((s(t)?q:c(t)?W:Y).prototype)}function $e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function tn(t,e){return t>e?1:t<e?-1:0}function en(t){var e=F(t);if(!e){if(!K(t))throw new TypeError("Expected iterable or array-like: "+t);e=F(n(t))}return e}function nn(t,e){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(t);(function(t,e){try{e.forEach(sn.bind(void 0,t))}catch(t){}})(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=zt(i)},o=r.prototype=Object.create(rn);return o.constructor=r,r}e(De,zt),De.of=function(){return this(arguments)},De.prototype.toString=function(){return this.__toString("OrderedMap {","}")},De.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},De.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ie()},De.prototype.set=function(t,e){return Te(this,t,e)},De.prototype.remove=function(t){return Te(this,t,v)},De.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},De.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},De.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},De.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Oe(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},De.isOrderedMap=je,De.prototype[h]=!0,De.prototype[g]=De.prototype.remove,e(Le,q),Le.prototype.get=function(t,e){return this._iter.get(t,e)},Le.prototype.has=function(t){return this._iter.has(t)},Le.prototype.valueSeq=function(){return this._iter.valueSeq()},Le.prototype.reverse=function(){var t=this,e=Be(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Le.prototype.map=function(t,e){var n=this,r=Pe(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Le.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Ge(this):0,function(o){return t(o,e?--n:n++,r)}),e)},Le.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(1,e),r=e?Ge(this):0;return new N((function(){var o=n.next();return o.done?o:z(t,e?--r:r++,o.value,o)}))},Le.prototype[h]=!0,e(Ae,W),Ae.prototype.includes=function(t){return this._iter.includes(t)},Ae.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate((function(e){return t(e,r++,n)}),e)},Ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e),r=0;return new N((function(){var e=n.next();return e.done?e:z(t,r++,e.value,e)}))},e(Ne,Y),Ne.prototype.has=function(t){return this._iter.includes(t)},Ne.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},Ne.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new N((function(){var e=n.next();return e.done?e:z(t,e.value,e.value,e)}))},e(ze,q),ze.prototype.entrySeq=function(){return this._iter.toSeq()},ze.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){Ze(e);var r=a(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},ze.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new N((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ze(r);var o=a(r);return z(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}}))},Ae.prototype.cacheResult=Le.prototype.cacheResult=Ne.prototype.cacheResult=ze.prototype.cacheResult=$e,e(nn,vt),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},nn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=on(this,Gt()))},nn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+an(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:on(this,e)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterator(t,e)},nn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterate(t,e)},nn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?on(this,e,t):(this.__ownerID=t,this._map=e,this)};var rn=nn.prototype;function on(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function an(t){return t._name||t.constructor.name||"Record"}function sn(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){gt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function cn(t){return null==t?gn():un(t)&&!l(t)?t:gn().withMutations((function(e){var n=i(t);Nt(n.size),n.forEach((function(t){return e.add(t)}))}))}function un(t){return!(!t||!t[fn])}rn[g]=rn.remove,rn.deleteIn=rn.removeIn=Ft.removeIn,rn.merge=Ft.merge,rn.mergeWith=Ft.mergeWith,rn.mergeIn=Ft.mergeIn,rn.mergeDeep=Ft.mergeDeep,rn.mergeDeepWith=Ft.mergeDeepWith,rn.mergeDeepIn=Ft.mergeDeepIn,rn.setIn=Ft.setIn,rn.update=Ft.update,rn.updateIn=Ft.updateIn,rn.withMutations=Ft.withMutations,rn.asMutable=Ft.asMutable,rn.asImmutable=Ft.asImmutable,e(cn,_t),cn.of=function(){return this(arguments)},cn.fromKeys=function(t){return this(r(t).keySeq())},cn.prototype.toString=function(){return this.__toString("Set {","}")},cn.prototype.has=function(t){return this._map.has(t)},cn.prototype.add=function(t){return dn(this,this._map.set(t,!0))},cn.prototype.remove=function(t){return dn(this,this._map.remove(t))},cn.prototype.clear=function(){return dn(this,this._map.clear())},cn.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},cn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return i(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.every((function(t){return t.includes(n)}))||t.remove(n)}))}))},cn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return i(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.some((function(t){return t.includes(n)}))&&t.remove(n)}))}))},cn.prototype.merge=function(){return this.union.apply(this,arguments)},cn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},cn.prototype.sort=function(t){return yn(qe(this,t))},cn.prototype.sortBy=function(t,e){return yn(qe(this,e,t))},cn.prototype.wasAltered=function(){return this._map.wasAltered()},cn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e,r){return t(r,r,n)}),e)},cn.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},cn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},cn.isSet=un;var ln,fn="@@__IMMUTABLE_SET__@@",pn=cn.prototype;function dn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function hn(t,e){var n=Object.create(pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function gn(){return ln||(ln=hn(Gt()))}function yn(t){return null==t?wn():mn(t)?t:wn().withMutations((function(e){var n=i(t);Nt(n.size),n.forEach((function(t){return e.add(t)}))}))}function mn(t){return un(t)&&l(t)}pn[fn]=!0,pn[g]=pn.remove,pn.mergeDeep=pn.merge,pn.mergeDeepWith=pn.mergeWith,pn.withMutations=Ft.withMutations,pn.asMutable=Ft.asMutable,pn.asImmutable=Ft.asImmutable,pn.__empty=gn,pn.__make=hn,e(yn,cn),yn.of=function(){return this(arguments)},yn.fromKeys=function(t){return this(r(t).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=mn;var vn,bn=yn.prototype;function _n(t,e){var n=Object.create(bn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function wn(){return vn||(vn=_n(Ie()))}function Sn(t){return null==t?Dn():xn(t)?t:Dn().unshiftAll(t)}function xn(t){return!(!t||!t[En])}bn[h]=!0,bn.__empty=wn,bn.__make=_n,e(Sn,bt),Sn.of=function(){return this(arguments)},Sn.prototype.toString=function(){return this.__toString("Stack [","]")},Sn.prototype.get=function(t,e){var n=this._head;for(t=k(this,t);n&&t--;)n=n.next;return n?n.value:e},Sn.prototype.peek=function(){return this._head&&this._head.value},Sn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Cn(t,e)},Sn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Nt(t.size);var e=this.size,n=this._head;return t.reverse().forEach((function(t){e++,n={value:t,next:n}})),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cn(e,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(t){return this.pushAll(t)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dn()},Sn.prototype.slice=function(t,e){if(D(t,e,this.size))return this;var n=j(t,this.size);if(O(e,this.size)!==this.size)return bt.prototype.slice.call(this,t,e);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cn(r,o)},Sn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Cn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new N((function(){if(r){var e=r.value;return r=r.next,z(t,n++,e)}return{value:void 0,done:!0}}))},Sn.isStack=xn;var Mn,En="@@__IMMUTABLE_STACK__@@",kn=Sn.prototype;function Cn(t,e,n,r){var o=Object.create(kn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Dn(){return Mn||(Mn=Cn(0))}function jn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}kn[En]=!0,kn.withMutations=Ft.withMutations,kn.asMutable=Ft.asMutable,kn.asImmutable=Ft.asImmutable,kn.wasAltered=Ft.wasAltered,n.Iterator=N,jn(n,{toArray:function(){Nt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Ae(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Le(this,!0)},toMap:function(){return zt(this.toKeyedSeq())},toObject:function(){Nt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return De(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ne(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return fe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Qe(this,function(t,e){var n=s(t),o=[t].concat(e).map((function(t){return a(t)?n&&(t=r(t)):t=n?rt(t):ot(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&s(i)||c(t)&&c(i))return i}var u=new J(o);return n?u=u.toKeyedSeq():c(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),u}(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return pt(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Nt(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1})),n},filter:function(t,e){return Qe(this,Fe(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate((function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Nt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Nt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Qe(this,Pe(this,t,e))},reduce:function(t,e,n){var r,o;return Nt(this.size),arguments.length<2?o=!0:r=e,this.__iterate((function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)})),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Qe(this,Be(this,!0))},slice:function(t,e){return Qe(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(An(t),e)},sort:function(t){return Qe(this,qe(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return E(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=zt().asMutable();return t.__iterate((function(o,i){r.update(e.call(n,o,i,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return dt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new J(t._cache);var e=t.toSeq().map(Ln).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(An(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(C)},flatMap:function(t,e){return Qe(this,function(t,e,n){var r=Je(t);return t.toSeq().map((function(o,i){return r(e.call(n,o,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Qe(this,He(this,t,!0))},fromEntrySeq:function(){return new ze(this)},get:function(t,e){return this.find((function(e,n){return pt(n,t)}),void 0,e)},getIn:function(t,e){for(var n,r=this,o=en(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,v):v)===v)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),o=(l(t)?De():zt()).asMutable();t.__iterate((function(i,a){o.update(e.call(n,i,a,t),(function(t){return(t=t||[]).push(r?[a,i]:i),t}))}));var i=Je(t);return o.map((function(e){return Qe(t,i(e))}))}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Tn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return We(this,t)},maxBy:function(t,e){return We(this,e,t)},min:function(t){return We(this,t?Nn(t):Pn)},minBy:function(t,e){return We(this,e?Nn(e):Pn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Qe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Qe(this,Ke(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(An(t),e)},sortBy:function(t,e){return Qe(this,qe(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Qe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Qe(this,function(t,e,n){var r=Xe(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate((function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new N((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:z(r,c,u,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(An(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=l(t),n=s(t),r=e?1:0;return function(t,e){return e=wt(e,3432918353),e=wt(e<<15|e>>>-15,461845907),e=wt(e<<13|e>>>-13,5),e=wt((e=e+3864292196^t)^e>>>16,2246822507),St((e=wt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Bn(xt(t),xt(e))|0}:function(t,e){r=r+Bn(xt(t),xt(e))|0}:e?function(t){r=31*r+xt(t)|0}:function(t){r=r+xt(t)|0}),r)}(this))}});var On=n.prototype;On[f]=!0,On[A]=On.values,On.__toJS=On.toArray,On.__toStringMapper=zn,On.inspect=On.toSource=function(){return this.toString()},On.chain=On.flatMap,On.contains=On.includes,function(){try{Object.defineProperty(On,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),jn(r,{flip:function(){return Qe(this,Re(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return pt(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return pt(e,t)}))},mapEntries:function(t,e){var n=this,r=0;return Qe(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Qe(this,this.toSeq().flip().map((function(r,o){return t.call(e,r,o,n)})).flip())}});var In=r.prototype;function Tn(t,e){return e}function Ln(t,e){return[e,t]}function An(t){return function(){return!t.apply(this,arguments)}}function Nn(t){return function(){return-t.apply(this,arguments)}}function zn(t){return"string"==typeof t?JSON.stringify(t):t}function Rn(){return M(arguments)}function Pn(t,e){return t<e?1:t>e?-1:0}function Bn(t,e){return t^e+2654435769+(t<<6)+(t>>2)}return In[p]=!0,In[A]=On.entries,In.__toJS=On.toObject,In.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+zn(t)},jn(o,{toKeyedSeq:function(){return new Le(this,!1)},filter:function(t,e){return Qe(this,Fe(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Qe(this,Be(this,!1))},slice:function(t,e){return Qe(this,Ue(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=j(t,t<0?this.count():this.size);var r=this.slice(0,t);return Qe(this,1===n?r:r.concat(M(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return Qe(this,He(this,t,!1))},get:function(t,e){return(t=k(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=k(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Qe(this,function(t,e){var n=Xe(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate((function(t,r){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new N((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,e):z(n,a++,o.value,o)}))},n}(this,t))},interleave:function(){var t=[this].concat(M(arguments)),e=Ve(this.toSeq(),W.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Qe(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Qe(this,Ke(this,t,e,!1))},zip:function(){return Qe(this,Ve(this,Rn,[this].concat(M(arguments))))},zipWith:function(t){var e=M(arguments);return e[0]=this,Qe(this,Ve(this,t,e))}}),o.prototype[d]=!0,o.prototype[h]=!0,jn(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=On.includes,jn(q,r.prototype),jn(W,o.prototype),jn(Y,i.prototype),jn(vt,r.prototype),jn(bt,o.prototype),jn(_t,i.prototype),{Iterable:n,Seq:H,Collection:mt,Map:zt,OrderedMap:De,List:fe,Stack:Sn,Set:cn,OrderedSet:yn,Record:nn,Range:yt,Repeat:ht,is:pt,fromJS:ct}}()},82568:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(38046),a=n(28),s=n(39806),c=n(47724),u=n(84055),l=n(46238),f=n(84894),p=n(27936),d=n(18489),h=n(58710),g=p("draft_tree_data_support"),y=g?c:s,m=d.List,v=d.Repeat,b={insertAtomicBlock:function(t,e,n){var o=t.getCurrentContent(),s=t.getSelection(),c=u.removeRange(o,s,"backward"),p=c.getSelectionAfter(),d=u.splitBlock(c,p),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),_=a.create({entity:e}),w={key:f(),type:"atomic",text:n,characterList:m(v(_,n.length))},S={key:f(),type:"unstyled"};g&&(w=r({},w,{nextSibling:S.key}),S=r({},S,{prevSibling:w.key}));var x=[new y(w),new y(S)],M=i.createFromArray(x),E=u.replaceWithFragment(b,h,M),k=E.merge({selectionBefore:s,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return l.push(t,k,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,e,s,r)}else{var c=u.removeRange(i,n,"backward"),f=c.getSelectionAfter(),p=c.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=h(c,e,p,"before");else if(f.getEndOffset()===p.getLength())o=h(c,e,p,"after");else{var d=u.splitBlock(c,f),g=d.getSelectionAfter(),y=d.getBlockForKey(g.getFocusKey());o=h(d,e,y,"before")}}var m=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(t,m,"move-block")}};t.exports=b},38046:function(t,e,n){"use strict";var r=n(18489).OrderedMap,o={createFromArray:function(t){return r(t.map((function(t){return[t.getKey(),t]})))}};t.exports=o},39893:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(90754),i=n(14723),a=n(18489),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(t,e,n){var r=e.getLength();if(!r)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new f({start:0,end:0}))}));var i=[],a=n?n.getDecorations(e,t):s(c(null,r)),u=e.getCharacterList();return o(a,h,l,(function(t,e){var n,r,c,d;i.push(new p({start:t,end:e,decoratorKey:a.get(t),leaves:(n=u.slice(t,e).toList(),r=t,c=[],d=n.map((function(t){return t.getStyle()})).toList(),o(d,h,l,(function(t,e){c.push(new f({start:t+r,end:e+r}))})),s(c))}))})),s(i)},fromJS:function(t){var e=t.leaves,n=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["leaves"]);return new p(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},n,{leaves:null!=e?s(Array.isArray(e)?e:i(e)).map((function(t){return f(t)})):null}))}};function h(t,e){return t===e}t.exports=d},28:function(t,e,n){"use strict";var r=n(18489),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),c={style:s,entity:null},u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(t){return this.getStyle().includes(t)},r.applyStyle=function(t,e){var n=t.set("style",t.getStyle().add(e));return r.create(n)},r.removeStyle=function(t,e){var n=t.set("style",t.getStyle().remove(e));return r.create(n)},r.applyEntity=function(t,e){var n=t.getEntity()===e?t:t.set("entity",e);return r.create(n)},r.create=function(t){if(!t)return l;var e=o({style:s,entity:null}).merge(t),n=f.get(e);if(n)return n;var i=new r(e);return f=f.set(e,i),i},r.fromJS=function(t){var e=t.style,n=t.entity;return new r({style:Array.isArray(e)?i(e):e,entity:Array.isArray(n)?i(n):n})},r}(a(c)),l=new u,f=o([[o(c),l]]);u.EMPTY=l,t.exports=u},68542:function(t,e,n){"use strict";var r=n(18489).List,o=function(){function t(t){var e,n;n=void 0,(e="_decorators")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(t,(function(t,e){(function(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0})(n,t,e)&&(function(t,e,n,r){for(var o=e;o<n;o++)t[o]=r}(n,t,e,o+"."+i),i++)}),e)})),r(n)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=o},39806:function(t,e,n){"use strict";var r=n(28),o=n(90754),i=n(18489),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,f=c(),p=function(t){var e,n;function i(e){return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(l(r.EMPTY,n.length))),t}(e))||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},s.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},s.findStyleRanges=function(t,e){o(this.getCharacterList(),d,t,e)},s.findEntityRanges=function(t,e){o(this.getCharacterList(),h,t,e)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function d(t,e){return t.getStyle()===e.getStyle()}function h(t,e){return t.getEntity()===e.getEntity()}t.exports=p},47724:function(t,e,n){"use strict";var r=n(28),o=n(90754),i=n(18489),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,f=c(),p={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(t,e){return t.getStyle()===e.getStyle()},h=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){var e,n;function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(l(r.EMPTY,n.length))),t}(e))||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},s.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(t,e){o(this.getCharacterList(),d,t,e)},s.findEntityRanges=function(t,e){o(this.getCharacterList(),h,t,e)},i}(u(p));t.exports=g},10789:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(38046),a=n(28),s=n(39806),c=n(47724),u=n(3031),l=n(69806),f=n(84894),p=n(14723),d=n(27936),h=n(18489),g=n(24844),y=h.List,m=h.Record,v=h.Repeat,b=h.Map,_=h.OrderedMap,w=m({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),S=d("draft_tree_data_support")?c:s,x=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=o.prototype;return s.getEntityMap=function(){return u},s.getBlockMap=function(){return this.get("blockMap")},s.getSelectionBefore=function(){return this.get("selectionBefore")},s.getSelectionAfter=function(){return this.get("selectionAfter")},s.getBlockForKey=function(t){return this.getBlockMap().get(t)},s.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},s.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil((function(e){return e===t})).skip(1).first()},s.getBlockAfter=function(t){return this.getBlockMap().skipUntil((function(e,n){return n===t})).skip(1).first()},s.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).first()},s.getBlocksAsArray=function(){return this.getBlockMap().toArray()},s.getFirstBlock=function(){return this.getBlockMap().first()},s.getLastBlock=function(){return this.getBlockMap().last()},s.getPlainText=function(t){return this.getBlockMap().map((function(t){return t?t.getText():""})).join(t||"\n")},s.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},s.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(t,e,n){return u.__create(t,e,n),this},s.mergeEntityData=function(t,e){return u.__mergeData(t,e),this},s.replaceEntityData=function(t,e){return u.__replaceData(t,e),this},s.addEntity=function(t){return u.__add(t),this},s.getEntity=function(t){return u.__get(t)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(t){return u.__loadWithEntities(t)},o.createFromBlockArray=function(t,e){var n=Array.isArray(t)?t:t.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:e||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(e).map((function(t){return t=g(t),new S({key:f(),text:t,type:"unstyled",characterList:y(v(a.EMPTY,t.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(t){return new o(r({},t,{blockMap:_(t.blockMap).map(o.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},o.createContentBlockFromJS=function(t){var e=t.characterList;return new S(r({},t,{data:b(t.data),characterList:null!=e?y((Array.isArray(e)?e:p(e)).map((function(t){return a.fromJS(t)}))):void 0}))},o}(w);t.exports=x},76520:function(t,e,n){"use strict";var r=n(28),o=n(18489).Map,i={add:function(t,e,n){return a(t,e,n,!0)},remove:function(t,e,n){return a(t,e,n,!1)}};function a(t,e,n,i){var a=t.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),f=a.skipUntil((function(t,e){return e===s})).takeUntil((function(t,e){return e===u})).concat(o([[u,a.get(u)]])).map((function(t,e){var o,a;s===u?(o=c,a=l):(o=e===s?c:0,a=e===u?l:t.getLength());for(var f,p=t.getCharacterList();o<a;)f=p.get(o),p=p.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return t.set("characterList",p)}));return t.merge({blockMap:a.merge(f),selectionBefore:e,selectionAfter:e})}t.exports=i},74241:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(91355),i=n(59321),a=n(52868),s=n(18489),c=n(73012),u=n(98392),l=s.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),d=function(){function t(t){var e=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=t,this.mutations=l();var n=a(t);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(t){return e.registerMutations(t)})):this.onCharData=function(t){t.target instanceof Node||c(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=l(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,n=t.target,r=t.removedNodes;if("characterData"===e){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===e){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var n=u(i(t.target));this.mutations=this.mutations.set(n,e)}},t}();t.exports=d},74682:function(t,e,n){"use strict";var r=n(1024),o=n(2775),i=(0,n(18489).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=i},45608:function(t){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},6880:function(t,e,n){"use strict";var r=n(82568),o=n(38046),i=n(28),a=n(68542),s=n(39806),c=n(10789),u=n(74682),l=n(45608),f=n(75949),p=n(84030),d=n(3031),h=n(84055),g=n(91825),y=n(46238),m=n(76944),v=n(28484),b=n(93626),_=n(69806),w=n(40313),S=n(80618),x=n(84894),M=n(91741),E=n(602),k={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:m,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:n(97614),convertFromRaw:S,convertToRaw:w,genKey:x,getDefaultKeyBinding:M,getVisibleSelectionRect:E};t.exports=k},75949:function(t,e,n){"use strict";var r=n(54516);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var u=n(74682),l=n(45608),f=n(3431),p=n(10989),d=n(83567),h=n(49199),g=n(823),y=n(20398),m=n(34390),v=n(46238),b=n(1024),_=n(31675),w=n(99986),S=n(91355),x=n(2775),M=n(84894),E=n(91741),k=n(51702),C=n(27936),D=n(73012),j=n(8187),O=n(98392),I=S.isBrowser("IE"),T=!I,L={edit:h,composite:f,drag:d,cut:null,render:null},A=!1,N=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(b.Component),z=function(t){function e(e){var n;return s(a(n=t.call(this,e)||this),"_blockSelectEvents",void 0),s(a(n),"_clipboard",void 0),s(a(n),"_handler",void 0),s(a(n),"_dragCount",void 0),s(a(n),"_internalDrag",void 0),s(a(n),"_editorKey",void 0),s(a(n),"_placeholderAccessibilityID",void 0),s(a(n),"_latestEditorState",void 0),s(a(n),"_latestCommittedEditorState",void 0),s(a(n),"_pendingStateFromBeforeInput",void 0),s(a(n),"_onBeforeInput",void 0),s(a(n),"_onBlur",void 0),s(a(n),"_onCharacterData",void 0),s(a(n),"_onCompositionEnd",void 0),s(a(n),"_onCompositionStart",void 0),s(a(n),"_onCopy",void 0),s(a(n),"_onCut",void 0),s(a(n),"_onDragEnd",void 0),s(a(n),"_onDragOver",void 0),s(a(n),"_onDragStart",void 0),s(a(n),"_onDrop",void 0),s(a(n),"_onInput",void 0),s(a(n),"_onFocus",void 0),s(a(n),"_onKeyDown",void 0),s(a(n),"_onKeyPress",void 0),s(a(n),"_onKeyUp",void 0),s(a(n),"_onMouseDown",void 0),s(a(n),"_onMouseUp",void 0),s(a(n),"_onPaste",void 0),s(a(n),"_onSelect",void 0),s(a(n),"editor",void 0),s(a(n),"editorContainer",void 0),s(a(n),"focus",void 0),s(a(n),"blur",void 0),s(a(n),"setMode",void 0),s(a(n),"exitCurrentMode",void 0),s(a(n),"restoreEditorDOM",void 0),s(a(n),"setClipboard",void 0),s(a(n),"getClipboard",void 0),s(a(n),"getEditorKey",void 0),s(a(n),"update",void 0),s(a(n),"onDragEnter",void 0),s(a(n),"onDragLeave",void 0),s(a(n),"_handleEditorContainerRef",(function(t){n.editorContainer=t,n.editor=null!==t?t.firstChild:null})),s(a(n),"focus",(function(t){var e=n.props.editorState,r=e.getSelection().getHasFocus(),o=n.editor;if(o){var i=w.getScrollParent(o),a=t||k(i),s=a.x,c=a.y;j(o)||D(!1),o.focus(),i===window?window.scrollTo(s,c):_.setTop(i,c),r||n.update(v.forceSelection(e,e.getSelection()))}})),s(a(n),"blur",(function(){var t=n.editor;t&&(j(t)||D(!1),t.blur())})),s(a(n),"setMode",(function(t){var e=n.props,r=e.onPaste,o=e.onCut,a=e.onCopy,s=i({},L.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},L,{edit:s});n._handler=c[t]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(t){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(t)}))})),s(a(n),"setClipboard",(function(t){n._clipboard=t})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(t){n._latestEditorState=t,n.props.onChange(t)})),s(a(n),"onDragEnter",(function(){n._dragCount++})),s(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=e.editorKey||M(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=e.editorState,n._latestCommittedEditorState=e.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}c(e,t);var r=e.prototype;return r._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&(g?g((function(){return r(e,n)})):r(e,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:O(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(y,t)}return null},r._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},r.render=function(){var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleFn,s=t.customStyleMap,c=t.editorState,u=t.preventScroll,f=t.readOnly,d=t.textAlignment,h=t.textDirectionality,g=x({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),y=this.props.role||"textbox",m="combobox"===y?!!this.props.ariaExpanded:null,v={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:g},this._renderPlaceholder(),b.createElement("div",{className:x("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:m,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:x({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:y,spellCheck:T&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(N,{editor:this,editorState:c}),b.createElement(p,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!A&&C("draft_ods_enabled")&&(A=!0,m.initODS()),this.setMode("edit"),I&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(b.Component);s(z,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=z},84030:function(t,e,n){"use strict";var r=n(54516);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}var i=n(15267),a=n(33638),s=n(1024),c=n(31675),u=n(99986),l=n(35796),f=n(11021),p=n(2775),d=n(87008),h=n(51702),g=n(90333),y=n(73012),m=n(8187),v=n(98392),b=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},_=function(t){var e,n;function r(){for(var e,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(r="_node")in(n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var _=r.prototype;return _.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||b(t.selection,t.block.getKey())&&t.forceSelection},_.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=u.getScrollParent(n),i=h(o);if(o===window){var a=d(n);(r=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+r+10)}else m(n)||y(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},_._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),r=e.getText(),c=this.props.tree.size-1,u=b(this.props.selection,n);return this.props.tree.map((function(p,d){var h=p.get("leaves");if(0===h.size)return null;var g=h.size-1,y=h.map((function(o,l){var f=a.encode(n,d,l),p=o.get("start"),h=o.get("end");return s.createElement(i,{key:f,offsetKey:f,block:e,start:p,selection:u?t.props.selection:null,forceSelection:t.props.forceSelection,text:r.slice(p,h),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:d===c&&l===g})})).toArray(),m=p.get("decoratorKey");if(null==m)return y;if(!t.props.decorator)return y;var b=v(t.props.decorator),_=b.getComponentForKey(m);if(!_)return y;var w=b.getPropsForKey(m),S=a.encode(n,d,0),x=h.first().get("start"),M=h.last().get("end"),E=r.slice(x,M),k=e.getEntityAt(p.get("start")),C=f.getHTMLDirIfDifferent(l.getDirection(E),t.props.direction),D={contentState:t.props.contentState,decoratedText:E,dir:C,start:x,end:M,blockKey:n,entityKey:k,offsetKey:S};return s.createElement(_,o({},w,D,{key:S}),y)})).toArray()},_.render=function(){var t=this,e=this.props,n=e.direction,r=e.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":r,className:o,ref:function(e){return t._node=e}},this._renderChildren())},r}(s.Component);t.exports=_},99902:function(t,e,n){"use strict";var r=n(54516);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){a(t,e,n[e])}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(36215),c=n(33638),u=n(1024),l=n(31675),f=n(99986),p=n(87008),d=n(51702),h=n(90333),g=n(18489),y=n(73012),m=n(8187),v=(g.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),b=function(t,e){var n=e.get(t.getType())||e.get("unstyled"),r=n.wrapper;return{Element:n.element||e.get("unstyled").element,wrapperTemplate:r}},_=function(t,e){var n=e(t);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},w=function(t,e,n,r,o,a){var s={"data-block":!0,"data-editor":e,"data-offset-key":n,key:t.getKey(),ref:a},c=r(t);return c&&(s.className=c),void 0!==o.customEditable&&(s=i({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},S=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(r))||this),"wrapperRef",u.createRef()),e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var g=r.prototype;return g.shouldComponentUpdate=function(t){var e=this.props,n=e.block,r=e.direction,o=e.tree,i=!n.getChildKeys().isEmpty(),a=n!==t.block||o!==t.tree||r!==t.direction||v(t.selection,t.block.getKey())&&t.forceSelection;return i||a},g.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=f.getScrollParent(n),i=d(o);if(o===window){var a=p(n);(r=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{m(n)||y(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},g.render=function(){var t=this,e=this.props,n=e.block,a=e.blockRenderMap,l=e.blockRendererFn,f=e.blockStyleFn,p=e.contentState,d=e.decorator,h=e.editorKey,g=e.editorState,y=e.customStyleFn,m=e.customStyleMap,S=e.direction,x=e.forceSelection,M=e.selection,E=e.tree,k=null;n.children.size&&(k=n.children.reduce((function(e,n){var o=c.encode(n,0,0),s=p.getBlockForKey(n),d=_(s,l),y=d.CustomComponent||r,m=b(s,a),v=m.Element,S=m.wrapperTemplate,x=w(s,h,o,f,d,null),M=i({},t.props,{tree:g.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:s});return e.push(u.createElement(v,x,u.createElement(y,M))),!S||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(s,p)||function(t,e,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,l=n.reverse()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var f=s.value;if(f.type!==e)break;r.push(f)}}catch(t){i=!0,a=t}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(u.cloneElement(t,{key:"".concat(d,"-wrap"),"data-offset-key":c.encode(d,0,0)},p))}(S,v,e),e}),[]));var C=n.getKey(),D=c.encode(C,0,0),j=_(n,l),O=j.CustomComponent,I=null!=O?u.createElement(O,o({},this.props,{tree:g.getBlockTree(C),blockProps:j.customProps,offsetKey:D,block:n})):u.createElement(s,{block:n,children:k,contentState:p,customStyleFn:y,customStyleMap:m,decorator:d,direction:S,forceSelection:x,hasSelection:v(M,C),selection:M,tree:E});if(n.getParentKey())return I;var T=b(n,a).Element,L=w(n,h,D,f,j,this.wrapperRef);return u.createElement(T,L,I)},r}(u.Component);t.exports=S},3431:function(t,e,n){"use strict";var r=n(74241),o=n(84055),i=n(33638),a=n(46238),s=n(7482),c=n(91355),u=n(31611),l=n(23357),f=n(62263),p=n(34483),d=n(98392),h=c.isBrowser("IE"),g=!1,y=!1,m=null,v={onCompositionStart:function(t){y=!0,function(t){m||(m=new r(l(t))).start()}(t)},onCompositionEnd:function(t){g=!1,y=!1,setTimeout((function(){g||v.resolveComposition(t)}),20)},onSelect:u,onKeyDown:function(t,e){if(!y)return v.resolveComposition(t),void t._onKeyDown(e);e.which!==s.RIGHT&&e.which!==s.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===s.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!y){var e=d(m).stopAndFlushMutations();m=null,g=!0;var n=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var r=n.getCurrentContent();e.forEach((function(t,e){var s=i.decode(e),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,f=n.getBlockTree(c).getIn([u,"leaves",l]),d=f.start,h=f.end,g=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),y=p(r,g),m=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,g,t,m,y),n=a.set(n,{currentContent:r})}));var s=f(n,l(t)).selectionState;t.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);t.update(a.push(c,r,"insert-characters"))}else t.update(n)}}};t.exports=v},60944:function(t,e,n){"use strict";var r=n(54516);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){a(t,e,n[e])}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(84030),c=n(33638),u=n(1024),l=n(2775),f=n(52433),p=n(98392),d=function(t,e,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},a.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleMap,l=t.customStyleFn,h=t.editorState,g=t.editorKey,y=t.preventScroll,m=t.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),_=h.mustForceSelection(),w=h.getDecorator(),S=p(h.getDirectionMap()),x=v.getBlocksAsArray(),M=[],E=null,k=null,C=0;C<x.length;C++){var D=x[C],j=D.getKey(),O=D.getType(),I=n(D),T=void 0,L=void 0,A=void 0;I&&(T=I.component,L=I.props,A=I.editable);var N=m||S.get(j),z=c.encode(j,0,0),R={contentState:v,block:D,blockProps:L,blockStyleFn:r,customStyleMap:a,customStyleFn:l,decorator:w,direction:N,forceSelection:_,offsetKey:z,preventScroll:y,selection:b,tree:h.getBlockTree(j)},P=e.get(O)||e.get("unstyled"),B=P.wrapper,F=P.element||e.get("unstyled").element,U=D.getDepth(),K="";r&&(K=r(D)),"li"===F&&(K=f(K,d(O,U,k!==B||null===E||U>E,N)));var H=T||s,q={className:K,"data-block":!0,"data-editor":g,"data-offset-key":z,key:j};void 0!==A&&(q=i({},q,{contentEditable:A,suppressContentEditableWarning:!0}));var W=u.createElement(F,q,u.createElement(H,o({},R,{key:j})));M.push({block:W,wrapperTemplate:B,key:j,offsetKey:z}),E=B?D.getDepth():null,k=B}for(var Y=[],V=0;V<M.length;){var Q=M[V];if(Q.wrapperTemplate){var Z=[];do{Z.push(M[V].block),V++}while(V<M.length&&M[V].wrapperTemplate===Q.wrapperTemplate);var G=u.cloneElement(Q.wrapperTemplate,{key:Q.key+"-wrap","data-offset-key":Q.offsetKey},Z);Y.push(G)}else Y.push(Q.block),V++}return u.createElement("div",{"data-contents":"true"},Y)},r}(u.Component);t.exports=h},10989:function(t,e,n){"use strict";var r=n(27936)("draft_tree_data_support");t.exports=n(r?71435:60944)},71435:function(t,e,n){"use strict";var r=n(54516);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}var i=n(99902),a=n(33638),s=n(1024),c=n(98392),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,u=t.customStyleMap,l=t.customStyleFn,f=t.editorState,p=t.editorKey,d=t.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),m=f.getDecorator(),v=c(f.getDirectionMap()),b=[],_=h.getBlocksAsArray()[0];_;){var w=_.getKey(),S={blockRenderMap:e,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:l,customStyleMap:u,decorator:m,editorKey:p,editorState:f,forceSelection:y,selection:g,block:_,direction:d||v.get(w),tree:f.getBlockTree(w)},x=(e.get(_.getType())||e.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:w},S)),wrapperTemplate:x,key:w,offsetKey:a.encode(w,0,0)});var M=_.getNextSiblingKey();_=M?h.getBlockForKey(M):null}for(var E=[],k=0;k<b.length;){var C=b[k];if(C.wrapperTemplate){var D=[];do{D.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===C.wrapperTemplate);var j=s.cloneElement(C.wrapperTemplate,{key:C.key+"-wrap","data-offset-key":C.offsetKey},D);E.push(j)}else E.push(C.block),k++}return s.createElement("div",{"data-contents":"true"},E)},r}(s.Component);t.exports=u},75937:function(t,e,n){"use strict";var r=n(54516);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}var i=n(33638),a=n(1024),s=n(35796),c=n(11021),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.render=function(){var t=this.props,e=t.block,n=t.children,r=t.contentState,u=t.decorator,l=t.decoratorKey,f=t.direction,p=t.leafSet,d=t.text,h=e.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),m=u.getPropsForKey(l),v=i.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),_=c.getHTMLDirIfDifferent(s.getDirection(b),f);return a.createElement(y,o({},m,{contentState:r,decoratedText:b,dir:_,key:v,entityKey:e.getEntityAt(p.get("start")),offsetKey:v}),n)},r}(a.Component);t.exports=u},83567:function(t,e,n){"use strict";var r=n(97880),o=n(84055),i=n(46238),a=n(59321),s=n(45653),c=n(26288),u=n(39433),l=n(52868),f=n(5218),p=n(98392),d={onDragEnd:function(t){t.exitCurrentMode(),h(t)},onDrop:function(t,e){var n=new r(e.nativeEvent.dataTransfer),l=t._latestEditorState,d=function(t,e){var n=null,r=null,o=s(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);n=i.startContainer,r=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=p(n),r=p(r);var c=p(a(n));return u(e,c,r,c,r)}(e.nativeEvent,l);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=d){var y=n.getFiles();if(y.length>0){if(t.props.handleDroppedFiles&&f(t.props.handleDroppedFiles(d,y)))return;c(y,(function(e){e&&t.update(g(l,d,e))}))}else{var m=t._internalDrag?"internal":"external";t.props.handleDrop&&f(t.props.handleDrop(d,n,m))||(t._internalDrag?t.update(function(t,e){var n=o.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,n,"insert-fragment")}(l,d)):t.update(g(l,d,n.getText()))),h(t)}}}};function h(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function g(t,e,n){var r=o.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return i.push(t,r,"insert-fragment")}t.exports=d},49199:function(t,e,n){"use strict";var r=n(91355),o=n(8658),i=n(5976),a=n(70410),s=n(3248),c=n(46811),u=n(98451),l=n(15160),f=n(45313),p=n(73078),d=n(63194),h=n(88924),g=n(31611),y=r.isBrowser("Chrome"),m=r.isBrowser("Firefox"),v=y||m?g:function(t){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:f,onInput:p,onKeyDown:d,onPaste:h,onSelect:g,onMouseUp:v,onKeyUp:v};t.exports=b},823:function(t,e,n){"use strict";var r=n(30314).unstable_flushControlled;t.exports=r},15267:function(t,e,n){"use strict";var r=n(54516),o=n(46544),i=n(1024),a=n(73012),s=n(78659),c=n(46064).setDraftEditorSelection,u=function(t){var e,n;function u(){for(var e,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(r="leaf")in(n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=u).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=u.prototype;return l._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,n=e.block,r=e.start,o=e.text,i=n.getKey(),u=r+o.length;if(t.hasEdgeWithin(i,r,u)){var l=this.leaf;l||a(!1);var f,p=l.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?f=p:s(p)?f=l:(f=p.firstChild)||a(!1),c(t,f,i,r,u)}}},l.shouldComponentUpdate=function(t){var e=this.leaf;return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},l.componentDidUpdate=function(){this._setSelection()},l.componentDidMount=function(){this._setSelection()},l.render=function(){var t=this,e=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,s=a.customStyleMap,c=a.customStyleFn,u=a.offsetKey,l=a.styleSet,f=l.reduce((function(t,e){var n={},o=s[e];return void 0!==o&&t.textDecoration!==o.textDecoration&&(n.textDecoration=[t.textDecoration,o.textDecoration].join(" ").trim()),r(t,o,n)}),{});if(c){var p=c(l,e);f=r(f,p)}return i.createElement("span",{"data-offset-key":u,ref:function(e){return t.leaf=e},style:f},i.createElement(o,null,n))},u}(i.Component);t.exports=u},36215:function(t,e,n){"use strict";var r=n(75937),o=n(15267),i=n(33638),a=n(18489),s=n(1024),c=n(2775),u=(a.List,function(t){var e,n;function a(){return t.apply(this,arguments)||this}return n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,a.prototype.render=function(){var t=this.props,e=t.block,n=t.contentState,a=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,p=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,y=e.getKey(),m=e.getText(),v=g.size-1,b=this.props.children||g.map((function(t,c){var g=t.get("decoratorKey"),b=t.get("leaves"),_=b.size-1,w=b.map((function(t,n){var r=i.encode(y,c,n),l=t.get("start"),f=t.get("end");return s.createElement(o,{key:r,offsetKey:r,block:e,start:l,selection:d?h:null,forceSelection:p,text:m.slice(l,f),styleSet:e.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===v&&n===_})})).toArray();return g&&l?s.createElement(r,{block:e,children:w,contentState:n,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:m,key:c}):w})).toArray();return s.createElement("div",{"data-offset-key":i.encode(y,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},a}(s.Component));t.exports=u},20398:function(t,e,n){"use strict";var r=n(1024),o=n(2775),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return r.createElement("div",{className:e},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);t.exports=i},46544:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(1024),a=n(91355),s=n(73012),c=n(23833),u=a.isBrowser("IE <= 11"),l=function(t){var e,n;function a(e){var n;return o(r(n=t.call(this,e)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=a.prototype;return l.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;c(e)||s(!1);var r=e;return n?!function(t){return u?"\n"===t.textContent:"BR"===t.tagName}(r):r.textContent!==t.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},u?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return u?i.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:t})}((function(t){return e._node=t})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(i.Component);t.exports=l},34390:function(t){"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},3031:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(91825),i=n(18489),a=n(73012),s=n(44231),c=(0,i.Map)(),u=s();function l(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var f={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(t,e,n){return l("DraftEntity.create","contentState.createEntity"),f.__create(t,e,n)},add:function(t){return l("DraftEntity.add","contentState.addEntity"),f.__add(t)},get:function(t){return l("DraftEntity.get","contentState.getEntity"),f.__get(t)},__getAll:function(){return c},__loadWithEntities:function(t){c=t,u=s()},mergeData:function(t,e){return l("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(t,e)},replaceData:function(t,e){return l("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return u},__create:function(t,e,n){return f.__add(new o({type:t,mutability:e,data:n||{}}))},__add:function(t){return u=s(),c=c.set(u,t),u},__get:function(t){var e=c.get(t);return e||a(!1),e},__mergeData:function(t,e){var n=f.__get(t),o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},n.getData(),e),i=n.set("data",o);return c=c.set(t,i),i},__replaceData:function(t,e){var n=f.__get(t).set("data",e);return c=c.set(t,n),n}};t.exports=f},91825:function(t,e,n){"use strict";var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(18489).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=r},19142:function(t){"use strict";t.exports={getRemovalRange:function(t,e,n,r,o){var i=n.split(" ");i=i.map((function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(t<(a=s+i[l].length)&&s<e)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}}},31532:function(t){"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},84055:function(t,e,n){"use strict";var r=n(28),o=n(76520),i=n(48932),a=n(3022),s=n(58364),c=n(18489),u=n(14719),l=n(79585),f=n(73012),p=n(37248),d=n(77506),h=n(12269),g=n(70774),y=c.OrderedSet,m={replaceText:function(t,e,n,o,i){var a=d(t,e),s=h(a,e),c=r.create({style:o||y(),entity:i||null});return l(s,s.getSelectionAfter(),n,c)},insertText:function(t,e,n,r,o){return e.isCollapsed()||f(!1),m.replaceText(t,e,n,r,o)},moveText:function(t,e,n){var r=s(t,e),o=m.removeRange(t,e,"backward");return m.replaceWithFragment(o,n,r)},replaceWithFragment:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(t,e),i=h(o,e);return u(i,i.getSelectionAfter(),n,r)},removeRange:function(t,e,n){var r,o,i,s;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),r=e.getAnchorKey(),o=e.getFocusKey(),i=t.getBlockForKey(r),s=t.getBlockForKey(o);var c=e.getStartOffset(),u=e.getEndOffset(),l=i.getEntityAt(c),f=s.getEntityAt(u-1);if(r===o&&l&&l===f){var p=a(t.getEntityMap(),i,s,e,n);return h(t,p)}var g=d(t,e);return h(g,e)},splitBlock:function(t,e){var n=d(t,e),r=h(n,e);return g(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return o.add(t,e,n)},removeInlineStyle:function(t,e,n){return o.remove(t,e,n)},setBlockType:function(t,e,n){return p(t,e,(function(t){return t.merge({type:n,depth:0})}))},setBlockData:function(t,e,n){return p(t,e,(function(t){return t.merge({data:n})}))},mergeBlockData:function(t,e,n){return p(t,e,(function(t){return t.merge({data:t.getData().merge(n)})}))},applyEntity:function(t,e,n){var r=d(t,e);return i(r,e,n)}};t.exports=m},33638:function(t){"use strict";var e="-",n={encode:function(t,n,r){return t+e+n+e+r},decode:function(t){var n=t.split(e).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(e),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};t.exports=n},17605:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(39806),i=n(47724),a=n(97614),s=n(84894),c=n(27917),u=n(27936),l=n(18489),f=n(24844),p=l.List,d=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,y={processHTML:function(t,e){return a(t,c,e)},processText:function(t,e,n){return t.reduce((function(t,o,i){o=f(o);var a=s(),c={key:a,type:n,text:o,characterList:p(d(e,o.length))};if(h&&0!==i){var u=i-1;c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},c,{prevSibling:(t[u]=t[u].merge({nextSibling:a})).getKey()})}return t.push(new g(c)),t}),[])}};t.exports=y},81360:function(t,e,n){"use strict";var r="['‘’]",o="\\s|(?![_])"+n(59878).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(t,e){var n=e?a.exec(t):i.exec(t);return n?n[0]:t}var c={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}};t.exports=c},56588:function(t){"use strict";var e={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=e},74645:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(84894),a=n(73012),s=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},c={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)||a(!1),Array.isArray(e)&&e.length?(function(t){for(var e=[].concat(t).reverse();e.length;){var o=e.pop();u=void 0,u=r({},c=o),s(c)&&(u.depth=u.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map((function(e){return e.type===t.type?r({},e,{depth:(t.depth||0)+1}):e})))}(c),null!=c.children&&c.children.length>0)||(delete u.children,n.push(u));var i=o.children;Array.isArray(i)||a(!1),e=e.concat([].concat(i.reverse()))}var c,u}(e),t.blocks=n,r({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach((function(t){var o=s(t),a=t.depth||0,c=r({},t,{children:[]});if(o){var u=n[0];if(null==u&&0===a)e.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===a?e.push(l):null!=u&&u.children.push(l),l.children.push(c)}else if(u.depth===a-1)u.children.push(c);else{for(;null!=u&&u.depth>=a;)n.shift(),u=n[0];a>0?u.children.push(c):e.push(c)}}else e.push(c)})),r({},t,{blocks:e})}};t.exports=c},54775:function(t,e,n){"use strict";n(85806),t.exports={isValidBlock:function(t,e){var n=t.getKey(),r=t.getParentKey();if(null!=r&&!e.get(r).getChildKeys().includes(n))return!1;if(!t.getChildKeys().map((function(t){return e.get(t)})).every((function(t){return t.getParentKey()===n})))return!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==n)return!1;var i=t.getNextSiblingKey();return(null==i||e.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter((function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()}));if(1!==e.length)return!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(e){return t.get(e)})).find((function(t){return null==t.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every((function(n){return e.isValidBlock(n,t)}))&&this.isConnectedTree(t)}}},22976:function(t,e,n){"use strict";var r,o=n(90209),i=n(18489),a=n(98392),s=i.OrderedMap,c={getDirectionMap:function(t,e){r?r.reset():r=new o;var n=t.getBlockMap(),c=n.valueSeq().map((function(t){return a(r).getDirection(t.getText())})),u=s(n.keySeq().zip(c));return null!=e&&i.is(e,u)?e:u}};t.exports=c},46238:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(39893),a=n(10789),s=n(22976),c=n(69806),u=n(18489),l=u.OrderedSet,f=u.Record,p=u.Stack,d=u.OrderedMap,h=u.List,g=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),y=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,n){return e.createWithContent(a.createFromText(t),n)},e.createWithContent=function(t,n){if(0===t.getBlockMap().count())return e.createEmpty(n);var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:p(),redoStack:p(),decorator:n||null,selection:c.createEmpty(r)})},e.create=function(t){var n=t.currentContent,o=r({},t,{treeMap:v(n,t.decorator),directionMap:s.getDirectionMap(n)});return new e(new g(o))},e.fromJS=function(t){return new e(new g(r({},t,{directionMap:null!=t.directionMap?d(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?a.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?p(t.redoStack.map((function(t){return a.fromJS(t)}))):t.redoStack,selection:null!=t.selection?new c(t.selection):t.selection,treeMap:null!=t.treeMap?d(t.treeMap).map((function(t){return h(t).map((function(t){return i.fromJS(t)}))})):t.treeMap,undoStack:null!=t.undoStack?p(t.undoStack.map((function(t){return a.fromJS(t)}))):t.undoStack,currentContent:a.fromJS(t.currentContent)})))},e.set=function(t,n){return new e(t.getImmutable().withMutations((function(e){var r=e.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var a=n.currentContent||t.getCurrentContent();if(o!==r){var s,c=e.get("treeMap");return s=o&&r?function(t,e,n,r,o){return n.merge(e.toSeq().filter((function(e){return r.getDecorations(e,t)!==o.getDecorations(e,t)})).map((function(e){return i.generate(t,e,r)})))}(a,a.getBlockMap(),c,o,r):v(a,o),void e.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(t,e,n,r){var o=t.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter((function(t,e){return t!==a.get(e)})).map((function(t){return i.generate(o,t,r)})))}(t,a.getBlockMap(),a.getEntityMap(),o)),e.merge(n)})))};var t=e.prototype;function e(t){o(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):b(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):b(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return m(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),m(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new c({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var i=s.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),c=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==c.getSelectionAfter()||function(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(t,r)?(u=u.push(c),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",c.getSelectionBefore()));var f=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var d={currentContent:l,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=s.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=s.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function m(t,e,n){return y.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(t,e){return t.getBlockMap().map((function(n){return i.generate(t,n,e)})).toOrderedMap()}function b(t,e){var n=t.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}t.exports=y},76944:function(t,e,n){"use strict";var r=n(91355),o=n(18528),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return i&&t.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(t){return i?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:o};t.exports=a},28484:function(){},93626:function(t,e,n){"use strict";var r=n(84055),o=n(46238),i=n(17027),a=n(98392),s={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some((function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()}))},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return s.toggleInlineStyle(t,"BOLD");case"italic":return s.toggleInlineStyle(t,"ITALIC");case"underline":return s.toggleInlineStyle(t,"UNDERLINE");case"code":return s.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=o.push(t,e,"insert-characters");return o.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:e});if(c!==n)return o.push(t,c,"remove-range")}var u=s.tryToRemoveBlockStyle(t);return u?o.push(t,u,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),i=e.getStartKey(),a=n.getBlockForKey(i).getLength();if(e.getStartOffset()<a)return null;var s=n.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=e.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=r.removeRange(n,c,"forward");return u!==n?o.push(t,u,"remove-range"):null},onTab:function(t,e,n){var r=e.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return e;var s=e.getCurrentContent(),c=s.getBlockForKey(a),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return e;t.preventDefault();var l=c.getDepth();if(!t.shiftKey&&l===n)return e;var f=i(s,r,t.shiftKey?-1:1,n);return o.push(e,f,"adjust-depth")},toggleBlockType:function(t,e){var n=t.getSelection(),i=n.getStartKey(),s=n.getEndKey(),c=t.getCurrentContent(),u=n;if(i!==s&&0===n.getEndOffset()){var l=a(c.getBlockBefore(s));s=l.getKey(),u=u.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:l.getLength(),isBackward:!1})}if(c.getBlockMap().skipWhile((function(t,e){return e!==i})).reverse().skipWhile((function(t,e){return e!==s})).some((function(t){return"atomic"===t.getType()})))return t;var f=c.getBlockForKey(i).getType()===e?"unstyled":e;return o.push(t,r.setBlockType(c,u,f),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=e.getFocusKey();return e.isCollapsed()||n!==r?s.toggleBlockType(t,"code-block"):s.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n=t.getSelection(),i=t.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(t,i.has(e)?i.remove(e):i.add(e));var a,s=t.getCurrentContent();return a=i.has(e)?r.removeInlineStyle(s,n,e):r.applyInlineStyle(s,n,e),o.push(t,a,"change-inline-style")},toggleLink:function(t,e,n){var i=r.applyEntity(t.getCurrentContent(),e,n);return o.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),n=e.getAnchorOffset();if(e.isCollapsed()&&0===n){var o=e.getAnchorKey(),i=t.getCurrentContent(),a=i.getBlockForKey(o).getType(),s=i.getBlockBefore(o);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return r.setBlockType(i,e,"unstyled")}return null}};t.exports=s},70069:function(t,e,n){"use strict";var r=n(84055),o=n(46238),i=n(58364),a=n(98392),s=null,c={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=e.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var f=e.getKeyAfter(u);if(null==f)return t;c=n.set("focusKey",f).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(e,c);var p=r.removeRange(e,c,"forward");return p===e?t:o.push(t,p,"remove-range")},paste:function(t){if(!s)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),s);return o.push(t,e,"insert-fragment")}};t.exports=c},69806:function(t,e,n){"use strict";var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(t,e,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=n||e<=a&&a<=n}if(t!==r&&t!==o)return!1;var s=t===r?this.getAnchorOffset():this.getFocusOffset();return e<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(t){return new r({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(18489).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=r},17027:function(t){"use strict";t.exports=function(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat([[i,a.get(i)]]).map((function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)}));return a=a.merge(s),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},65491:function(t,e,n){"use strict";var r=n(28);t.exports=function(t,e,n,o){for(var i=e,a=t.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return t.set("characterList",a)}},48932:function(t,e,n){"use strict";var r=n(65491),o=n(18489);t.exports=function(t,e,n){var i=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),u=e.getEndOffset(),l=i.skipUntil((function(t,e){return e===a})).takeUntil((function(t,e){return e===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(t,e){var o=e===a?s:0,i=e===c?u:t.getLength();return r(t,o,i,n)}));return t.merge({blockMap:i.merge(l),selectionBefore:e,selectionAfter:e})}},40313:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(39806),i=n(47724),a=n(56588),s=n(84963),c=n(63384),u=n(73012),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:c(t),entityRanges:s(t,e),data:t.getData().toObject()}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,s=[],c={},f={},p=0;return t.getBlockMap().forEach((function(t){t.findEntityRanges((function(t){return null!==t.getEntity()}),(function(e){var r=t.getEntityAt(e),o=a.stringify(r);f[o]||(f[o]=r,n[o]="".concat(p),p++)})),function(t,e,n,a){if(t instanceof o)n.push(l(t,e));else{t instanceof i||u(!1);var s=t.getParentKey(),c=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){r(t,e,n[e])}))}return t}({},l(t,e),{children:[]});s?a[s].children.push(c):n.push(c)}}(t,n,s,c)})),{blocks:s,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,r=e.entityMap,o={};return Object.keys(r).forEach((function(e,n){var r=t.getEntity(a.unstringify(e));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(t,e),e}},97614:function(t,e,n){"use strict";var r;function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(28),s=n(39806),c=n(47724),u=n(74682),l=n(3031),f=n(2909),p=n(2775),d=n(84894),h=n(27917),g=n(27936),y=n(18489),m=y.List,v=y.Map,b=y.OrderedSet,_=n(19662),w=n(78659),S=n(8187),x=n(9115),M=g("draft_tree_data_support"),E=new RegExp("\r","g"),k=new RegExp("\n","g"),C=new RegExp("^\n","g"),D=new RegExp("&nbsp;","g"),j=new RegExp("&#13;?","g"),O=new RegExp("&#8203;?","g"),I=["bold","bolder","500","600","700","800","900"],T=["light","lighter","normal","100","200","300","400"],L=["className","href","rel","target","title"],A=["alt","className","height","src","width"],N=(i(r={},p("public/DraftStyleDefault/depth0"),0),i(r,p("public/DraftStyleDefault/depth1"),1),i(r,p("public/DraftStyleDefault/depth2"),2),i(r,p("public/DraftStyleDefault/depth3"),3),i(r,p("public/DraftStyleDefault/depth4"),4),r),z=v({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),R=function(t){return S(t)&&t.style.fontFamily.includes("monospace")?"CODE":null},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(N).some((function(n){t.classList.contains(n)&&(e=N[n])})),e},B=function(t){if(!_(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{return new f(e.href),!0}catch(t){return!1}},F=function(t){if(!x(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},U=function(t,e){if(!S(t))return e;var n=t,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return e.withMutations((function(t){I.indexOf(r)>=0?t.add("BOLD"):T.indexOf(r)>=0&&t.remove("BOLD"),"italic"===o?t.add("ITALIC"):"normal"===o&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}))},K=function(t){return"ul"===t||"ol"===t},H=function(){function t(t,e){i(this,"characterList",m()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",l),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=m(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(M?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o({key:t.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:m(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=m(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=o.nodeName.toLowerCase();if("body"===i||K(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;K(i)&&(this.wrapper=i,K(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),e)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(F(o))this._addImgNode(o,e);else if(B(o))this._addAnchorNode(o,n,e);else{var u=e;z.has(i)&&(u=u.add(z.get(i))),u=U(o,u);var l=R(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,e);else this._addTextNode(o,e);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!M&&S(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var h=o;this.currentDepth=P(h,this.currentDepth)}var g=d(),y=this._toBlockConfigs(Array.from(o.childNodes),e);this._trimCurrentText(),n.push(this._makeBlockConfig({key:g,childConfigs:y,type:c})),this.currentDepth=f,this.wrapper=p}}}return n},e._appendText=function(t,e){var n;this.currentText+=t;var r=a.create({style:e,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(r))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(t){return null!==t.getEntity()}));(e=void 0!==r?Math.min(e,r[0]):e)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(t){return null!==t.getEntity()})))?Math.max(n,t-r[0]):n)?(this.currentText="",this.characterList=m()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t,e){var n=t.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(C,"")).replace(k," ")),this._appendText(n,e)},e._addBreakNode=function(t,e){w(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(x(t)){var n=t,r={};A.forEach((function(t){var e=n.getAttribute(t);e&&(r[t]=e)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,n){if(_(t)){var r=t,o={};L.forEach((function(t){var e=r.getAttribute(t);e&&(o[t]=e)})),o.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,r=0;r<=n;r++){var i=t[r];i.parent=e,i.prevSibling=r>0?t[r-1].key:null,i.nextSibling=r<n?t[r+1].key:null,i.children=m(i.childConfigs.map((function(t){return t.key}))),this.contentBlocks.push(new c(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return m(t).flatMap((function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)}))},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach((function(t){var n=e._extractTextFromBlockConfigs(t.childConfigs),r=n.text,i=n.characterList;e.contentBlocks.push(new s(o({},t,{text:t.text+r,characterList:t.characterList.concat(i)})))}))},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,n="",r=m(),o=0;o<=e;o++){var i=t[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},t}();t.exports=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(t=t.trim().replace(E,"").replace(D," ").replace(j,"").replace(O,""));if(!n)return null;var r=function(t){var e={};return t.mapKeys((function(t,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===e[n]?e[n]=t:"string"==typeof e[n]?e[n]=[e[n],t]:e[n].push(t)}))})),v(e)}(e);return new H(r,(function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},80618:function(t,e,n){"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(39806),a=n(47724),s=n(10789),c=n(3031),u=n(74645),l=(n(54775),n(69806)),f=n(68115),p=n(9769),d=n(47413),h=n(84894),g=n(27936),y=n(18489),m=n(73012),v=g("draft_tree_data_support"),b=y.List,_=y.Map,w=y.OrderedMap,S=function(t,e){var n=t.key,r=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:r||"unstyled",key:n||h(),data:_(o),characterList:x(t,e)}},x=function(t,e){var n=t.text,o=t.entityRanges,i=t.inlineStyleRanges,a=o||[];return f(d(n,i||[]),p(n,a.filter((function(t){return e.hasOwnProperty(t.key)})).map((function(t){return r({},t,{key:e[t.key]})}))))},M=function(t){return r({},t,{key:t.key||h()})},E=function(t,e,n){var o=e.map((function(t){return r({},t,{parentRef:n})}));return t.concat(o.reverse())};t.exports=function(t){Array.isArray(t.blocks)||m(!1);var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach((function(t){var r=e[t],o=r.type,i=r.mutability,a=r.data;n[t]=c.__create(o,i,a||{})})),n}(t),n=function(t,e){var n=t.blocks.find((function(t){return Array.isArray(t.children)&&t.children.length>0})),o=v&&!n?u.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!v)return function(t,e){return w(t.map((function(t){var n=new i(S(t,e));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(t).blocks:o,e);var s=function(t,e){return t.map(M).reduce((function(n,o,i){Array.isArray(o.children)||m(!1);var s=o.children.map(M),c=new a(r({},S(o,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:b(s.map((function(t){return t.key})))}));n=n.set(c.getKey(),c);for(var u=E([],s,c);u.length>0;){var l=u.pop(),f=l.parentRef,p=f.getChildKeys(),d=p.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||m(!1);break}var g=l.children.map(M),y=new a(r({},S(l,e),{parent:f.getKey(),children:b(g.map((function(t){return t.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(y.getKey(),y),u=E(u,g,y)}return n}),w())}(o,e);return s}(t,e),o=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:e,selectionBefore:o,selectionAfter:o})}},68115:function(t,e,n){"use strict";var r=n(28),o=n(18489).List;t.exports=function(t,e){var n=t.map((function(t,n){var o=e[n];return r.create({style:t,entity:o})}));return o(n)}},9769:function(t,e,n){"use strict";var r=n(13820).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach((function(e){for(var o=r(t,0,e.offset).length,i=o+r(t,e.offset,e.length).length,a=o;a<i;a++)n[a]=e.key})),n}},47413:function(t,e,n){"use strict";var r=n(13820),o=n(18489).OrderedSet,i=r.substr,a=o();t.exports=function(t,e){var n=Array(t.length).fill(a);return e&&e.forEach((function(e){for(var r=i(t,0,e.offset).length,o=r+i(t,e.offset,e.length).length;r<o;)n[r]=n[r].add(e.style),r++})),n}},50884:function(t){"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},8658:function(t,e,n){"use strict";var r=n(84055),o=n(46238),i=n(91355),a=n(34483),s=n(5218),c=n(99322),u=n(98392),l=n(55060),f=i.isBrowser("Firefox");function p(t,e,n,i,a){var s=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return o.push(t,s,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,r=e.data;if(r)if(t.props.handleBeforeInput&&s(t.props.handleBeforeInput(r,n,e.timeStamp)))e.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return e.preventDefault(),void t.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var g,y=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),m=!1;if(m||(m=c(t._latestCommittedEditorState)),!m){var v=n.getBlockTree(h),b=y.getBlockTree(h);m=v.size!==b.size||v.zip(b).some((function(t){var e=t[0],n=t[1],o=e.get("start"),i=o+(o>=d?r.length:0),a=e.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),u=n.get("end"),l=n.get("decoratorKey");return e.get("decoratorKey")!==l||e.get("leaves").size!==n.get("leaves").size||i!==c||s!==u||null!=l&&u-c!=a-o}))}if(m||(g=r,m=f&&("'"==g||"/"==g)),m||(m=u(y.getDirectionMap()).get(h)!==u(n.getDirectionMap()).get(h)),m)return e.preventDefault(),y=o.set(y,{forceSelection:!0}),void t.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),t._pendingStateFromBeforeInput=y,l((function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)}))}}},5976:function(t,e,n){"use strict";var r=n(46238),o=n(61530),i=n(16838);t.exports=function(t,e){var n=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=t.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=t._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(r.acceptSelection(c,l))}}},70410:function(t,e,n){"use strict";var r=n(46238);t.exports=function(t,e){t.setMode("composite"),t.update(r.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},3248:function(t,e,n){"use strict";var r=n(25057);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(r(t._latestEditorState))}},46811:function(t,e,n){"use strict";var r=n(84055),o=n(46238),i=n(99986),a=n(25057),s=n(51702),c=n(89836);t.exports=function(t,e){var n,u=t._latestEditorState,l=u.getSelection(),f=e.target;if(l.isCollapsed())e.preventDefault();else{if(c(f)){var p=f;n=s(i.getScrollParent(p))}var d=a(u);t.setClipboard(d),t.setMode("cut"),setTimeout((function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=r.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}(u))}),0)}}},98451:function(t){"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},15160:function(t){"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},45313:function(t,e,n){"use strict";var r=n(46238),o=n(91355);t.exports=function(t,e){var n=t._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),o.isBrowser("Chrome < 60.0.3081.0")?t.update(r.forceSelection(n,a)):t.update(r.acceptSelection(n,a))}}},73078:function(t,e,n){"use strict";var r=n(84055),o=n(33638),i=n(46238),a=n(91355),s=n(50884).notEmptyKey,c=n(59321),u=n(32856),l=n(98392),f=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=n.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var y=a.textContent,m=t._latestEditorState,v=l(c(a)),b=o.decode(v),_=b.blockKey,w=b.decoratorKey,S=b.leafKey,x=m.getBlockTree(_).getIn([w,"leaves",S]),M=x.start,E=x.end,k=m.getCurrentContent(),C=k.getBlockForKey(_),D=C.getText().slice(M,E);if(y.endsWith("\n\n")&&(y=y.slice(0,-1)),y!==D){var j,O,I,T,L=m.getSelection(),A=L.merge({anchorOffset:M,focusOffset:E,isBackward:!1}),N=C.getEntityAt(M),z=s(N)?k.getEntity(N):null,R="MUTABLE"===(null!=z?z.getMutability():null),P=R?"spellcheck-change":"apply-entity",B=r.replaceText(k,A,y,C.getInlineStyleAt(M),R?C.getEntityAt(M):null);if(f)j=n.anchorOffset,O=n.focusOffset,T=(I=M+Math.min(j,O))+Math.abs(j-O),j=I,O=T;else{var F=y.length-D.length;I=L.getStartOffset(),T=L.getEndOffset(),j=p?T+F:I,O=T+F}var U=B.merge({selectionBefore:k.getSelectionAfter(),selectionAfter:L.merge({anchorOffset:j,focusOffset:O})});t.update(i.push(m,U,P))}else{var K=e.nativeEvent.inputType;if(K){var H=function(t,e){return"deleteContentBackward"===t?u(e):e}(K,m);if(H!==m)return t.restoreEditorDOM(),void t.update(H)}}}}},63194:function(t,e,n){"use strict";var r=n(84055),o=n(46238),i=n(76944),a=n(7482),s=n(70069),c=n(91355),u=n(5218),l=n(63453),f=n(29683),p=n(47796),d=n(27380),h=n(24738),g=n(92172),y=n(32856),m=n(35394),v=n(95358),b=n(95649),_=i.isOptionKeyCommand,w=c.isBrowser("Chrome");t.exports=function(t,e){var n=e.which,i=t._latestEditorState;function c(n){var r=t.props[n];return!!r&&(r(e),!0)}switch(n){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&u(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:w&&_(e)&&e.preventDefault()}var S=t.props.keyBindingFn(e);if(null!=S&&""!==S)if("undo"!==S){if(e.preventDefault(),!t.props.handleKeyCommand||!u(t.props.handleKeyCommand(S,i,e.timeStamp))){var x=function(t,e,n){switch(t){case"redo":return o.redo(e);case"delete":return m(e);case"delete-word":return p(e);case"backspace":return y(e);case"backspace-word":return f(e);case"backspace-to-start-of-line":return l(e,n);case"split-block":return d(e);case"transpose-characters":return v(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return h(e);case"secondary-cut":return s.cut(e);case"secondary-paste":return s.paste(e);default:return e}}(S,i,e);x!==i&&t.update(x)}}else b(e,i,t.update);else if(n===a.SPACE&&w&&_(e)){var M=r.replaceText(i.getCurrentContent(),i.getSelection()," ");t.update(o.push(i,M,"insert-characters"))}}},88924:function(t,e,n){"use strict";var r=n(38046),o=n(28),i=n(97880),a=n(84055),s=n(17605),c=n(46238),u=n(93626),l=n(34483),f=n(26288),p=n(5218),d=n(39347);function h(t,e,n){var r=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return c.push(t,r.set("entityMap",n),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var n=new i(e.clipboardData);if(!n.isRichText()){var g=n.getFiles(),y=n.getText();if(g.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(g)))return;return void f(g,(function(e){if(e=e||y){var n=t._latestEditorState,i=d(e),f=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),h=s.processText(i,f,p),g=r.createFromArray(h),m=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);t.update(c.push(n,m,"insert-fragment"))}}))}}var m=[],v=n.getText(),b=n.getHTML(),_=t._latestEditorState;if(t.props.formatPastedText){var w=t.props.formatPastedText(v,b);v=w.text,b=w.html}if(!t.props.handlePastedText||!p(t.props.handlePastedText(v,b,_))){if(v&&(m=d(v)),!t.props.stripPastedStyles){var S,x=t.getClipboard();if(!t.props.formatPastedText&&n.isRichText()&&x){if(-1!==(null===(S=b)||void 0===S?void 0:S.indexOf(t.getEditorKey()))||1===m.length&&1===x.size&&x.first().getText()===v)return void t.update(h(t._latestEditorState,x))}else if(x&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every((function(e,n){return e.getText()===t[n]}))}(m,x))return void t.update(h(t._latestEditorState,x));if(b){var M=s.processHTML(b,t.props.blockRenderMap);if(M){var E=M.contentBlocks,k=M.entityMap;if(E){var C=r.createFromArray(E);return void t.update(h(t._latestEditorState,C,k))}}}t.setClipboard(null)}if(m.length){var D=o.create({style:_.getCurrentInlineStyle(),entity:l(_.getCurrentContent(),_.getSelection())}),j=u.getCurrentBlockType(_),O=s.processText(m,D,j),I=r.createFromArray(O);t.update(h(t._latestEditorState,I))}}}},31611:function(t,e,n){"use strict";var r=n(31532),o=n(46238),i=n(23357),a=n(62263);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var n=t.props.editorState,s=a(n,i(t)),c=s.selectionState;c!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,c):o.acceptSelection(n,c),t.update(n))}}},84963:function(t,e,n){"use strict";var r=n(56588),o=n(13820).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return!!t.getEntity()}),(function(i,a){var s=t.getText(),c=t.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(e[r.stringify(c)])})})),n}},63384:function(t,e,n){"use strict";var r=n(13820),o=n(90754),i=function(t,e){return t===e},a=function(t){return!!t},s=[];t.exports=function(t){var e=t.getCharacterList().map((function(t){return t.getStyle()})).toList(),n=e.flatten().toSet().map((function(n){return function(t,e,n){var s=[],c=e.map((function(t){return t.has(n)})).toList();return o(c,i,a,(function(e,o){var i=t.getText();s.push({offset:r.strlen(i.slice(0,e)),length:r.strlen(i.slice(e,o)),style:n})})),s}(t,e,n)}));return Array.prototype.concat.apply(s,n.toJS())}},96107:function(t,e,n){"use strict";var r=n(13820),o=n(45653),i=n(74468),a=n(73012);function s(t,e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var s=t[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<e&&i-r<e}function c(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=o(t),r=n.createElement("div");r.style.fontFamily=e.fontFamily,r.style.fontSize=e.fontSize,r.style.fontStyle=e.fontStyle,r.style.fontWeight=e.fontWeight,r.style.lineHeight=e.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var s=r.getBoundingClientRect();return i.removeChild(r),s.height}(e),u=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);s(i(t),n)&&(u=t.startContainer,l=t.startOffset,u.parentNode||a(!1),t.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var f=u,p=l-1;;){for(var d=f.nodeValue,h=p;h>=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(t.setStart(f,h),!s(i(t),n))break;u=f,l=h}if(-1===h||0===f.childNodes.length)break;p=c(f=f.childNodes[h])}return t.setStart(u,l),t}},59321:function(t,e,n){"use strict";var r=n(45653),o=n(6244);t.exports=function(t){for(var e=t;e&&e!==r(t).documentElement;){var n=o(e);if(null!=n)return n;e=e.parentNode}return null}},90754:function(t){"use strict";t.exports=function(t,e,n,r){if(t.size){var o=0;t.reduce((function(t,i,a){return e(t,i)||(n(t)&&r(o,a),o=a),i})),n(t.last())&&r(o,t.count())}}},84894:function(t){"use strict";var e={},n=Math.pow(2,24);t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*n).toString(32);return e[t]=!0,t}},3022:function(t,e,n){"use strict";var r=n(19142),o=n(21622),i=n(73012);function a(t,e,n,a,s,c,u){var l=n.getStartOffset(),f=n.getEndOffset(),p=t.__get(s).getMutability(),d=u?l:f;if("MUTABLE"===p)return n;var h=o(e,s).filter((function(t){return d<=t.end&&d>=t.start}));1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?f=g.end:l=g.start);var y=r.getRemovalRange(l,f,e.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=e.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(t,e,l,o,c,!0,!0);else if(c&&u){var f=a(t,e,l,o,c,!1,!0),p=a(t,n,l,o,u,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(c){var d=a(t,e,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(t,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},23357:function(t,e,n){"use strict";var r=n(73012),o=n(8187);t.exports=function(t){var e=t.editorContainer;return e||r(!1),o(e.firstChild)||r(!1),e.firstChild}},58364:function(t,e,n){"use strict";var r=n(58064),o=n(77506);t.exports=function(t,e){var n=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),s=e.getEndOffset(),c=o(t,e).getBlockMap(),u=c.keySeq(),l=u.indexOf(n),f=u.indexOf(a)+1;return r(c.slice(l,f).map((function(t,e){var r=t.getText(),o=t.getCharacterList();return n===a?t.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):e===n?t.merge({text:r.slice(i),characterList:o.slice(i)}):e===a?t.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):t})))}},45653:function(t){"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},91741:function(t,e,n){"use strict";var r=n(76944),o=n(7482),i=n(91355),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=r.hasCommandModifier,u=r.isCtrlKeyCommand;function l(t){return a&&t.altKey||u(t)}t.exports=function(t){switch(t.keyCode){case 66:return c(t)?"bold":null;case 68:return u(t)?"delete":null;case 72:return u(t)?"backspace":null;case 73:return c(t)?"italic":null;case 74:return c(t)?"code":null;case 75:return a&&u(t)?"secondary-cut":null;case 77:case 79:return u(t)?"split-block":null;case 84:return a&&u(t)?"transpose-characters":null;case 85:return c(t)?"underline":null;case 87:return a&&u(t)?"backspace-word":null;case 89:return u(t)?a?"secondary-paste":"redo":null;case 90:return function(t){return c(t)?t.shiftKey?"redo":"undo":null}(t)||null;case o.RETURN:return"split-block";case o.DELETE:return function(t){return!a&&t.shiftKey?null:l(t)?"delete-word":"delete"}(t);case o.BACKSPACE:return function(t){return c(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace"}(t);case o.LEFT:return s&&c(t)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(t)?"move-selection-to-end-of-block":null;default:return null}}},62263:function(t,e,n){"use strict";var r=n(97222);t.exports=function(t,e){var n=e.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(t,e,o,i,a,s)}},97222:function(t,e,n){"use strict";var r=n(59321),o=n(6244),i=n(39433),a=n(73012),s=n(23833),c=n(98392);function u(t,e,n){var i=e,u=r(i);if(null!=u||t&&(t===i||t.firstChild===i)||a(!1),t===i&&(i=i.firstChild,s(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length)),0===n){var f=null;if(null!=u)f=u;else{var p=function(t){for(;t.firstChild&&(s(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||o(t.firstChild));)t=t.firstChild;return t}(i);f=c(o(p))}return{key:f,offset:0}}var d=i.childNodes[n-1],h=null,g=null;if(o(d)){var y=function(t){for(;t.lastChild&&(s(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||o(t.lastChild));)t=t.lastChild;return t}(d);h=c(o(y)),g=l(y)}else h=c(u),g=l(d);return{key:h,offset:g}}function l(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,n,o,a,s){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:i(t,c(r(n)),o,c(r(a)),s),needsRecovery:!1};var p=null,d=null,h=!0;return l?(p={key:c(r(n)),offset:o},d=u(e,a,s)):f?(d={key:c(r(a)),offset:s},p=u(e,n,o)):(p=u(e,n,o),d=u(e,a,s),n===a&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(t,p.key,p.offset,d.key,d.offset),needsRecovery:h}}},34483:function(t,e,n){"use strict";var r=n(50884).notEmptyKey;function o(t,e){return r(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var n;if(e.isCollapsed()){var r=e.getAnchorKey(),i=e.getAnchorOffset();return i>0?(n=t.getBlockForKey(r).getEntityAt(i-1))!==t.getBlockForKey(r).getEntityAt(i)?null:o(t.getEntityMap(),n):null}var a=e.getStartKey(),s=e.getStartOffset(),c=t.getBlockForKey(a);return n=s===c.getLength()?null:c.getEntityAt(s),o(t.getEntityMap(),n)}},25057:function(t,e,n){"use strict";var r=n(58364);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:r(t.getCurrentContent(),e)}},2839:function(t,e,n){"use strict";var r=n(47724);t.exports=function(t,e){if(!(t instanceof r))return null;var n=t.getNextSiblingKey();if(n)return n;var o=t.getParentKey();if(!o)return null;for(var i=e.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?e.get(a):null}return i?i.getNextSiblingKey():null}},14723:function(t){"use strict";t.exports=function(t){return Object.keys(t).map((function(e){return t[e]}))}},50959:function(t,e,n){"use strict";var r=n(74468);t.exports=function(t){var e=r(t),n=0,o=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var s=e[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=e[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<e.length;u++){var l=e[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},74468:function(t,e,n){"use strict";var r=n(91355),o=n(73012),i=r.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],r=t.endContainer;null!=r;r=r.parentNode){var i=r===t.commonAncestorContainer;i?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,s=Array.from(e.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);e.setEndBefore(r)}o(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=i},21622:function(t,e,n){"use strict";var r=n(73012);t.exports=function(t,e){var n=[];return t.findEntityRanges((function(t){return t.getEntity()===e}),(function(t,e){n.push({start:t,end:e})})),n.length||r(!1),n}},27917:function(t,e,n){"use strict";var r=n(91355),o=n(73012),i=r.isBrowser("IE <= 9");t.exports=function(t){var e,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}},6244:function(t,e,n){"use strict";var r=n(23833);t.exports=function t(e){if(r(e)){var n=e,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=t(n.childNodes[i]);if(a)return a}}return null}},26288:function(t,e,n){"use strict";var r=n(73012),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var a=0,s=[];t.forEach((function(c){!function(t,e){if(!n.g.FileReader||t.type&&!(t.type in i))e("");else{if(""===t.type){var a="";return o.test(t.name)&&(a=t.name.replace(o,"")),void e(a)}var s=new FileReader;s.onload=function(){var t=s.result;"string"!=typeof t&&r(!1),e(t)},s.onerror=function(){e("")},s.readAsText(t)}}(c,(function(n){a++,n&&s.push(n.slice(0,5e3)),a==t.length&&e(s.join("\r"))}))}))}},39433:function(t,e,n){"use strict";var r=n(33638),o=n(98392);t.exports=function(t,e,n,i,a){var s=o(t.getSelection());if(!e||!i)return s;var c=r.decode(e),u=c.blockKey,l=t.getBlockTree(u),f=l&&l.getIn([c.decoratorKey,"leaves",c.leafKey]),p=r.decode(i),d=p.blockKey,h=t.getBlockTree(d),g=h&&h.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!g)return s;var y=f.get("start"),m=g.get("start"),v=f?y+n:null,b=g?m+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===v&&s.getFocusKey()===d&&s.getFocusOffset()===b)return s;var _=!1;if(u===d){var w=f.get("end"),S=g.get("end");_=m===y&&S===w?a<n:m<y}else _=t.getCurrentContent().getBlockMap().keySeq().skipUntil((function(t){return t===u||t===d})).first()===d;return s.merge({anchorKey:u,anchorOffset:v,focusKey:d,focusOffset:b,isBackward:_})}},602:function(t,e,n){"use strict";var r=n(50959);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},52868:function(t){"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},27936:function(t){"use strict";t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[t])}},14719:function(t,e,n){"use strict";var r=n(38046),o=n(47724),i=n(18489),a=n(31226),s=n(73012),c=n(58064),u=i.List;t.exports=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||s(!1);var l=t.getBlockMap(),f=c(n),p=e.getStartKey(),d=e.getStartOffset(),h=l.get(p);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===f.size?function(t,e,n,r,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),u=c.getText(),l=c.getCharacterList(),f=o,p=i+r.getText().length,d=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var h=c.getType();u&&"unstyled"===h&&(h=r.getType());var g=c.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:a(l,r.getCharacterList(),i),type:h,data:d});return t.merge({blockMap:n.set(o,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}(t,e,l,f.first(),p,d,i):function(t,e,n,i,a,s){var c=n.first()instanceof o,l=[],f=i.size,p=n.get(a),d=i.first(),h=i.last(),g=h.getLength(),y=h.getKey(),m=c&&(!p.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(t,e){e===a?(m?l.push(t):l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),a=o.slice(0,e),s=n.first();return t.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?t.getType():s.getType(),data:s.getData()})}(t,s,i)),i.slice(m?0:1,f-1).forEach((function(t){return l.push(t)})),l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,a=r.slice(e,i),s=o.slice(e,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(t,s,i))):l.push(t)}));var v=r.createFromArray(l);return c&&(v=function(t,e,n,r){return t.withMutations((function(e){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(t,e){var n=t.getKey(),r=t,o=[];for(e.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=e.get(i)}return o}(r,t),l=c[c.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],o)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),c.forEach((function(t){return e.setIn([t,"parent"],s)})),s){var f=t.get(s).getChildKeys(),p=f.indexOf(o)+1,d=f.toArray();d.splice.apply(d,[p,0].concat(c)),e.setIn([s,"children"],u(d))}}))}(v,0,p,d)),t.merge({blockMap:v,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:g,focusKey:y,focusOffset:g,isBackward:!1})})}(t,e,l,f,p,d)}},31226:function(t){"use strict";t.exports=function(t,e,n){var r=t;if(n===r.count())e.forEach((function(t){r=r.push(t)}));else if(0===n)e.reverse().forEach((function(t){r=r.unshift(t)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(e,i).toList()}return r}},79585:function(t,e,n){"use strict";var r=n(18489),o=n(31226),i=n(73012),a=r.Repeat;t.exports=function(t,e,n,r){e.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return t;var c=t.getBlockMap(),u=e.getStartKey(),l=e.getStartOffset(),f=c.get(u),p=f.getText(),d=f.merge({text:p.slice(0,l)+n+p.slice(l,f.getLength()),characterList:o(f.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return t.merge({blockMap:c.set(u,d),selectionAfter:e.merge({anchorOffset:h,focusOffset:h})})}},23833:function(t){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},5218:function(t){"use strict";t.exports=function(t){return"handled"===t||!0===t}},19662:function(t,e,n){"use strict";var r=n(23833);t.exports=function(t){return!(!t||!t.ownerDocument)&&r(t)&&"A"===t.nodeName}},78659:function(t,e,n){"use strict";var r=n(23833);t.exports=function(t){return!(!t||!t.ownerDocument)&&r(t)&&"BR"===t.nodeName}},8187:function(t){"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},9115:function(t,e,n){"use strict";var r=n(23833);t.exports=function(t){return!(!t||!t.ownerDocument)&&r(t)&&"IMG"===t.nodeName}},89836:function(t){"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},99322:function(t){"use strict";t.exports=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some((function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some((function(t){var e=t.get("start");return o===e&&(i=!0,!0)}))})),i}},18528:function(t,e,n){"use strict";var r=n(7482);t.exports=function(t){return t.which===r.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},63453:function(t,e,n){"use strict";var r=n(46238),o=n(96107),i=n(97222),a=n(39443),s=n(26371);t.exports=function(t,e){var n=s(t,(function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(t,1);var r=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===t.getCurrentContent()?t:r.push(t,n,"remove-range")}},29683:function(t,e,n){"use strict";var r=n(81360),o=n(46238),i=n(39443),a=n(26371);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return i(t,1);var o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(t,s.length||1)}),"backward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},47796:function(t,e,n){"use strict";var r=n(81360),o=n(46238),i=n(95217),a=n(26371);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=e.getStartOffset(),o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(t,s.length||1)}),"forward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},27380:function(t,e,n){"use strict";var r=n(84055),o=n(46238);t.exports=function(t){var e=r.splitBlock(t.getCurrentContent(),t.getSelection());return o.push(t,e,"split-block")}},24738:function(t,e,n){"use strict";var r=n(46238);t.exports=function(t){var e=t.getSelection(),n=e.getEndKey(),o=t.getCurrentContent().getBlockForKey(n).getLength();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},92172:function(t,e,n){"use strict";var r=n(46238);t.exports=function(t){var e=t.getSelection(),n=e.getStartKey();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},32856:function(t,e,n){"use strict";var r=n(46238),o=n(13820),i=n(39443),a=n(26371);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(t,s?o.getUTF16Length(s,0):1)}),"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},35394:function(t,e,n){"use strict";var r=n(46238),o=n(13820),i=n(95217),a=n(26371);t.exports=function(t){var e=a(t,(function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(t,s?o.getUTF16Length(s,0):1)}),"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},95358:function(t,e,n){"use strict";var r=n(84055),o=n(46238),i=n(58364);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var a,s,c=e.getAnchorKey(),u=t.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return t;n===l?(a=e.set("anchorOffset",n-1),s=e):s=(a=e.set("focusOffset",n+1)).set("anchorOffset",n+1);var f=i(u,a),p=r.removeRange(u,a,"backward"),d=p.getSelectionAfter(),h=d.getAnchorOffset()-1,g=d.merge({anchorOffset:h,focusOffset:h}),y=r.replaceWithFragment(p,g,f),m=o.push(t,y,"insert-fragment");return o.acceptSelection(m,s)}},95649:function(t,e,n){"use strict";var r=n(46238);t.exports=function(t,e,n){var o=r.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(r.set(e,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},37248:function(t,e,n){"use strict";var r=n(18489).Map;t.exports=function(t,e,n){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===i})).concat(r([[i,a.get(i)]])).map(n);return t.merge({blockMap:a.merge(s),selectionBefore:e,selectionAfter:e})}},58710:function(t,e,n){"use strict";var r=n(47724),o=n(2839),i=n(18489),a=n(73012),s=i.OrderedMap,c=i.List,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n,r,o){if(!o)return t;var i="after"===r,a=e.getKey(),s=n.getKey(),l=e.getParentKey(),f=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return t.withMutations((function(t){u(l,t,(function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})})),u(p,t,(function(t){return t.merge({nextSibling:f})})),u(f,t,(function(t){return t.merge({prevSibling:p})})),u(h,t,(function(t){return t.merge({prevSibling:a})})),u(g,t,(function(t){return t.merge({nextSibling:a})})),u(d,t,(function(t){var e=t.getChildKeys(),n=e.indexOf(s),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,a),t.merge({children:c(o)})})),u(a,t,(function(t){return t.merge({nextSibling:h,prevSibling:g,parent:d})}))}))};t.exports=function(t,e,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=e.getKey();u===c&&a(!1);var f=t.getBlockMap(),p=e instanceof r,d=[e],h=f.delete(u);p&&(d=[],h=f.withMutations((function(t){var n=e.getNextSiblingKey(),r=o(e,t);t.toSeq().skipUntil((function(t){return t.getKey()===u})).takeWhile((function(t){var e=t.getKey(),o=e===u,i=n&&e!==n,a=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||i||a)})).forEach((function(e){d.push(e),t.delete(e.getKey())}))})));var g=h.toSeq().takeUntil((function(t){return t===n})),y=h.toSeq().skipUntil((function(t){return t===n})).skip(1),m=d.map((function(t){return[t.getKey(),t]})),v=s();if("before"===i){var b=t.getBlockBefore(c);b&&b.getKey()===e.getKey()&&a(!1),v=g.concat([].concat(m,[[c,n]]),y).toOrderedMap()}else if("after"===i){var _=t.getBlockAfter(c);_&&_.getKey()===u&&a(!1),v=g.concat([[c,n]].concat(m),y).toOrderedMap()}return t.merge({blockMap:l(v,e,n,i,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},39443:function(t,e,n){"use strict";n(85806),t.exports=function(t,e){var n=t.getSelection(),r=t.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(e>i){var c=r.getKeyBefore(o);null==c?a=o:(a=c,s=r.getBlockForKey(c).getText().length)}else s=i-e;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},95217:function(t,e,n){"use strict";n(85806),t.exports=function(t,e){var n,r=t.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=t.getCurrentContent(),s=o;return e>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+e,r.merge({focusKey:s,focusOffset:n})}},58064:function(t,e,n){"use strict";var r=n(47724),o=n(84894),i=n(18489).OrderedMap;t.exports=function(t){return t.first()instanceof r?function(t){var e,n={};return i(t.withMutations((function(t){t.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),f=o();if(n[a]=f,s&&(t.get(s)?t.setIn([s,"prevSibling"],f):t.setIn([a,"nextSibling"],null)),c&&(t.get(c)?t.setIn([c,"nextSibling"],f):t.setIn([a,"prevSibling"],null)),l&&t.get(l)){var p=t.get(l).getChildKeys();t.setIn([l,"children"],p.set(p.indexOf(r.getKey()),f))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],f),t.setIn([a,"prevSibling"],n[e.getKey()])),e=t.get(a);u.forEach((function(e){t.get(e)?t.setIn([e,"parent"],f):t.setIn([a,"children"],r.getChildKeys().filter((function(t){return t!==e})))}))}))})).toArray().map((function(t){return[n[t.getKey()],t.set("key",n[t.getKey()])]})))}(t):function(t){return i(t.toArray().map((function(t){var e=o();return[e,t.set("key",e)]})))}(t)}},77506:function(t,e,n){"use strict";var r=n(28),o=n(90754),i=n(73012);function a(t,e,n){var a=e.getCharacterList(),s=n>0?a.get(n-1):void 0,c=n<a.count()?a.get(n):void 0,u=s?s.getEntity():void 0,l=c?c.getEntity():void 0;if(l&&l===u&&"MUTABLE"!==t.__get(l).getMutability()){for(var f,p=function(t,e,n){var r;return o(t,(function(t,e){return t.getEntity()===e.getEntity()}),(function(t){return t.getEntity()===e}),(function(t,e){t<=n&&e>=n&&(r={start:t,end:e})})),"object"!=typeof r&&i(!1),r}(a,l,n),d=p.start,h=p.end;d<h;)f=a.get(d),a=a.set(d,r.applyEntity(f,null)),d++;return e.set("characterList",a)}return e}t.exports=function(t,e){var n=t.getBlockMap(),r=t.getEntityMap(),o={},i=e.getStartKey(),s=e.getStartOffset(),c=n.get(i),u=a(r,c,s);u!==c&&(o[i]=u);var l=e.getEndKey(),f=e.getEndOffset(),p=n.get(l);i===l&&(p=u);var d=a(r,p,f);return d!==p&&(o[l]=d),Object.keys(o).length?t.merge({blockMap:n.merge(o),selectionAfter:e}):t.set("selectionAfter",e)}},12269:function(t,e,n){"use strict";var r=n(47724),o=n(2839),i=n(18489),a=(i.List,i.Map),s=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},c=function(t,e){var n=[];if(!t)return n;for(var r=e.get(t);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?e.get(o):null}return n},u=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};t.exports=function(t,e){if(e.isCollapsed())return t;var n,i=t.getBlockMap(),f=e.getStartKey(),p=e.getStartOffset(),d=e.getEndKey(),h=e.getEndOffset(),g=i.get(f),y=i.get(d),m=g instanceof r,v=[];if(m){var b=y.getChildKeys(),_=c(d,i);y.getNextSiblingKey()&&(v=v.concat(_)),b.isEmpty()||(v=v.concat(_.concat([d]))),v=v.concat(c(o(y,i),i))}n=g===y?function(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var r=t.slice(0,e),o=t.slice(n);t=r.concat(o).toList()}return t}(g.getCharacterList(),p,h):g.getCharacterList().slice(0,p).concat(y.getCharacterList().slice(h));var w=g.merge({text:g.getText().slice(0,p)+y.getText().slice(h),characterList:n}),S=m&&0===p&&0===h&&y.getParentKey()===f&&null==y.getPrevSiblingKey()?a([[f,null]]):i.toSeq().skipUntil((function(t,e){return e===f})).takeUntil((function(t,e){return e===d})).filter((function(t,e){return-1===v.indexOf(e)})).concat(a([[d,null]])).map((function(t,e){return e===f?w:null})),x=i.merge(S).filter((function(t){return!!t}));return m&&g!==y&&(x=function(t,e,n,r){return t.withMutations((function(i){if(s(e.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),s(n.getKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})),c(e.getKey(),r).forEach((function(t){return s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),s(e.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})})),s(e.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:u(t,i,r)})})),s(n.getNextSiblingKey(),i,(function(t){return t.merge({prevSibling:l(t,i,r)})})),s(n.getPrevSiblingKey(),i,(function(t){return t.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(t){s(t,i,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return i.get(t)})),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),function(t,e){var n=[];if(!t)return n;for(var r=o(t,e);r&&e.get(r);){var i=e.get(r);n.push(r),r=i.getParentKey()?o(i,e):null}return n}(n,r).forEach((function(t){return s(t,i,(function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}))})),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var a=e.getPrevSiblingKey();s(n.getKey(),i,(function(t){return t.merge({prevSibling:a})})),s(a,i,(function(t){return t.merge({nextSibling:n.getKey()})}));var f=a?t.get(a):null,p=f?f.getParentKey():null;if(e.getChildKeys().forEach((function(t){s(t,i,(function(t){return t.merge({parent:p})}))})),null!=p){var d=t.get(p);s(p,i,(function(t){return t.merge({children:d.getChildKeys().concat(e.getChildKeys())})}))}s(e.getChildKeys().find((function(e){return null===t.get(e).getNextSiblingKey()})),i,(function(t){return t.merge({nextSibling:e.getNextSiblingKey()})}))}}))}(x,g,y,i)),t.merge({blockMap:x,selectionBefore:e,selectionAfter:e.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})}},26371:function(t,e,n){"use strict";var r=n(84055),o=n(27936)("draft_tree_data_support");t.exports=function(t,e,n){var i=t.getSelection(),a=t.getCurrentContent(),s=i,c=i.getAnchorKey(),u=i.getFocusKey(),l=a.getBlockForKey(c);if(o&&"forward"===n&&c!==u)return a;if(i.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(c).getLength()){var f=a.getBlockForKey(l.nextSibling);if(!f||0===f.getLength())return a}}else if(t.isSelectionAtStartOfContent())return a;if((s=e(t))===i)return a}return r.removeRange(a,s,n)}},24844:function(t){"use strict";var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},46064:function(t,e,n){"use strict";var r=n(34390),o=n(31532),i=n(91355),a=n(61530),s=n(16838),c=n(45653),u=n(73012),l=n(23833),f=i.isBrowser("IE");function p(t,e){if(!t)return"[empty]";var n=d(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||u(!1),n.outerHTML)}function d(t,e){var n=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var r=t.textContent.length;return c(t).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=t.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=t.childNodes,a=0;a<i.length;a++)o.appendChild(d(i[a],e));return o}function h(t,e){for(var n=t,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return p(n,e);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function g(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function y(t,e,n,r){var i=s();if(t.extend&&null!=e&&a(i,e)){n>g(e)&&o.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(e,(function(e){var n=[];return e===i&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:c,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var u=t.getRangeAt(0);u.setEnd(e,n),t.addRange(u.cloneRange())}}function m(t,e,n,i){var a=c(e).createRange();if(n>g(e)&&(o.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(e,n),f)try{t.addRange(a)}catch(t){}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,n,r,o){var i=c(e);if(a(i.documentElement,e)){var s=i.defaultView.getSelection(),u=t.getAnchorKey(),l=t.getAnchorOffset(),f=t.getFocusKey(),p=t.getFocusOffset(),d=t.getIsBackward();if(!s.extend&&d){var h=u,g=l;u=f,l=p,f=h,p=g,d=!1}var v=u===n&&r<=l&&o>=l,b=f===n&&r<=p&&o>=p;if(v&&b)return s.removeAllRanges(),m(s,e,l-r,t),void y(s,e,p-r,t);if(d){if(b&&(s.removeAllRanges(),m(s,e,p-r,t)),v){var _=s.focusNode,w=s.focusOffset;s.removeAllRanges(),m(s,e,l-r,t),y(s,_,w,t)}}else v&&(s.removeAllRanges(),m(s,e,l-r,t)),b&&y(s,e,p-r,t)}},addFocusToSelection:y}},70774:function(t,e,n){"use strict";var r=n(47724),o=n(84894),i=n(18489),a=n(73012),s=n(37248),c=i.List,u=i.Map,l=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var n=e.getAnchorKey(),i=t.getBlockMap(),f=i.get(n),p=f.getText();if(!p){var d=f.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(t,e,(function(t){return t.merge({type:"unstyled",depth:0})}))}var h=e.getAnchorOffset(),g=f.getCharacterList(),y=o(),m=f instanceof r,v=f.merge({text:p.slice(0,h),characterList:g.slice(0,h)}),b=v.merge({key:y,text:p.slice(h),characterList:g.slice(h),data:u()}),_=i.toSeq().takeUntil((function(t){return t===f})),w=i.toSeq().skipUntil((function(t){return t===f})).rest(),S=_.concat([[n,v],[y,b]],w).toOrderedMap();return m&&(f.getChildKeys().isEmpty()||a(!1),S=function(t,e,n){return t.withMutations((function(t){var r=e.getKey(),o=n.getKey();l(e.getParentKey(),t,(function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:c(i)})})),l(e.getNextSiblingKey(),t,(function(t){return t.merge({prevSibling:o})})),l(r,t,(function(t){return t.merge({nextSibling:o})})),l(o,t,(function(t){return t.merge({prevSibling:r})}))}))}(S,v,b)),t.merge({blockMap:S,selectionBefore:e,selectionAfter:e.merge({anchorKey:y,anchorOffset:0,focusKey:y,focusOffset:0,isBackward:!1})})}},39347:function(t){"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},44231:function(t){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}},18489:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:H(t)}function r(t){return s(t)?t:q(t)}function o(t){return c(t)?t:W(t)}function i(t){return a(t)&&!u(t)?t:Y(t)}function a(t){return!(!t||!t[f])}function s(t){return!(!t||!t[p])}function c(t){return!(!t||!t[d])}function u(t){return s(t)||c(t)}function l(t){return!(!t||!t[h])}e(r,n),e(o,n),e(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=32,m=31,v={},b={value:!1},_={value:!1};function w(t){return t.value=!1,t}function S(t){t&&(t.value=!0)}function x(){}function M(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function E(t){return void 0===t.size&&(t.size=t.__iterate(C)),t.size}function k(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?E(t)+e:e}function C(){return!0}function D(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function j(t,e){return I(t,e,0)}function O(t,e){return I(t,e,e)}function I(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var T="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",A=T||L;function N(t){this.next=t}function z(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function R(){return{value:void 0,done:!0}}function P(t){return!!U(t)}function B(t){return t&&"function"==typeof t.next}function F(t){var e=U(t);return e&&e.call(t)}function U(t){var e=t&&(T&&t[T]||t[L]);if("function"==typeof e)return e}function K(t){return t&&"number"==typeof t.length}function H(t){return null==t?nt():a(t)?t.toSeq():function(t){var e=it(t)||"object"==typeof t&&new X(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function q(t){return null==t?nt().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():rt(t)}function W(t){return null==t?nt():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():ot(t)}function Y(t){return(null==t?nt():a(t)?s(t)?t.entrySeq():t:ot(t)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=0,N.VALUES=1,N.ENTRIES=2,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[A]=function(){return this},e(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(t,e){return at(this,t,e,!0)},H.prototype.__iterator=function(t,e){return st(this,t,e,!0)},e(q,H),q.prototype.toKeyedSeq=function(){return this},e(W,H),W.of=function(){return W(arguments)},W.prototype.toIndexedSeq=function(){return this},W.prototype.toString=function(){return this.__toString("Seq [","]")},W.prototype.__iterate=function(t,e){return at(this,t,e,!1)},W.prototype.__iterator=function(t,e){return st(this,t,e,!1)},e(Y,H),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},H.isSeq=et,H.Keyed=q,H.Set=Y,H.Indexed=W;var V,Q,Z,G="@@__IMMUTABLE_SEQ__@@";function J(t){this._array=t,this.size=t.length}function X(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function $(t){this._iterable=t,this.size=t.length||t.size}function tt(t){this._iterator=t,this._iteratorCache=[]}function et(t){return!(!t||!t[G])}function nt(){return V||(V=new J([]))}function rt(t){var e=Array.isArray(t)?new J(t).fromEntrySeq():B(t)?new tt(t).fromEntrySeq():P(t)?new $(t).fromEntrySeq():"object"==typeof t?new X(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function ot(t){var e=it(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function it(t){return K(t)?new J(t):B(t)?new tt(t):P(t)?new $(t):void 0}function at(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function st(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new N((function(){var t=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:z(e,r?t[0]:a-1,t[1])}))}return t.__iteratorUncached(e,n)}function ct(t,e){return e?ut(e,t,"",{"":t}):lt(t)}function ut(t,e,n,r){return Array.isArray(e)?t.call(r,n,W(e).map((function(n,r){return ut(t,n,r,e)}))):ft(e)?t.call(r,n,q(e).map((function(n,r){return ut(t,n,r,e)}))):e}function lt(t){return Array.isArray(t)?W(t).map(lt).toList():ft(t)?q(t).map(lt).toMap():t}function ft(t){return t&&(t.constructor===Object||void 0===t.constructor)}function pt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function dt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||c(t)!==c(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every((function(t,e){var o=r.next().value;return o&&pt(o[1],t)&&(n||pt(o[0],e))}))&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var f=!0,p=e.__iterate((function(e,r){if(n?!t.has(e):o?!pt(e,t.get(r,v)):!pt(t.get(r,v),e))return f=!1,!1}));return f&&t.size===p}function ht(t,e){if(!(this instanceof ht))return new ht(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Q)return Q;Q=this}}function gt(t,e){if(!t)throw new Error(e)}function yt(t,e,n){if(!(this instanceof yt))return new yt(t,e,n);if(gt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function mt(){throw TypeError("Abstract")}function vt(){}function bt(){}function _t(){}H.prototype[G]=!0,e(J,W),J.prototype.get=function(t,e){return this.has(t)?this._array[k(this,t)]:e},J.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},J.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new N((function(){return o>r?{value:void 0,done:!0}:z(t,o,n[e?r-o++:o++])}))},e(X,q),X.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},X.prototype.has=function(t){return this._object.hasOwnProperty(t)},X.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},X.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new N((function(){var a=r[e?o-i:i];return i++>o?{value:void 0,done:!0}:z(t,a,n[a])}))},X.prototype[h]=!0,e($,W),$.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=F(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},$.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=F(this._iterable);if(!B(n))return new N(R);var r=0;return new N((function(){var e=n.next();return e.done?e:z(t,r++,e.value)}))},e(tt,W),tt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===t(a,i++,this))break}return i},tt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new N((function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return z(t,o,r[o++])}))},e(ht,W),ht.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ht.prototype.get=function(t,e){return this.has(t)?this._value:e},ht.prototype.includes=function(t){return pt(this._value,t)},ht.prototype.slice=function(t,e){var n=this.size;return D(t,e,n)?this:new ht(this._value,O(e,n)-j(t,n))},ht.prototype.reverse=function(){return this},ht.prototype.indexOf=function(t){return pt(this._value,t)?0:-1},ht.prototype.lastIndexOf=function(t){return pt(this._value,t)?this.size:-1},ht.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},ht.prototype.__iterator=function(t,e){var n=this,r=0;return new N((function(){return r<n.size?z(t,r++,n._value):{value:void 0,done:!0}}))},ht.prototype.equals=function(t){return t instanceof ht?pt(this._value,t._value):dt(t)},e(yt,W),yt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},yt.prototype.get=function(t,e){return this.has(t)?this._start+k(this,t)*this._step:e},yt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},yt.prototype.slice=function(t,e){return D(t,e,this.size)?this:(t=j(t,this.size),(e=O(e,this.size))<=t?new yt(0,0):new yt(this.get(t,this._end),this.get(e,this._end),this._step))},yt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},yt.prototype.lastIndexOf=function(t){return this.indexOf(t)},yt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},yt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new N((function(){var a=o;return o+=e?-r:r,i>n?{value:void 0,done:!0}:z(t,i++,a)}))},yt.prototype.equals=function(t){return t instanceof yt?this._start===t._start&&this._end===t._end&&this._step===t._step:dt(this,t)},e(mt,n),e(vt,mt),e(bt,mt),e(_t,mt),mt.Keyed=vt,mt.Indexed=bt,mt.Set=_t;var wt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function St(t){return t>>>1&1073741824|3221225471&t}function xt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return St(n)}if("string"===e)return t.length>It?function(t){var e=At[t];return void 0===e&&(e=Mt(t),Lt===Tt&&(Lt=0,At={}),Lt++,At[t]=e),e}(t):Mt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Dt&&void 0!==(e=Ct.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!kt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++jt,1073741824&jt&&(jt=0),Dt)Ct.set(t,e);else{if(void 0!==Et&&!1===Et(t))throw new Error("Non-extensible objects are not allowed as keys.");if(kt)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(t);if("function"==typeof t.toString)return Mt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Mt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return St(e)}var Et=Object.isExtensible,kt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var Ct,Dt="function"==typeof WeakMap;Dt&&(Ct=new WeakMap);var jt=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var It=16,Tt=255,Lt=0,At={};function Nt(t){gt(t!==1/0,"Cannot perform this action with an infinite size.")}function zt(t){return null==t?Gt():Rt(t)&&!l(t)?t:Gt().withMutations((function(e){var n=r(t);Nt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Rt(t){return!(!t||!t[Bt])}e(zt,vt),zt.prototype.toString=function(){return this.__toString("Map {","}")},zt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},zt.prototype.set=function(t,e){return Jt(this,t,e)},zt.prototype.setIn=function(t,e){return this.updateIn(t,v,(function(){return e}))},zt.prototype.remove=function(t){return Jt(this,t,v)},zt.prototype.deleteIn=function(t){return this.updateIn(t,(function(){return v}))},zt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},zt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=ie(this,en(t),e,n);return r===v?void 0:r},zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Gt()},zt.prototype.merge=function(){return ee(this,void 0,arguments)},zt.prototype.mergeWith=function(e){return ee(this,e,t.call(arguments,1))},zt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Gt(),(function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]}))},zt.prototype.mergeDeep=function(){return ee(this,ne,arguments)},zt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return ee(this,re(e),n)},zt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Gt(),(function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]}))},zt.prototype.sort=function(t){return De(qe(this,t))},zt.prototype.sortBy=function(t,e){return De(qe(this,e,t))},zt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},zt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},zt.prototype.asImmutable=function(){return this.__ensureOwner()},zt.prototype.wasAltered=function(){return this.__altered},zt.prototype.__iterator=function(t,e){return new Yt(this,t,e)},zt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},zt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Zt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},zt.isMap=Rt;var Pt,Bt="@@__IMMUTABLE_MAP__@@",Ft=zt.prototype;function Ut(t,e){this.ownerID=t,this.entries=e}function Kt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Ht(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function qt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Wt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function Yt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Qt(t._root)}function Vt(t,e){return z(t,e[0],e[1])}function Qt(t,e){return{node:t,index:0,__prev:e}}function Zt(t,e,n,r){var o=Object.create(Ft);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gt(){return Pt||(Pt=Zt(0))}function Jt(t,e,n){var r,o;if(t._root){var i=w(b),a=w(_);if(r=Xt(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===v?-1:1:0)}else{if(n===v)return t;o=1,r=new Ut(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Zt(o,r):Gt()}function Xt(t,e,n,r,o,i,a,s){return t?t.update(e,n,r,o,i,a,s):i===v?t:(S(s),S(a),new Wt(e,r,[o,i]))}function $t(t){return t.constructor===Wt||t.constructor===qt}function te(t,e,n,r,o){if(t.keyHash===r)return new qt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Kt(e,1<<a|1<<s,a===s?[te(t,e,n+5,r,o)]:(i=new Wt(e,r,o),a<s?[t,i]:[i,t]))}function ee(t,e,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(t){return ct(t)}))),o.push(c)}return oe(t,e,o)}function ne(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):pt(t,e)?t:e}function re(t){return function(e,n,r){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return pt(e,o)?e:o}}function oe(t,e,n){return 0===(n=n.filter((function(t){return 0!==t.size}))).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var r=e?function(n,r){t.update(r,v,(function(t){return t===v?n:e(t,n,r)}))}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)})):t.constructor(n[0])}function ie(t,e,n,r){var o=t===v,i=e.next();if(i.done){var a=o?n:t,s=r(a);return s===a?t:s}gt(o||t&&t.set,"invalid keyPath");var c=i.value,u=o?v:t.get(c,v),l=ie(u,e,n,r);return l===u?t:l===v?t.remove(c):(o?Gt():t).set(c,l)}function ae(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function se(t,e,n,r){var o=r?t:M(t);return o[e]=n,o}Ft[Bt]=!0,Ft[g]=Ft.remove,Ft.removeIn=Ft.deleteIn,Ut.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(pt(n,o[i][0]))return o[i][1];return r},Ut.prototype.update=function(t,e,n,r,o,i,a){for(var s=o===v,c=this.entries,u=0,l=c.length;u<l&&!pt(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),!s||1!==c.length){if(!f&&!s&&c.length>=ce)return function(t,e,n,r){t||(t=new x);for(var o=new Wt(t,xt(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,c,r,o);var p=t&&t===this.ownerID,d=p?c:M(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ut(t,d)}},Kt.prototype.get=function(t,e,n,r){void 0===e&&(e=xt(n));var o=1<<((0===t?e:e>>>t)&m),i=this.bitmap;return i&o?this.nodes[ae(i&o-1)].get(t+5,e,n,r):r},Kt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=xt(r));var s=(0===e?n:n>>>e)&m,c=1<<s,u=this.bitmap,l=!!(u&c);if(!l&&o===v)return this;var f=ae(u&c-1),p=this.nodes,d=l?p[f]:void 0,h=Xt(d,t,e+5,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=ue)return function(t,e,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Ht(t,i+1,a)}(t,p,u,s,h);if(l&&!h&&2===p.length&&$t(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&$t(h))return h;var g=t&&t===this.ownerID,b=l?h?u:u^c:u|c,_=l?h?se(p,f,h,g):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(p,f,g):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(p,f,h,g);return g?(this.bitmap=b,this.nodes=_,this):new Kt(t,b,_)},Ht.prototype.get=function(t,e,n,r){void 0===e&&(e=xt(n));var o=(0===t?e:e>>>t)&m,i=this.nodes[o];return i?i.get(t+5,e,n,r):r},Ht.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=xt(r));var s=(0===e?n:n>>>e)&m,c=o===v,u=this.nodes,l=u[s];if(c&&!l)return this;var f=Xt(l,t,e+5,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p<le)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Kt(t,o,a)}(t,u,p,s)}else p++;var d=t&&t===this.ownerID,h=se(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Ht(t,p,h)},qt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(pt(n,o[i][0]))return o[i][1];return r},qt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=xt(r));var s=o===v;if(n!==this.keyHash)return s?this:(S(a),S(i),te(this,t,e,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!pt(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(S(a),(s||!f)&&S(i),s&&2===l)return new Wt(t,this.keyHash,c[1^u]);var p=t&&t===this.ownerID,d=p?c:M(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new qt(t,this.keyHash,d)},Wt.prototype.get=function(t,e,n,r){return pt(n,this.entry[0])?this.entry[1]:r},Wt.prototype.update=function(t,e,n,r,o,i,a){var s=o===v,c=pt(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(S(a),s?void S(i):c?t&&t===this.ownerID?(this.entry[1]=o,this):new Wt(t,this.keyHash,[r,o]):(S(i),te(this,t,e,xt(r),[r,o])))},Ut.prototype.iterate=qt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Kt.prototype.iterate=Ht.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},Wt.prototype.iterate=function(t,e){return t(this.entry)},e(Yt,N),Yt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return Vt(t,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Vt(t,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Vt(t,i.entry);e=this._stack=Qt(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ce=8,ue=16,le=8;function fe(t){var e=we();if(null==t)return e;if(pe(t))return t;var n=o(t),r=n.size;return 0===r?e:(Nt(r),r>0&&r<y?_e(0,r,5,null,new ge(n.toArray())):e.withMutations((function(t){t.setSize(r),n.forEach((function(e,n){return t.set(n,e)}))})))}function pe(t){return!(!t||!t[de])}e(fe,bt),fe.of=function(){return this(arguments)},fe.prototype.toString=function(){return this.__toString("List [","]")},fe.prototype.get=function(t,e){if((t=k(this,t))>=0&&t<this.size){var n=Me(this,t+=this._origin);return n&&n.array[t&m]}return e},fe.prototype.set=function(t,e){return function(t,e,n){if((e=k(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?Ee(t,e).set(0,n):Ee(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,o=t._root,i=w(_);return e>=Ce(t._capacity)?r=Se(r,t.__ownerID,0,e,n,i):o=Se(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):_e(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},fe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},fe.prototype.insert=function(t,e){return this.splice(t,0,e)},fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):we()},fe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){Ee(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},fe.prototype.pop=function(){return Ee(this,0,-1)},fe.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){Ee(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},fe.prototype.shift=function(){return Ee(this,1)},fe.prototype.merge=function(){return ke(this,void 0,arguments)},fe.prototype.mergeWith=function(e){return ke(this,e,t.call(arguments,1))},fe.prototype.mergeDeep=function(){return ke(this,ne,arguments)},fe.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return ke(this,re(e),n)},fe.prototype.setSize=function(t){return Ee(this,0,t)},fe.prototype.slice=function(t,e){var n=this.size;return D(t,e,n)?this:Ee(this,j(t,n),O(e,n))},fe.prototype.__iterator=function(t,e){var n=0,r=be(this,e);return new N((function(){var e=r();return e===ve?{value:void 0,done:!0}:z(t,n++,e)}))},fe.prototype.__iterate=function(t,e){for(var n,r=0,o=be(this,e);(n=o())!==ve&&!1!==t(n,r++,this););return r},fe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?_e(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},fe.isList=pe;var de="@@__IMMUTABLE_LIST__@@",he=fe.prototype;function ge(t,e){this.array=t,this.ownerID=e}he[de]=!0,he[g]=he.remove,he.setIn=Ft.setIn,he.deleteIn=he.removeIn=Ft.removeIn,he.update=Ft.update,he.updateIn=Ft.updateIn,he.mergeIn=Ft.mergeIn,he.mergeDeepIn=Ft.mergeDeepIn,he.withMutations=Ft.withMutations,he.asMutable=Ft.asMutable,he.asImmutable=Ft.asImmutable,he.wasAltered=Ft.wasAltered,ge.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&m;if(r>=this.array.length)return new ge([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-5,n))===a&&i)return this}if(i&&!o)return this;var s=xe(this,t);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},ge.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&m;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-5,n))===i&&o===this.array.length-1)return this}var a=xe(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ye,me,ve={};function be(t,e){var n=t._origin,r=t._capacity,o=Ce(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,c){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,c=a>n?0:n-a,u=r-a;return u>y&&(u=y),function(){if(c===u)return ve;var t=e?--u:c++;return s&&s[t]}}(t,c):function(t,o,i){var s,c=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var t=s();if(t!==ve)return t;s=null}if(u===l)return ve;var n=e?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(t,s,c)}}function _e(t,e,n,r,o,i,a){var s=Object.create(he);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function we(){return ye||(ye=_e(0,0,5))}function Se(t,e,n,r,o,i){var a,s=r>>>n&m,c=t&&s<t.array.length;if(!c&&void 0===o)return t;if(n>0){var u=t&&t.array[s],l=Se(u,e,n-5,r,o,i);return l===u?t:((a=xe(t,e)).array[s]=l,a)}return c&&t.array[s]===o?t:(S(i),a=xe(t,e),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function xe(t,e){return e&&t&&e===t.ownerID?t:new ge(t?t.array.slice():[],e)}function Me(t,e){if(e>=Ce(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&m],r-=5;return n}}function Ee(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new x,o=t._origin,i=t._capacity,a=o+e,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return t;if(a>=s)return t.clear();for(var c=t._level,u=t._root,l=0;a+l<0;)u=new ge(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ce(i),p=Ce(s);p>=1<<c+5;)u=new ge(u&&u.array.length?[u]:[],r),c+=5;var d=t._tail,h=p<f?Me(t,s-1):p>f?new ge([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=xe(u,r),y=c;y>5;y-=5){var v=f>>>y&m;g=g.array[v]=xe(g.array[v],r)}g.array[f>>>5&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var b=a>>>c&m;if(b!==p>>>c&m)break;b&&(l+=(1<<c)*b),c-=5,u=u.array[b]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&p<f&&(u=u.removeAfter(r,c,p-l)),l&&(a-=l,s-=l)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=c,t._root=u,t._tail=h,t.__hash=void 0,t.__altered=!0,t):_e(a,s,c,u,h)}function ke(t,e,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(t){return ct(t)}))),r.push(u)}return i>t.size&&(t=t.setSize(i)),oe(t,e,r)}function Ce(t){return t<y?0:t-1>>>5<<5}function De(t){return null==t?Ie():je(t)?t:Ie().withMutations((function(e){var n=r(t);Nt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function je(t){return Rt(t)&&l(t)}function Oe(t,e,n,r){var o=Object.create(De.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function Ie(){return me||(me=Oe(Gt(),we()))}function Te(t,e,n){var r,o,i=t._map,a=t._list,s=i.get(e),c=void 0!==s;if(n===v){if(!c)return t;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return t;r=i,o=a.set(s,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):Oe(r,o)}function Le(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ae(t){this._iter=t,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function ze(t){this._iter=t,this.size=t.size}function Re(t){var e=Xe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=$e,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new N((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function Pe(t,e,n){var r=Xe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,v);return i===v?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate((function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(2,o);return new N((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,e.call(n,a[1],s,t),o)}))},r}function Be(t,e){var n=Xe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Re(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=$e,n.__iterate=function(e,n){var r=this;return t.__iterate((function(t,n){return e(t,n,r)}),!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Fe(t,e,n,r){var o=Xe(t);return r&&(o.has=function(r){var o=t.get(r,v);return o!==v&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,v);return i!==v&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate((function(t,i,c){if(e.call(n,t,i,c))return s++,o(t,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),s=0;return new N((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(e.call(n,l,u,t))return z(o,r?u:s++,l,i)}}))},o}function Ue(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),D(e,n,o))return t;var i=j(e,o),a=O(n,o);if(i!=i||a!=a)return Ue(t.toSeq().cacheResult(),e,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=Xe(t);return u.size=0===s?s:t.size&&s||void 0,!r&&et(t)&&s>=0&&(u.get=function(e,n){return(e=k(this,e))>=0&&e<s?t.get(e+i,n):n}),u.__iterateUncached=function(e,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,c=!0,u=0;return t.__iterate((function(t,n){if(!c||!(c=a++<i))return u++,!1!==e(t,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var o=0!==s&&t.__iterator(e,n),a=0,c=0;return new N((function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var t=o.next();return r||1===e?t:z(e,c-1,0===e?void 0:t.value[1],t)}))},u}function Ke(t,e,n,r){var o=Xe(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate((function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new N((function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:z(o,u++,0===o?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:z(o,i,l,t)}))},o}function He(t,e,n){var r=Xe(t);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function t(c,u){var l=this;c.__iterate((function(o,c){return(!e||u<e)&&a(o)?t(o,u+1):!1===r(o,n?c:i++,l)&&(s=!0),!s}),o)}(t,0),i},r.__iteratorUncached=function(r,o){var i=t.__iterator(r,o),s=[],c=0;return new N((function(){for(;i;){var t=i.next();if(!1===t.done){var u=t.value;if(2===r&&(u=u[1]),e&&!(s.length<e)||!a(u))return n?t:z(r,c++,u,t);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}}))},r}function qe(t,e,n){e||(e=tn);var r=s(t),o=0,i=t.toSeq().map((function(e,r){return[r,e,o++,n?n(e,r,t):e]})).toArray();return i.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?q(i):c(t)?W(i):Y(i)}function We(t,e,n){if(e||(e=tn),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return Ye(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return Ye(e,t,n)?n:t}))}function Ye(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Ve(t,e,r){var o=Xe(t);return o.size=new J(r).map((function(t){return t.size})).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map((function(t){return t=n(t),F(o?t.reverse():t)})),a=0,s=!1;return new N((function(){var n;return s||(n=i.map((function(t){return t.next()})),s=n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:z(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function Qe(t,e){return et(t)?e:t.constructor(e)}function Ze(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ge(t){return Nt(t.size),E(t)}function Je(t){return s(t)?r:c(t)?o:i}function Xe(t){return Object.create((s(t)?q:c(t)?W:Y).prototype)}function $e(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function tn(t,e){return t>e?1:t<e?-1:0}function en(t){var e=F(t);if(!e){if(!K(t))throw new TypeError("Expected iterable or array-like: "+t);e=F(n(t))}return e}function nn(t,e){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(t);(function(t,e){try{e.forEach(sn.bind(void 0,t))}catch(t){}})(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=zt(i)},o=r.prototype=Object.create(rn);return o.constructor=r,r}e(De,zt),De.of=function(){return this(arguments)},De.prototype.toString=function(){return this.__toString("OrderedMap {","}")},De.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},De.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ie()},De.prototype.set=function(t,e){return Te(this,t,e)},De.prototype.remove=function(t){return Te(this,t,v)},De.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},De.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},De.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},De.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Oe(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},De.isOrderedMap=je,De.prototype[h]=!0,De.prototype[g]=De.prototype.remove,e(Le,q),Le.prototype.get=function(t,e){return this._iter.get(t,e)},Le.prototype.has=function(t){return this._iter.has(t)},Le.prototype.valueSeq=function(){return this._iter.valueSeq()},Le.prototype.reverse=function(){var t=this,e=Be(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},Le.prototype.map=function(t,e){var n=this,r=Pe(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},Le.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Ge(this):0,function(o){return t(o,e?--n:n++,r)}),e)},Le.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(1,e),r=e?Ge(this):0;return new N((function(){var o=n.next();return o.done?o:z(t,e?--r:r++,o.value,o)}))},Le.prototype[h]=!0,e(Ae,W),Ae.prototype.includes=function(t){return this._iter.includes(t)},Ae.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate((function(e){return t(e,r++,n)}),e)},Ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e),r=0;return new N((function(){var e=n.next();return e.done?e:z(t,r++,e.value,e)}))},e(Ne,Y),Ne.prototype.has=function(t){return this._iter.includes(t)},Ne.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},Ne.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new N((function(){var e=n.next();return e.done?e:z(t,e.value,e.value,e)}))},e(ze,q),ze.prototype.entrySeq=function(){return this._iter.toSeq()},ze.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){Ze(e);var r=a(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},ze.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new N((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Ze(r);var o=a(r);return z(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}}))},Ae.prototype.cacheResult=Le.prototype.cacheResult=Ne.prototype.cacheResult=ze.prototype.cacheResult=$e,e(nn,vt),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},nn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=on(this,Gt()))},nn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+an(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:on(this,e)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterator(t,e)},nn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map((function(t,e){return n.get(e)})).__iterate(t,e)},nn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?on(this,e,t):(this.__ownerID=t,this._map=e,this)};var rn=nn.prototype;function on(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function an(t){return t._name||t.constructor.name||"Record"}function sn(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){gt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function cn(t){return null==t?gn():un(t)&&!l(t)?t:gn().withMutations((function(e){var n=i(t);Nt(n.size),n.forEach((function(t){return e.add(t)}))}))}function un(t){return!(!t||!t[fn])}rn[g]=rn.remove,rn.deleteIn=rn.removeIn=Ft.removeIn,rn.merge=Ft.merge,rn.mergeWith=Ft.mergeWith,rn.mergeIn=Ft.mergeIn,rn.mergeDeep=Ft.mergeDeep,rn.mergeDeepWith=Ft.mergeDeepWith,rn.mergeDeepIn=Ft.mergeDeepIn,rn.setIn=Ft.setIn,rn.update=Ft.update,rn.updateIn=Ft.updateIn,rn.withMutations=Ft.withMutations,rn.asMutable=Ft.asMutable,rn.asImmutable=Ft.asImmutable,e(cn,_t),cn.of=function(){return this(arguments)},cn.fromKeys=function(t){return this(r(t).keySeq())},cn.prototype.toString=function(){return this.__toString("Set {","}")},cn.prototype.has=function(t){return this._map.has(t)},cn.prototype.add=function(t){return dn(this,this._map.set(t,!0))},cn.prototype.remove=function(t){return dn(this,this._map.remove(t))},cn.prototype.clear=function(){return dn(this,this._map.clear())},cn.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach((function(e){return t.add(e)}))})):this.constructor(e[0])},cn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return i(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.every((function(t){return t.includes(n)}))||t.remove(n)}))}))},cn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map((function(t){return i(t)}));var n=this;return this.withMutations((function(t){n.forEach((function(n){e.some((function(t){return t.includes(n)}))&&t.remove(n)}))}))},cn.prototype.merge=function(){return this.union.apply(this,arguments)},cn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},cn.prototype.sort=function(t){return yn(qe(this,t))},cn.prototype.sortBy=function(t,e){return yn(qe(this,e,t))},cn.prototype.wasAltered=function(){return this._map.wasAltered()},cn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e,r){return t(r,r,n)}),e)},cn.prototype.__iterator=function(t,e){return this._map.map((function(t,e){return e})).__iterator(t,e)},cn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},cn.isSet=un;var ln,fn="@@__IMMUTABLE_SET__@@",pn=cn.prototype;function dn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function hn(t,e){var n=Object.create(pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function gn(){return ln||(ln=hn(Gt()))}function yn(t){return null==t?wn():mn(t)?t:wn().withMutations((function(e){var n=i(t);Nt(n.size),n.forEach((function(t){return e.add(t)}))}))}function mn(t){return un(t)&&l(t)}pn[fn]=!0,pn[g]=pn.remove,pn.mergeDeep=pn.merge,pn.mergeDeepWith=pn.mergeWith,pn.withMutations=Ft.withMutations,pn.asMutable=Ft.asMutable,pn.asImmutable=Ft.asImmutable,pn.__empty=gn,pn.__make=hn,e(yn,cn),yn.of=function(){return this(arguments)},yn.fromKeys=function(t){return this(r(t).keySeq())},yn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},yn.isOrderedSet=mn;var vn,bn=yn.prototype;function _n(t,e){var n=Object.create(bn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function wn(){return vn||(vn=_n(Ie()))}function Sn(t){return null==t?Dn():xn(t)?t:Dn().unshiftAll(t)}function xn(t){return!(!t||!t[En])}bn[h]=!0,bn.__empty=wn,bn.__make=_n,e(Sn,bt),Sn.of=function(){return this(arguments)},Sn.prototype.toString=function(){return this.__toString("Stack [","]")},Sn.prototype.get=function(t,e){var n=this._head;for(t=k(this,t);n&&t--;)n=n.next;return n?n.value:e},Sn.prototype.peek=function(){return this._head&&this._head.value},Sn.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Cn(t,e)},Sn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Nt(t.size);var e=this.size,n=this._head;return t.reverse().forEach((function(t){e++,n={value:t,next:n}})),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cn(e,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(t){return this.pushAll(t)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dn()},Sn.prototype.slice=function(t,e){if(D(t,e,this.size))return this;var n=j(t,this.size);if(O(e,this.size)!==this.size)return bt.prototype.slice.call(this,t,e);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cn(r,o)},Sn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Cn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new N((function(){if(r){var e=r.value;return r=r.next,z(t,n++,e)}return{value:void 0,done:!0}}))},Sn.isStack=xn;var Mn,En="@@__IMMUTABLE_STACK__@@",kn=Sn.prototype;function Cn(t,e,n,r){var o=Object.create(kn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Dn(){return Mn||(Mn=Cn(0))}function jn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}kn[En]=!0,kn.withMutations=Ft.withMutations,kn.asMutable=Ft.asMutable,kn.asImmutable=Ft.asImmutable,kn.wasAltered=Ft.wasAltered,n.Iterator=N,jn(n,{toArray:function(){Nt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Ae(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Le(this,!0)},toMap:function(){return zt(this.toKeyedSeq())},toObject:function(){Nt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return De(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ne(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return fe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Qe(this,function(t,e){var n=s(t),o=[t].concat(e).map((function(t){return a(t)?n&&(t=r(t)):t=n?rt(t):ot(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&s(i)||c(t)&&c(i))return i}var u=new J(o);return n?u=u.toKeyedSeq():c(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),u}(this,t.call(arguments,0)))},includes:function(t){return this.some((function(e){return pt(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Nt(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1})),n},filter:function(t,e){return Qe(this,Fe(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate((function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Nt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Nt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Qe(this,Pe(this,t,e))},reduce:function(t,e,n){var r,o;return Nt(this.size),arguments.length<2?o=!0:r=e,this.__iterate((function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)})),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Qe(this,Be(this,!0))},slice:function(t,e){return Qe(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(An(t),e)},sort:function(t){return Qe(this,qe(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return E(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=zt().asMutable();return t.__iterate((function(o,i){r.update(e.call(n,o,i,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return dt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new J(t._cache);var e=t.toSeq().map(Ln).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(An(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(C)},flatMap:function(t,e){return Qe(this,function(t,e,n){var r=Je(t);return t.toSeq().map((function(o,i){return r(e.call(n,o,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Qe(this,He(this,t,!0))},fromEntrySeq:function(){return new ze(this)},get:function(t,e){return this.find((function(e,n){return pt(n,t)}),void 0,e)},getIn:function(t,e){for(var n,r=this,o=en(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,v):v)===v)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),o=(l(t)?De():zt()).asMutable();t.__iterate((function(i,a){o.update(e.call(n,i,a,t),(function(t){return(t=t||[]).push(r?[a,i]:i),t}))}));var i=Je(t);return o.map((function(e){return Qe(t,i(e))}))}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Tn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return We(this,t)},maxBy:function(t,e){return We(this,e,t)},min:function(t){return We(this,t?Nn(t):Pn)},minBy:function(t,e){return We(this,e?Nn(e):Pn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Qe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Qe(this,Ke(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(An(t),e)},sortBy:function(t,e){return Qe(this,qe(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Qe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Qe(this,function(t,e,n){var r=Xe(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate((function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new N((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:z(r,c,u,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(An(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=l(t),n=s(t),r=e?1:0;return function(t,e){return e=wt(e,3432918353),e=wt(e<<15|e>>>-15,461845907),e=wt(e<<13|e>>>-13,5),e=wt((e=e+3864292196^t)^e>>>16,2246822507),St((e=wt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Bn(xt(t),xt(e))|0}:function(t,e){r=r+Bn(xt(t),xt(e))|0}:e?function(t){r=31*r+xt(t)|0}:function(t){r=r+xt(t)|0}),r)}(this))}});var On=n.prototype;On[f]=!0,On[A]=On.values,On.__toJS=On.toArray,On.__toStringMapper=zn,On.inspect=On.toSource=function(){return this.toString()},On.chain=On.flatMap,On.contains=On.includes,function(){try{Object.defineProperty(On,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),jn(r,{flip:function(){return Qe(this,Re(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return pt(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return pt(e,t)}))},mapEntries:function(t,e){var n=this,r=0;return Qe(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Qe(this,this.toSeq().flip().map((function(r,o){return t.call(e,r,o,n)})).flip())}});var In=r.prototype;function Tn(t,e){return e}function Ln(t,e){return[e,t]}function An(t){return function(){return!t.apply(this,arguments)}}function Nn(t){return function(){return-t.apply(this,arguments)}}function zn(t){return"string"==typeof t?JSON.stringify(t):t}function Rn(){return M(arguments)}function Pn(t,e){return t<e?1:t>e?-1:0}function Bn(t,e){return t^e+2654435769+(t<<6)+(t>>2)}return In[p]=!0,In[A]=On.entries,In.__toJS=On.toObject,In.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+zn(t)},jn(o,{toKeyedSeq:function(){return new Le(this,!1)},filter:function(t,e){return Qe(this,Fe(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Qe(this,Be(this,!1))},slice:function(t,e){return Qe(this,Ue(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=j(t,t<0?this.count():this.size);var r=this.slice(0,t);return Qe(this,1===n?r:r.concat(M(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return Qe(this,He(this,t,!1))},get:function(t,e){return(t=k(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=k(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Qe(this,function(t,e){var n=Xe(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate((function(t,r){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new N((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,e):z(n,a++,o.value,o)}))},n}(this,t))},interleave:function(){var t=[this].concat(M(arguments)),e=Ve(this.toSeq(),W.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Qe(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Qe(this,Ke(this,t,e,!1))},zip:function(){return Qe(this,Ve(this,Rn,[this].concat(M(arguments))))},zipWith:function(t){var e=M(arguments);return e[0]=this,Qe(this,Ve(this,t,e))}}),o.prototype[d]=!0,o.prototype[h]=!0,jn(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=On.includes,jn(q,r.prototype),jn(W,o.prototype),jn(Y,i.prototype),jn(vt,r.prototype),jn(bt,o.prototype),jn(_t,i.prototype),{Iterable:n,Seq:H,Collection:mt,Map:zt,OrderedMap:De,List:fe,Stack:Sn,Set:cn,OrderedSet:yn,Record:nn,Range:yt,Repeat:ht,is:pt,fromJS:ct}}()},97880:function(t,e,n){"use strict";var r=n(31251),o=n(52344),i=n(97109),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(t){if("file"==t.kind)return t.getAsFile()}var u=function(){function t(t){this.data=t,this.types=t.types?o(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(t){return s[t]}))},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some((function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")}))},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some((function(t){return-1!=t.indexOf("application/x-moz-file")}));if(t)return!0;for(var e=this.getFiles(),n=0;n<e.length;n++){var o=e[n].type;if(!r.isImage(o))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=u},7482:function(t){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},31251:function(t){"use strict";var e={isImage:function(t){return"image"===n(t)[0]},isJpeg:function(t){var r=n(t);return e.isImage(t)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(t){return t.split("/")}t.exports=e},31675:function(t){"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}var n={getTop:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}};t.exports=n},99986:function(t,e,n){"use strict";function r(t,e){var n=o.get(t,e);return"auto"===n||"scroll"===n}var o={get:n(98773),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(r(t,"overflow")||r(t,"overflowY")||r(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=o},59878:function(t){"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},2909:function(t){"use strict";var e=function(){function t(t){var e,n;n=void 0,(e="_uri")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=e},35796:function(t,e,n){"use strict";var r=n(11021),o=n(73012),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(t){var e=s.exec(t);return null==e?null:e[0]}function l(t){var e=u(t);return null==e?r.NEUTRAL:c.exec(e)?r.RTL:r.LTR}function f(t,e){if(e=e||r.NEUTRAL,!t.length)return e;var n=l(t);return n===r.NEUTRAL?e:n}function p(t,e){return e||(e=r.getGlobalDir()),r.isStrong(e)||o(!1),f(t,e)}var d={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(t,e){return p(t,e)===r.LTR},isDirectionRTL:function(t,e){return p(t,e)===r.RTL}};t.exports=d},11021:function(t,e,n){"use strict";var r=n(73012),o="LTR",i=null;function a(t){return t===o||"RTL"===t}function s(t){return a(t)||r(!1),t===o?"ltr":"rtl"}function c(t){i=t}var u={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(t,e){return a(t)||r(!1),a(e)||r(!1),t===e?null:s(t)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};t.exports=u},90209:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(35796),i=n(11021),a=n(73012),s=function(){function t(t){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=s},13820:function(t,e,n){"use strict";var r=n(73012),o=/[\uD800-\uDFFF]/;function i(t){return 55296<=t&&t<=57343}function a(t){return o.test(t)}function s(t,e){return 1+i(t.charCodeAt(e))}function c(t,e,n){if(e=e||0,n=void 0===n?1/0:n||0,!a(t))return t.substr(e,n);var r=t.length;if(r<=0||e>r||n<=0)return"";var o=0;if(e>0){for(;e>0&&o<r;e--)o+=s(t,o);if(o>=r)return""}else if(e<0){for(o=r;e<0&&0<o;e++)o-=s(t,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=s(t,i);return t.substring(o,i)}var u={getCodePoints:function(t){for(var e=[],n=0;n<t.length;n+=s(t,n))e.push(t.codePointAt(n));return e},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||r(!1),e+1===t.length)return!1;var n=t.charCodeAt(e),o=t.charCodeAt(e+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(t){if(!a(t))return t.length;for(var e=0,n=0;n<t.length;n+=s(t,n))e++;return e},substring:function(t,e,n){(e=e||0)<0&&(e=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-e);return c(t,e=e<n?e:n,r)},substr:c};t.exports=u},91355:function(t,e,n){"use strict";var r=n(21120),o=n(31503),i=n(95621),a=n(17786);function s(t,e,n,r){if(t===n)return!0;if(!n.startsWith(t))return!1;var i=n.slice(t.length);return!!e&&(i=r?r(i):i,o.contains(i,e))}function c(t){return"Windows"===r.platformName?t.replace(/^\s*NT/,""):t}var u={isBrowser:function(t){return s(r.browserName,r.browserFullVersion,t)},isBrowserArchitecture:function(t){return s(r.browserArchitecture,null,t)},isDevice:function(t){return s(r.deviceName,null,t)},isEngine:function(t){return s(r.engineName,r.engineVersion,t)},isPlatform:function(t){return s(r.platformName,r.platformFullVersion,t,c)},isPlatformArchitecture:function(t){return s(r.platformArchitecture,null,t)}};t.exports=i(u,a)},21120:function(t,e,n){"use strict";var r,o="Unknown",i=(new(n(52423))).getResult(),a=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(r=i.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};t.exports=s},31503:function(t,e,n){"use strict";var r=n(73012),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(t,e){if(""===(t=t.trim()))return!0;var n,r=e.split(o),i=p(t),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return l(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return f(r,s);case">":return 1===v(r,s);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);return d(i)&&(r[o]=i+1+""),f(t,n)&&l(t,r)}(r,s);default:return function(t,e){return 0===v(t,e)}(r,s)}}function l(t,e){return-1===v(t,e)}function f(t,e){var n=v(t,e);return 1===n||0===n}function p(t){var e=t.split(o),n=e[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function h(t){return!p(t).modifier}function g(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function y(t,e){var n=t.match(c)[1],r=e.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return d(o)&&d(i)&&o!==i?m(o,i):m(t,e)}function m(t,e){return typeof t!=typeof e&&r(!1),t>e?1:t<e?-1:0}function v(t,e){for(var n=function(t,e){g(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var r=e[n].match(/^[x*]$/i);if(r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(var o=n;o<t.length;o++)t[o]="0"}return g(e,t.length),[t,e]}(t,e),r=n[0],o=n[1],i=0;i<o.length;i++){var a=y(r[i],o[i]);if(a)return a}return 0}var b={contains:function(t,e){return function(t,e){var n=t.split(i);return n.length>1?n.some((function(t){return b.contains(t,e)})):function(t,e){var n=t.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],e);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),u(">="+o,e)&&u("<="+i,e)}(t=n[0].trim(),e)}(t.trim(),e.trim())}};t.exports=b},76458:function(t){"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,(function(t,e){return e.toUpperCase()}))}},61530:function(t,e,n){"use strict";var r=n(30854);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},52344:function(t,e,n){"use strict";var r=n(73012);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),o=0;o<e;o++)n[o]=t[o];return n}(t):[t]}},2775:function(t){"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter((function(e){return t[e]})).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},97109:function(t){"use strict";function e(t){return function(){return t}}var n=function(){};n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},16838:function(t){"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},35338:function(t){"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},87008:function(t,e,n){"use strict";var r=n(42624);t.exports=function(t){var e=r(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},42624:function(t,e,n){"use strict";var r=n(61530);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!r(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}},51702:function(t,e,n){"use strict";var r=n(35338),o=n(79838);t.exports=function(t){var e=r(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=o(t),i=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-i.clientWidth,s=t.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},98773:function(t,e,n){"use strict";var r=n(76458),o=n(84798);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return i(n.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return i(n.getPropertyValue(o(e)));if("display"===e)return"none"}return t.currentStyle?i("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[r(e)]):i(t.style&&t.style[r(e)])}},79838:function(t){"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},90333:function(t){"use strict";function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function n(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function r(){return{width:window.innerWidth||e(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:e(),height:n()}},t.exports=r},84798:function(t){"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},73012:function(t){"use strict";t.exports=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!t){var i;if(void 0===e)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(e.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}}},52166:function(t){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},30854:function(t,e,n){"use strict";var r=n(52166);t.exports=function(t){return r(t)&&3==t.nodeType}},52433:function(t){"use strict";t.exports=function(t){var e=t||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(e=(e?e+" ":"")+o)}return e}},95621:function(t){"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,n,r){if(!t)return null;var o={};for(var i in t)e.call(t,i)&&(o[i]=n.call(r,t[i],i,t));return o}},17786:function(t){"use strict";t.exports=function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}},98392:function(t){"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},55060:function(t,e,n){"use strict";n(67257),t.exports=n.g.setImmediate},85806:function(t,e,n){"use strict";var r=n(97109);t.exports=r},11203:function(t,e,n){"use strict";n.r(e),n.d(e,{Collection:function(){return M},Iterable:function(){return Er},List:function(){return on},Map:function(){return Ae},OrderedMap:function(){return bn},OrderedSet:function(){return ar},PairSorting:function(){return fr},Range:function(){return Hn},Record:function(){return pr},Repeat:function(){return br},Seq:function(){return V},Set:function(){return zn},Stack:function(){return En},fromJS:function(){return _r},get:function(){return oe},getIn:function(){return qn},has:function(){return re},hasIn:function(){return Yn},hash:function(){return dt},is:function(){return ut},isAssociative:function(){return x},isCollection:function(){return v},isImmutable:function(){return T},isIndexed:function(){return S},isKeyed:function(){return _},isList:function(){return rn},isMap:function(){return at},isOrdered:function(){return A},isOrderedMap:function(){return st},isOrderedSet:function(){return Tn},isPlainObject:function(){return te},isRecord:function(){return I},isSeq:function(){return j},isSet:function(){return In},isStack:function(){return Mn},isValueObject:function(){return ct},merge:function(){return _e},mergeDeep:function(){return Se},mergeDeepWith:function(){return xe},mergeWith:function(){return we},remove:function(){return ae},removeIn:function(){return pe},set:function(){return se},setIn:function(){return le},update:function(){return he},updateIn:function(){return ce},version:function(){return xr}});var r="delete",o=32,i=31,a={};function s(t){t&&(t.value=!0)}function c(){}function u(t){return void 0===t.size&&(t.size=t.__iterate(f)),t.size}function l(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?u(t)+e:e}function f(){return!0}function p(t,e,n){return(0===t&&!y(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function d(t,e){return g(t,e,0)}function h(t,e){return g(t,e,e)}function g(t,e,n){return void 0===t?n:y(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function y(t){return t<0||0===t&&1/t==-1/0}var m="@@__IMMUTABLE_ITERABLE__@@";function v(t){return Boolean(t&&t[m])}var b="@@__IMMUTABLE_KEYED__@@";function _(t){return Boolean(t&&t[b])}var w="@@__IMMUTABLE_INDEXED__@@";function S(t){return Boolean(t&&t[w])}function x(t){return _(t)||S(t)}var M=function(t){return v(t)?t:V(t)},E=function(t){function e(t){return _(t)?t:Q(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(M),k=function(t){function e(t){return S(t)?t:Z(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(M),C=function(t){function e(t){return v(t)&&!x(t)?t:G(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(M);M.Keyed=E,M.Indexed=k,M.Set=C;var D="@@__IMMUTABLE_SEQ__@@";function j(t){return Boolean(t&&t[D])}var O="@@__IMMUTABLE_RECORD__@@";function I(t){return Boolean(t&&t[O])}function T(t){return v(t)||I(t)}var L="@@__IMMUTABLE_ORDERED__@@";function A(t){return Boolean(t&&t[L])}var N="function"==typeof Symbol&&Symbol.iterator,z="@@iterator",R=N||z,P=function(t){this.next=t};function B(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function U(t){return!!Array.isArray(t)||!!q(t)}function K(t){return t&&"function"==typeof t.next}function H(t){var e=q(t);return e&&e.call(t)}function q(t){var e=t&&(N&&t[N]||t[z]);if("function"==typeof e)return e}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[R]=function(){return this};var W=Object.prototype.hasOwnProperty;function Y(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var V=function(t){function e(t){return null==t?et():T(t)?t.toSeq():function(t){var e,n,r=ot(t);if(r)return(n=q(e=t))&&n===e.entries?r.fromEntrySeq():function(t){var e=q(t);return e&&e===t.keys}(t)?r.toSetSeq():r;if("object"==typeof t)return new X(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[e?r-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var r=n.length,o=0;return new P((function(){if(o===r)return{value:void 0,done:!0};var i=n[e?r-++o:o++];return B(t,i[0],i[1])}))}return this.__iteratorUncached(t,e)},e}(M),Q=function(t){function e(t){return null==t?et().toKeyedSeq():v(t)?_(t)?t.toSeq():t.fromEntrySeq():I(t)?t.toSeq():nt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(V),Z=function(t){function e(t){return null==t?et():v(t)?_(t)?t.entrySeq():t.toIndexedSeq():I(t)?t.toSeq().entrySeq():rt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(V),G=function(t){function e(t){return(v(t)&&!x(t)?t:Z(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(V);V.isSeq=j,V.Keyed=Q,V.Set=G,V.Indexed=Z,V.prototype[D]=!0;var J=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[l(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,o=0;o!==r;){var i=e?r-++o:o++;if(!1===t(n[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._array,r=n.length,o=0;return new P((function(){if(o===r)return{value:void 0,done:!0};var i=e?r-++o:o++;return B(t,i,n[i])}))},e}(Z),X=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return W.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[e?o-++i:i++];if(!1===t(n[a],a,this))break}return i},e.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length,i=0;return new P((function(){if(i===o)return{value:void 0,done:!0};var a=r[e?o-++i:i++];return B(t,a,n[a])}))},e}(Q);X.prototype[L]=!0;var $,tt=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=H(this._collection),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=H(this._collection);if(!K(n))return new P(F);var r=0;return new P((function(){var e=n.next();return e.done?e:B(t,r++,e.value)}))},e}(Z);function et(){return $||($=new J([]))}function nt(t){var e=ot(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new X(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function rt(t){var e=ot(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function ot(t){return Y(t)?new J(t):U(t)?new tt(t):void 0}var it="@@__IMMUTABLE_MAP__@@";function at(t){return Boolean(t&&t[it])}function st(t){return at(t)&&A(t)}function ct(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function ut(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(ct(t)&&ct(e)&&t.equals(e))}var lt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function ft(t){return t>>>1&1073741824|3221225471&t}var pt=Object.prototype.valueOf;function dt(t){if(null==t)return ht(t);if("function"==typeof t.hashCode)return ft(t.hashCode(t));var e,n,r,o=(e=t).valueOf!==pt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==o)return ht(o);switch(typeof o){case"boolean":return o?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return ft(e)}(o);case"string":return o.length>Mt?(void 0===(r=Ct[n=o])&&(r=gt(n),kt===Et&&(kt=0,Ct={}),kt++,Ct[n]=r),r):gt(o);case"object":case"function":return function(t){var e;if(_t&&void 0!==(e=bt.get(t)))return e;if(void 0!==(e=t[xt]))return e;if(!mt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[xt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=vt(),_t)bt.set(t,e);else{if(void 0!==yt&&!1===yt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(mt)Object.defineProperty(t,xt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[xt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[xt]=e}}return e}(o);case"symbol":return function(t){var e=wt[t];return void 0!==e||(e=vt(),wt[t]=e),e}(o);default:if("function"==typeof o.toString)return gt(o.toString());throw new Error("Value type "+typeof o+" cannot be hashed.")}}function ht(t){return null===t?1108378658:1108378659}function gt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return ft(e)}var yt=Object.isExtensible,mt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function vt(){var t=++St;return 1073741824&St&&(St=0),t}var bt,_t="function"==typeof WeakMap;_t&&(bt=new WeakMap);var wt=Object.create(null),St=0,xt="__immutablehash__";"function"==typeof Symbol&&(xt=Symbol(xt));var Mt=16,Et=255,kt=0,Ct={},Dt=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=At(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var n=this,r=Lt(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e,r){return t(e,r,n)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(Q);Dt.prototype[L]=!0;var jt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this,r=0;return e&&u(this),this._iter.__iterate((function(o){return t(o,e?n.size-++r:r++,n)}),e)},e.prototype.__iterator=function(t,e){var n=this,r=this._iter.__iterator(1,e),o=0;return e&&u(this),new P((function(){var i=r.next();return i.done?i:B(t,e?n.size-++o:o++,i.value,i)}))},e}(Z),Ot=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new P((function(){var e=n.next();return e.done?e:B(t,e.value,e.value,e)}))},e}(G),It=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){qt(e);var r=v(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new P((function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){qt(r);var o=v(r);return B(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}}))},e}(Q);function Tt(t){var e=Yt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Vt,e.__iterateUncached=function(e,n){var r=this;return t.__iterate((function(t,n){return!1!==e(n,t,r)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new P((function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function Lt(t,e,n){var r=Yt(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,a);return i===a?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate((function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(2,o);return new P((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return B(r,s,e.call(n,a[1],s,t),o)}))},r}function At(t,e){var n=this,r=Yt(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=Tt(t);return e.reverse=function(){return t.flip()},e}),r.get=function(n,r){return t.get(e?n:-1-n,r)},r.has=function(n){return t.has(e?n:-1-n)},r.includes=function(e){return t.includes(e)},r.cacheResult=Vt,r.__iterate=function(n,r){var o=this,i=0;return r&&u(t),t.__iterate((function(t,a){return n(t,e?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&u(t);var a=t.__iterator(2,!o);return new P((function(){var t=a.next();if(t.done)return t;var s=t.value;return B(r,e?s[0]:o?n.size-++i:i++,s[1],t)}))},r}function Nt(t,e,n,r){var o=Yt(t);return r&&(o.has=function(r){var o=t.get(r,a);return o!==a&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,a);return i!==a&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate((function(t,i,c){if(e.call(n,t,i,c))return s++,o(t,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),s=0;return new P((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(e.call(n,l,u,t))return B(o,r?u:s++,l,i)}}))},o}function zt(t,e,n,r){var o=t.size;if(p(e,n,o))return t;if(void 0===o&&(e<0||n<0))return zt(t.toSeq().cacheResult(),e,n,r);var i,a=d(e,o),s=h(n,o)-a;s==s&&(i=s<0?0:s);var c=Yt(t);return c.size=0===i?i:t.size&&i||void 0,!r&&j(t)&&i>=0&&(c.get=function(e,n){return(e=l(this,e))>=0&&e<i?t.get(e+a,n):n}),c.__iterateUncached=function(e,n){var o=this;if(0===i)return 0;if(n)return this.cacheResult().__iterate(e,n);var s=0,c=!0,u=0;return t.__iterate((function(t,n){if(!c||!(c=s++<a))return u++,!1!==e(t,r?n:u-1,o)&&u!==i})),u},c.__iteratorUncached=function(e,n){if(0!==i&&n)return this.cacheResult().__iterator(e,n);if(0===i)return new P(F);var o=t.__iterator(e,n),s=0,c=0;return new P((function(){for(;s++<a;)o.next();if(++c>i)return{value:void 0,done:!0};var t=o.next();return r||1===e||t.done?t:B(e,c-1,0===e?void 0:t.value[1],t)}))},c}function Rt(t,e,n,r){var o=Yt(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate((function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new P((function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:B(o,u++,0===o?void 0:t.value[1],t);var f=t.value;i=f[0],l=f[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:B(o,i,l,t)}))},o}function Pt(t,e,n){var r=Yt(t);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function t(c,u){c.__iterate((function(i,c){return(!e||u<e)&&v(i)?t(i,u+1):(a++,!1===o(i,n?c:a-1,r)&&(s=!0)),!s}),i)}(t,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=t.__iterator(r,o),a=[],s=0;return new P((function(){for(;i;){var t=i.next();if(!1===t.done){var c=t.value;if(2===r&&(c=c[1]),e&&!(a.length<e)||!v(c))return n?t:B(r,s++,c,t);a.push(i),i=c.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Bt(t,e,n){e||(e=Qt);var r=_(t),o=0,i=t.toSeq().map((function(e,r){return[r,e,o++,n?n(e,r,t):e]})).valueSeq().toArray();return i.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?Q(i):S(t)?Z(i):G(i)}function Ft(t,e,n){if(e||(e=Qt),n){var r=t.toSeq().map((function(e,r){return[e,n(e,r,t)]})).reduce((function(t,n){return Ut(e,t[1],n[1])?n:t}));return r&&r[0]}return t.reduce((function(t,n){return Ut(e,t,n)?n:t}))}function Ut(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Kt(t,e,n,r){var o=Yt(t),i=new J(n).map((function(t){return t.size}));return o.size=r?i.max():i.min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=n.map((function(t){return t=M(t),H(o?t.reverse():t)})),a=0,s=!1;return new P((function(){var n;return s||(n=i.map((function(t){return t.next()})),s=r?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:B(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function Ht(t,e){return t===e?t:j(t)?e:t.constructor(e)}function qt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Wt(t){return _(t)?E:S(t)?k:C}function Yt(t){return Object.create((_(t)?Q:S(t)?Z:G).prototype)}function Vt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function Qt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Zt(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function Gt(t,e){if(!t)throw new Error(e)}function Jt(t){Gt(t!==1/0,"Cannot perform this action with an infinite size.")}function Xt(t){if(Y(t)&&"string"!=typeof t)return t;if(A(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}jt.prototype.cacheResult=Dt.prototype.cacheResult=Ot.prototype.cacheResult=It.prototype.cacheResult=Vt;var $t=Object.prototype.toString;function te(t){if(!t||"object"!=typeof t||"[object Object]"!==$t.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e,r=Object.getPrototypeOf(e);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===e}function ee(t){return"object"==typeof t&&(T(t)||Array.isArray(t)||te(t))}function ne(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function re(t,e){return T(t)?t.has(e):ee(t)&&W.call(t,e)}function oe(t,e,n){return T(t)?t.get(e,n):re(t,e)?"function"==typeof t.get?t.get(e):t[e]:n}function ie(t){if(Array.isArray(t))return Zt(t);var e={};for(var n in t)W.call(t,n)&&(e[n]=t[n]);return e}function ae(t,e){if(!ee(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(T(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!W.call(t,e))return t;var n=ie(t);return Array.isArray(n)?n.splice(e,1):delete n[e],n}function se(t,e,n){if(!ee(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(T(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,n)}if(W.call(t,e)&&n===t[e])return t;var r=ie(t);return r[e]=n,r}function ce(t,e,n,r){r||(r=n,n=void 0);var o=ue(T(t),t,Xt(e),0,n,r);return o===a?n:o}function ue(t,e,n,r,o,i){var s=e===a;if(r===n.length){var c=s?o:e,u=i(c);return u===c?e:u}if(!s&&!ee(e))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(ne)+"]: "+e);var l=n[r],f=s?a:oe(e,l,a),p=ue(f===a?t:T(f),f,n,r+1,o,i);return p===f?e:p===a?ae(e,l):se(s?t?Ye():{}:e,l,p)}function le(t,e,n){return ce(t,e,a,(function(){return n}))}function fe(t,e){return le(this,t,e)}function pe(t,e){return ce(t,e,(function(){return a}))}function de(t){return pe(this,t)}function he(t,e,n,r){return ce(t,[e],n,r)}function ge(t,e,n){return 1===arguments.length?t(this):he(this,t,e,n)}function ye(t,e,n){return ce(this,t,e,n)}function me(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return be(this,t)}function ve(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return be(this,e,t)}function be(t,e,n){for(var r=[],o=0;o<e.length;o++){var i=E(e[o]);0!==i.size&&r.push(i)}return 0===r.length?t:0!==t.toSeq().size||t.__ownerID||1!==r.length?t.withMutations((function(t){for(var e=n?function(e,r){he(t,r,a,(function(t){return t===a?e:n(t,e,r)}))}:function(e,n){t.set(n,e)},o=0;o<r.length;o++)r[o].forEach(e)})):t.constructor(r[0])}function _e(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Ee(t,e)}function we(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ee(e,n,t)}function Se(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Me(t,e)}function xe(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Me(e,n,t)}function Me(t,e,n){return Ee(t,e,function(t){return function e(n,r,o){return ee(n)&&ee(r)&&(i=r,a=V(n),s=V(i),S(a)===S(s)&&_(a)===_(s))?Ee(n,[r],e):t?t(n,r,o):r;var i,a,s}}(n))}function Ee(t,e,n){if(!ee(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(T(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var r=Array.isArray(t),o=t,i=r?k:E,a=r?function(e){o===t&&(o=ie(o)),o.push(e)}:function(e,r){var i=W.call(o,r),a=i&&n?n(o[r],e,r):e;i&&a===o[r]||(o===t&&(o=ie(o)),o[r]=a)},s=0;s<e.length;s++)i(e[s]).forEach(a);return o}function ke(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Me(this,t)}function Ce(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Me(this,e,t)}function De(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return ce(this,t,Ye(),(function(t){return Ee(t,e)}))}function je(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return ce(this,t,Ye(),(function(t){return Me(t,e)}))}function Oe(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function Ie(){return this.__ownerID?this:this.__ensureOwner(new c)}function Te(){return this.__ensureOwner()}function Le(){return this.__altered}var Ae=function(t){function e(e){return null==e?Ye():at(e)&&!A(e)?e:Ye().withMutations((function(n){var r=t(e);Jt(r.size),r.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ye().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Ve(this,t,e)},e.prototype.remove=function(t){return Ve(this,t,a)},e.prototype.deleteAll=function(t){var e=M(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ye()},e.prototype.sort=function(t){return bn(Bt(this,t))},e.prototype.sortBy=function(t,e){return bn(Bt(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,t.call(e,o,i,n))}))}))},e.prototype.__iterator=function(t,e){return new Ke(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?We(this.size,this._root,t,this.__hash):0===this.size?Ye():(this.__ownerID=t,this.__altered=!1,this)},e}(E);Ae.isMap=at;var Ne=Ae.prototype;Ne[it]=!0,Ne[r]=Ne.remove,Ne.removeAll=Ne.deleteAll,Ne.setIn=fe,Ne.removeIn=Ne.deleteIn=de,Ne.update=ge,Ne.updateIn=ye,Ne.merge=Ne.concat=me,Ne.mergeWith=ve,Ne.mergeDeep=ke,Ne.mergeDeepWith=Ce,Ne.mergeIn=De,Ne.mergeDeepIn=je,Ne.withMutations=Oe,Ne.wasAltered=Le,Ne.asImmutable=Te,Ne["@@transducer/init"]=Ne.asMutable=Ie,Ne["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Ne["@@transducer/result"]=function(t){return t.asImmutable()};var ze=function(t,e){this.ownerID=t,this.entries=e};ze.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ut(n,o[i][0]))return o[i][1];return r},ze.prototype.update=function(t,e,n,r,o,i,u){for(var l=o===a,f=this.entries,p=0,d=f.length;p<d&&!ut(r,f[p][0]);p++);var h=p<d;if(h?f[p][1]===o:l)return this;if(s(u),(l||!h)&&s(i),!l||1!==f.length){if(!h&&!l&&f.length>=$e)return function(t,e,n,r){t||(t=new c);for(var o=new Fe(t,dt(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,f,r,o);var g=t&&t===this.ownerID,y=g?f:Zt(f);return h?l?p===d-1?y.pop():y[p]=y.pop():y[p]=[r,o]:y.push([r,o]),g?(this.entries=y,this):new ze(t,y)}};var Re=function(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n};Re.prototype.get=function(t,e,n,r){void 0===e&&(e=dt(n));var o=1<<((0===t?e:e>>>t)&i),a=this.bitmap;return a&o?this.nodes[Je(a&o-1)].get(t+5,e,n,r):r},Re.prototype.update=function(t,e,n,r,s,c,u){void 0===n&&(n=dt(r));var l=(0===e?n:n>>>e)&i,f=1<<l,p=this.bitmap,d=!!(p&f);if(!d&&s===a)return this;var h=Je(p&f-1),g=this.nodes,y=d?g[h]:void 0,m=Qe(y,t,e+5,n,r,s,c,u);if(m===y)return this;if(!d&&m&&g.length>=tn)return function(t,e,n,r,i){for(var a=0,s=new Array(o),c=0;0!==n;c++,n>>>=1)s[c]=1&n?e[a++]:void 0;return s[r]=i,new Pe(t,a+1,s)}(t,g,p,l,m);if(d&&!m&&2===g.length&&Ze(g[1^h]))return g[1^h];if(d&&m&&1===g.length&&Ze(m))return m;var v=t&&t===this.ownerID,b=d?m?p:p^f:p|f,_=d?m?Xe(g,h,m,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(g,h,v):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(g,h,m,v);return v?(this.bitmap=b,this.nodes=_,this):new Re(t,b,_)};var Pe=function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n};Pe.prototype.get=function(t,e,n,r){void 0===e&&(e=dt(n));var o=(0===t?e:e>>>t)&i,a=this.nodes[o];return a?a.get(t+5,e,n,r):r},Pe.prototype.update=function(t,e,n,r,o,s,c){void 0===n&&(n=dt(r));var u=(0===e?n:n>>>e)&i,l=o===a,f=this.nodes,p=f[u];if(l&&!p)return this;var d=Qe(p,t,e+5,n,r,o,s,c);if(d===p)return this;var h=this.count;if(p){if(!d&&--h<en)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Re(t,o,a)}(t,f,h,u)}else h++;var g=t&&t===this.ownerID,y=Xe(f,u,d,g);return g?(this.count=h,this.nodes=y,this):new Pe(t,h,y)};var Be=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n};Be.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ut(n,o[i][0]))return o[i][1];return r},Be.prototype.update=function(t,e,n,r,o,i,c){void 0===n&&(n=dt(r));var u=o===a;if(n!==this.keyHash)return u?this:(s(c),s(i),Ge(this,t,e,n,[r,o]));for(var l=this.entries,f=0,p=l.length;f<p&&!ut(r,l[f][0]);f++);var d=f<p;if(d?l[f][1]===o:u)return this;if(s(c),(u||!d)&&s(i),u&&2===p)return new Fe(t,this.keyHash,l[1^f]);var h=t&&t===this.ownerID,g=h?l:Zt(l);return d?u?f===p-1?g.pop():g[f]=g.pop():g[f]=[r,o]:g.push([r,o]),h?(this.entries=g,this):new Be(t,this.keyHash,g)};var Fe=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n};Fe.prototype.get=function(t,e,n,r){return ut(n,this.entry[0])?this.entry[1]:r},Fe.prototype.update=function(t,e,n,r,o,i,c){var u=o===a,l=ut(r,this.entry[0]);return(l?o===this.entry[1]:u)?this:(s(c),u?void s(i):l?t&&t===this.ownerID?(this.entry[1]=o,this):new Fe(t,this.keyHash,[r,o]):(s(i),Ge(this,t,e,dt(r),[r,o])))},ze.prototype.iterate=Be.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Re.prototype.iterate=Pe.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},Fe.prototype.iterate=function(t,e){return t(this.entry)};var Ue,Ke=function(t){function e(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&qe(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,r=e.index++,o=void 0;if(n.entry){if(0===r)return He(t,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return He(t,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return He(t,i.entry);e=this._stack=qe(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(P);function He(t,e){return B(t,e[0],e[1])}function qe(t,e){return{node:t,index:0,__prev:e}}function We(t,e,n,r){var o=Object.create(Ne);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ye(){return Ue||(Ue=We(0))}function Ve(t,e,n){var r,o;if(t._root){var i={value:!1},s={value:!1};if(r=Qe(t._root,t.__ownerID,0,void 0,e,n,i,s),!s.value)return t;o=t.size+(i.value?n===a?-1:1:0)}else{if(n===a)return t;o=1,r=new ze(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?We(o,r):Ye()}function Qe(t,e,n,r,o,i,c,u){return t?t.update(e,n,r,o,i,c,u):i===a?t:(s(u),s(c),new Fe(e,r,[o,i]))}function Ze(t){return t.constructor===Fe||t.constructor===Be}function Ge(t,e,n,r,o){if(t.keyHash===r)return new Be(e,r,[t.entry,o]);var a,s=(0===n?t.keyHash:t.keyHash>>>n)&i,c=(0===n?r:r>>>n)&i,u=s===c?[Ge(t,e,n+5,r,o)]:(a=new Fe(e,r,o),s<c?[t,a]:[a,t]);return new Re(e,1<<s|1<<c,u)}function Je(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Xe(t,e,n,r){var o=r?t:Zt(t);return o[e]=n,o}var $e=8,tn=16,en=8,nn="@@__IMMUTABLE_LIST__@@";function rn(t){return Boolean(t&&t[nn])}var on=function(t){function e(e){var n=pn();if(null==e)return n;if(rn(e))return e;var r=t(e),i=r.size;return 0===i?n:(Jt(i),i>0&&i<o?fn(0,i,5,null,new sn(r.toArray())):n.withMutations((function(t){t.setSize(i),r.forEach((function(e,n){return t.set(n,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=l(this,t))>=0&&t<this.size){var n=gn(this,t+=this._origin);return n&&n.array[t&i]}return e},e.prototype.set=function(t,e){return function(t,e,n){if((e=l(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?yn(t,e).set(0,n):yn(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,o=t._root,i={value:!1};return e>=mn(t._capacity)?r=dn(r,t.__ownerID,0,e,n,i):o=dn(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):fn(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pn()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){yn(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])}))},e.prototype.pop=function(){return yn(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){yn(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},e.prototype.shift=function(){return yn(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],r=0;r<arguments.length;r++){var o=e[r],i=t("string"!=typeof o&&U(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(t){n.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(n[0])},e.prototype.setSize=function(t){return yn(this,0,t)},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,t.call(e,r.get(o),o,n))}))},e.prototype.slice=function(t,e){var n=this.size;return p(t,e,n)?this:yn(this,d(t,n),h(e,n))},e.prototype.__iterator=function(t,e){var n=e?this.size:0,r=ln(this,e);return new P((function(){var o=r();return o===un?{value:void 0,done:!0}:B(t,e?--n:n++,o)}))},e.prototype.__iterate=function(t,e){for(var n,r=e?this.size:0,o=ln(this,e);(n=o())!==un&&!1!==t(n,e?--r:r++,this););return r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?fn(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?pn():(this.__ownerID=t,this.__altered=!1,this)},e}(k);on.isList=rn;var an=on.prototype;an[nn]=!0,an[r]=an.remove,an.merge=an.concat,an.setIn=fe,an.deleteIn=an.removeIn=de,an.update=ge,an.updateIn=ye,an.mergeIn=De,an.mergeDeepIn=je,an.withMutations=Oe,an.wasAltered=Le,an.asImmutable=Te,an["@@transducer/init"]=an.asMutable=Ie,an["@@transducer/step"]=function(t,e){return t.push(e)},an["@@transducer/result"]=function(t){return t.asImmutable()};var sn=function(t,e){this.array=t,this.ownerID=e};sn.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&i;if(r>=this.array.length)return new sn([],t);var o,a=0===r;if(e>0){var s=this.array[r];if((o=s&&s.removeBefore(t,e-5,n))===s&&a)return this}if(a&&!o)return this;var c=hn(this,t);if(!a)for(var u=0;u<r;u++)c.array[u]=void 0;return o&&(c.array[r]=o),c},sn.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&i;if(o>=this.array.length)return this;if(e>0){var a=this.array[o];if((r=a&&a.removeAfter(t,e-5,n))===a&&o===this.array.length-1)return this}var s=hn(this,t);return s.array.splice(o+1),r&&(s.array[o]=r),s};var cn,un={};function ln(t,e){var n=t._origin,r=t._capacity,i=mn(r),a=t._tail;return function t(s,c,u){return 0===c?function(t,s){var c=s===i?a&&a.array:t&&t.array,u=s>n?0:n-s,l=r-s;return l>o&&(l=o),function(){if(u===l)return un;var t=e?--l:u++;return c&&c[t]}}(s,u):function(i,a,s){var c,u=i&&i.array,l=s>n?0:n-s>>a,f=1+(r-s>>a);return f>o&&(f=o),function(){for(;;){if(c){var n=c();if(n!==un)return n;c=null}if(l===f)return un;var r=e?--f:l++;c=t(u&&u[r],a-5,s+(r<<a))}}}(s,c,u)}(t._root,t._level,0)}function fn(t,e,n,r,o,i,a){var s=Object.create(an);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function pn(){return cn||(cn=fn(0,0,5))}function dn(t,e,n,r,o,a){var c,u=r>>>n&i,l=t&&u<t.array.length;if(!l&&void 0===o)return t;if(n>0){var f=t&&t.array[u],p=dn(f,e,n-5,r,o,a);return p===f?t:((c=hn(t,e)).array[u]=p,c)}return l&&t.array[u]===o?t:(a&&s(a),c=hn(t,e),void 0===o&&u===c.array.length-1?c.array.pop():c.array[u]=o,c)}function hn(t,e){return e&&t&&e===t.ownerID?t:new sn(t?t.array.slice():[],e)}function gn(t,e){if(e>=mn(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&i],r-=5;return n}}function yn(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new c,o=t._origin,a=t._capacity,s=o+e,u=void 0===n?a:n<0?a+n:o+n;if(s===o&&u===a)return t;if(s>=u)return t.clear();for(var l=t._level,f=t._root,p=0;s+p<0;)f=new sn(f&&f.array.length?[void 0,f]:[],r),p+=1<<(l+=5);p&&(s+=p,o+=p,u+=p,a+=p);for(var d=mn(a),h=mn(u);h>=1<<l+5;)f=new sn(f&&f.array.length?[f]:[],r),l+=5;var g=t._tail,y=h<d?gn(t,u-1):h>d?new sn([],r):g;if(g&&h>d&&s<a&&g.array.length){for(var m=f=hn(f,r),v=l;v>5;v-=5){var b=d>>>v&i;m=m.array[b]=hn(m.array[b],r)}m.array[d>>>5&i]=g}if(u<a&&(y=y&&y.removeAfter(r,0,u)),s>=h)s-=h,u-=h,l=5,f=null,y=y&&y.removeBefore(r,0,s);else if(s>o||h<d){for(p=0;f;){var _=s>>>l&i;if(_!==h>>>l&i)break;_&&(p+=(1<<l)*_),l-=5,f=f.array[_]}f&&s>o&&(f=f.removeBefore(r,l,s-p)),f&&h<d&&(f=f.removeAfter(r,l,h-p)),p&&(s-=p,u-=p)}return t.__ownerID?(t.size=u-s,t._origin=s,t._capacity=u,t._level=l,t._root=f,t._tail=y,t.__hash=void 0,t.__altered=!0,t):fn(s,u,l,f,y)}function mn(t){return t<o?0:t-1>>>5<<5}var vn,bn=function(t){function e(t){return null==t?wn():st(t)?t:wn().withMutations((function(e){var n=E(t);Jt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):wn()},e.prototype.set=function(t,e){return Sn(this,t,e)},e.prototype.remove=function(t){return Sn(this,t,a)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?_n(e,n,t,this.__hash):0===this.size?wn():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(Ae);function _n(t,e,n,r){var o=Object.create(bn.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function wn(){return vn||(vn=_n(Ye(),pn()))}function Sn(t,e,n){var r,i,s=t._map,c=t._list,u=s.get(e),l=void 0!==u;if(n===a){if(!l)return t;c.size>=o&&c.size>=2*s.size?(r=(i=c.filter((function(t,e){return void 0!==t&&u!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=s.remove(e),i=u===c.size-1?c.pop():c.set(u,void 0))}else if(l){if(n===c.get(u)[1])return t;r=s,i=c.set(u,[e,n])}else r=s.set(e,c.size),i=c.set(c.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t.__altered=!0,t):_n(r,i)}bn.isOrderedMap=st,bn.prototype[L]=!0,bn.prototype[r]=bn.prototype.remove;var xn="@@__IMMUTABLE_STACK__@@";function Mn(t){return Boolean(t&&t[xn])}var En=function(t){function e(t){return null==t?jn():Mn(t)?t:jn().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=l(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Dn(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&Mn(e))return e;Jt(e.size);var n=this.size,r=this._head;return e.__iterate((function(t){n++,r={value:t,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Dn(n,r)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):jn()},e.prototype.slice=function(e,n){if(p(e,n,this.size))return this;var r=d(e,this.size);if(h(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Dn(o,i)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Dn(this.size,this._head,t,this.__hash):0===this.size?jn():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new J(this.toArray()).__iterate((function(e,r){return t(e,r,n)}),e);for(var r=0,o=this._head;o&&!1!==t(o.value,r++,this);)o=o.next;return r},e.prototype.__iterator=function(t,e){if(e)return new J(this.toArray()).__iterator(t,e);var n=0,r=this._head;return new P((function(){if(r){var e=r.value;return r=r.next,B(t,n++,e)}return{value:void 0,done:!0}}))},e}(k);En.isStack=Mn;var kn,Cn=En.prototype;function Dn(t,e,n,r){var o=Object.create(Cn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function jn(){return kn||(kn=Dn(0))}Cn[xn]=!0,Cn.shift=Cn.pop,Cn.unshift=Cn.push,Cn.unshiftAll=Cn.pushAll,Cn.withMutations=Oe,Cn.wasAltered=Le,Cn.asImmutable=Te,Cn["@@transducer/init"]=Cn.asMutable=Ie,Cn["@@transducer/step"]=function(t,e){return t.unshift(e)},Cn["@@transducer/result"]=function(t){return t.asImmutable()};var On="@@__IMMUTABLE_SET__@@";function In(t){return Boolean(t&&t[On])}function Tn(t){return In(t)&&A(t)}function Ln(t,e){if(t===e)return!0;if(!v(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||_(t)!==_(e)||S(t)!==S(e)||A(t)!==A(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!x(t);if(A(t)){var r=t.entries();return e.every((function(t,e){var o=r.next().value;return o&&ut(o[1],t)&&(n||ut(o[0],e))}))&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var s=!0,c=e.__iterate((function(e,r){if(n?!t.has(e):o?!ut(e,t.get(r,a)):!ut(t.get(r,a),e))return s=!1,!1}));return s&&t.size===c}function An(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Nn(t){if(!t||"object"!=typeof t)return t;if(!v(t)){if(!ee(t))return t;t=V(t)}if(_(t)){var e={};return t.__iterate((function(t,n){e[n]=Nn(t)})),e}var n=[];return t.__iterate((function(t){n.push(Nn(t))})),n}var zn=function(t){function e(e){return null==e?Un():In(e)&&!A(e)?e:Un().withMutations((function(n){var r=t(e);Jt(r.size),r.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(E(t).keySeq())},e.intersect=function(t){return(t=M(t).toArray()).length?Pn.intersect.apply(e(t.pop()),t):Un()},e.union=function(t){return(t=M(t).toArray()).length?Pn.union.apply(e(t.pop()),t):Un()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return Bn(this,this._map.set(t,t))},e.prototype.remove=function(t){return Bn(this,this._map.remove(t))},e.prototype.clear=function(){return Bn(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,r=!1,o=Bn(this,this._map.mapEntries((function(o){var i=o[1],a=t.call(e,i,i,n);return a!==i&&(r=!0),[a,a]}),e));return r?o:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var r=0;r<e.length;r++)"string"==typeof e[r]?n.add(e[r]):t(e[r]).forEach((function(t){return n.add(t)}))})):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var r=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||r.push(t)})),this.withMutations((function(t){r.forEach((function(e){t.remove(e)}))}))},e.prototype.subtract=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var r=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&r.push(t)})),this.withMutations((function(t){r.forEach((function(e){t.remove(e)}))}))},e.prototype.sort=function(t){return ar(Bt(this,t))},e.prototype.sortBy=function(t,e){return ar(Bt(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(C);zn.isSet=In;var Rn,Pn=zn.prototype;function Bn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Fn(t,e){var n=Object.create(Pn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Un(){return Rn||(Rn=Fn(Ye()))}Pn[On]=!0,Pn[r]=Pn.remove,Pn.merge=Pn.concat=Pn.union,Pn.withMutations=Oe,Pn.asImmutable=Te,Pn["@@transducer/init"]=Pn.asMutable=Ie,Pn["@@transducer/step"]=function(t,e){return t.add(e)},Pn["@@transducer/result"]=function(t){return t.asImmutable()},Pn.__empty=Un,Pn.__make=Fn;var Kn,Hn=function(t){function e(t,n,r){if(!(this instanceof e))return new e(t,n,r);if(Gt(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<t&&(r=-r),this._start=t,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-t)/r-1)+1),0===this.size){if(Kn)return Kn;Kn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+l(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,n){return p(t,n,this.size)?this:(t=d(t,this.size),(n=h(n,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(n,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==t(o,e?n-++i:i++,this);)o+=e?-r:r;return i},e.prototype.__iterator=function(t,e){var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;return new P((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=e?-r:r,B(t,e?n-++i:i++,a)}))},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Ln(this,t)},e}(Z);function qn(t,e,n){for(var r=Xt(e),o=0;o!==r.length;)if((t=oe(t,r[o++],a))===a)return n;return t}function Wn(t,e){return qn(this,t,e)}function Yn(t,e){return qn(t,e,a)!==a}function Vn(){Jt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t}M.isIterable=v,M.isKeyed=_,M.isIndexed=S,M.isAssociative=x,M.isOrdered=A,M.Iterator=P,An(M,{toArray:function(){Jt(this.size);var t=new Array(this.size||0),e=_(this),n=0;return this.__iterate((function(r,o){t[n++]=e?[o,r]:r})),t},toIndexedSeq:function(){return new jt(this)},toJS:function(){return Nn(this)},toKeyedSeq:function(){return new Dt(this,!0)},toMap:function(){return Ae(this.toKeyedSeq())},toObject:Vn,toOrderedMap:function(){return bn(this.toKeyedSeq())},toOrderedSet:function(){return ar(_(this)?this.valueSeq():this)},toSet:function(){return zn(_(this)?this.valueSeq():this)},toSetSeq:function(){return new Ot(this)},toSeq:function(){return S(this)?this.toIndexedSeq():_(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return En(_(this)?this.valueSeq():this)},toList:function(){return on(_(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ht(this,function(t,e){var n=_(t),r=[t].concat(e).map((function(t){return v(t)?n&&(t=E(t)):t=n?nt(t):rt(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===r.length)return t;if(1===r.length){var o=r[0];if(o===t||n&&_(o)||S(t)&&S(o))return o}var i=new J(r);return n?i=i.toKeyedSeq():S(t)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),i}(this,t))},includes:function(t){return this.some((function(e){return ut(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){Jt(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1})),n},filter:function(t,e){return Ht(this,Nt(this,t,e,!0))},partition:function(t,e){return function(t,e,n){var r=_(t),o=[[],[]];t.__iterate((function(i,a){o[e.call(n,i,a,t)?1:0].push(r?[a,i]:i)}));var i=Wt(t);return o.map((function(e){return Ht(t,i(e))}))}(this,t,e)},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return Jt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Jt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Ht(this,Lt(this,t,e))},reduce:function(t,e,n){return Xn(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return Xn(this,t,e,n,arguments.length<2,!0)},reverse:function(){return Ht(this,At(this,!0))},slice:function(t,e){return Ht(this,zt(this,t,e,!0))},some:function(t,e){Jt(this.size);var n=!1;return this.__iterate((function(r,o,i){if(t.call(e,r,o,i))return n=!0,!1})),n},sort:function(t){return Ht(this,Bt(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return u(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Ae().asMutable();return t.__iterate((function(o,i){r.update(e.call(n,o,i,t),0,(function(t){return t+1}))})),r.asImmutable()}(this,t,e)},equals:function(t){return Ln(this,t)},entrySeq:function(){var t=this;if(t._cache)return new J(t._cache);var e=t.toSeq().map(tr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(er(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate((function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1})),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(f,null,t)},flatMap:function(t,e){return Ht(this,function(t,e,n){var r=Wt(t);return t.toSeq().map((function(o,i){return r(e.call(n,o,i,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Ht(this,Pt(this,t,!0))},fromEntrySeq:function(){return new It(this)},get:function(t,e){return this.find((function(e,n){return ut(n,t)}),void 0,e)},getIn:Wn,groupBy:function(t,e){return function(t,e,n){var r=_(t),o=(A(t)?bn():Ae()).asMutable();t.__iterate((function(i,a){o.update(e.call(n,i,a,t),(function(t){return(t=t||[]).push(r?[a,i]:i),t}))}));var i=Wt(t);return o.map((function(e){return Ht(t,i(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,a)!==a},hasIn:function(t){return Yn(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:M(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:M(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return ut(e,t)}))},keySeq:function(){return this.toSeq().map($n).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ft(this,t)},maxBy:function(t,e){return Ft(this,e,t)},min:function(t){return Ft(this,t?nr(t):or)},minBy:function(t,e){return Ft(this,e?nr(e):or,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Ht(this,Rt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(er(t),e)},sortBy:function(t,e){return Ht(this,Bt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Ht(this,function(t,e,n){var r=Yt(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate((function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new P((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:B(r,c,u,t):(s=!1,{value:void 0,done:!0})}))},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(er(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=A(t),n=_(t),r=e?1:0;return function(t,e){return e=lt(e,3432918353),e=lt(e<<15|e>>>-15,461845907),e=lt(e<<13|e>>>-13,5),e=lt((e=e+3864292196^t)^e>>>16,2246822507),e=ft((e=lt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+ir(dt(t),dt(e))|0}:function(t,e){r=r+ir(dt(t),dt(e))|0}:e?function(t){r=31*r+dt(t)|0}:function(t){r=r+dt(t)|0}),r)}(this))}});var Qn=M.prototype;Qn[m]=!0,Qn[R]=Qn.values,Qn.toJSON=Qn.toArray,Qn.__toStringMapper=ne,Qn.inspect=Qn.toSource=function(){return this.toString()},Qn.chain=Qn.flatMap,Qn.contains=Qn.includes,An(E,{flip:function(){return Ht(this,Tt(this))},mapEntries:function(t,e){var n=this,r=0;return Ht(this,this.toSeq().map((function(o,i){return t.call(e,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ht(this,this.toSeq().flip().map((function(r,o){return t.call(e,r,o,n)})).flip())}});var Zn=E.prototype;Zn[b]=!0,Zn[R]=Qn.entries,Zn.toJSON=Vn,Zn.__toStringMapper=function(t,e){return ne(e)+": "+ne(t)},An(k,{toKeyedSeq:function(){return new Dt(this,!1)},filter:function(t,e){return Ht(this,Nt(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Ht(this,At(this,!1))},slice:function(t,e){return Ht(this,zt(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=d(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ht(this,1===n?r:r.concat(Zt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Ht(this,Pt(this,t,!1))},get:function(t,e){return(t=l(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=l(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ht(this,function(t,e){var n=Yt(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate((function(t){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new P((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?B(n,a++,e):B(n,a++,o.value,o)}))},n}(this,t))},interleave:function(){var t=[this].concat(Zt(arguments)),e=Kt(this.toSeq(),Z.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Ht(this,n)},keySeq:function(){return Hn(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Ht(this,Rt(this,t,e,!1))},zip:function(){return Ht(this,Kt(this,rr,[this].concat(Zt(arguments))))},zipAll:function(){return Ht(this,Kt(this,rr,[this].concat(Zt(arguments)),!0))},zipWith:function(t){var e=Zt(arguments);return e[0]=this,Ht(this,Kt(this,t,e))}});var Gn=k.prototype;Gn[w]=!0,Gn[L]=!0,An(C,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Jn=C.prototype;function Xn(t,e,n,r,o,i){return Jt(t.size),t.__iterate((function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)}),i),n}function $n(t,e){return e}function tr(t,e){return[e,t]}function er(t){return function(){return!t.apply(this,arguments)}}function nr(t){return function(){return-t.apply(this,arguments)}}function rr(){return Zt(arguments)}function or(t,e){return t<e?1:t>e?-1:0}function ir(t,e){return t^e+2654435769+(t<<6)+(t>>2)}Jn.has=Qn.includes,Jn.contains=Jn.includes,Jn.keys=Jn.values,An(Q,Zn),An(Z,Gn),An(G,Jn);var ar=function(t){function e(t){return null==t?lr():Tn(t)?t:lr().withMutations((function(e){var n=C(t);Jt(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(E(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(zn);ar.isOrderedSet=Tn;var sr,cr=ar.prototype;function ur(t,e){var n=Object.create(cr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function lr(){return sr||(sr=ur(wn()))}cr[L]=!0,cr.zip=Gn.zip,cr.zipWith=Gn.zipWith,cr.zipAll=Gn.zipAll,cr.__empty=lr,cr.__make=ur;var fr={LeftThenRight:-1,RightThenLeft:1},pr=function(t,e){var n;!function(t){if(I(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(T(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(t),c=o._indices={};o._name=e,o._keys=s,o._defaultValues=t;for(var u=0;u<s.length;u++){var l=s[u];c[l]=u,o[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+gr(this)+' with property "'+l+'" since that property name is part of the Record API.'):mr(o,l)}}return this.__ownerID=void 0,this._values=on().withMutations((function(t){t.setSize(a._keys.length),E(i).forEach((function(e,n){t.set(a._indices[n],e===a._defaultValues[n]?void 0:e)}))})),this},o=r.prototype=Object.create(dr);return o.constructor=r,e&&(r.displayName=e),r};pr.prototype.toString=function(){for(var t,e=gr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)e+=(r?", ":"")+(t=n[r])+": "+ne(this.get(t));return e+" }"},pr.prototype.equals=function(t){return this===t||I(t)&&yr(this).equals(yr(t))},pr.prototype.hashCode=function(){return yr(this).hashCode()},pr.prototype.has=function(t){return this._indices.hasOwnProperty(t)},pr.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._indices[t],r=this._values.get(n);return void 0===r?this._defaultValues[t]:r},pr.prototype.set=function(t,e){if(this.has(t)){var n=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(n!==this._values&&!this.__ownerID)return hr(this,n)}return this},pr.prototype.remove=function(t){return this.set(t)},pr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:hr(this,t)},pr.prototype.wasAltered=function(){return this._values.wasAltered()},pr.prototype.toSeq=function(){return yr(this)},pr.prototype.toJS=function(){return Nn(this)},pr.prototype.entries=function(){return this.__iterator(2)},pr.prototype.__iterator=function(t,e){return yr(this).__iterator(t,e)},pr.prototype.__iterate=function(t,e){return yr(this).__iterate(t,e)},pr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?hr(this,e,t):(this.__ownerID=t,this._values=e,this)},pr.isRecord=I,pr.getDescriptiveName=gr;var dr=pr.prototype;function hr(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._values=e,r.__ownerID=n,r}function gr(t){return t.constructor.displayName||t.constructor.name||"Record"}function yr(t){return nt(t._keys.map((function(e){return[e,t.get(e)]})))}function mr(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Gt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}dr[O]=!0,dr[r]=dr.remove,dr.deleteIn=dr.removeIn=de,dr.getIn=Wn,dr.hasIn=Qn.hasIn,dr.merge=me,dr.mergeWith=ve,dr.mergeIn=De,dr.mergeDeep=ke,dr.mergeDeepWith=Ce,dr.mergeDeepIn=je,dr.setIn=fe,dr.update=ge,dr.updateIn=ye,dr.withMutations=Oe,dr.asMutable=Ie,dr.asImmutable=Te,dr[R]=dr.entries,dr.toJSON=dr.toObject=Qn.toObject,dr.inspect=dr.toSource=function(){return this.toString()};var vr,br=function(t){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this._value=t,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(vr)return vr;vr=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return ut(this._value,t)},e.prototype.slice=function(t,n){var r=this.size;return p(t,n,r)?this:new e(this._value,h(n,r)-d(t,r))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return ut(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return ut(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var n=this.size,r=0;r!==n&&!1!==t(this._value,e?n-++r:r++,this););return r},e.prototype.__iterator=function(t,e){var n=this,r=this.size,o=0;return new P((function(){return o===r?{value:void 0,done:!0}:B(t,e?r-++o:o++,n._value)}))},e.prototype.equals=function(t){return t instanceof e?ut(this._value,t._value):Ln(this,t)},e}(Z);function _r(t,e){return wr([],e||Sr,t,"",e&&e.length>2?[]:void 0,{"":t})}function wr(t,e,n,r,o,i){if("string"!=typeof n&&!T(n)&&(Y(n)||U(n)||te(n))){if(~t.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");t.push(n),o&&""!==r&&o.push(r);var a=e.call(i,r,V(n).map((function(r,i){return wr(t,e,r,i,o,n)})),o&&o.slice());return t.pop(),o&&o.pop(),a}return n}function Sr(t,e){return S(e)?e.toList():_(e)?e.toMap():e.toSet()}var xr="4.3.7",Mr={version:xr,Collection:M,Iterable:M,Seq:V,Map:Ae,OrderedMap:bn,List:on,Stack:En,Set:zn,OrderedSet:ar,PairSorting:fr,Record:pr,Range:Hn,Repeat:br,is:ut,fromJS:_r,hash:dt,isImmutable:T,isCollection:v,isKeyed:_,isIndexed:S,isAssociative:x,isOrdered:A,isValueObject:ct,isPlainObject:te,isSeq:j,isList:rn,isMap:at,isOrderedMap:st,isStack:Mn,isSet:In,isOrderedSet:Tn,isRecord:I,get:oe,getIn:qn,has:re,hasIn:Yn,merge:_e,mergeDeep:Se,mergeWith:we,mergeDeepWith:xe,remove:ae,removeIn:pe,set:se,setIn:le,update:he,updateIn:ce},Er=M;e.default=Mr},56784:function(t){"use strict";t.exports=function(t,e,n,r,o,i,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(c=new Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},48878:function(t,e,n){t.exports=n(57269)},68752:function(t,e,n){var r=t.exports=n(5463),o=/\s+/,i={};r.Callbacks=function(t){t="string"==typeof t?i[t]||function(t){var e=i[t]={};return r.each(t.split(o),(function(t,n){e[n]=!0})),e}(t):r.extend({},t);var e,n,a,s,c,u,l=[],f=!t.once&&[],p=function(r){for(e=t.memory&&r,n=!0,u=s||0,s=0,c=l.length,a=!0;l&&u<c;u++)if(!1===l[u].apply(r[0],r[1])&&t.stopOnFalse){e=!1;break}a=!1,l&&(f?f.length&&p(f.shift()):e?l=[]:d.disable())},d={add:function(){if(l){var n=l.length;!function e(n){r.each(n,(function(n,o){var i=r.type(o);"function"===i?t.unique&&d.has(o)||l.push(o):o&&o.length&&"string"!==i&&e(o)}))}(arguments),a?c=l.length:e&&(s=n,p(e))}return this},remove:function(){return l&&r.each(arguments,(function(t,e){for(var n;(n=r.inArray(e,l,n))>-1;)l.splice(n,1),a&&(n<=c&&c--,n<=u&&u--)})),this},has:function(t){return r.inArray(t,l)>-1},empty:function(){return l=[],this},disable:function(){return l=f=e=void 0,this},disabled:function(){return!l},lock:function(){return f=void 0,e||d.disable(),this},locked:function(){return!f},fireWith:function(t,e){return e=[t,(e=e||[]).slice?e.slice():e],!l||n&&!f||(a?f.push(e):p(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d}},5463:function(t){var e=t.exports={type:function(t){return null==t?String(t):r[n.call(t)]||"object"},isArray:function(t){return"array"===e.type(t)},isFunction:o,isPlainObject:function(t){return!(!t||"object"!==e.type(t))},each:function(t,e,n){var r,i=0,a=t.length,s=void 0===a||o(t);if(n)if(s){for(r in t)if(!1===e.apply(t[r],n))break}else for(;i<a&&!1!==e.apply(t[i++],n););else if(s){for(r in t)if(!1===e.call(t[r],r,t[r]))break}else for(;i<a&&!1!==e.call(t[i],i,t[i++]););return t},extend:function(){var t,n,r,o,i,a,s=arguments[0]||{},c=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},c=2),"object"==typeof s||e.isFunction(s)||(s={}),u===c&&(s=this,--c);c<u;c++)if(null!=(t=arguments[c]))for(n in t)r=s[n],s!==(o=t[n])&&(l&&o&&(e.isPlainObject(o)||(i=e.isArray(o)))?(i?(i=!1,a=r&&e.isArray(r)?r:[]):a=r&&e.isPlainObject(r)?r:{},s[n]=e.extend(l,a,o)):void 0!==o&&(s[n]=o));return s},noop:function(){}},n=Object.prototype.toString,r={};function o(t){return"function"===e.type(t)}"Boolean Number String Function Array Date RegExp Object".split(" ").forEach((function(t){r["[object "+t+"]"]=t.toLowerCase()}))},57269:function(t,e,n){var r=t.exports=n(68752),o=Array.prototype.slice;r.extend({Deferred:function(t){var e=[["resolve","done",r.Callbacks("once memory"),"resolved"],["reject","fail",r.Callbacks("once memory"),"rejected"],["notify","progress",r.Callbacks("memory")]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return r.Deferred((function(n){r.each(e,(function(e,o){var a=o[0],s=t[e];i[o[1]](r.isFunction(s)?function(){var t=s.apply(this,arguments);t&&r.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===i?n:this,[t])}:n[a])})),t=null})).promise()},promise:function(t){return null!=t?r.extend(t,o):o}},i={};return o.pipe=o.then,r.each(e,(function(t,r){var a=r[2],s=r[3];o[r[1]]=a.add,s&&a.add((function(){n=s}),e[1^t][2].disable,e[2][2].lock),i[r[0]]=a.fire,i[r[0]+"With"]=a.fireWith})),o.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,i,a=0,s=o.call(arguments),c=s.length,u=1!==c||t&&r.isFunction(t.promise)?c:0,l=1===u?t:r.Deferred(),f=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?o.call(arguments):i,r===e?l.notifyWith(n,r):--u||l.resolveWith(n,r)}};if(c>1)for(e=new Array(c),n=new Array(c),i=new Array(c);a<c;a++)s[a]&&r.isFunction(s[a].promise)?s[a].promise().done(f(a,i,s)).fail(l.reject).progress(f(a,n,e)):--u;return u||l.resolveWith(i,s),l.promise()}})},27331:function(t,e){var n;!function(){"use strict";var r=function(t){var e=[],n=/\[\]$/,r=function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=function(t,n){n="function"==typeof n?n():null==n?"":n,e[e.length]=encodeURIComponent(t)+"="+encodeURIComponent(n)},i=function(t,a){var s,c,u;if(t)if(r(a))for(s=0,c=a.length;s<c;s++)n.test(t)?o(t,a[s]):i(t+"["+("object"==typeof a[s]?s:"")+"]",a[s]);else if(a&&"[object Object]"===String(a))for(u in a)i(t+"["+u+"]",a[u]);else o(t,a);else if(r(a))for(s=0,c=a.length;s<c;s++)o(a[s].name,a[s].value);else for(u in a)i(u,a[u]);return e};return i("",t).join("&").replace(/%20/g,"+")};"object"==typeof t.exports?t.exports=r:void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},70264:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(r=n(99500))&&r.__esModule?r:{default:r},a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.radius,r=void 0===n?30:n,o=e.enabled,a=void 0===o||o,s=e.initialPoint,c=void 0===s?{x:0,y:0}:s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.radius=r,this._isEnabled=a,this.pointer=new i.default(c.x,c.y),this.brush=new i.default(c.x,c.y),this.angle=0,this.distance=0,this._hasMoved=!1}return o(t,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"isEnabled",value:function(){return this._isEnabled}},{key:"setRadius",value:function(t){this.radius=t}},{key:"getRadius",value:function(){return this.radius}},{key:"getBrushCoordinates",value:function(){return this.brush.toObject()}},{key:"getPointerCoordinates",value:function(){return this.pointer.toObject()}},{key:"getBrush",value:function(){return this.brush}},{key:"getPointer",value:function(){return this.pointer}},{key:"getAngle",value:function(){return this.angle}},{key:"getDistance",value:function(){return this.distance}},{key:"brushHasMoved",value:function(){return this._hasMoved}},{key:"update",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).both,n=void 0!==e&&e;return this._hasMoved=!1,!(this.pointer.equalsTo(t)&&!n||(this.pointer.update(t),n?(this._hasMoved=!0,this.brush.update(t),0):(this._isEnabled?(this.distance=this.pointer.getDistanceTo(this.brush),this.angle=this.pointer.getAngleTo(this.brush),this.distance>this.radius&&(this.brush.moveByAngle(this.angle,this.distance-this.radius),this._hasMoved=!0)):(this.distance=0,this.angle=0,this.brush.update(t),this._hasMoved=!0),0)))}}]),t}();e.default=a},99500:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(r=n(30079))&&r.__esModule?r:{default:r},a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"update",value:function(t){this.x=t.x,this.y=t.y}},{key:"moveByAngle",value:function(t,e){var n=t+Math.PI/2;this.x=this.x+Math.sin(n)*e,this.y=this.y-Math.cos(n)*e}},{key:"equalsTo",value:function(t){return this.x===t.x&&this.y===t.y}},{key:"getDifferenceTo",value:function(t){return new i.default(this.x-t.x,this.y-t.y)}},{key:"getDistanceTo",value:function(t){var e=this.getDifferenceTo(t);return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}},{key:"getAngleTo",value:function(t){var e=this.getDifferenceTo(t);return Math.atan2(e.y,e.x)}},{key:"toObject",value:function(){return{x:this.x,y:this.y}}}]),e}(i.default);e.default=a},30079:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e,this.y=n}},97876:function(t,e,n){"use strict";e.xv=void 0;var r=a(n(70264)),o=a(n(30079)),i=a(n(99500));function a(t){return t&&t.__esModule?t:{default:t}}e.xv=r.default,o.default,i.default},54516:function(t){"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var i,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))n.call(i,u)&&(s[u]=i[u]);if(e){a=e(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},99785:function(t,e,n){"use strict";n.d(e,{Z:function(){return R}});var r=n(1024),o=n.n(r),i=n(97876),a=n(37410),s=n(54006);function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=Object.freeze({x:0,y:0,untransformedX:0,untransformedY:0}),p=Object.freeze({canvasWidth:0,canvasHeight:0,left:0,top:0,right:0,bottom:0,viewMin:f,viewMax:f}),d=Object.freeze({a:1,b:0,c:0,d:1,e:0,f:0}),h=function(){function t(t){var e=this,n=t.scaleExtents,r=t.documentSize;l(this,"_scaleExtents",void 0),l(this,"_documentSize",void 0),l(this,"_canvas",null),l(this,"_view",{scale:1,x:0,y:0}),l(this,"_viewChangeListeners",new Set),l(this,"setScale",(function(t){e.setView({scale:t})})),l(this,"clampView",(function(t){var n=t.scale,r=t.x,o=t.y,i=e.scaleExtents,a=i.min,s=i.max,c=e.documentSize,u=c.width,l=c.height,f=e.canvasRect||p,d=f.left,h=f.top,g=f.right-d,y=f.bottom-h,m=g/2,v=-(u*e._view.scale-g/2),b=y/2,_=-(l*e._view.scale-y/2);return{scale:Math.min(Math.max(n,a),s),x:Math.min(Math.max(r,v),m),y:Math.min(Math.max(o,_),b)}})),l(this,"resetView",(function(){e.setView({scale:1,x:0,y:0})})),l(this,"setView",(function(t){var n=e.clampView(c({},e._view,t||{})),r=e._view,o=r.scale,i=r.x,a=r.y;return n.scale===o&&n.x===i&&n.y===a||(e._view=n,e._viewChangeListeners.forEach((function(t){return t&&t(n)}))),c({},e._view)})),l(this,"scaleAtClientPoint",(function(t,n){var r=e.clientPointToViewPoint(n),o=e.clampView(c({},e._view,{scale:e._view.scale+t})),i=e.viewPointToClientPoint(r,o);return o.x=e._view.x-(i.clientX-n.clientX),o.y=e._view.y-(i.clientY-n.clientY),e.setView(o)})),l(this,"clientPointToViewPoint",(function(t,n){var r=t.clientX,o=t.clientY;void 0===n&&(n=e._view);var i=e.canvasRect||p,a=r-i.left,s=o-i.top;return{x:(a-n.x)/n.scale,y:(s-n.y)/n.scale,relativeClientX:a,relativeClientY:s}})),l(this,"viewPointToClientPoint",(function(t,n){var r=t.x,o=t.y;void 0===n&&(n=e._view);var i=e.canvasRect||p,a=i.left,s=i.top,c=r*n.scale+n.x,u=o*n.scale+n.y,l=c+a,f=u+s;return{clientX:l,clientY:f,relativeX:c,relativeY:u,x:l,y:f}})),l(this,"attachViewChangeListener",(function(t){e._viewChangeListeners.add(t)})),this._scaleExtents=n,this._documentSize=r}var e,n;return e=t,(n=[{key:"canvas",get:function(){return this._canvas},set:function(t){this._canvas=t,this.setView()}},{key:"scale",get:function(){return this._view.scale}},{key:"x",get:function(){return this._view.x},set:function(t){this.setView({x:t})}},{key:"y",get:function(){return this._view.y},set:function(t){this.setView({y:t})}},{key:"view",get:function(){return c({},this._view)}},{key:"scaleExtents",get:function(){return c({},this._scaleExtents)},set:function(t){var e=t.min,n=t.max;this._scaleExtents={min:e,max:n},this.setView()}},{key:"documentSize",get:function(){return c({},this._documentSize)},set:function(t){var e=t.width,n=t.height;this._documentSize={width:e,height:n},this.setView()}},{key:"transformMatrix",get:function(){return{a:this._view.scale,b:0,c:0,d:this._view.scale,e:this._view.x,f:this._view.y}}},{key:"canvasBounds",get:function(){if(this._canvas){var t=this._canvas.getBoundingClientRect(),e=t.left,n=t.top,r=t.right,o=t.bottom;return{viewMin:this.clientPointToViewPoint({clientX:e,clientY:n}),viewMax:this.clientPointToViewPoint({clientX:r,clientY:o}),left:e,top:n,right:r,bottom:o,canvasWidth:this._canvas.width,canvasHeight:this._canvas.height}}}},{key:"canvasRect",get:function(){return this.canvas?this.canvas.getBoundingClientRect():void 0}}])&&u(e.prototype,n),t}();function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y=function(t){t.preventDefault()},m=function(){var t=this;g(this,"handleMouseWheel",(function(e,n){var r=n.props,o=r.disabled,i=r.enablePanAndZoom,a=r.mouseZoomFactor;return o?new v:(i&&e.ctrlKey&&(e.preventDefault(),n.coordSystem.scaleAtClientPoint(a*e.deltaY,k(e))),t)})),g(this,"handleDrawStart",(function(t,e){return e.props.disabled?new v:t.ctrlKey&&e.props.enablePanAndZoom?(new b).handleDrawStart(t,e):(new _).handleDrawStart(t,e)})),g(this,"handleDrawMove",(function(e,n){if(n.props.disabled)return new v;var r=C(n.coordSystem,e),o=r.x,i=r.y;return n.lazy.update({x:o,y:i}),t})),g(this,"handleDrawEnd",(function(e,n){return n.props.disabled?new v:t}))},v=function(){var t=this;g(this,"handleMouseWheel",(function(e,n){return n.props.disabled?t:(new m).handleMouseWheel(e,n)})),g(this,"handleDrawStart",(function(e,n){return n.props.disabled?t:(new m).handleDrawStart(e,n)})),g(this,"handleDrawMove",(function(e,n){return n.props.disabled?t:(new m).handleDrawMove(e,n)})),g(this,"handleDrawEnd",(function(e,n){return n.props.disabled?t:(new m).handleDrawEnd(e,n)}))},b=function(){var t=this;g(this,"handleMouseWheel",y.bind(this)),g(this,"handleDrawStart",(function(e,n){return e.preventDefault(),t.dragStart=k(e),t.panStart={x:n.coordSystem.x,y:n.coordSystem.y},t})),g(this,"handleDrawMove",(function(e,n){e.preventDefault();var r=k(e),o=r.clientX,i=r.clientY,a=o-t.dragStart.clientX,s=i-t.dragStart.clientY;return n.coordSystem.setView({x:t.panStart.x+a,y:t.panStart.y+s}),t})),g(this,"handleDrawEnd",(function(){return new m}))},_=function(){var t=this;g(this,"handleMouseWheel",y.bind(this)),g(this,"handleDrawStart",(function(e,n){var r=n.props.enablePanAndZoom;return e.preventDefault(),e.touches&&e.touches.length&&r?r&&e.touches&&e.touches.length>=2?(new w).handleDrawStart(e,n):t.handleDrawMove(e,n):(new M).handleDrawStart(e,n)})),g(this,"handleDrawMove",(function(e,n){if(e.preventDefault(),e.touches&&e.touches.length>=2)return(new w).handleDrawStart(e,n);var r=k(e);return t.deferredPoints.push(r),(new Date).valueOf()-t.startTimestamp<250&&(null===t.startClientPoint&&(t.startClientPoint=r),Math.abs(r.clientX-t.startClientPoint.clientX)+Math.abs(r.clientY-t.startClientPoint.clientY)<10)?t:t.issueDeferredPoints(n)})),g(this,"handleDrawEnd",(function(e,n){return t.issueDeferredPoints(n).handleDrawEnd(e,n)})),g(this,"issueDeferredPoints",(function(e){for(var n=new M,r=0;r<t.deferredPoints.length;r++){var o=t.deferredPoints[r],i=new E(o);n=(0===r?n.handleDrawStart:n.handleDrawMove)(i,e)}return n})),this.startClientPoint=null,this.startTimestamp=(new Date).valueOf(),this.deferredPoints=[]},w=function(){var t=this;g(this,"handleMouseWheel",y.bind(this)),g(this,"handleDrawStart",(function(e,n){return e.preventDefault(),!e.touches||e.touches.length<2?new m:(t.start=t.getTouchMetrics(e),t.panStart={x:n.coordSystem.x,y:n.coordSystem.y},t.scaleStart=n.coordSystem.scale,t)})),g(this,"handleDrawMove",(function(e,n){if(e.preventDefault(),!e.touches||e.touches.length<2)return new m;var r=t.recentMetrics=t.getTouchMetrics(e),o=r.centroid,i=r.distance;if(Math.abs(i-t.start.distance)>=10)return new x(t).handleDrawMove(e,n);var a=o.clientX-t.start.centroid.clientX,s=o.clientY-t.start.centroid.clientY;return Math.abs(a)+Math.abs(s)>=10?new S(t).handleDrawMove(e,n):t})),g(this,"handleDrawEnd",(function(){return new m})),g(this,"getTouchMetrics",(function(t){var e=k(t.touches[0]),n=e.clientX,r=e.clientY,o=k(t.touches[1]),i=o.clientX,a=o.clientY,s=i-n,c=a-r;return{t1:{clientX:n,clientY:r},t2:{clientX:i,clientY:a},distance:Math.sqrt(s*s+c*c),centroid:{clientX:(n+i)/2,clientY:(r+a)/2}}}))},S=function(t){var e=this;g(this,"handleMouseWheel",y.bind(this)),g(this,"handleDrawStart",(function(){return e})),g(this,"handleDrawMove",(function(t,n){if(t.preventDefault(),!t.touches||t.touches.length<2)return new m;var r=e.scaleOrPanState,o=r.recentMetrics=r.getTouchMetrics(t),i=o.centroid,a=(o.distance,i.clientX-r.start.centroid.clientX),s=i.clientY-r.start.centroid.clientY;return n.setView({x:r.panStart.x+a,y:r.panStart.y+s}),e})),g(this,"handleDrawEnd",(function(){return new m})),this.scaleOrPanState=t},x=function(t){var e=this;g(this,"handleMouseWheel",y.bind(this)),g(this,"handleDrawStart",(function(){return e})),g(this,"handleDrawMove",(function(t,n){if(t.preventDefault(),!t.touches||t.touches.length<2)return new m;var r=e.scaleOrPanState,o=r.recentMetrics=r.getTouchMetrics(t),i=o.centroid,a=o.distance,s=r.scaleStart*(a/r.start.distance)-n.coordSystem.scale;return n.coordSystem.scaleAtClientPoint(s,i),e})),g(this,"handleDrawEnd",(function(){return new m})),this.scaleOrPanState=t},M=function(){var t=this;g(this,"handleMouseWheel",y.bind(this)),g(this,"handleDrawStart",(function(e,n){if(e.preventDefault(),e.touches&&e.touches.length){var r=C(n.coordSystem,e),o=r.x,i=r.y;n.lazy.update({x:o,y:i},{both:!0})}return t.handleDrawMove(e,n)})),g(this,"handleDrawMove",(function(e,n){e.preventDefault();var r=C(n.coordSystem,e),o=r.x,i=r.y;n.lazy.update({x:o,y:i});var a=!n.lazy.isEnabled();return t.isDrawing&&!a||(n.points.push(n.clampPointToDocument(n.lazy.brush.toObject())),t.isDrawing=!0),n.points.push(n.clampPointToDocument(n.lazy.brush.toObject())),n.drawPoints({points:n.points,brushColor:n.props.brushColor,brushRadius:n.props.brushRadius}),t})),g(this,"handleDrawEnd",(function(e,n){return e.preventDefault(),t.handleDrawMove(e,n),n.saveLine(),new m})),this.isDrawing=!1},E=function(t){var e=t.clientX,n=t.clientY;g(this,"preventDefault",(function(){})),this.clientX=e,this.clientY=n,this.touches=[{clientX:e,clientY:n}]};function k(t){var e=t.clientX,n=t.clientY;return t.changedTouches&&t.changedTouches.length>0&&(e=t.changedTouches[0].clientX,n=t.changedTouches[0].clientY),{clientX:e,clientY:n}}function C(t,e){return t.clientPointToViewPoint(k(e))}var D=!1;try{var j={get passive(){return D=!0,!1}};window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(t){D=!1}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function I(){return I=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},I.apply(this,arguments)}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t,e){return{x:t.x+(e.x-t.x)/2,y:t.y+(e.y-t.y)/2}}var N={display:"block",position:"absolute"},z=["grid","drawing","temp","interface"],R=function(t){var e,n;function r(e){var n;return L(T(n=t.call(this,e)||this),"undo",(function(){var t=[];n.lines.length?t=n.lines.slice(0,-1):n.erasedLines.length&&(t=n.erasedLines.pop()),n.clearExceptErasedLines(),n.simulateDrawingLines({lines:t,immediate:!0}),n.triggerOnChange()})),L(T(n),"eraseAll",(function(){n.erasedLines.push([].concat(n.lines)),n.clearExceptErasedLines(),n.triggerOnChange()})),L(T(n),"clear",(function(){n.erasedLines=[],n.clearExceptErasedLines(),n.resetView()})),L(T(n),"resetView",(function(){return n.coordSystem.resetView()})),L(T(n),"setView",(function(t){return n.coordSystem.setView(t)})),L(T(n),"getSaveData",(function(){return JSON.stringify({lines:n.lines,width:n.props.canvasWidth,height:n.props.canvasHeight})})),L(T(n),"getDataURL",(function(t,e,r){var o=n.canvas.drawing,i=o.getContext("2d"),a=o.width,s=o.height,c=i.getImageData(0,0,a,s),u=i.globalCompositeOperation;if(i.globalCompositeOperation="destination-over",e){if(!n.props.imgSrc)return"Background image source not set";n.drawImage()}else null!=r&&(i.fillStyle=r,i.fillRect(0,0,a,s));t||(t="png");var l=o.toDataURL("image/"+t);return i.clearRect(0,0,a,s),i.putImageData(c,0,0),i.globalCompositeOperation=u,l})),L(T(n),"loadSaveData",(function(t,e){if(void 0===e&&(e=n.props.immediateLoading),"string"!=typeof t)throw new Error("saveData needs to be of type string!");var r=JSON.parse(t),o=r.lines,i=r.width,a=r.height;if(!o||"function"!=typeof o.push)throw new Error("saveData.lines needs to be an array!");if(n.clear(),i===n.props.canvasWidth&&a===n.props.canvasHeight)n.simulateDrawingLines({lines:o,immediate:e});else{var s=n.props.canvasWidth/i,c=n.props.canvasHeight/a,u=(s+c)/2;n.simulateDrawingLines({lines:o.map((function(t){return I({},t,{points:t.points.map((function(t){return{x:t.x*s,y:t.y*c}})),brushRadius:t.brushRadius*u})})),immediate:e})}})),L(T(n),"componentWillUnmount",(function(){n.canvasObserver.unobserve(n.canvasContainer),n.canvas.interface&&n.canvas.interface.removeEventListener("wheel",n.handleWheel)})),L(T(n),"handleWheel",(function(t){n.interactionSM=n.interactionSM.handleMouseWheel(t,T(n))})),L(T(n),"handleDrawStart",(function(t){n.interactionSM=n.interactionSM.handleDrawStart(t,T(n)),n.mouseHasMoved=!0})),L(T(n),"handleDrawMove",(function(t){n.interactionSM=n.interactionSM.handleDrawMove(t,T(n)),n.mouseHasMoved=!0})),L(T(n),"handleDrawEnd",(function(t){n.interactionSM=n.interactionSM.handleDrawEnd(t,T(n)),n.mouseHasMoved=!0})),L(T(n),"applyView",(function(){if(n.ctx.drawing&&(z.map((function(t){return n.ctx[t]})).forEach((function(t){n.clearWindow(t);var e=n.coordSystem.transformMatrix;t.setTransform(e.a,e.b,e.c,e.d,e.e,e.f)})),!n.deferRedrawOnViewChange)){n.drawGrid(n.ctx.grid),n.redrawImage(),n.loop({once:!0});var t=n.lines;n.lines=[],n.simulateDrawingLines({lines:t,immediate:!0})}})),L(T(n),"handleCanvasResize",(function(t){var e=n.getSaveData();n.deferRedrawOnViewChange=!0;try{for(var r,o=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}(t);!(r=o()).done;){var i=r.value.contentRect,a=i.width,s=i.height;n.setCanvasSize(n.canvas.interface,a,s),n.setCanvasSize(n.canvas.drawing,a,s),n.setCanvasSize(n.canvas.temp,a,s),n.setCanvasSize(n.canvas.grid,a,s),n.coordSystem.documentSize={width:a,height:s},n.drawGrid(n.ctx.grid),n.drawImage(),n.loop({once:!0})}n.loadSaveData(e,!0)}finally{n.deferRedrawOnViewChange=!1}})),L(T(n),"clampPointToDocument",(function(t){return n.props.clampLinesToDocument?{x:Math.max(Math.min(t.x,n.props.canvasWidth),0),y:Math.max(Math.min(t.y,n.props.canvasHeight),0)}:t})),L(T(n),"redrawImage",(function(){n.image&&n.image.complete&&function(t){var e=void 0===t?{}:t,n=e.ctx,r=e.img,o=e.x,i=e.y,a=e.w,s=e.h,c=e.offsetX,u=e.offsetY;"number"!=typeof o&&(o=0),"number"!=typeof i&&(i=0),"number"!=typeof a&&(a=n.canvas.width),"number"!=typeof s&&(s=n.canvas.height),"number"!=typeof c&&(c=.5),"number"!=typeof u&&(u=.5),c<0&&(c=0),u<0&&(u=0),c>1&&(c=1),u>1&&(u=1);var l,f,p,d,h=r.width,g=r.height,y=Math.min(a/h,s/g),m=h*y,v=g*y,b=1;m<a&&(b=a/m),Math.abs(b-1)<1e-14&&v<s&&(b=s/v),(l=(h-(p=h/((m*=b)/a)))*c)<0&&(l=0),(f=(g-(d=g/((v*=b)/s)))*u)<0&&(f=0),p>h&&(p=h),d>g&&(d=g),n.drawImage(r,l,f,p,d,o,i,a,s)}({ctx:n.ctx.grid,img:n.image})})),L(T(n),"simulateDrawingLines",(function(t){var e=t.lines,r=t.immediate,o=0,i=r?0:n.props.loadTimeOffset;e.forEach((function(t){var e=t.points,a=t.brushColor,s=t.brushRadius;if(r)return n.drawPoints({points:e,brushColor:a,brushRadius:s}),n.points=e,void n.saveLine({brushColor:a,brushRadius:s});for(var c=function(t){o+=i,window.setTimeout((function(){n.drawPoints({points:e.slice(0,t+1),brushColor:a,brushRadius:s})}),o)},u=1;u<e.length;u++)c(u);o+=i,window.setTimeout((function(){n.points=e,n.saveLine({brushColor:a,brushRadius:s})}),o)}))})),L(T(n),"setCanvasSize",(function(t,e,n){t.width=e,t.height=n,t.style.width=e,t.style.height=n})),L(T(n),"drawPoints",(function(t){var e=t.points,r=t.brushColor,o=t.brushRadius;n.ctx.temp.lineJoin="round",n.ctx.temp.lineCap="round",n.ctx.temp.strokeStyle=r,n.clearWindow(n.ctx.temp),n.ctx.temp.lineWidth=2*o;var i=e[0],a=e[1];n.ctx.temp.moveTo(a.x,a.y),n.ctx.temp.beginPath();for(var s=1,c=e.length;s<c;s++){var u=A(i,a);n.ctx.temp.quadraticCurveTo(i.x,i.y,u.x,u.y),i=e[s],a=e[s+1]}n.ctx.temp.lineTo(i.x,i.y),n.ctx.temp.stroke()})),L(T(n),"saveLine",(function(t){var e=void 0===t?{}:t,r=e.brushColor,o=e.brushRadius;n.points.length<2||(n.lines.push({points:[].concat(n.points),brushColor:r||n.props.brushColor,brushRadius:o||n.props.brushRadius}),n.points.length=0,n.inClientSpace([n.ctx.drawing,n.ctx.temp],(function(){n.ctx.drawing.drawImage(n.canvas.temp,0,0,n.canvas.drawing.width,n.canvas.drawing.height)})),n.clearWindow(n.ctx.temp),n.triggerOnChange())})),L(T(n),"triggerOnChange",(function(){n.props.onChange&&n.props.onChange(T(n))})),L(T(n),"clearWindow",(function(t){n.inClientSpace([t],(function(){return t.clearRect(0,0,t.canvas.width,t.canvas.height)}))})),L(T(n),"clearExceptErasedLines",(function(){n.lines=[],n.valuesChanged=!0,n.clearWindow(n.ctx.drawing),n.clearWindow(n.ctx.temp)})),L(T(n),"loop",(function(t){var e=(void 0===t?{}:t).once,r=void 0!==e&&e;if(n.mouseHasMoved||n.valuesChanged){var o=n.lazy.getPointerCoordinates(),i=n.lazy.getBrushCoordinates();n.drawInterface(n.ctx.interface,o,i),n.mouseHasMoved=!1,n.valuesChanged=!1}r||window.requestAnimationFrame((function(){n.loop()}))})),L(T(n),"inClientSpace",(function(t,e){t.forEach((function(t){t.save(),t.setTransform(d.a,d.b,d.c,d.d,d.e,d.f)}));try{e()}finally{t.forEach((function(t){return t.restore()}))}})),L(T(n),"drawImage",(function(){n.props.imgSrc&&(n.image=new Image,n.image.crossOrigin="anonymous",n.image.onload=n.redrawImage,n.image.src=n.props.imgSrc)})),L(T(n),"drawGrid",(function(t){if(!n.props.hideGrid){n.clearWindow(t);var e=25,r=n.coordSystem.canvasBounds,o=r.viewMin,i=r.viewMax,a=Math.floor(o.x/e-1)*e,s=Math.floor(o.y/e-1)*e,c=i.x+e,u=i.y+e;if(t.beginPath(),t.setLineDash([5,1]),t.setLineDash([]),t.strokeStyle=n.props.gridColor,t.lineWidth=n.props.gridLineWidth,!n.props.hideGridX){for(var l=a,f=n.props.gridSizeX;l<c;)l+=f,t.moveTo(l,s),t.lineTo(l,u);t.stroke()}if(!n.props.hideGridY){for(var p=s,d=n.props.gridSizeY;p<u;)p+=d,t.moveTo(a,p),t.lineTo(c,p);t.stroke()}}})),L(T(n),"drawInterface",(function(t,e,r){n.props.hideInterface||(n.clearWindow(t),t.beginPath(),t.fillStyle=n.props.brushColor,t.arc(r.x,r.y,n.props.brushRadius,0,2*Math.PI,!0),t.fill(),t.beginPath(),t.fillStyle=n.props.catenaryColor,t.arc(e.x,e.y,4,0,2*Math.PI,!0),t.fill(),n.lazy.isEnabled()&&(t.beginPath(),t.lineWidth=2,t.lineCap="round",t.setLineDash([2,4]),t.strokeStyle=n.props.catenaryColor,n.catenary.drawToCanvas(n.ctx.interface,r,e,n.chainLength),t.stroke()),t.beginPath(),t.fillStyle=n.props.catenaryColor,t.arc(r.x,r.y,2,0,2*Math.PI,!0),t.fill())})),n.canvas={},n.ctx={},n.catenary=new a.oT,n.points=[],n.lines=[],n.erasedLines=[],n.mouseHasMoved=!0,n.valuesChanged=!0,n.isDrawing=!1,n.isPressing=!1,n.deferRedrawOnViewChange=!1,n.interactionSM=new m,n.coordSystem=new h({scaleExtents:e.zoomExtents,documentSize:{width:e.canvasWidth,height:e.canvasHeight}}),n.coordSystem.attachViewChangeListener(n.applyView.bind(T(n))),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var c=r.prototype;return c.componentDidMount=function(){var t,e=this;this.lazy=new i.xv({radius:this.props.lazyRadius*window.devicePixelRatio,enabled:!0,initialPoint:{x:window.innerWidth/2,y:window.innerHeight/2}}),this.chainLength=this.props.lazyRadius*window.devicePixelRatio,this.canvasObserver=new s.Z((function(t,n){return e.handleCanvasResize(t,n)})),this.canvasObserver.observe(this.canvasContainer),this.drawImage(),this.loop(),window.setTimeout((function(){var t=window.innerWidth/2,n=window.innerHeight/2;e.lazy.update({x:t-e.chainLength/4,y:n},{both:!0}),e.lazy.update({x:t+e.chainLength/4,y:n},{both:!1}),e.mouseHasMoved=!0,e.valuesChanged=!0,e.clearExceptErasedLines(),e.props.saveData&&e.loadSaveData(e.props.saveData)}),100),this.canvas.interface&&this.canvas.interface.addEventListener("wheel",this.handleWheel,D?{passive:t}:t)},c.componentDidUpdate=function(t){t.lazyRadius!==this.props.lazyRadius&&(this.chainLength=this.props.lazyRadius*window.devicePixelRatio,this.lazy.setRadius(this.props.lazyRadius*window.devicePixelRatio)),t.saveData!==this.props.saveData&&this.loadSaveData(this.props.saveData),JSON.stringify(t)!==JSON.stringify(this.props)&&(this.valuesChanged=!0),this.coordSystem.scaleExtents=this.props.zoomExtents,this.props.enablePanAndZoom||this.coordSystem.resetView(),t.imgSrc!==this.props.imgSrc&&this.drawImage()},c.render=function(){var t=this;return o().createElement("div",{className:this.props.className,style:I({display:"block",background:this.props.backgroundColor,touchAction:"none",width:this.props.canvasWidth,height:this.props.canvasHeight},this.props.style),ref:function(e){e&&(t.canvasContainer=e)}},z.map((function(e){var n="interface"===e;return o().createElement("canvas",{key:e,ref:function(r){r&&(t.canvas[e]=r,t.ctx[e]=r.getContext("2d"),n&&(t.coordSystem.canvas=r))},style:I({},N),onMouseDown:n?t.handleDrawStart:void 0,onMouseMove:n?t.handleDrawMove:void 0,onMouseUp:n?t.handleDrawEnd:void 0,onMouseOut:n?t.handleDrawEnd:void 0,onTouchStart:n?t.handleDrawStart:void 0,onTouchMove:n?t.handleDrawMove:void 0,onTouchEnd:n?t.handleDrawEnd:void 0,onTouchCancel:n?t.handleDrawEnd:void 0})})))},r}(r.PureComponent);L(R,"defaultProps",{onChange:null,loadTimeOffset:5,lazyRadius:12,brushRadius:10,brushColor:"#444",catenaryColor:"#0a0302",gridColor:"rgba(150,150,150,0.17)",backgroundColor:"#FFF",hideGrid:!1,canvasWidth:400,canvasHeight:400,disabled:!1,imgSrc:"",saveData:"",immediateLoading:!1,hideInterface:!1,gridSizeX:25,gridSizeY:25,gridLineWidth:.5,hideGridX:!1,hideGridY:!1,enablePanAndZoom:!1,mouseZoomFactor:.01,zoomExtents:{min:.33,max:3},clampLinesToDocument:!1}),R.propTypes={}},28534:function(t,e,n){"use strict";var r=n(1024);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=!1;function a(t,e){return i&&(i=!1,"<"!==e[0]&&t.push("\x3c!-- --\x3e")),"\x3c!-- --\x3e"===e?i=!0:t.push(e)}var s=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},l={};function f(t){return!!s.call(l,t)||!s.call(u,t)&&(c.test(t)?l[t]=!0:(u[t]=!0,!1))}function p(t,e,n,r,o,i,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){d[t]=new p(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];d[e]=new p(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){d[t]=new p(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){d[t]=new p(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){d[t]=new p(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){d[t]=new p(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){d[t]=new p(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){d[t]=new p(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){d[t]=new p(t,5,!1,t.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function g(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(h,g);d[e]=new p(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(h,g);d[e]=new p(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(h,g);d[e]=new p(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){d[t]=new p(t,1,!1,t.toLowerCase(),null,!1,!1)})),d.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){d[t]=new p(t,1,!1,t.toLowerCase(),null,!0,!0)}));var y={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(y).forEach((function(t){m.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),y[e]=y[t]}))}));var v=/["'&<>]/;function b(t){if("boolean"==typeof t||"number"==typeof t)return""+t;t=""+t;var e=v.exec(t);if(e){var n,r="",o=0;for(n=e.index;n<t.length;n++){switch(t.charCodeAt(n)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#x27;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}o!==n&&(r+=t.substring(o,n)),o=n+1,r+=e}t=o!==n?r+t.substring(o,n):r}return t}var _=/([A-Z])/g,w=/^ms-/,S=Array.isArray;function x(t,e){return{insertionMode:t,selectedValue:e}}function M(t,e){""!==e&&t.push(b(e),"\x3c!-- --\x3e")}var E=new Map;function k(t,e,n){if("object"!=typeof n)throw Error(o(62));for(var r in e=!0,n)if(s.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var a=b(r);i=b((""+i).trim())}else{a=r;var c=E.get(a);void 0!==c||(c=b(a.replace(_,"-$1").toLowerCase().replace(w,"-ms-")),E.set(a,c)),a=c,i="number"==typeof i?0===i||s.call(y,r)?""+i:i+"px":b((""+i).trim())}e?(e=!1,t.push(' style="',a,":",i)):t.push(";",a,":",i)}}e||t.push('"')}function C(t,e,n,r){switch(n){case"style":return void k(t,e,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(e=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!e.acceptsBooleans)return}switch(n=e.attributeName,e.type){case 3:r&&t.push(" ",n,'=""');break;case 4:!0===r?t.push(" ",n,'=""'):!1!==r&&t.push(" ",n,'="',b(r),'"');break;case 5:isNaN(r)||t.push(" ",n,'="',b(r),'"');break;case 6:!isNaN(r)&&1<=r&&t.push(" ",n,'="',b(r),'"');break;default:e.sanitizeURL&&(r=""+r),t.push(" ",n,'="',b(r),'"')}}else if(f(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(e=n.toLowerCase().slice(0,5))&&"aria-"!==e)return}t.push(" ",n,'="',b(r),'"')}}function D(t,e,n){if(null!=e){if(null!=n)throw Error(o(60));if("object"!=typeof e||!("__html"in e))throw Error(o(61));null!=(e=e.__html)&&t.push(""+e)}}function j(t,e,n,r){t.push(T(n));var o,i=n=null;for(o in e)if(s.call(e,o)){var a=e[o];if(null!=a)switch(o){case"children":n=a;break;case"dangerouslySetInnerHTML":i=a;break;default:C(t,r,o,a)}}return t.push(">"),D(t,i,n),"string"==typeof n?(t.push(b(n)),null):n}var O=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,I=new Map;function T(t){var e=I.get(t);if(void 0===e){if(!O.test(t))throw Error(o(65,t));e="<"+t,I.set(t,e)}return e}function L(t,e,n){if(a(t,'\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return a(t,n),a(t,'"></template>')}var A=Object.assign,N=Symbol.for("react.element"),z=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),U=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),V=Symbol.for("react.scope"),Q=Symbol.for("react.debug_trace_mode"),Z=Symbol.for("react.legacy_hidden"),G=Symbol.for("react.default_value"),J=Symbol.iterator;function X(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case R:return"Fragment";case z:return"Portal";case B:return"Profiler";case P:return"StrictMode";case H:return"Suspense";case q:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case U:return(t.displayName||"Context")+".Consumer";case F:return(t._context.displayName||"Context")+".Provider";case K:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case W:return null!==(e=t.displayName||null)?e:X(t.type)||"Memo";case Y:e=t._payload,t=t._init;try{return X(t(e))}catch(t){}}return null}var $={};function tt(t,e){if(!(t=t.contextTypes))return $;var n,r={};for(n in t)r[n]=e[n];return r}var et=null;function nt(t,e){if(t!==e){t.context._currentValue2=t.parentValue,t=t.parent;var n=e.parent;if(null===t){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));nt(t,n)}e.context._currentValue2=e.value}}function rt(t){t.context._currentValue2=t.parentValue,null!==(t=t.parent)&&rt(t)}function ot(t){var e=t.parent;null!==e&&ot(e),t.context._currentValue2=t.value}function it(t,e){if(t.context._currentValue2=t.parentValue,null===(t=t.parent))throw Error(o(402));t.depth===e.depth?nt(t,e):it(t,e)}function at(t,e){var n=e.parent;if(null===n)throw Error(o(402));t.depth===n.depth?nt(t,n):at(t,n),e.context._currentValue2=e.value}function st(t){var e=et;e!==t&&(null===e?ot(t):null===t?rt(e):e.depth===t.depth?nt(e,t):e.depth>t.depth?it(e,t):at(e,t),et=t)}var ct={isMounted:function(){return!1},enqueueSetState:function(t,e){null!==(t=t._reactInternals).queue&&t.queue.push(e)},enqueueReplaceState:function(t,e){(t=t._reactInternals).replace=!0,t.queue=[e]},enqueueForceUpdate:function(){}};function ut(t,e,n,r){var o=void 0!==t.state?t.state:null;t.updater=ct,t.props=n,t.state=o;var i={queue:[],replace:!1};t._reactInternals=i;var a=e.contextType;if(t.context="object"==typeof a&&null!==a?a._currentValue2:r,"function"==typeof(a=e.getDerivedStateFromProps)&&(o=null==(a=a(n,o))?o:A({},o,a),t.state=o),"function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate&&("function"==typeof t.UNSAFE_componentWillMount||"function"==typeof t.componentWillMount))if(e=t.state,"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),e!==t.state&&ct.enqueueReplaceState(t,t.state,null),null!==i.queue&&0<i.queue.length)if(e=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&1===e.length)t.state=e[0];else{for(i=a?e[0]:t.state,o=!0,a=a?1:0;a<e.length;a++){var s=e[a];null!=(s="function"==typeof s?s.call(t,i,n,r):s)&&(o?(o=!1,i=A({},i,s)):A(i,s))}t.state=i}else i.queue=null}var lt={id:1,overflow:""};function ft(t,e,n){var r=t.id;t=t.overflow;var o=32-pt(r)-1;r&=~(1<<o),n+=1;var i=32-pt(e)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-pt(e)+o|n<<o|r,overflow:i+t}}return{id:1<<i|n<<o|r,overflow:t}}var pt=Math.clz32?Math.clz32:function(t){return 0==(t>>>=0)?32:31-(dt(t)/ht|0)|0},dt=Math.log,ht=Math.LN2,gt="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},yt=null,mt=null,vt=null,bt=null,_t=!1,wt=!1,St=0,xt=null,Mt=0;function Et(){if(null===yt)throw Error(o(321));return yt}function kt(){if(0<Mt)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Ct(){return null===bt?null===vt?(_t=!1,vt=bt=kt()):(_t=!0,bt=vt):null===bt.next?(_t=!1,bt=bt.next=kt()):(_t=!0,bt=bt.next),bt}function Dt(){mt=yt=null,wt=!1,vt=null,Mt=0,bt=xt=null}function jt(t,e){return"function"==typeof e?e(t):e}function Ot(t,e,n){if(yt=Et(),bt=Ct(),_t){var r=bt.queue;if(e=r.dispatch,null!==xt&&void 0!==(n=xt.get(r))){xt.delete(r),r=bt.memoizedState;do{r=t(r,n.action),n=n.next}while(null!==n);return bt.memoizedState=r,[r,e]}return[bt.memoizedState,e]}return t=t===jt?"function"==typeof e?e():e:void 0!==n?n(e):e,bt.memoizedState=t,t=(t=bt.queue={last:null,dispatch:null}).dispatch=Tt.bind(null,yt,t),[bt.memoizedState,t]}function It(t,e){if(yt=Et(),e=void 0===e?null:e,null!==(bt=Ct())){var n=bt.memoizedState;if(null!==n&&null!==e){var r=n[1];t:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<e.length;o++)if(!gt(e[o],r[o])){r=!1;break t}r=!0}if(r)return n[0]}}return t=t(),bt.memoizedState=[t,e],t}function Tt(t,e,n){if(25<=Mt)throw Error(o(301));if(t===yt)if(wt=!0,t={action:n,next:null},null===xt&&(xt=new Map),void 0===(n=xt.get(e)))xt.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}}function Lt(){throw Error(o(394))}function At(){}var Nt={readContext:function(t){return t._currentValue2},useContext:function(t){return Et(),t._currentValue2},useMemo:It,useReducer:Ot,useRef:function(t){yt=Et();var e=(bt=Ct()).memoizedState;return null===e?(t={current:t},bt.memoizedState=t):e},useState:function(t){return Ot(jt,t)},useInsertionEffect:At,useLayoutEffect:function(){},useCallback:function(t,e){return It((function(){return t}),e)},useImperativeHandle:At,useEffect:At,useDebugValue:At,useDeferredValue:function(t){return Et(),t},useTransition:function(){return Et(),[!1,Lt]},useId:function(){var t=mt.treeContext,e=t.overflow;t=((t=t.id)&~(1<<32-pt(t)-1)).toString(32)+e;var n=zt;if(null===n)throw Error(o(404));return e=St++,t=":"+n.idPrefix+"R"+t,0<e&&(t+="H"+e.toString(32)),t+":"},useMutableSource:function(t,e){return Et(),e(t._source)},useSyncExternalStore:function(t,e,n){if(void 0===n)throw Error(o(407));return n()}},zt=null,Rt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Pt(t){console.error(t)}function Bt(){}function Ft(t,e,n,r,o,i,a,s){t.allPendingTasks++,null===n?t.pendingRootTasks++:n.pendingTasks++;var c={node:e,ping:function(){var e=t.pingedTasks;e.push(c),1===e.length&&ee(t)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(c),c}function Ut(t,e,n,r){return{status:0,id:-1,index:e,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n}}function Kt(t,e){(t=t.onError)(e)}function Ht(t,e){var n=t.onShellError;n(e),(n=t.onFatalError)(e),null!==t.destination?(t.status=2,t.destination.destroy(e)):(t.status=1,t.fatalError=e)}function qt(t,e,n,r,o){for(yt={},mt=e,St=0,t=n(r,o);wt;)wt=!1,St=0,Mt+=1,bt=null,t=n(r,o);return Dt(),t}function Wt(t,e,n,r){var i=n.render(),a=r.childContextTypes;if(null!=a){var s=e.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var c in n=n.getChildContext())if(!(c in a))throw Error(o(108,X(r)||"Unknown",c));r=A({},s,n)}e.legacyContext=r,Qt(t,e,i),e.legacyContext=s}else Qt(t,e,i)}function Yt(t,e){if(t&&t.defaultProps){for(var n in e=A({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}function Vt(t,e,n,i,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=tt(n,e.legacyContext);var c=n.contextType;ut(c=new n(i,"object"==typeof c&&null!==c?c._currentValue2:a),n,i,a),Wt(t,e,c,n)}else{a=qt(t,e,n,i,c=tt(n,e.legacyContext));var u=0!==St;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)ut(a,n,i,c),Wt(t,e,a,n);else if(u){i=e.treeContext,e.treeContext=ft(i,1,0);try{Qt(t,e,a)}finally{e.treeContext=i}}else Qt(t,e,a)}else{if("string"!=typeof n){switch(n){case Z:case Q:case P:case B:case R:case q:return void Qt(t,e,i.children);case V:throw Error(o(343));case H:t:{n=e.blockedBoundary,a=e.blockedSegment,c=i.fallback,i=i.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:u=new Set},p=Ut(0,a.chunks.length,l,a.formatContext);a.children.push(p);var d=Ut(0,0,null,a.formatContext);d.parentFlushed=!0,e.blockedBoundary=l,e.blockedSegment=d;try{if(Gt(t,e,i),d.status=1,$t(l,d),0===l.pendingTasks)break t}catch(e){d.status=4,Kt(t,e),l.forceClientRender=!0}finally{e.blockedBoundary=n,e.blockedSegment=a}e=Ft(t,c,n,p,u,e.legacyContext,e.context,e.treeContext),t.pingedTasks.push(e)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case K:if(i=qt(t,e,n.render,i,a),0!==St){n=e.treeContext,e.treeContext=ft(n,1,0);try{Qt(t,e,i)}finally{e.treeContext=n}}else Qt(t,e,i);return;case W:return void Vt(t,e,n=n.type,i=Yt(n,i),a);case F:if(a=i.children,n=n._context,i=i.value,c=n._currentValue2,n._currentValue2=i,et=i={parent:u=et,depth:null===u?0:u.depth+1,context:n,parentValue:c,value:i},e.context=i,Qt(t,e,a),null===(t=et))throw Error(o(403));return i=t.parentValue,t.context._currentValue2=i===G?t.context._defaultValue:i,t=et=t.parent,void(e.context=t);case U:return void Qt(t,e,i=(i=i.children)(n._currentValue2));case Y:return void Vt(t,e,n=(a=n._init)(n._payload),i=Yt(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(c=function(t,e,n,i,a){switch(e){case"select":t.push(T("select"));var c=null,u=null;for(h in n)if(s.call(n,h)){var l=n[h];if(null!=l)switch(h){case"children":c=l;break;case"dangerouslySetInnerHTML":u=l;break;case"defaultValue":case"value":break;default:C(t,i,h,l)}}return t.push(">"),D(t,u,c),c;case"option":u=a.selectedValue,t.push(T("option"));var p=l=null,d=null,h=null;for(c in n)if(s.call(n,c)&&null!=(e=n[c]))switch(c){case"children":l=e;break;case"selected":d=e;break;case"dangerouslySetInnerHTML":h=e;break;case"value":p=e;default:C(t,i,c,e)}if(null!=u)if(n=null!==p?""+p:function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(l),S(u)){for(i=0;i<u.length;i++)if(""+u[i]===n){t.push(' selected=""');break}}else""+u===n&&t.push(' selected=""');else d&&t.push(' selected=""');return t.push(">"),D(t,h,l),l;case"textarea":for(l in t.push(T("textarea")),h=u=c=null,n)if(s.call(n,l)&&null!=(p=n[l]))switch(l){case"children":h=p;break;case"value":c=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:C(t,i,l,p)}if(null===c&&null!==u&&(c=u),t.push(">"),null!=h){if(null!=c)throw Error(o(92));if(S(h)&&1<h.length)throw Error(o(93));c=""+h}return"string"==typeof c&&"\n"===c[0]&&t.push("\n"),null!==c&&t.push(b(""+c)),null;case"input":for(u in t.push(T("input")),p=h=l=c=null,n)if(s.call(n,u)&&null!=(d=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":p=d;break;case"defaultValue":l=d;break;case"checked":h=d;break;case"value":c=d;break;default:C(t,i,u,d)}return null!==h?C(t,i,"checked",h):null!==p&&C(t,i,"checked",p),null!==c?C(t,i,"value",c):null!==l&&C(t,i,"value",l),t.push("/>"),null;case"menuitem":for(var g in t.push(T("menuitem")),n)if(s.call(n,g)&&null!=(c=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:C(t,i,g,c)}return t.push(">"),null;case"listing":case"pre":for(p in t.push(T(e)),u=c=null,n)if(s.call(n,p)&&null!=(l=n[p]))switch(p){case"children":c=l;break;case"dangerouslySetInnerHTML":u=l;break;default:C(t,i,p,l)}if(t.push(">"),null!=u){if(null!=c)throw Error(o(60));if("object"!=typeof u||!("__html"in u))throw Error(o(61));null!=(n=u.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?t.push("\n",n):t.push(""+n))}return"string"==typeof c&&"\n"===c[0]&&t.push("\n"),c;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in t.push(T(e)),n)if(s.call(n,y)&&null!=(c=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,e));default:C(t,i,y,c)}return t.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return j(t,n,e,i);case"html":return 0===a.insertionMode&&t.push("<!DOCTYPE html>"),j(t,n,e,i);default:if(-1===e.indexOf("-")&&"string"!=typeof n.is)return j(t,n,e,i);for(d in t.push(T(e)),u=c=null,n)if(s.call(n,d)&&null!=(l=n[d]))switch(d){case"children":c=l;break;case"dangerouslySetInnerHTML":u=l;break;case"style":k(t,i,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:f(d)&&"function"!=typeof l&&"symbol"!=typeof l&&t.push(" ",d,'="',b(l),'"')}return t.push(">"),D(t,u,c),c}}((a=e.blockedSegment).chunks,n,i,t.responseState,a.formatContext),u=a.formatContext,a.formatContext=function(t,e,n){switch(e){case"select":return x(1,null!=n.value?n.value:n.defaultValue);case"svg":return x(2,null);case"math":return x(3,null);case"foreignObject":return x(1,null);case"table":return x(4,null);case"thead":case"tbody":case"tfoot":return x(5,null);case"colgroup":return x(7,null);case"tr":return x(6,null)}return 4<=t.insertionMode||0===t.insertionMode?x(1,null):t}(u,n,i),Gt(t,e,c),a.formatContext=u,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.chunks.push("</",n,">")}}}function Qt(t,e,n){if(e.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case N:return void Vt(t,e,n.type,n.props,n.ref);case z:throw Error(o(257));case Y:var r=n._init;return void Qt(t,e,n=r(n._payload))}if(S(n))return void Zt(t,e,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=J&&n[J]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);Zt(t,e,i)}return}throw t=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===t?"object with keys {"+Object.keys(n).join(", ")+"}":t))}"string"==typeof n?(e=e.blockedSegment.chunks,t.responseState.generateStaticMarkup?e.push(b(n)):M(e,n)):"number"==typeof n&&(e=e.blockedSegment.chunks,n=""+n,t.responseState.generateStaticMarkup?e.push(b(n)):M(e,n))}function Zt(t,e,n){for(var r=n.length,o=0;o<r;o++){var i=e.treeContext;e.treeContext=ft(i,r,o);try{Gt(t,e,n[o])}finally{e.treeContext=i}}}function Gt(t,e,n){var r=e.blockedSegment.formatContext,o=e.legacyContext,i=e.context;try{return Qt(t,e,n)}catch(c){if(Dt(),"object"!=typeof c||null===c||"function"!=typeof c.then)throw e.blockedSegment.formatContext=r,e.legacyContext=o,e.context=i,st(i),c;n=c;var a=e.blockedSegment,s=Ut(0,a.chunks.length,null,a.formatContext);a.children.push(s),t=Ft(t,e.node,e.blockedBoundary,s,e.abortSet,e.legacyContext,e.context,e.treeContext).ping,n.then(t,t),e.blockedSegment.formatContext=r,e.legacyContext=o,e.context=i,st(i)}}function Jt(t){var e=t.blockedBoundary;(t=t.blockedSegment).status=3,te(this,e,t)}function Xt(t){var e=t.blockedBoundary;t.blockedSegment.status=3,null===e?(this.allPendingTasks--,2!==this.status&&(this.status=2,null!==this.destination&&this.destination.push(null))):(e.pendingTasks--,e.forceClientRender||(e.forceClientRender=!0,e.parentFlushed&&this.clientRenderedBoundaries.push(e)),e.fallbackAbortableTasks.forEach(Xt,this),e.fallbackAbortableTasks.clear(),this.allPendingTasks--,0===this.allPendingTasks&&(t=this.onAllReady)())}function $t(t,e){if(0===e.chunks.length&&1===e.children.length&&null===e.children[0].boundary){var n=e.children[0];n.id=e.id,n.parentFlushed=!0,1===n.status&&$t(t,n)}else t.completedSegments.push(e)}function te(t,e,n){if(null===e){if(n.parentFlushed){if(null!==t.completedRootSegment)throw Error(o(389));t.completedRootSegment=n}t.pendingRootTasks--,0===t.pendingRootTasks&&(t.onShellError=Bt,(e=t.onShellReady)())}else e.pendingTasks--,e.forceClientRender||(0===e.pendingTasks?(n.parentFlushed&&1===n.status&&$t(e,n),e.parentFlushed&&t.completedBoundaries.push(e),e.fallbackAbortableTasks.forEach(Jt,t),e.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&($t(e,n),1===e.completedSegments.length&&e.parentFlushed&&t.partialBoundaries.push(e)));t.allPendingTasks--,0===t.allPendingTasks&&(t=t.onAllReady)()}function ee(t){if(2!==t.status){var e=et,n=Rt.current;Rt.current=Nt;var r=zt;zt=t.responseState;try{var o,i=t.pingedTasks;for(o=0;o<i.length;o++){var a=i[o],s=t,c=a.blockedSegment;if(0===c.status){st(a.context);try{Qt(s,a,a.node),a.abortSet.delete(a),c.status=1,te(s,a.blockedBoundary,c)}catch(t){if(Dt(),"object"==typeof t&&null!==t&&"function"==typeof t.then){var u=a.ping;t.then(u,u)}else{a.abortSet.delete(a),c.status=4;var l=a.blockedBoundary,f=t;Kt(s,f),null===l?Ht(s,f):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.parentFlushed&&s.clientRenderedBoundaries.push(l))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}i.splice(0,o),null!==t.destination&&se(t,t.destination)}catch(e){Kt(t,e),Ht(t,e)}finally{zt=r,Rt.current=n,n===Nt&&st(e)}}}function ne(t,e,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=t.nextSegmentId++;return t=t.responseState,a(e,'<template id="'),a(e,t.placeholderPrefix),a(e,t=r.toString(16)),a(e,'"></template>');case 1:n.status=2;var i=!0;r=n.chunks;var s=0;n=n.children;for(var c=0;c<n.length;c++){for(i=n[c];s<i.index;s++)a(e,r[s]);i=re(t,e,i)}for(;s<r.length-1;s++)a(e,r[s]);return s<r.length&&(i=a(e,r[s])),i;default:throw Error(o(390))}}function re(t,e,n){var r=n.boundary;if(null===r)return ne(t,e,n);if(r.parentFlushed=!0,r.forceClientRender)return t.responseState.generateStaticMarkup||a(e,"\x3c!--$!--\x3e"),ne(t,e,n),!!t.responseState.generateStaticMarkup||a(e,"\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=t.nextSegmentId++,0<r.completedSegments.length&&t.partialBoundaries.push(r);var i=t.responseState,s=i.nextSuspenseID++;return i=i.boundaryPrefix+s.toString(16),r=r.id=i,L(e,t.responseState,r),ne(t,e,n),a(e,"\x3c!--/$--\x3e")}if(r.byteSize>t.progressiveChunkSize)return r.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(r),L(e,t.responseState,r.id),ne(t,e,n),a(e,"\x3c!--/$--\x3e");if(t.responseState.generateStaticMarkup||a(e,"\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return re(t,e,n[0]),!!t.responseState.generateStaticMarkup||a(e,"\x3c!--/$--\x3e")}function oe(t,e,n){return function(t,e,n,r){switch(n.insertionMode){case 0:case 1:return a(t,'<div hidden id="'),a(t,e.segmentPrefix),a(t,e=r.toString(16)),a(t,'">');case 2:return a(t,'<svg aria-hidden="true" style="display:none" id="'),a(t,e.segmentPrefix),a(t,e=r.toString(16)),a(t,'">');case 3:return a(t,'<math aria-hidden="true" style="display:none" id="'),a(t,e.segmentPrefix),a(t,e=r.toString(16)),a(t,'">');case 4:return a(t,'<table hidden id="'),a(t,e.segmentPrefix),a(t,e=r.toString(16)),a(t,'">');case 5:return a(t,'<table hidden><tbody id="'),a(t,e.segmentPrefix),a(t,e=r.toString(16)),a(t,'">');case 6:return a(t,'<table hidden><tr id="'),a(t,e.segmentPrefix),a(t,e=r.toString(16)),a(t,'">');case 7:return a(t,'<table hidden><colgroup id="'),a(t,e.segmentPrefix),a(t,e=r.toString(16)),a(t,'">');default:throw Error(o(397))}}(e,t.responseState,n.formatContext,n.id),re(t,e,n),function(t,e){switch(e.insertionMode){case 0:case 1:return a(t,"</div>");case 2:return a(t,"</svg>");case 3:return a(t,"</math>");case 4:return a(t,"</table>");case 5:return a(t,"</tbody></table>");case 6:return a(t,"</tr></table>");case 7:return a(t,"</colgroup></table>");default:throw Error(o(397))}}(e,n.formatContext)}function ie(t,e,n){for(var r=n.completedSegments,i=0;i<r.length;i++)ae(t,e,n,r[i]);if(r.length=0,t=t.responseState,r=n.id,n=n.rootSegmentID,a(e,t.startInlineScript),t.sentCompleteBoundaryFunction?a(e,'$RC("'):(t.sentCompleteBoundaryFunction=!0,a(e,'function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),a(e,r),a(e,'","'),a(e,t.segmentPrefix),a(e,n),a(e,'")<\/script>')}function ae(t,e,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return oe(t,e,r)}return oe(t,e,r),a(e,(t=t.responseState).startInlineScript),t.sentCompleteSegmentFunction?a(e,'$RS("'):(t.sentCompleteSegmentFunction=!0,a(e,'function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),a(e,t.segmentPrefix),a(e,i=i.toString(16)),a(e,'","'),a(e,t.placeholderPrefix),a(e,i),a(e,'")<\/script>')}function se(t,e){try{var n=t.completedRootSegment;if(null!==n&&0===t.pendingRootTasks){re(t,e,n),t.completedRootSegment=null;var r=t.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)a(e,r[n]);n<r.length&&a(e,r[n])}var i,s=t.clientRenderedBoundaries;for(i=0;i<s.length;i++){r=e;var c=t.responseState,u=s[i].id;if(a(r,c.startInlineScript),c.sentClientRenderFunction?a(r,'$RX("'):(c.sentClientRenderFunction=!0,a(r,'function $RX(a){if(a=document.getElementById(a))a=a.previousSibling,a.data="$!",a._reactRetry&&a._reactRetry()};$RX("')),null===u)throw Error(o(395));if(a(r,u),!a(r,'")<\/script>'))return t.destination=null,i++,void s.splice(0,i)}s.splice(0,i);var l=t.completedBoundaries;for(i=0;i<l.length;i++)if(!ie(t,e,l[i]))return t.destination=null,i++,void l.splice(0,i);l.splice(0,i);var f=t.partialBoundaries;for(i=0;i<f.length;i++){var p=f[i];t:{s=t,c=e;var d=p.completedSegments;for(u=0;u<d.length;u++)if(!ae(s,c,p,d[u])){u++,d.splice(0,u);var h=!1;break t}d.splice(0,u),h=!0}if(!h)return t.destination=null,i++,void f.splice(0,i)}f.splice(0,i);var g=t.completedBoundaries;for(i=0;i<g.length;i++)if(!ie(t,e,g[i]))return t.destination=null,i++,void g.splice(0,i);g.splice(0,i)}finally{0===t.allPendingTasks&&0===t.pingedTasks.length&&0===t.clientRenderedBoundaries.length&&0===t.completedBoundaries.length&&e.push(null)}}function ce(){}function ue(t,e,n){var r=!1,i=null,a="",s={push:function(t){return null!==t&&(a+=t),!0},destroy:function(t){r=!0,i=t}},c=!1;if(t=function(t,e,n,r,o,i,a){var s=[],c=new Set;return(n=Ut(e={destination:null,responseState:e,progressiveChunkSize:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:s,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Pt:o,onAllReady:Bt,onShellReady:void 0===a?Bt:a,onShellError:Bt,onFatalError:Bt},0,null,n)).parentFlushed=!0,t=Ft(e,t,null,n,c,$,null,lt),s.push(t),e}(t,function(t,e){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(e=void 0===e?"":e)+"P:",segmentPrefix:e+"S:",boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:t}}(n,e?e.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ce,0,(function(){c=!0})),ee(t),function(t){try{var e=t.abortableTasks;e.forEach(Xt,t),e.clear(),null!==t.destination&&se(t,t.destination)}catch(e){Kt(t,e),Ht(t,e)}}(t),1===t.status)t.status=2,s.destroy(t.fatalError);else if(2!==t.status&&null===t.destination){t.destination=s;try{se(t,s)}catch(e){Kt(t,e),Ht(t,e)}}if(r)throw i;if(!c)throw Error(o(426));return a}e.renderToNodeStream=function(){throw Error(o(207))},e.renderToStaticMarkup=function(t,e){return ue(t,e,!0)},e.renderToStaticNodeStream=function(){throw Error(o(208))},e.renderToString=function(t,e){return ue(t,e,!1)},e.version="18.1.0"},67392:function(t,e,n){"use strict";var r=n(1024);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=null,a=0;function s(t,e){if(0!==e.length)if(512<e.length)0<a&&(t.enqueue(new Uint8Array(i.buffer,0,a)),i=new Uint8Array(512),a=0),t.enqueue(e);else{var n=i.length-a;n<e.length&&(0===n?t.enqueue(i):(i.set(e.subarray(0,n),a),t.enqueue(i),e=e.subarray(n)),i=new Uint8Array(512),a=0),i.set(e,a),a+=e.length}}function c(t,e){return s(t,e),!0}function u(t){i&&0<a&&(t.enqueue(new Uint8Array(i.buffer,0,a)),i=null,a=0)}var l=new TextEncoder;function f(t){return l.encode(t)}function p(t){return l.encode(t)}function d(t,e){"function"==typeof t.error?t.error(e):t.close()}var h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},m={};function v(t){return!!h.call(m,t)||!h.call(y,t)&&(g.test(t)?m[t]=!0:(y[t]=!0,!1))}function b(t,e,n,r,o,i,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){_[t]=new b(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];_[e]=new b(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){_[t]=new b(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){_[t]=new b(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){_[t]=new b(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){_[t]=new b(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){_[t]=new b(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){_[t]=new b(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){_[t]=new b(t,5,!1,t.toLowerCase(),null,!1,!1)}));var w=/[\-:]([a-z])/g;function S(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(w,S);_[e]=new b(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(w,S);_[e]=new b(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(w,S);_[e]=new b(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){_[t]=new b(t,1,!1,t.toLowerCase(),null,!1,!1)})),_.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){_[t]=new b(t,1,!1,t.toLowerCase(),null,!0,!0)}));var x={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},M=["Webkit","ms","Moz","O"];Object.keys(x).forEach((function(t){M.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),x[e]=x[t]}))}));var E=/["'&<>]/;function k(t){if("boolean"==typeof t||"number"==typeof t)return""+t;t=""+t;var e=E.exec(t);if(e){var n,r="",o=0;for(n=e.index;n<t.length;n++){switch(t.charCodeAt(n)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#x27;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}o!==n&&(r+=t.substring(o,n)),o=n+1,r+=e}t=o!==n?r+t.substring(o,n):r}return t}var C=/([A-Z])/g,D=/^ms-/,j=Array.isArray,O=p("<script>"),I=p("<\/script>"),T=p('<script src="'),L=p('<script type="module" src="'),A=p('" async=""><\/script>'),N=/(<\/|<)(s)(cript)/gi;function z(t,e,n,r){return e+("s"===n?"\\u0073":"\\u0053")+r}function R(t,e){return{insertionMode:t,selectedValue:e}}var P=p("\x3c!-- --\x3e"),B=new Map,F=p(' style="'),U=p(":"),K=p(";");function H(t,e,n){if("object"!=typeof n)throw Error(o(62));for(var r in e=!0,n)if(h.call(n,r)){var i=n[r];if(null!=i&&"boolean"!=typeof i&&""!==i){if(0===r.indexOf("--")){var a=f(k(r));i=f(k((""+i).trim()))}else{a=r;var s=B.get(a);void 0!==s||(s=p(k(a.replace(C,"-$1").toLowerCase().replace(D,"-ms-"))),B.set(a,s)),a=s,i="number"==typeof i?0===i||h.call(x,r)?f(""+i):f(i+"px"):f(k((""+i).trim()))}e?(e=!1,t.push(F,a,U,i)):t.push(K,a,U,i)}}e||t.push(Y)}var q=p(" "),W=p('="'),Y=p('"'),V=p('=""');function Q(t,e,n,r){switch(n){case"style":return void H(t,e,r);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(e=_.hasOwnProperty(n)?_[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!e.acceptsBooleans)return}switch(n=f(e.attributeName),e.type){case 3:r&&t.push(q,n,V);break;case 4:!0===r?t.push(q,n,V):!1!==r&&t.push(q,n,W,f(k(r)),Y);break;case 5:isNaN(r)||t.push(q,n,W,f(k(r)),Y);break;case 6:!isNaN(r)&&1<=r&&t.push(q,n,W,f(k(r)),Y);break;default:e.sanitizeURL&&(r=""+r),t.push(q,n,W,f(k(r)),Y)}}else if(v(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(e=n.toLowerCase().slice(0,5))&&"aria-"!==e)return}t.push(q,f(n),W,f(k(r)),Y)}}var Z=p(">"),G=p("/>");function J(t,e,n){if(null!=e){if(null!=n)throw Error(o(60));if("object"!=typeof e||!("__html"in e))throw Error(o(61));null!=(e=e.__html)&&t.push(f(""+e))}}var X=p(' selected=""');function $(t,e,n,r){t.push(rt(n));var o,i=n=null;for(o in e)if(h.call(e,o)){var a=e[o];if(null!=a)switch(o){case"children":n=a;break;case"dangerouslySetInnerHTML":i=a;break;default:Q(t,r,o,a)}}return t.push(Z),J(t,i,n),"string"==typeof n?(t.push(f(k(n))),null):n}var tt=p("\n"),et=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,nt=new Map;function rt(t){var e=nt.get(t);if(void 0===e){if(!et.test(t))throw Error(o(65,t));e=p("<"+t),nt.set(t,e)}return e}var ot=p("<!DOCTYPE html>");var it=p("</"),at=p(">"),st=p('<template id="'),ct=p('"></template>'),ut=p("\x3c!--$--\x3e"),lt=p('\x3c!--$?--\x3e<template id="'),ft=p('"></template>'),pt=p("\x3c!--$!--\x3e"),dt=p("\x3c!--/$--\x3e");function ht(t,e,n){if(s(t,lt),null===n)throw Error(o(395));return s(t,n),c(t,ft)}var gt=p('<div hidden id="'),yt=p('">'),mt=p("</div>"),vt=p('<svg aria-hidden="true" style="display:none" id="'),bt=p('">'),_t=p("</svg>"),wt=p('<math aria-hidden="true" style="display:none" id="'),St=p('">'),xt=p("</math>"),Mt=p('<table hidden id="'),Et=p('">'),kt=p("</table>"),Ct=p('<table hidden><tbody id="'),Dt=p('">'),jt=p("</tbody></table>"),Ot=p('<table hidden><tr id="'),It=p('">'),Tt=p("</tr></table>"),Lt=p('<table hidden><colgroup id="'),At=p('">'),Nt=p("</colgroup></table>"),zt=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Rt=p('$RS("'),Pt=p('","'),Bt=p('")<\/script>'),Ft=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ut=p('$RC("'),Kt=p('","'),Ht=p('")<\/script>'),qt=p('function $RX(a){if(a=document.getElementById(a))a=a.previousSibling,a.data="$!",a._reactRetry&&a._reactRetry()};$RX("'),Wt=p('$RX("'),Yt=p('")<\/script>'),Vt=Object.assign,Qt=Symbol.for("react.element"),Zt=Symbol.for("react.portal"),Gt=Symbol.for("react.fragment"),Jt=Symbol.for("react.strict_mode"),Xt=Symbol.for("react.profiler"),$t=Symbol.for("react.provider"),te=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ae=Symbol.for("react.scope"),se=Symbol.for("react.debug_trace_mode"),ce=Symbol.for("react.legacy_hidden"),ue=Symbol.for("react.default_value"),le=Symbol.iterator;function fe(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case Gt:return"Fragment";case Zt:return"Portal";case Xt:return"Profiler";case Jt:return"StrictMode";case ne:return"Suspense";case re:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case te:return(t.displayName||"Context")+".Consumer";case $t:return(t._context.displayName||"Context")+".Provider";case ee:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case oe:return null!==(e=t.displayName||null)?e:fe(t.type)||"Memo";case ie:e=t._payload,t=t._init;try{return fe(t(e))}catch(t){}}return null}var pe={};function de(t,e){if(!(t=t.contextTypes))return pe;var n,r={};for(n in t)r[n]=e[n];return r}var he=null;function ge(t,e){if(t!==e){t.context._currentValue=t.parentValue,t=t.parent;var n=e.parent;if(null===t){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));ge(t,n)}e.context._currentValue=e.value}}function ye(t){t.context._currentValue=t.parentValue,null!==(t=t.parent)&&ye(t)}function me(t){var e=t.parent;null!==e&&me(e),t.context._currentValue=t.value}function ve(t,e){if(t.context._currentValue=t.parentValue,null===(t=t.parent))throw Error(o(402));t.depth===e.depth?ge(t,e):ve(t,e)}function be(t,e){var n=e.parent;if(null===n)throw Error(o(402));t.depth===n.depth?ge(t,n):be(t,n),e.context._currentValue=e.value}function _e(t){var e=he;e!==t&&(null===e?me(t):null===t?ye(e):e.depth===t.depth?ge(e,t):e.depth>t.depth?ve(e,t):be(e,t),he=t)}var we={isMounted:function(){return!1},enqueueSetState:function(t,e){null!==(t=t._reactInternals).queue&&t.queue.push(e)},enqueueReplaceState:function(t,e){(t=t._reactInternals).replace=!0,t.queue=[e]},enqueueForceUpdate:function(){}};function Se(t,e,n,r){var o=void 0!==t.state?t.state:null;t.updater=we,t.props=n,t.state=o;var i={queue:[],replace:!1};t._reactInternals=i;var a=e.contextType;if(t.context="object"==typeof a&&null!==a?a._currentValue:r,"function"==typeof(a=e.getDerivedStateFromProps)&&(o=null==(a=a(n,o))?o:Vt({},o,a),t.state=o),"function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate&&("function"==typeof t.UNSAFE_componentWillMount||"function"==typeof t.componentWillMount))if(e=t.state,"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),e!==t.state&&we.enqueueReplaceState(t,t.state,null),null!==i.queue&&0<i.queue.length)if(e=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&1===e.length)t.state=e[0];else{for(i=a?e[0]:t.state,o=!0,a=a?1:0;a<e.length;a++){var s=e[a];null!=(s="function"==typeof s?s.call(t,i,n,r):s)&&(o?(o=!1,i=Vt({},i,s)):Vt(i,s))}t.state=i}else i.queue=null}var xe={id:1,overflow:""};function Me(t,e,n){var r=t.id;t=t.overflow;var o=32-Ee(r)-1;r&=~(1<<o),n+=1;var i=32-Ee(e)+o;if(30<i){var a=o-o%5;return i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,{id:1<<32-Ee(e)+o|n<<o|r,overflow:i+t}}return{id:1<<i|n<<o|r,overflow:t}}var Ee=Math.clz32?Math.clz32:function(t){return 0==(t>>>=0)?32:31-(ke(t)/Ce|0)|0},ke=Math.log,Ce=Math.LN2,De="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},je=null,Oe=null,Ie=null,Te=null,Le=!1,Ae=!1,Ne=0,ze=null,Re=0;function Pe(){if(null===je)throw Error(o(321));return je}function Be(){if(0<Re)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Fe(){return null===Te?null===Ie?(Le=!1,Ie=Te=Be()):(Le=!0,Te=Ie):null===Te.next?(Le=!1,Te=Te.next=Be()):(Le=!0,Te=Te.next),Te}function Ue(){Oe=je=null,Ae=!1,Ie=null,Re=0,Te=ze=null}function Ke(t,e){return"function"==typeof e?e(t):e}function He(t,e,n){if(je=Pe(),Te=Fe(),Le){var r=Te.queue;if(e=r.dispatch,null!==ze&&void 0!==(n=ze.get(r))){ze.delete(r),r=Te.memoizedState;do{r=t(r,n.action),n=n.next}while(null!==n);return Te.memoizedState=r,[r,e]}return[Te.memoizedState,e]}return t=t===Ke?"function"==typeof e?e():e:void 0!==n?n(e):e,Te.memoizedState=t,t=(t=Te.queue={last:null,dispatch:null}).dispatch=We.bind(null,je,t),[Te.memoizedState,t]}function qe(t,e){if(je=Pe(),e=void 0===e?null:e,null!==(Te=Fe())){var n=Te.memoizedState;if(null!==n&&null!==e){var r=n[1];t:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<e.length;o++)if(!De(e[o],r[o])){r=!1;break t}r=!0}if(r)return n[0]}}return t=t(),Te.memoizedState=[t,e],t}function We(t,e,n){if(25<=Re)throw Error(o(301));if(t===je)if(Ae=!0,t={action:n,next:null},null===ze&&(ze=new Map),void 0===(n=ze.get(e)))ze.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}}function Ye(){throw Error(o(394))}function Ve(){}var Qe={readContext:function(t){return t._currentValue},useContext:function(t){return Pe(),t._currentValue},useMemo:qe,useReducer:He,useRef:function(t){je=Pe();var e=(Te=Fe()).memoizedState;return null===e?(t={current:t},Te.memoizedState=t):e},useState:function(t){return He(Ke,t)},useInsertionEffect:Ve,useLayoutEffect:function(){},useCallback:function(t,e){return qe((function(){return t}),e)},useImperativeHandle:Ve,useEffect:Ve,useDebugValue:Ve,useDeferredValue:function(t){return Pe(),t},useTransition:function(){return Pe(),[!1,Ye]},useId:function(){var t=Oe.treeContext,e=t.overflow;t=((t=t.id)&~(1<<32-Ee(t)-1)).toString(32)+e;var n=Ze;if(null===n)throw Error(o(404));return e=Ne++,t=":"+n.idPrefix+"R"+t,0<e&&(t+="H"+e.toString(32)),t+":"},useMutableSource:function(t,e){return Pe(),e(t._source)},useSyncExternalStore:function(t,e,n){if(void 0===n)throw Error(o(407));return n()}},Ze=null,Ge=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Je(t){console.error(t)}function Xe(){}function $e(t,e,n,r,o,i,a,s){t.allPendingTasks++,null===n?t.pendingRootTasks++:n.pendingTasks++;var c={node:e,ping:function(){var e=t.pingedTasks;e.push(c),1===e.length&&gn(t)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(c),c}function tn(t,e,n,r){return{status:0,id:-1,index:e,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n}}function en(t,e){(t=t.onError)(e)}function nn(t,e){var n=t.onShellError;n(e),(n=t.onFatalError)(e),null!==t.destination?(t.status=2,d(t.destination,e)):(t.status=1,t.fatalError=e)}function rn(t,e,n,r,o){for(je={},Oe=e,Ne=0,t=n(r,o);Ae;)Ae=!1,Ne=0,Re+=1,Te=null,t=n(r,o);return Ue(),t}function on(t,e,n,r){var i=n.render(),a=r.childContextTypes;if(null!=a){var s=e.legacyContext;if("function"!=typeof n.getChildContext)r=s;else{for(var c in n=n.getChildContext())if(!(c in a))throw Error(o(108,fe(r)||"Unknown",c));r=Vt({},s,n)}e.legacyContext=r,cn(t,e,i),e.legacyContext=s}else cn(t,e,i)}function an(t,e){if(t&&t.defaultProps){for(var n in e=Vt({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}function sn(t,e,n,i,a){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){a=de(n,e.legacyContext);var s=n.contextType;Se(s=new n(i,"object"==typeof s&&null!==s?s._currentValue:a),n,i,a),on(t,e,s,n)}else{a=rn(t,e,n,i,s=de(n,e.legacyContext));var c=0!==Ne;if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof)Se(a,n,i,s),on(t,e,a,n);else if(c){i=e.treeContext,e.treeContext=Me(i,1,0);try{cn(t,e,a)}finally{e.treeContext=i}}else cn(t,e,a)}else{if("string"!=typeof n){switch(n){case ce:case se:case Jt:case Xt:case Gt:case re:return void cn(t,e,i.children);case ae:throw Error(o(343));case ne:t:{n=e.blockedBoundary,a=e.blockedSegment,s=i.fallback,i=i.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:c=new Set},l=tn(0,a.chunks.length,u,a.formatContext);a.children.push(l);var p=tn(0,0,null,a.formatContext);p.parentFlushed=!0,e.blockedBoundary=u,e.blockedSegment=p;try{if(ln(t,e,i),p.status=1,dn(u,p),0===u.pendingTasks)break t}catch(e){p.status=4,en(t,e),u.forceClientRender=!0}finally{e.blockedBoundary=n,e.blockedSegment=a}e=$e(t,s,n,l,c,e.legacyContext,e.context,e.treeContext),t.pingedTasks.push(e)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ee:if(i=rn(t,e,n.render,i,a),0!==Ne){n=e.treeContext,e.treeContext=Me(n,1,0);try{cn(t,e,i)}finally{e.treeContext=n}}else cn(t,e,i);return;case oe:return void sn(t,e,n=n.type,i=an(n,i),a);case $t:if(a=i.children,n=n._context,i=i.value,s=n._currentValue,n._currentValue=i,he=i={parent:c=he,depth:null===c?0:c.depth+1,context:n,parentValue:s,value:i},e.context=i,cn(t,e,a),null===(t=he))throw Error(o(403));return i=t.parentValue,t.context._currentValue=i===ue?t.context._defaultValue:i,t=he=t.parent,void(e.context=t);case te:return void cn(t,e,i=(i=i.children)(n._currentValue));case ie:return void sn(t,e,n=(a=n._init)(n._payload),i=an(n,i),void 0)}throw Error(o(130,null==n?n:typeof n,""))}switch(s=function(t,e,n,i,a){switch(e){case"select":t.push(rt("select"));var s=null,c=null;for(d in n)if(h.call(n,d)){var u=n[d];if(null!=u)switch(d){case"children":s=u;break;case"dangerouslySetInnerHTML":c=u;break;case"defaultValue":case"value":break;default:Q(t,i,d,u)}}return t.push(Z),J(t,c,s),s;case"option":c=a.selectedValue,t.push(rt("option"));var l=u=null,p=null,d=null;for(s in n)if(h.call(n,s)&&null!=(e=n[s]))switch(s){case"children":u=e;break;case"selected":p=e;break;case"dangerouslySetInnerHTML":d=e;break;case"value":l=e;default:Q(t,i,s,e)}if(null!=c)if(n=null!==l?""+l:function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(u),j(c)){for(i=0;i<c.length;i++)if(""+c[i]===n){t.push(X);break}}else""+c===n&&t.push(X);else p&&t.push(X);return t.push(Z),J(t,d,u),u;case"textarea":for(u in t.push(rt("textarea")),d=c=s=null,n)if(h.call(n,u)&&null!=(l=n[u]))switch(u){case"children":d=l;break;case"value":s=l;break;case"defaultValue":c=l;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:Q(t,i,u,l)}if(null===s&&null!==c&&(s=c),t.push(Z),null!=d){if(null!=s)throw Error(o(92));if(j(d)&&1<d.length)throw Error(o(93));s=""+d}return"string"==typeof s&&"\n"===s[0]&&t.push(tt),null!==s&&t.push(f(k(""+s))),null;case"input":for(c in t.push(rt("input")),l=d=u=s=null,n)if(h.call(n,c)&&null!=(p=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":l=p;break;case"defaultValue":u=p;break;case"checked":d=p;break;case"value":s=p;break;default:Q(t,i,c,p)}return null!==d?Q(t,i,"checked",d):null!==l&&Q(t,i,"checked",l),null!==s?Q(t,i,"value",s):null!==u&&Q(t,i,"value",u),t.push(G),null;case"menuitem":for(var g in t.push(rt("menuitem")),n)if(h.call(n,g)&&null!=(s=n[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:Q(t,i,g,s)}return t.push(Z),null;case"listing":case"pre":for(l in t.push(rt(e)),c=s=null,n)if(h.call(n,l)&&null!=(u=n[l]))switch(l){case"children":s=u;break;case"dangerouslySetInnerHTML":c=u;break;default:Q(t,i,l,u)}if(t.push(Z),null!=c){if(null!=s)throw Error(o(60));if("object"!=typeof c||!("__html"in c))throw Error(o(61));null!=(n=c.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?t.push(tt,f(n)):t.push(f(""+n)))}return"string"==typeof s&&"\n"===s[0]&&t.push(tt),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in t.push(rt(e)),n)if(h.call(n,y)&&null!=(s=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,e));default:Q(t,i,y,s)}return t.push(G),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $(t,n,e,i);case"html":return 0===a.insertionMode&&t.push(ot),$(t,n,e,i);default:if(-1===e.indexOf("-")&&"string"!=typeof n.is)return $(t,n,e,i);for(p in t.push(rt(e)),c=s=null,n)if(h.call(n,p)&&null!=(u=n[p]))switch(p){case"children":s=u;break;case"dangerouslySetInnerHTML":c=u;break;case"style":H(t,i,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(p)&&"function"!=typeof u&&"symbol"!=typeof u&&t.push(q,f(p),W,f(k(u)),Y)}return t.push(Z),J(t,c,s),s}}((a=e.blockedSegment).chunks,n,i,t.responseState,a.formatContext),c=a.formatContext,a.formatContext=function(t,e,n){switch(e){case"select":return R(1,null!=n.value?n.value:n.defaultValue);case"svg":return R(2,null);case"math":return R(3,null);case"foreignObject":return R(1,null);case"table":return R(4,null);case"thead":case"tbody":case"tfoot":return R(5,null);case"colgroup":return R(7,null);case"tr":return R(6,null)}return 4<=t.insertionMode||0===t.insertionMode?R(1,null):t}(c,n,i),ln(t,e,s),a.formatContext=c,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:a.chunks.push(it,f(n),at)}}}function cn(t,e,n){if(e.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case Qt:return void sn(t,e,n.type,n.props,n.ref);case Zt:throw Error(o(257));case ie:var r=n._init;return void cn(t,e,n=r(n._payload))}if(j(n))return void un(t,e,n);if((r=null===n||"object"!=typeof n?null:"function"==typeof(r=le&&n[le]||n["@@iterator"])?r:null)&&(r=r.call(n))){if(!(n=r.next()).done){var i=[];do{i.push(n.value),n=r.next()}while(!n.done);un(t,e,i)}return}throw e=Object.prototype.toString.call(n),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?""!==n&&e.blockedSegment.chunks.push(f(k(n)),P):"number"==typeof n&&""!=(t=""+n)&&e.blockedSegment.chunks.push(f(k(t)),P)}function un(t,e,n){for(var r=n.length,o=0;o<r;o++){var i=e.treeContext;e.treeContext=Me(i,r,o);try{ln(t,e,n[o])}finally{e.treeContext=i}}}function ln(t,e,n){var r=e.blockedSegment.formatContext,o=e.legacyContext,i=e.context;try{return cn(t,e,n)}catch(c){if(Ue(),"object"!=typeof c||null===c||"function"!=typeof c.then)throw e.blockedSegment.formatContext=r,e.legacyContext=o,e.context=i,_e(i),c;n=c;var a=e.blockedSegment,s=tn(0,a.chunks.length,null,a.formatContext);a.children.push(s),t=$e(t,e.node,e.blockedBoundary,s,e.abortSet,e.legacyContext,e.context,e.treeContext).ping,n.then(t,t),e.blockedSegment.formatContext=r,e.legacyContext=o,e.context=i,_e(i)}}function fn(t){var e=t.blockedBoundary;(t=t.blockedSegment).status=3,hn(this,e,t)}function pn(t){var e=t.blockedBoundary;t.blockedSegment.status=3,null===e?(this.allPendingTasks--,2!==this.status&&(this.status=2,null!==this.destination&&this.destination.close())):(e.pendingTasks--,e.forceClientRender||(e.forceClientRender=!0,e.parentFlushed&&this.clientRenderedBoundaries.push(e)),e.fallbackAbortableTasks.forEach(pn,this),e.fallbackAbortableTasks.clear(),this.allPendingTasks--,0===this.allPendingTasks&&(t=this.onAllReady)())}function dn(t,e){if(0===e.chunks.length&&1===e.children.length&&null===e.children[0].boundary){var n=e.children[0];n.id=e.id,n.parentFlushed=!0,1===n.status&&dn(t,n)}else t.completedSegments.push(e)}function hn(t,e,n){if(null===e){if(n.parentFlushed){if(null!==t.completedRootSegment)throw Error(o(389));t.completedRootSegment=n}t.pendingRootTasks--,0===t.pendingRootTasks&&(t.onShellError=Xe,(e=t.onShellReady)())}else e.pendingTasks--,e.forceClientRender||(0===e.pendingTasks?(n.parentFlushed&&1===n.status&&dn(e,n),e.parentFlushed&&t.completedBoundaries.push(e),e.fallbackAbortableTasks.forEach(fn,t),e.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(dn(e,n),1===e.completedSegments.length&&e.parentFlushed&&t.partialBoundaries.push(e)));t.allPendingTasks--,0===t.allPendingTasks&&(t=t.onAllReady)()}function gn(t){if(2!==t.status){var e=he,n=Ge.current;Ge.current=Qe;var r=Ze;Ze=t.responseState;try{var o,i=t.pingedTasks;for(o=0;o<i.length;o++){var a=i[o],s=t,c=a.blockedSegment;if(0===c.status){_e(a.context);try{cn(s,a,a.node),a.abortSet.delete(a),c.status=1,hn(s,a.blockedBoundary,c)}catch(t){if(Ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then){var u=a.ping;t.then(u,u)}else{a.abortSet.delete(a),c.status=4;var l=a.blockedBoundary,f=t;en(s,f),null===l?nn(s,f):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.parentFlushed&&s.clientRenderedBoundaries.push(l))),s.allPendingTasks--,0===s.allPendingTasks&&(0,s.onAllReady)()}}}}i.splice(0,o),null!==t.destination&&wn(t,t.destination)}catch(e){en(t,e),nn(t,e)}finally{Ze=r,Ge.current=n,n===Qe&&_e(e)}}}function yn(t,e,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=t.nextSegmentId++;return t=t.responseState,s(e,st),s(e,t.placeholderPrefix),s(e,t=f(r.toString(16))),c(e,ct);case 1:n.status=2;var i=!0;r=n.chunks;var a=0;n=n.children;for(var u=0;u<n.length;u++){for(i=n[u];a<i.index;a++)s(e,r[a]);i=mn(t,e,i)}for(;a<r.length-1;a++)s(e,r[a]);return a<r.length&&(i=c(e,r[a])),i;default:throw Error(o(390))}}function mn(t,e,n){var r=n.boundary;if(null===r)return yn(t,e,n);if(r.parentFlushed=!0,r.forceClientRender)c(e,pt),yn(t,e,n);else if(0<r.pendingTasks){r.rootSegmentID=t.nextSegmentId++,0<r.completedSegments.length&&t.partialBoundaries.push(r);var i=t.responseState,a=i.nextSuspenseID++;i=p(i.boundaryPrefix+a.toString(16)),r=r.id=i,ht(e,t.responseState,r),yn(t,e,n)}else if(r.byteSize>t.progressiveChunkSize)r.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(r),ht(e,t.responseState,r.id),yn(t,e,n);else{if(c(e,ut),1!==(n=r.completedSegments).length)throw Error(o(391));mn(t,e,n[0])}return c(e,dt)}function vn(t,e,n){return function(t,e,n,r){switch(n.insertionMode){case 0:case 1:return s(t,gt),s(t,e.segmentPrefix),s(t,f(r.toString(16))),c(t,yt);case 2:return s(t,vt),s(t,e.segmentPrefix),s(t,f(r.toString(16))),c(t,bt);case 3:return s(t,wt),s(t,e.segmentPrefix),s(t,f(r.toString(16))),c(t,St);case 4:return s(t,Mt),s(t,e.segmentPrefix),s(t,f(r.toString(16))),c(t,Et);case 5:return s(t,Ct),s(t,e.segmentPrefix),s(t,f(r.toString(16))),c(t,Dt);case 6:return s(t,Ot),s(t,e.segmentPrefix),s(t,f(r.toString(16))),c(t,It);case 7:return s(t,Lt),s(t,e.segmentPrefix),s(t,f(r.toString(16))),c(t,At);default:throw Error(o(397))}}(e,t.responseState,n.formatContext,n.id),mn(t,e,n),function(t,e){switch(e.insertionMode){case 0:case 1:return c(t,mt);case 2:return c(t,_t);case 3:return c(t,xt);case 4:return c(t,kt);case 5:return c(t,jt);case 6:return c(t,Tt);case 7:return c(t,Nt);default:throw Error(o(397))}}(e,n.formatContext)}function bn(t,e,n){for(var r=n.completedSegments,i=0;i<r.length;i++)_n(t,e,n,r[i]);if(r.length=0,t=t.responseState,r=n.id,n=n.rootSegmentID,s(e,t.startInlineScript),t.sentCompleteBoundaryFunction?s(e,Ut):(t.sentCompleteBoundaryFunction=!0,s(e,Ft)),null===r)throw Error(o(395));return n=f(n.toString(16)),s(e,r),s(e,Kt),s(e,t.segmentPrefix),s(e,n),c(e,Ht)}function _n(t,e,n,r){if(2===r.status)return!0;var i=r.id;if(-1===i){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return vn(t,e,r)}return vn(t,e,r),s(e,(t=t.responseState).startInlineScript),t.sentCompleteSegmentFunction?s(e,Rt):(t.sentCompleteSegmentFunction=!0,s(e,zt)),s(e,t.segmentPrefix),s(e,i=f(i.toString(16))),s(e,Pt),s(e,t.placeholderPrefix),s(e,i),c(e,Bt)}function wn(t,e){i=new Uint8Array(512),a=0;try{var n=t.completedRootSegment;if(null!==n&&0===t.pendingRootTasks){mn(t,e,n),t.completedRootSegment=null;var r=t.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)s(e,r[n]);n<r.length&&c(e,r[n])}var l,f=t.clientRenderedBoundaries;for(l=0;l<f.length;l++){r=e;var p=t.responseState,d=f[l].id;if(s(r,p.startInlineScript),p.sentClientRenderFunction?s(r,Wt):(p.sentClientRenderFunction=!0,s(r,qt)),null===d)throw Error(o(395));if(s(r,d),!c(r,Yt))return t.destination=null,l++,void f.splice(0,l)}f.splice(0,l);var h=t.completedBoundaries;for(l=0;l<h.length;l++)if(!bn(t,e,h[l]))return t.destination=null,l++,void h.splice(0,l);h.splice(0,l),u(e),i=new Uint8Array(512),a=0;var g=t.partialBoundaries;for(l=0;l<g.length;l++){var y=g[l];t:{f=t,p=e;var m=y.completedSegments;for(d=0;d<m.length;d++)if(!_n(f,p,y,m[d])){d++,m.splice(0,d);var v=!1;break t}m.splice(0,d),v=!0}if(!v)return t.destination=null,l++,void g.splice(0,l)}g.splice(0,l);var b=t.completedBoundaries;for(l=0;l<b.length;l++)if(!bn(t,e,b[l]))return t.destination=null,l++,void b.splice(0,l);b.splice(0,l)}finally{u(e),0===t.allPendingTasks&&0===t.pingedTasks.length&&0===t.clientRenderedBoundaries.length&&0===t.completedBoundaries.length&&e.close()}}function Sn(t){try{var e=t.abortableTasks;e.forEach(pn,t),e.clear(),null!==t.destination&&wn(t,t.destination)}catch(e){en(t,e),nn(t,e)}}e.renderToReadableStream=function(t,e){return new Promise((function(n,r){var o,i,a=new Promise((function(t,e){i=t,o=e})),s=function(t,e,n,r,o,i,a,s,c){var u=[],l=new Set;return(n=tn(e={destination:null,responseState:e,progressiveChunkSize:void 0===r?12800:r,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:l,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Je:o,onAllReady:void 0===i?Xe:i,onShellReady:void 0===a?Xe:a,onShellError:void 0===s?Xe:s,onFatalError:void 0===c?Xe:c},0,null,n)).parentFlushed=!0,t=$e(e,t,null,n,l,pe,null,xe),u.push(t),e}(t,function(t,e,n,r,o){t=void 0===t?"":t,e=void 0===e?O:p('<script nonce="'+k(e)+'">');var i=[];if(void 0!==n&&i.push(e,f((""+n).replace(N,z)),I),void 0!==r)for(n=0;n<r.length;n++)i.push(T,f(k(r[n])),A);if(void 0!==o)for(r=0;r<o.length;r++)i.push(L,f(k(o[r])),A);return{bootstrapChunks:i,startInlineScript:e,placeholderPrefix:p(t+"P:"),segmentPrefix:p(t+"S:"),boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(e?e.identifierPrefix:void 0,e?e.nonce:void 0,e?e.bootstrapScriptContent:void 0,e?e.bootstrapScripts:void 0,e?e.bootstrapModules:void 0),function(t){return R("http://www.w3.org/2000/svg"===t?2:"http://www.w3.org/1998/Math/MathML"===t?3:0,null)}(e?e.namespaceURI:void 0),e?e.progressiveChunkSize:void 0,e?e.onError:void 0,i,(function(){var t=new ReadableStream({type:"bytes",pull:function(t){if(1===s.status)s.status=2,d(t,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=t;try{wn(s,t)}catch(t){en(s,t),nn(s,t)}}},cancel:function(){Sn(s)}});t.allReady=a,n(t)}),(function(t){a.catch((function(){})),r(t)}),o);if(e&&e.signal){var c=e.signal,u=function(){Sn(s),c.removeEventListener("abort",u)};c.addEventListener("abort",u)}gn(s)}))},e.version="18.1.0"},74161:function(t,e,n){"use strict";var r,o;r=n(28534),o=n(67392),e.version=r.version,e.renderToString=r.renderToString,e.renderToStaticMarkup=r.renderToStaticMarkup,e.renderToNodeStream=r.renderToNodeStream,e.renderToStaticNodeStream=r.renderToStaticNodeStream,e.renderToReadableStream=o.renderToReadableStream},10671:function(t,e,n){window,t.exports=function(t,e,n){return i={},r.m=o=[function(t,e,n){t.exports=n(9)()},function(e,n){e.exports=t},function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"==i||"number"==i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"==i)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,n){t.exports=e},function(t,e,n){function r(t){if(s[t])return s[t].exports;var e=s[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,s;window,t.exports=(o=n(3),i=n(5),s={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n(1);function i(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getStartKey(),o=e.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(t,e){return e===r})).takeUntil((function(t,e){return e===o})).concat([[o,i.get(o)]])}function a(t){return i(t).toList()}function s(t){if(t)return a(t).get(0)}function c(t){if(t){var e=s(t),n=t.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(t,n){t.get("key")===e.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function u(t){return t?t.getCurrentContent().getBlockMap().toList():new o.List}function l(t){var e=a(t);if(!e.some((function(t){return t.type!==e.get(0).type})))return e.get(0).type}function f(t){var e=r.RichUtils.tryToRemoveBlockStyle(t);return e?r.EditorState.push(t,e,"change-block-type"):t}function p(t){var e="",n=t.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(t);if(0<i.size){if(n.getIsBackward()){var s=r;r=o,o=s}for(var c=0;c<i.size;c+=1){var u=0===c?r:0,l=c===i.size-1?o:i.get(c).getText().length;e+=i.get(c).getText().slice(u,l)}}return e}function d(t){var e=t.getCurrentContent(),n=t.getSelection(),o=r.Modifier.removeRange(e,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(t,o,"insert-fragment")}function h(t){var e=r.Modifier.splitBlock(t.getCurrentContent(),t.getSelection());return f(r.EditorState.push(t,e,"split-block"))}function g(t){var e=t.getCurrentContent().getBlockMap().toList(),n=t.getSelection().merge({anchorKey:e.first().get("key"),anchorOffset:0,focusKey:e.last().get("key"),focusOffset:e.last().getLength()}),o=r.Modifier.removeRange(t.getCurrentContent(),n,"forward");return r.EditorState.push(t,o,"remove-range")}function y(t,e){var n=r.Modifier.setBlockData(t.getCurrentContent(),t.getSelection(),e);return r.EditorState.push(t,n,"change-block-data")}function m(t){var e=new o.Map({}),n=a(t);if(n&&0<n.size)for(var r=function(t){var r=n.get(t).getData();if(!r||0===r.size)return e=e.clear(),"break";if(0===t)e=r;else if(e.forEach((function(t,n){r.get(n)&&r.get(n)===t||(e=e.delete(n))})),0===e.size)return e=e.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return e}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function _(t){if(t){var e=t.getType();return"unordered-list-item"===e||"ordered-list-item"===e}return!1}function w(t,e,n){var o,a=t.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var s=t.getCurrentContent(),c=s.getBlockForKey(o),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;var l=s.getBlockBefore(o);if(!l)return t;if(l.getType()!==u)return t;var f=c.getDepth();if(1===e&&f===n)return t;var p,d,h,g,y,m,v,b=Math.min(l.getDepth()+1,n),_=(d=e,h=b,g=(p=t).getSelection(),m=(y=p.getCurrentContent()).getBlockMap(),v=i(p).map((function(t){var e=t.getDepth()+d;return e=Math.max(0,Math.min(e,h)),t.set("depth",e)})),m=m.merge(v),y.merge({blockMap:m,selectionBefore:g,selectionAfter:g}));return r.EditorState.push(t,_,"adjust-depth")}function S(t,e){var n;return 13===(n=e).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?t.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(t):d(t):function(t){var e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockForKey(r);if(!_(o)&&"unstyled"!==o.getType()&&o.getLength()===e.getStartOffset())return h(t);if(_(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return f(t);if(0<i)return w(t,-1,i)}}}(t)}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t){var e=t.getSelection();if(e.isCollapsed()){var n={},r=t.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){n[t]=0<=r.indexOf(t)})),n}var o=e.getStartOffset(),i=e.getEndOffset(),s=a(t);if(0<s.size){var c=function(){for(var t={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},e=0;e<s.size;e+=1){var n=0===e?o:0,r=e===s.size-1?i:s.get(e).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=s.get(e).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){t[e]=t[e]&&r.get(e)===e}))},c=n;c<r;c+=1)a(c)}return{v:t}}();if("object"===E(c))return c.v}return{}}function C(t){var e,n=t.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=s(t),a=r;a<o;a+=1){var c=i.getEntityAt(a);if(!c){e=void 0;break}if(a===r)e=c;else if(e!==c){e=void 0;break}}return e}function D(t,e){var n,r=s(t);return r.findEntityRanges((function(t){return t.get("entity")===e}),(function(t,e){n={start:t,end:e,text:r.get("text").slice(t,e)}})),n}function j(t,e,n){I[t]["".concat(t.toLowerCase(),"-").concat(n)]=M({},"".concat(e),n)}function O(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){M(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},I.color,{},I.bgcolor,{},I.fontSize,{},I.fontFamily,{CODE:I.CODE,SUPERSCRIPT:I.SUPERSCRIPT,SUBSCRIPT:I.SUBSCRIPT})}var I={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function T(t,e,n){var o=t.getSelection(),i=Object.keys(I[e]).reduce((function(t,e){return r.Modifier.removeInlineStyle(t,o,e)}),t.getCurrentContent()),a=r.EditorState.push(t,i,"changeinline-style"),s=t.getCurrentInlineStyle();if(o.isCollapsed()&&(a=s.reduce((function(t,e){return r.RichUtils.toggleInlineStyle(t,e)}),a)),"SUPERSCRIPT"===e||"SUBSCRIPT"==e)s.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var c="bgcolor"===e?"backgroundColor":e;s.has("".concat(c,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(e.toLowerCase(),"-").concat(n)),j(e,c,n))}return a}function L(t){t&&t.getCurrentContent().getBlockMap().map((function(t){return t.get("characterList")})).toList().flatten().forEach((function(t){t&&0===t.indexOf("color-")?j("color","color",t.substr(6)):t&&0===t.indexOf("bgcolor-")?j("bgcolor","backgroundColor",t.substr(8)):t&&0===t.indexOf("fontsize-")?j("fontSize","fontSize",+t.substr(9)):t&&0===t.indexOf("fontfamily-")&&j("fontFamily","fontFamily",t.substr(11))}))}function A(t,e,n){var r=t.getInlineStyleAt(n).toList().filter((function(t){return t.startsWith(e.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function N(t,e){if(t&&e&&0<e.length){var n=function(){var n=t.getSelection(),r={};if(n.isCollapsed())return e.forEach((function(e){r[e]=function(t,e){var n=t.getCurrentInlineStyle().toList().filter((function(t){return t.startsWith(e.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(t,e)})),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),s=a(t);if(0<s.size){for(var c=function(t){var n=0===t?o:0,a=t===s.size-1?i:s.get(t).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var c=function(o){o===n?e.forEach((function(e){r[e]=A(s.get(t),e,o)})):e.forEach((function(e){r[e]&&r[e]!==A(s.get(t),e,o)&&(r[e]=void 0)}))},u=n;u<a;u+=1)c(u)},u=0;u<s.size;u+=1)c(u);return{v:r}}}();if("object"===E(n))return n.v}return{}}function z(t){var e=t.getCurrentInlineStyle(),n=t.getCurrentContent();return e.forEach((function(e){n=r.Modifier.removeInlineStyle(n,t.getSelection(),e)})),r.EditorState.push(t,n,"change-inline-style")}n.d(e,"isListBlock",(function(){return _})),n.d(e,"changeDepth",(function(){return w})),n.d(e,"handleNewLine",(function(){return S})),n.d(e,"getEntityRange",(function(){return D})),n.d(e,"getCustomStyleMap",(function(){return O})),n.d(e,"toggleCustomInlineStyle",(function(){return T})),n.d(e,"getSelectionEntity",(function(){return C})),n.d(e,"extractInlineStyle",(function(){return L})),n.d(e,"removeAllInlineStyles",(function(){return z})),n.d(e,"getSelectionInlineStyle",(function(){return k})),n.d(e,"getSelectionCustomInlineStyle",(function(){return N})),n.d(e,"getSelectedBlocksMap",(function(){return i})),n.d(e,"getSelectedBlocksList",(function(){return a})),n.d(e,"getSelectedBlock",(function(){return s})),n.d(e,"getBlockBeforeSelectedBlock",(function(){return c})),n.d(e,"getAllBlocks",(function(){return u})),n.d(e,"getSelectedBlocksType",(function(){return l})),n.d(e,"removeSelectedBlocksStyle",(function(){return f})),n.d(e,"getSelectionText",(function(){return p})),n.d(e,"addLineBreakRemovingSelection",(function(){return d})),n.d(e,"insertNewUnstyledBlock",(function(){return h})),n.d(e,"clearEditorContent",(function(){return g})),n.d(e,"setBlockData",(function(){return y})),n.d(e,"getSelectedBlocksMetadata",(function(){return m})),n.d(e,"blockRenderMap",(function(){return b}))}],r.c=s,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e){t.exports=n},function(t,e,n){function r(t){if(s[t])return s[t].exports;var e=s[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,s;window,t.exports=(o=n(5),i=n(3),s={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(0),i=function(t,e,n){var r,i=t.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new o.Map({})}]}},c=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new o.Map({})}]}},u=function(t){return{text:"\r ",inlines:[new o.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},l=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.blocks)}},f=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),p={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function d(t){return t.style.textAlign?new o.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new o.Map({"margin-left":t.style.marginLeft}):void 0}var h=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,r.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",(function(){return v}));var g=" ",y=new RegExp("&nbsp;","g"),m=!0;function v(t,e){var n,v,b=(n=e,(v=function(t){var e,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}(t.trim().replace(y,g)))?(m=!0,{chunk:function t(e,n,o,g,y,v){var b=e.nodeName.toLowerCase();if(v){var _=v(b,e);if(_){var w=r.Entity.__create(_.type,_.mutability,_.data||{});return{chunk:u(w)}}}if("#text"===b&&"\n"!==e.textContent)return i(e,n,y);if("br"===b)return{chunk:a()};if("img"===b&&e instanceof HTMLImageElement){var S={};S.src=e.getAttribute&&e.getAttribute("src")||e.src,S.alt=e.alt,S.height=e.style.height,S.width=e.style.width,e.style.float&&(S.alignment=e.style.float);var x=r.Entity.__create("IMAGE","MUTABLE",S);return{chunk:u(x)}}if("video"===b&&e instanceof HTMLVideoElement){var M={};M.src=e.getAttribute&&e.getAttribute("src")||e.src,M.alt=e.alt,M.height=e.style.height,M.width=e.style.width,e.style.float&&(M.alignment=e.style.float);var E=r.Entity.__create("VIDEO","MUTABLE",M);return{chunk:u(E)}}if("iframe"===b&&e instanceof HTMLIFrameElement){var k={};k.src=e.getAttribute&&e.getAttribute("src")||e.src,k.height=e.height,k.width=e.width;var C=r.Entity.__create("EMBEDDED_LINK","MUTABLE",k);return{chunk:u(C)}}var D,j=function(t,e){var n=f.filter((function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1<n.aliasedElements.indexOf(t)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,g);j&&("ul"===b||"ol"===b?(g=b,o+=1):("unordered-list-item"!==j&&"ordered-list-item"!==j&&(g="",o=-1),m?(D=s(j,d(e)),m=!1):D=c(j,o,d(e)))),D=D||{text:"",inlines:[],entities:[],blocks:[]},n=function(t,e,n){var r,o=p[t];if(o)r=n.add(o).toOrderedSet();else if(e instanceof HTMLElement){var i=e;r=(r=n).withMutations((function(t){var e=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,c=i.style.fontStyle;e&&t.add("color-".concat(e.replace(/ /g,""))),n&&t.add("bgcolor-".concat(n.replace(/ /g,""))),r&&t.add("fontsize-".concat(r.replace(/px$/g,""))),o&&t.add("fontfamily-".concat(o)),"bold"===a&&t.add(p.strong),"underline"===s&&t.add(p.ins),"italic"===c&&t.add(p.em)})).toOrderedSet()}return r}(b,e,n);for(var O=e.firstChild;O;){var I=t(O,n,o,g,h(O)||y,v).chunk;D=l(D,I),O=O.nextSibling}return{chunk:D}}(v,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var _=b.chunk,w=new o.OrderedMap({});_.entities&&_.entities.forEach((function(t){t&&(w=w.set(t,r.Entity.__get(t)))}));var S=0;return{contentBlocks:_.text.split("\r").map((function(t,e){var n=S+t.length,i=_&&_.inlines.slice(S,n),a=_&&_.entities.slice(S,n),s=new o.List(i.map((function(t,e){var n={style:t,entity:null};return a[e]&&(n.entity=a[e]),r.CharacterMetadata.create(n)})));return S=n,new r.ContentBlock({key:Object(r.genKey)(),type:_&&_.blocks[e]&&_.blocks[e].type||"unstyled",depth:_&&_.blocks[e]&&_.blocks[e].depth,data:_&&_.blocks[e]&&_.blocks[e].data||new o.Map({}),text:t,characterList:s})})),entityMap:w}}return null}}],r.c=s,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e,n){"use strict";function r(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){e&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t}function o(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===o(t)}function a(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},c={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=e&&":"===t[e-3]||3<=e&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function l(t){var e=t.re=n(21)(t.__opts__),r=t.__tlds__.slice();function s(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(e.src_xn),e.src_tlds=r.join("|"),e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var c=[];function u(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){var n=t.__schemas__[e];if(null!==n){var r,a={validate:null,link:null};if(t.__compiled__[e]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(t,e){var n=t.slice(e);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:u(e,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(e,n):a.normalize=function(t,e){e.normalize(t)});"[object String]"!==o(n)?u(e,n):c.push(e)}})),c.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var l,f=Object.keys(t.__compiled__).filter((function(e){return 0<e.length&&t.__compiled__[e]})).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+f+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+f+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(l=t).__index__=-1,l.__text_cache__=""}function f(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function p(t,e){var n=new f(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function d(t,e){if(!(this instanceof d))return new d(t,e);var n;e||(n=t,Object.keys(n||{}).reduce((function(t,e){return t||s.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=r({},s,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,t),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},l(this)}d.prototype.add=function(t,e){return this.__schemas__[t]=e,l(this),this},d.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},d.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,o,i,a,s,c;if(this.re.schema_test.test(t))for((s=this.re.schema_search).lastIndex=0;null!==(e=s.exec(t));)if(o=this.testSchemaAt(t,e[2],s.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||c<this.__index__)&&null!==(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=t.indexOf("@")&&null!==(r=t.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},d.prototype.pretest=function(t){return this.re.pretest.test(t)},d.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},d.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(p(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(p(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),l(this),this},d.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},d.prototype.onCompile=function(){},t.exports=d},function(t,e,n){t.exports=n(40)},function(t,e,n){"use strict";var r=n(10);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}var n={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";t.exports=function(t){var e={};e.src_Any=n(22).source,e.src_Cc=n(23).source,e.src_Z=n(24).source,e.src_P=n(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");return e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},function(t,e){t.exports=/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E44\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(3),c=n(4),u=n(2),l=n.n(u);function f(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}function p(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}}var d,h=[],g={onKeyDown:function(t){h.forEach((function(e){e(t)}))},registerCallBack:function(t){h.push(t)},deregisterCallBack:function(t){h=h.filter((function(e){return e!==t}))}},y=function(){d=!0},m=function(){d=!1},v=function(){return d};function b(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function _(t,e){if(t)for(var n in t)!{}.hasOwnProperty.call(t,n)||e(n,t[n])}function w(t,e){var n=!1;if(t)for(var r in t)if({}.hasOwnProperty.call(t,r)&&e===r){n=!0;break}return n}function S(t){t.stopPropagation()}function x(t){return t[t.options[0]].icon}function M(t,e){if(t&&void 0===e)return t;var n={};return _(t,(function(t,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[t]=M(r,e[t]):n[t]=void 0!==e[t]?e[t]:r})),n}var E=n(6),k=n.n(E),C=n(5);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(11);var L=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=I(t)).call.apply(e,[this].concat(o)))).onClick=function(){var t=n.props,e=t.disabled,r=t.onClick,o=t.value;e||r(o)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.className,i=e.activeClassName,a=e.active,s=e.disabled,c=e.title;return o.a.createElement("div",{className:l()("rdw-option-wrapper",r,(j(t={},"rdw-option-active ".concat(i),a),j(t,"rdw-option-disabled",s),t)),onClick:this.onClick,"aria-selected":a,title:c},n)}}])&&O(e.prototype,n),t}();function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function R(t,e){return(R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}L.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},L.defaultProps={activeClassName:""},n(12);var P=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=z(t)).call.apply(e,[this].concat(o)))).state={highlighted:-1},n.onChange=function(t){var e=n.props.onChange;e&&e(t),n.toggleExpansion()},n.setHighlighted=function(t){n.setState({highlighted:t})},n.toggleExpansion=function(){var t=n.props,e=t.doExpand,r=t.doCollapse;t.expanded?r():e()},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.expanded;t.expanded&&!e&&this.setState({highlighted:-1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.expanded,r=e.children,i=e.className,a=e.optionWrapperClassName,s=e.ariaLabel,c=e.onExpandEvent,u=e.title,f=this.state.highlighted,p=r.slice(1,r.length);return o.a.createElement("div",{className:l()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":s||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:c,title:u},r[0],o.a.createElement("div",{className:l()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:l()("rdw-dropdown-optionwrapper",a),onClick:S},o.a.Children.map(p,(function(e,n){return e&&o.a.cloneElement(e,{onSelect:t.onChange,highlighted:f===n,setHighlighted:t.setHighlighted,index:n})}))):void 0)}}])&&N(e.prototype,n),t}();function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function H(t,e){return(H=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}P.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var q=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==B(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=K(t)).call.apply(e,[this].concat(o)))).onClick=function(t){var e=n.props,r=e.onSelect,o=e.onClick,i=e.value;e.disabled||(r&&r(i),o&&(t.stopPropagation(),o(i)))},n.setHighlighted=function(){var t=n.props;(0,t.setHighlighted)(t.index)},n.resetHighlighted=function(){(0,n.props.setHighlighted)(-1)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&H(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.active,i=e.disabled,a=e.highlighted,s=e.className,c=e.activeClassName,u=e.disabledClassName,f=e.highlightedClassName,p=e.title;return o.a.createElement("li",{className:l()("rdw-dropdownoption-default",s,(F(t={},"rdw-dropdownoption-active ".concat(c),r),F(t,"rdw-dropdownoption-highlighted ".concat(f),a),F(t,"rdw-dropdownoption-disabled ".concat(u),i),t)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:p},n)}}])&&U(e.prototype,n),t}();function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Q(t,e){return(Q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}q.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},q.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var Z=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){return!e||"object"!==W(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,V(t).apply(this,arguments))}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Q(t,e)}(t,r.Component),e=t,(n=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState,r=t.onChange,i=t.translations;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",e.className),"aria-label":"rdw-inline-control"},e.options.map((function(t,a){return o.a.createElement(L,{key:a,value:t,onClick:r,className:l()(e[t].className),active:!0===n[t]||"MONOSPACE"===t&&n.CODE,title:e[t].title||i["components.controls.inline.".concat(t)]},o.a.createElement("img",{alt:"",src:e[t].icon}))})))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,s=t.currentState,c=t.onChange,u=t.translations,f=e.className,p=e.dropdownClassName,d=e.title;return o.a.createElement(P,{className:l()("rdw-inline-dropdown",f),optionWrapperClassName:l()(p),onChange:c,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:d},o.a.createElement("img",{src:x(e),alt:""}),e.options.map((function(t,n){return o.a.createElement(q,{key:n,value:t,className:l()("rdw-inline-dropdownoption",e[t].className),active:!0===s[t]||"MONOSPACE"===t&&s.CODE,title:e[t].title||u["components.controls.inline.".concat(t)]},o.a.createElement("img",{src:e[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Y(e.prototype,n),t}();function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Z.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var tt=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,X(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.toggleInlineStyle=function(t){var e="monospace"===t?"CODE":t.toUpperCase(),r=n.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleInlineStyle(o,e);if("subscript"===t||"superscript"===t){var c="subscript"===t?"SUPERSCRIPT":"SUBSCRIPT",u=s.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),c);a=s.EditorState.push(a,u,"change-inline-style")}a&&i(a)},n.changeKeys=function(t){if(t){var e={};return _(t,(function(t,n){e["CODE"===t?"monospace":t.toLowerCase()]=n})),e}},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})};var r=n.props,o=r.editorState,i=r.modalHandler;return n.state={currentStyles:o?n.changeKeys(Object(c.getSelectionInlineStyle)(o)):{}},i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentStyles:this.changeKeys(Object(c.getSelectionInlineStyle)(e))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentStyles,s=e.component||Z;return o.a.createElement(s,{config:e,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&J(e.prototype,n),t}();function et(t){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rt(t){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ot(t,e){return(ot=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}tt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var it=function(){function t(e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==et(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,rt(t).call(this,e))).getBlockTypes=function(t){return[{label:"Normal",displayName:t["components.controls.blocktype.normal"]},{label:"H1",displayName:t["components.controls.blocktype.h1"]},{label:"H2",displayName:t["components.controls.blocktype.h2"]},{label:"H3",displayName:t["components.controls.blocktype.h3"]},{label:"H4",displayName:t["components.controls.blocktype.h4"]},{label:"H5",displayName:t["components.controls.blocktype.h5"]},{label:"H6",displayName:t["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:t["components.controls.blocktype.blockquote"]},{label:"Code",displayName:t["components.controls.blocktype.code"]}]},n.state={blockTypes:n.getBlockTypes(e.translations)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ot(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.translations;e!==t.translations&&this.setState({blockTypes:this.getBlockTypes(e)})}},{key:"renderFlat",value:function(t){var e=this.props,n=e.config.className,r=e.onChange,i=e.currentState.blockType;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",n)},t.map((function(t,e){return o.a.createElement(L,{key:e,value:t.label,active:i===t.label,onClick:r},t.displayName)})))}},{key:"renderInDropdown",value:function(t){var e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.title,s=e.currentState.blockType,c=e.expanded,u=e.doExpand,f=e.onExpandEvent,p=e.doCollapse,d=e.onChange,h=e.translations,g=this.state.blockTypes.filter((function(t){return t.label===s})),y=g&&g[0]&&g[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(P,{className:l()("rdw-block-dropdown",r),optionWrapperClassName:l()(i),onChange:d,expanded:c,doExpand:u,doCollapse:p,onExpandEvent:f,title:a||h["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,y||h["components.controls.blocktype.blocktype"]),t.map((function(t,e){return o.a.createElement(q,{active:s===t.label,value:t.label,key:e},t.displayName)}))))}},{key:"render",value:function(){var t=this.props.config,e=t.inDropdown,n=this.state.blockTypes.filter((function(e){var n=e.label;return-1<t.options.indexOf(n)}));return e?this.renderInDropdown(n):this.renderFlat(n)}}])&&nt(e.prototype,n),t}();it.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var at=it;function st(t){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ct(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function lt(t,e){return(lt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ft=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==st(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,ut(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleBlockType=function(t){var e=n.blocksTypes.find((function(e){return e.label===t})).style,r=n.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleBlockType(o,e);a&&i(a)};var r=e.editorState,o=e.modalHandler;return n.state={expanded:!1,currentBlockType:r?Object(c.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lt(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlockType:Object(c.getSelectedBlocksType)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentBlockType,s=e.component||at,c=this.blocksTypes.find((function(t){return t.style===a}));return o.a.createElement(s,{config:e,translations:n,currentState:{blockType:c&&c.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&ct(e.prototype,n),t}();ft.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var pt=ft;function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gt(t){return(gt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yt(t,e){return(yt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(16);var mt=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==dt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=gt(t)).call.apply(e,[this].concat(o)))).state={defaultFontSize:void 0},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yt(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-size");e=e.substring(0,e.length-2),this.setState({defaultFontSize:e})}}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.dropdownClassName,a=e.options,s=e.title,c=t.onChange,u=t.expanded,f=t.doCollapse,p=t.onExpandEvent,d=t.doExpand,h=t.translations,g=this.props.currentState.fontSize,y=this.state.defaultFontSize;return y=Number(y),g=g||a&&0<=a.indexOf(y)&&y,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(P,{className:l()("rdw-fontsize-dropdown",r),optionWrapperClassName:l()(i),onChange:c,expanded:u,doExpand:d,doCollapse:f,onExpandEvent:p,title:s||h["components.controls.fontsize.fontsize"]},g?o.a.createElement("span",null,g):o.a.createElement("img",{src:n,alt:""}),a.map((function(t,e){return o.a.createElement(q,{className:"rdw-fontsize-option",active:g===t,value:t,key:e},t)}))))}}])&&ht(e.prototype,n),t}();function vt(t){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _t(t){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wt(t,e){return(wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}mt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var St=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==vt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,_t(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleFontSize=function(t){var e=n.props,r=e.editorState,o=e.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontSize",t);i&&o(i)};var r=e.editorState,o=e.modalHandler;return n.state={expanded:void 0,currentFontSize:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wt(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontSize:Object(c.getSelectionCustomInlineStyle)(e,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontSize,s=e.component||mt,c=a&&Number(a.substring(9));return o.a.createElement(s,{config:e,translations:n,currentState:{fontSize:c},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&bt(e.prototype,n),t}();function xt(t){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Et(t){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function kt(t,e){return(kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}St.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var Ct=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==xt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Et(t)).call.apply(e,[this].concat(o)))).state={defaultFontFamily:void 0},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kt(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:e})}}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.options,s=n.title,c=e.translations,u=e.onChange,f=e.expanded,p=e.doCollapse,d=e.onExpandEvent,h=e.doExpand,g=this.props.currentState.fontFamily;return g=g||a&&t&&a.some((function(e){return e.toLowerCase()===t.toLowerCase()}))&&t,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(P,{className:l()("rdw-fontfamily-dropdown",r),optionWrapperClassName:l()("rdw-fontfamily-optionwrapper",i),onChange:u,expanded:f,doExpand:h,doCollapse:p,onExpandEvent:d,title:s||c["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},g||c["components.controls.fontfamily.fontfamily"]),a.map((function(t,e){return o.a.createElement(q,{active:g===t,value:t,key:e},t)}))))}}])&&Mt(e.prototype,n),t}();Ct.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Dt=Ct;function jt(t){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function It(t){return(It=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Tt(t,e){return(Tt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Lt=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==jt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,It(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleFontFamily=function(t){var e=n.props,r=e.editorState,o=e.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontFamily",t);i&&o(i)};var r=e.editorState,o=e.modalHandler;return n.state={expanded:void 0,currentFontFamily:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Tt(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontFamily:Object(c.getSelectionCustomInlineStyle)(e,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,s=e.component||Dt,c=a&&a.substring(11);return o.a.createElement(s,{translations:n,config:e,currentState:{fontFamily:c},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ot(e.prototype,n),t}();function At(t){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zt(t){return(zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rt(t,e){return(Rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Lt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var Pt=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==At(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=zt(t)).call.apply(e,[this].concat(o)))).options=["unordered","ordered","indent","outdent"],n.toggleBlockType=function(t){(0,n.props.onChange)(t)},n.indent=function(){(0,n.props.onChange)("indent")},n.outdent=function(){(0,n.props.onChange)("outdent")},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rt(t,e)}(t,r.Component),e=t,(n=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState.listType,r=t.translations,i=t.indentDisabled,a=t.outdentDisabled,s=e.options,c=e.unordered,u=e.ordered,f=e.indent,p=e.outdent,d=e.className;return o.a.createElement("div",{className:l()("rdw-list-wrapper",d),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&o.a.createElement(L,{value:"unordered",onClick:this.toggleBlockType,className:l()(c.className),active:"unordered"===n,title:c.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=s.indexOf("ordered")&&o.a.createElement(L,{value:"ordered",onClick:this.toggleBlockType,className:l()(u.className),active:"ordered"===n,title:u.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:u.icon,alt:""})),0<=s.indexOf("indent")&&o.a.createElement(L,{onClick:this.indent,disabled:i,className:l()(f.className),title:f.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=s.indexOf("outdent")&&o.a.createElement(L,{onClick:this.outdent,disabled:a,className:l()(p.className),title:p.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:p.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this,e=this.props,n=e.config,r=e.expanded,i=e.doCollapse,a=e.doExpand,s=e.onExpandEvent,c=e.onChange,u=e.currentState.listType,f=e.translations,p=n.options,d=n.className,h=n.dropdownClassName,g=n.title;return o.a.createElement(P,{className:l()("rdw-list-dropdown",d),optionWrapperClassName:l()(h),onChange:c,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:s,"aria-label":"rdw-list-control",title:g||f["components.controls.list.list"]},o.a.createElement("img",{src:x(n),alt:""}),this.options.filter((function(t){return 0<=p.indexOf(t)})).map((function(e,r){return o.a.createElement(q,{key:r,value:e,disabled:t.props["".concat(e,"Disabled")],className:l()("rdw-list-dropdownOption",n[e].className),active:u===e,title:n[e].title||f["components.controls.list.".concat(e)]},o.a.createElement("img",{src:n[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Nt(e.prototype,n),t}();function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ut(t){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Kt(t,e){return(Kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Pt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var Ht=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==Bt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Ut(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.onChange=function(t){"unordered"===t?n.toggleBlockType("unordered-list-item"):"ordered"===t?n.toggleBlockType("ordered-list-item"):"indent"===t?n.adjustDepth(1):n.adjustDepth(-1)},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleBlockType=function(t){var e=n.props,r=e.onChange,o=e.editorState,i=s.RichUtils.toggleBlockType(o,t);i&&r(i)},n.adjustDepth=function(t){var e=n.props,r=e.onChange,o=e.editorState,i=Object(c.changeDepth)(o,t,4);i&&r(i)},n.isIndentDisabled=function(){var t=n.props.editorState,e=n.state.currentBlock,r=Object(c.getBlockBeforeSelectedBlock)(t);return!r||!Object(c.isListBlock)(e)||r.get("type")!==e.get("type")||r.get("depth")<e.get("depth")},n.isOutdentDisabled=function(){var t=n.state.currentBlock;return!t||!Object(c.isListBlock)(t)||t.get("depth")<=0};var r=n.props,o=r.editorState,i=r.modalHandler;return n.state={expanded:!1,currentBlock:o?Object(c.getSelectedBlock)(o):void 0},i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kt(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlock:Object(c.getSelectedBlock)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t,e=this.props,n=e.config,r=e.translations,i=this.state,a=i.expanded,s=i.currentBlock,c=n.component||Pt;"unordered-list-item"===s.get("type")?t="unordered":"ordered-list-item"===s.get("type")&&(t="ordered");var u=this.isIndentDisabled(),l=this.isOutdentDisabled();return o.a.createElement(c,{config:n,translations:r,currentState:{listType:t},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:u,outdentDisabled:l})}}])&&Ft(e.prototype,n),t}();function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yt(t){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vt(t,e){return(Vt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Ht.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var Qt=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){return!e||"object"!==qt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Yt(t).apply(this,arguments))}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vt(t,e)}(t,r.Component),e=t,(n=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.left,i=e.center,a=e.right,s=e.justify,c=e.className,u=t.onChange,f=t.currentState.textAlignment,p=t.translations;return o.a.createElement("div",{className:l()("rdw-text-align-wrapper",c),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(L,{value:"left",className:l()(r.className),active:"left"===f,onClick:u,title:r.title||p["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(L,{value:"center",className:l()(i.className),active:"center"===f,onClick:u,title:i.title||p["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(L,{value:"right",className:l()(a.className),active:"right"===f,onClick:u,title:a.title||p["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(L,{value:"justify",className:l()(s.className),active:"justify"===f,onClick:u,title:s.title||p["components.controls.textalign.justify"]},o.a.createElement("img",{src:s.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,s=t.currentState.textAlignment,c=t.onChange,u=t.translations,f=e.options,p=e.left,d=e.center,h=e.right,g=e.justify,y=e.className,m=e.dropdownClassName,v=e.title;return o.a.createElement(P,{className:l()("rdw-text-align-dropdown",y),optionWrapperClassName:l()(m),onChange:c,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:v||u["components.controls.textalign.textalign"]},o.a.createElement("img",{src:s&&e[s]&&e[s].icon||x(e),alt:""}),0<=f.indexOf("left")&&o.a.createElement(q,{value:"left",active:"left"===s,className:l()("rdw-text-align-dropdownOption",p.className),title:p.title||u["components.controls.textalign.left"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=f.indexOf("center")&&o.a.createElement(q,{value:"center",active:"center"===s,className:l()("rdw-text-align-dropdownOption",d.className),title:d.title||u["components.controls.textalign.center"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("right")&&o.a.createElement(q,{value:"right",active:"right"===s,className:l()("rdw-text-align-dropdownOption",h.className),title:h.title||u["components.controls.textalign.right"]},o.a.createElement("img",{src:h.icon,alt:""})),0<=f.indexOf("justify")&&o.a.createElement(q,{value:"justify",active:"justify"===s,className:l()("rdw-text-align-dropdownOption",g.className),title:g.title||u["components.controls.textalign.justify"]},o.a.createElement("img",{src:g.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Wt(e.prototype,n),t}();function Zt(t){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jt(t){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Qt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var $t=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==Zt(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Jt(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addBlockAlignmentData=function(t){var e=n.props,r=e.editorState;(0,e.onChange)(n.state.currentTextAlignment!==t?Object(c.setBlockData)(r,{"text-align":t}):Object(c.setBlockData)(r,{"text-align":void 0}))};var r=n.props.modalHandler;return n.state={currentTextAlignment:void 0},r.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xt(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e!==t.editorState&&this.setState({currentTextAlignment:Object(c.getSelectedBlocksMetadata)(e).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,s=e.component||Qt;return o.a.createElement(s,{config:e,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&Gt(e.prototype,n),t}();function te(t){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ee(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ne(t){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function re(t,e){return(re=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}$t.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var oe=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(n=function(t,e){return!e||"object"!==te(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=ne(t)).call.apply(e,[this].concat(i)))).state={currentStyle:"color"},n.onChange=function(t){(0,n.props.onChange)(n.state.currentStyle,t)},n.setCurrentStyleColor=function(){n.setState({currentStyle:"color"})},n.setCurrentStyleBgcolor=function(){n.setState({currentStyle:"bgcolor"})},n.renderModal=function(){var t=n.props,e=t.config,r=e.popupClassName,i=e.colors,a=t.currentState,s=a.color,c=a.bgColor,u=t.translations,f=n.state.currentStyle,p="color"===f?s:c;return o.a.createElement("div",{className:l()("rdw-colorpicker-modal",r),onClick:S},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:l()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===f}),onClick:n.setCurrentStyleColor},u["components.controls.colorpicker.text"]),o.a.createElement("span",{className:l()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===f}),onClick:n.setCurrentStyleBgcolor},u["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map((function(t,e){return o.a.createElement(L,{value:t,key:e,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:p===t,onClick:n.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&re(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){this.props.expanded&&!t.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||c["components.controls.colorpicker.colorpicker"]},o.a.createElement(L,{onClick:s,className:l()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&ee(e.prototype,n),t}();oe.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var ie=oe;function ae(t){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function se(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ce(t){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ue(t,e){return(ue=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var le=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==ae(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,ce(t).call(this,e))).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.toggleColor=function(t,e){var r=n.props,o=r.editorState,i=r.onChange,a=Object(c.toggleCustomInlineStyle)(o,t,e);a&&i(a),n.doCollapse()};var r=e.editorState,o=e.modalHandler,i={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(i.currentColor=Object(c.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,i.currentBgColor=Object(c.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),n.state=i,o.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ue(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentColor:Object(c.getSelectionCustomInlineStyle)(e,["COLOR"]).COLOR,currentBgColor:Object(c.getSelectionCustomInlineStyle)(e,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,s=r.expanded,c=e.component||ie,u=i&&i.substring(6),l=a&&a.substring(8);return o.a.createElement(c,{config:e,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:u,bgColor:l}})}}])&&se(e.prototype,n),t}();le.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var fe=le,pe=n(7),de=n.n(pe);function he(t){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function me(t,e){return(me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(26);var ve=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==he(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=ye(t)).call.apply(e,[this].concat(o)))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:n.props.config.defaultTargetOption},n.removeLink=function(){(0,n.props.onChange)("unlink")},n.addLink=function(){var t=n.props.onChange,e=n.state;t("link",e.linkTitle,e.linkTarget,e.linkTargetOption)},n.updateValue=function(t){var e,r,o;n.setState((e={},r="".concat(t.target.name),o=t.target.value,r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e))},n.updateTargetOption=function(t){n.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},n.hideModal=function(){n.setState({showModal:!1})},n.signalExpandShowModal=function(){var t=n.props,e=t.onExpandEvent,r=t.currentState,o=r.link,i=r.selectionText,a=n.state.linkTargetOption;e(),n.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},n.forceExpandAndShowModal=function(){var t=n.props,e=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=n.state.linkTargetOption;e(),n.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&me(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,r=t.translations,i=this.state,a=i.linkTitle,s=i.linkTarget,c=i.linkTargetOption;return o.a.createElement("div",{className:l()("rdw-link-modal",e),onClick:S},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:s}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===c,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!s||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.link,i=e.unlink,a=e.className,s=t.currentState,c=t.expanded,u=t.translations,f=this.state.showModal;return o.a.createElement("div",{className:l()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(L,{value:"unordered-list-item",className:l()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":f,title:r.title||u["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(L,{disabled:!s.link,value:"ordered-list-item",className:l()(i.className),onClick:this.removeLink,title:i.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),c&&f?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.expanded,n=t.onExpandEvent,r=t.doCollapse,i=t.doExpand,a=t.onChange,s=t.config,c=t.currentState,u=t.translations,f=s.options,p=s.link,d=s.unlink,h=s.className,g=s.dropdownClassName,y=s.title,m=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":e,title:y},o.a.createElement(P,{className:l()("rdw-link-dropdown",h),optionWrapperClassName:l()(g),onChange:a,expanded:e&&!m,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:x(s),alt:""}),0<=f.indexOf("link")&&o.a.createElement(q,{onClick:this.forceExpandAndShowModal,className:l()("rdw-link-dropdownoption",p.className),title:p.title||u["components.controls.link.link"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=f.indexOf("unlink")&&o.a.createElement(q,{onClick:this.removeLink,disabled:!c.link,className:l()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:d.icon,alt:""}))),e&&m?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&ge(e.prototype,n),t}();ve.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var be=ve;function _e(t){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Se(t){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xe(t,e){return(xe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ke(t){var e=Ce.match(t.target);return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(n),!0).forEach((function(e){Ee(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t,{target:e&&e[0]&&e[0].url||t.target})}var Ce=de()(),De=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==_e(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Se(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.onChange=function(t,e,r,o){var i=n.props.config.linkCallback;if("link"===t){var a=(i||ke)({title:e,target:r,targetOption:o});n.addLink(a.title,a.target,a.targetOption)}else n.removeLink()},n.getCurrentValues=function(){var t=n.props.editorState,e=n.state.currentEntity,r=t.getCurrentContent(),o={};if(e&&"LINK"===r.getEntity(e).get("type")){o.link={};var i=e&&Object(c.getEntityRange)(t,e);o.link.target=e&&r.getEntity(e).get("data").url,o.link.targetOption=e&&r.getEntity(e).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(c.getSelectionText)(t),o},n.doExpand=function(){n.setState({expanded:!0})},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doCollapse=function(){n.setState({expanded:!1})},n.removeLink=function(){var t=n.props,e=t.editorState,r=t.onChange,o=n.state.currentEntity,i=e.getSelection();if(o){var a=Object(c.getEntityRange)(e,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(s.RichUtils.toggleLink(e,i,null))}},n.addLink=function(t,e,r){var o=n.props,i=o.editorState,a=o.onChange,u=n.state.currentEntity,l=i.getSelection();if(u){var f=Object(c.getEntityRange)(i,u);l=l.getIsBackward()?l.merge({anchorOffset:f.end,focusOffset:f.start}):l.merge({anchorOffset:f.start,focusOffset:f.end})}var p=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:e,targetOption:r}).getLastCreatedEntityKey(),d=s.Modifier.replaceText(i.getCurrentContent(),l,"".concat(t),i.getCurrentInlineStyle(),p),h=s.EditorState.push(i,d,"insert-characters");l=h.getSelection().merge({anchorOffset:l.get("anchorOffset")+t.length,focusOffset:l.get("anchorOffset")+t.length}),h=s.EditorState.acceptSelection(h,l),d=s.Modifier.insertText(h.getCurrentContent(),l," ",h.getCurrentInlineStyle(),void 0),a(s.EditorState.push(h,d,"insert-characters")),n.doCollapse()};var r=n.props,o=r.editorState,i=r.modalHandler;return n.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(c.getSelectionEntity)(o):void 0},i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xe(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentEntity:Object(c.getSelectionEntity)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,s=i.selectionText,c=e.component||be;return o.a.createElement(c,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:s},onChange:this.onChange})}}])&&we(e.prototype,n),t}();De.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var je=De;function Oe(t){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Te(t){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Le(t,e){return(Le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(27);var Ae=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==Oe(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Te(t)).call.apply(e,[this].concat(o)))).state={embeddedLink:"",height:n.props.config.defaultSize.height,width:n.props.config.defaultSize.width},n.onChange=function(){var t=n.props.onChange,e=n.state;t(e.embeddedLink,e.height,e.width)},n.updateValue=function(t){var e,r,o;n.setState((e={},r="".concat(t.target.name),o=t.target.value,r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e))},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Le(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.expanded,r=e.config;if(!n&&t.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var t=this.state,e=t.embeddedLink,n=t.height,r=t.width,i=this.props,a=i.config.popupClassName,s=i.doCollapse,c=i.translations;return o.a.createElement("div",{className:l()("rdw-embedded-modal",a),onClick:S},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},c["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:c["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:e,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!e||!n||!r},c["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:s},c["generic.cancel"])))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(L,{className:l()(r),value:"unordered-list-item",onClick:s,title:i||c["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&Ie(e.prototype,n),t}();Ae.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var Ne=Ae;function ze(t){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pe(t){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Be(t,e){return(Be=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Fe=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==ze(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Pe(t)).call.apply(e,[this].concat(o)))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addEmbeddedLink=function(t,e,r){var o=n.props,i=o.editorState,a=o.onChange,c=o.config.embedCallback,u=c?c(t):t,l=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:u,height:e,width:r}).getLastCreatedEntityKey();a(s.AtomicBlockUtils.insertAtomicBlock(i,l," ")),n.doCollapse()},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Be(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||Ne;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Re(e.prototype,n),t}();Fe.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Ue=Fe;function Ke(t){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function He(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qe(t){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function We(t,e){return(We=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(28);var Ye=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==Ke(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=qe(t)).call.apply(e,[this].concat(o)))).onChange=function(t){(0,n.props.onChange)(t.target.innerHTML)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&We(t,e)}(t,r.Component),e=t,(n=[{key:"renderEmojiModal",value:function(){var t=this,e=this.props.config,n=e.popupClassName,r=e.emojis;return o.a.createElement("div",{className:l()("rdw-emoji-modal",n),onClick:S},r.map((function(e,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:t.onChange},e)})))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||c["components.controls.emoji.emoji"]},o.a.createElement(L,{className:l()(r),value:"unordered-list-item",onClick:s},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&He(e.prototype,n),t}();Ye.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Ve=Ye;function Qe(t){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ge(t){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Je(t,e){return(Je=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Xe=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==Qe(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Ge(t)).call.apply(e,[this].concat(o)))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.addEmoji=function(t){var e=n.props,r=e.editorState,o=e.onChange,i=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(s.EditorState.push(r,i,"insert-characters")),n.doCollapse()},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Je(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||Ve;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Ze(e.prototype,n),t}();function $e(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function tn(t){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function en(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nn(t){return(nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function rn(t,e){return(rn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Xe.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var on=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==tn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=nn(t)).call.apply(e,[this].concat(o)))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:n.props.config.uploadEnabled&&!!n.props.config.uploadCallback,showImageLoading:!1,height:n.props.config.defaultSize.height,width:n.props.config.defaultSize.width,alt:""},n.onDragEnter=function(t){n.stopPropagation(t),n.setState({dragEnter:!0})},n.onImageDrop=function(t){var e,r;t.preventDefault(),t.stopPropagation(),n.setState({dragEnter:!1}),r=t.dataTransfer.items?(e=t.dataTransfer.items,!0):(e=t.dataTransfer.files,!1);for(var o=0;o<e.length;o+=1)if((!r||"file"===e[o].kind)&&e[o].type.match("^image/")){var i=r?e[o].getAsFile():e[o];n.uploadImage(i)}},n.showImageUploadOption=function(){n.setState({uploadHighlighted:!0})},n.addImageFromState=function(){var t=n.state,e=t.imgSrc,r=t.alt,o=n.state,i=o.height,a=o.width,s=n.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),s(e,i,a,r)},n.showImageURLOption=function(){n.setState({uploadHighlighted:!1})},n.toggleShowImageLoading=function(){var t=!n.state.showImageLoading;n.setState({showImageLoading:t})},n.updateValue=function(t){var e,r,o;n.setState((e={},r="".concat(t.target.name),o=t.target.value,r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e))},n.selectImage=function(t){t.target.files&&0<t.target.files.length&&n.uploadImage(t.target.files[0])},n.uploadImage=function(t){n.toggleShowImageLoading(),(0,n.props.config.uploadCallback)(t).then((function(t){var e=t.data;n.setState({showImageLoading:!1,dragEnter:!1,imgSrc:e.link||e.url}),n.fileUpload=!1})).catch((function(){n.setState({showImageLoading:!1,dragEnter:!1})}))},n.fileUploadClick=function(t){n.fileUpload=!0,t.stopPropagation()},n.stopPropagation=function(t){n.fileUpload?n.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rn(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.config;t.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback,showImageLoading:!1,height:e.defaultSize.height,width:e.defaultSize.width,alt:""}):e.uploadCallback===t.config.uploadCallback&&e.uploadEnabled===t.config.uploadEnabled||this.setState({uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback})}},{key:"renderAddImageModal",value:function(){var t=this.state,e=t.imgSrc,n=t.uploadHighlighted,r=t.showImageLoading,i=t.dragEnter,a=t.height,s=t.width,c=t.alt,u=this.props,f=u.config,p=f.popupClassName,d=f.uploadCallback,h=f.uploadEnabled,g=f.urlEnabled,y=f.previewImage,m=f.inputAccept,v=f.alt,b=u.doCollapse,_=u.translations;return o.a.createElement("div",{className:l()("rdw-image-modal",p),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},h&&d&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},_["components.controls.image.fileUpload"],o.a.createElement("span",{className:l()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),g&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},_["components.controls.image.byURL"],o.a.createElement("span",{className:l()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:l()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},y&&e?o.a.createElement("img",{src:e,alt:e,className:"rdw-image-modal-upload-option-image-preview"}):e||_["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:m,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:_["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:e}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),v.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:c,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},v.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!e||!a||!s||v.mandatory&&!c},_["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},_["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement($e,null)):void 0)}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(L,{className:l()(r),value:"unordered-list-item",onClick:s,title:i||c["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&en(e.prototype,n),t}();on.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var an=on;function sn(t){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function un(t){return(un=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ln(t,e){return(ln=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var fn=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==sn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,un(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.addImage=function(t,e,r,o){var i=n.props,a=i.editorState,c=i.onChange,u={src:t,height:e,width:r};i.config.alt.present&&(u.alt=o);var l=a.getCurrentContent().createEntity("IMAGE","MUTABLE",u).getLastCreatedEntityKey();c(s.AtomicBlockUtils.insertAtomicBlock(a,l," ")),n.doCollapse()};var r=n.props.modalHandler;return n.state={expanded:!1},r.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ln(t,e)}(t,r.Component),e=t,(n=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||an;return o.a.createElement(i,{config:e,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&cn(e.prototype,n),t}();function pn(t){var e=t.config,n=t.onChange,r=t.translations,i=e.icon,a=e.className,s=e.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(L,{className:l()(a),onClick:n,title:s||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}fn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var dn=fn;n(31),pn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var hn=pn;function gn(t){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mn(t){return(mn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vn(t,e){return(vn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var bn=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==gn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=mn(t)).call.apply(e,[this].concat(o)))).state={expanded:!1},n.onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1},n.removeInlineStyles=function(){var t=n.props,e=t.editorState;(0,t.onChange)(n.removeAllInlineStyles(e))},n.removeAllInlineStyles=function(t){var e=t.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){e=s.Modifier.removeInlineStyle(e,t.getSelection(),n)})),_(Object(c.getSelectionCustomInlineStyle)(t,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(e=s.Modifier.removeInlineStyle(e,t.getSelection(),r))})),s.EditorState.push(t,e,"change-inline-style")},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vn(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||hn;return o.a.createElement(i,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&yn(e.prototype,n),t}();function _n(t){return(_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sn(t){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xn(t,e){return(xn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}bn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var Mn=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==_n(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Sn(t)).call.apply(e,[this].concat(o)))).onChange=function(t){(0,n.props.onChange)(t)},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xn(t,e)}(t,r.Component),e=t,(n=[{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,s=t.currentState,c=s.undoDisabled,u=s.redoDisabled,f=t.translations,p=e.options,d=e.undo,h=e.redo,g=e.className,y=e.dropdownClassName,m=e.title;return o.a.createElement(P,{className:l()("rdw-history-dropdown",g),optionWrapperClassName:l()(y),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:m||f["components.controls.history.history"]},o.a.createElement("img",{src:x(e),alt:""}),0<=p.indexOf("undo")&&o.a.createElement(q,{value:"undo",onClick:this.onChange,disabled:c,className:l()("rdw-history-dropdownoption",d.className),title:d.title||f["components.controls.history.undo"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("redo")&&o.a.createElement(q,{value:"redo",onClick:this.onChange,disabled:u,className:l()("rdw-history-dropdownoption",h.className),title:h.title||f["components.controls.history.redo"]},o.a.createElement("img",{src:h.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.undo,i=e.redo,a=e.className,s=t.currentState,c=s.undoDisabled,u=s.redoDisabled,f=t.translations;return o.a.createElement("div",{className:l()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(L,{value:"undo",onClick:this.onChange,className:l()(r.className),disabled:c,title:r.title||f["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(L,{value:"redo",onClick:this.onChange,className:l()(i.className),disabled:u,title:i.title||f["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&wn(e.prototype,n),t}();function En(t){return(En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cn(t){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Dn(t,e){return(Dn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Mn.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var jn=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==En(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,Cn(t).call(this,e))).onExpandEvent=function(){n.signalExpanded=!n.state.expanded},n.onChange=function(t){var e=n.props,r=e.editorState,o=e.onChange,i=s.EditorState[t](r);i&&o(i)},n.doExpand=function(){n.setState({expanded:!0})},n.doCollapse=function(){n.setState({expanded:!1})};var r={expanded:!(n.expandCollapse=function(){n.setState({expanded:n.signalExpanded}),n.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,i=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),n.state=r,i.registerCallBack(n.expandCollapse),n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dn(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&t.editorState!==e&&this.setState({undoDisabled:0===e.getUndoStack().size,redoDisabled:0===e.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,s=r.expanded,c=e.component||Mn;return o.a.createElement(c,{config:e,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&kn(e.prototype,n),t}();jn.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var On={inline:tt,blockType:pt,fontSize:St,fontFamily:Lt,list:Ht,textAlign:$t,colorPicker:fe,link:je,embedded:Ue,emoji:Xe,image:dn,remove:bn,history:jn};function In(t){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ln(t){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function An(t,e){return(An=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Nn(t,e,n){t.findEntityRanges((function(t){var e=t.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()}),e)}function zn(t){var e,n,i=t.showOpenOptionOnHover;return n=e=function(){function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=function(t,e){return!e||"object"!==In(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Ln(t)).call.apply(e,[this].concat(o)))).state={showPopOver:!1},n.openLink=function(){var t=n.props,e=t.entityKey,r=t.contentState.getEntity(e).getData().url,o=window.open(r,"blank");o&&o.focus()},n.toggleShowPopOver=function(){var t=!n.state.showPopOver;n.setState({showPopOver:t})},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&An(t,e)}(t,r.Component),e=t,(n=[{key:"render",value:function(){var t=this.props,e=t.children,n=t.entityKey,r=t.contentState.getEntity(n).getData(),a=r.url,s=r.targetOption,c=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:a,target:s},e),c&&i?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&Tn(e.prototype,n),t}(),e.propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},n}function Rn(t){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Rn),this.getMentionComponent=function(){function t(t){var e=t.entityKey,r=t.children,i=t.contentState.getEntity(e).getData(),a=i.url,s=i.value;return o.a.createElement("a",{href:a||s,className:l()("rdw-mention-link",n)},r)}var n=e.className;return t.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},t},this.getMentionDecorator=function(){return{strategy:e.findMentionEntities,component:e.getMentionComponent()}},this.className=t}n(33),n(34),Rn.prototype.findMentionEntities=function(t,e,n){t.findEntityRanges((function(t){var e=t.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()}),e)};var Pn=Rn;function Bn(t){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Un(t){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Kn(t,e){return(Kn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(35);var qn=function t(e){var n=this;Hn(this,t),this.findSuggestionEntities=function(t,e){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,s=(0,r.getEditorState)().getSelection();if(s.get("anchorKey")===t.get("key")&&s.get("anchorKey")===s.get("focusKey")){var c=t.getText(),u=(c=c.substr(0,s.get("focusOffset")===c.length-1?c.length:s.get("focusOffset")+1)).lastIndexOf(o+i),l=o+i;if((void 0===u||u<0)&&c[0]===i&&(u=0,l=i),0<=u){var f=c.substr(u+l.length,c.length);a().some((function(t){return!!t.value&&(n.config.caseSensitive?0<=t.value.indexOf(f):0<=t.value.toLowerCase().indexOf(f&&f.toLowerCase()))}))&&e(0===u?0:u+1,c.length)}}}},this.getSuggestionComponent=function(){var t,e,n=this.config;return e=t=function(){function t(){var e,r;Hn(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=function(t,e){return!e||"object"!==Bn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(e=Un(t)).call.apply(e,[this].concat(i)))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(t){var e=r.state.activeOption,n={};"ArrowDown"===t.key?(t.preventDefault(),e===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=e+1):"ArrowUp"===t.key?n.activeOption=e<=0?r.filteredSuggestions.length-1:e-1:"Escape"===t.key?(n.showSuggestions=!1,m()):"Enter"===t.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(t){var e=t.target.getAttribute("data-index");r.setState({activeOption:e})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(t){r.suggestion=t},r.setDropdownReference=function(t){r.dropdown=t},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(t){var e=t.children[0].props.text.substr(1),o=n.getSuggestions();r.filteredSuggestions=o&&o.filter((function(t){return!e||0===e.length||(n.caseSensitive?0<=t.value.indexOf(e):0<=t.value.toLowerCase().indexOf(e&&e.toLowerCase()))}))},r.addMention=function(){var t=r.state.activeOption,e=n.getEditorState(),o=n.onChange,i=n.separator,a=n.trigger,u=r.filteredSuggestions[t];u&&function(t,e,n,r,o){var i=o.value,a=o.url,u=t.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),l=Object(c.getSelectedBlock)(t).getText(),f=t.getSelection().focusOffset,p=(l.lastIndexOf(n+r,f)||0)+1,d=!1;l.length===p+1&&(f=l.length)," "===l[f]&&(d=!0);var h=t.getSelection().merge({anchorOffset:p,focusOffset:f}),g=s.EditorState.acceptSelection(t,h),y=s.Modifier.replaceText(g.getCurrentContent(),h,"".concat(r).concat(i),g.getCurrentInlineStyle(),u);g=s.EditorState.push(g,y,"insert-characters"),d||(h=g.getSelection().merge({anchorOffset:p+i.length+r.length,focusOffset:p+i.length+r.length}),g=s.EditorState.acceptSelection(g,h),y=s.Modifier.insertText(g.getCurrentContent(),h," ",g.getCurrentInlineStyle(),void 0)),e(s.EditorState.push(g,y,"insert-characters"))}(e,o,i,a,u)},r}var e,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Kn(t,e)}(t,r.Component),e=t,(i=[{key:"componentDidMount",value:function(){var t,e,r,o=n.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?e=15:t=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:t,right:e,bottom:r}}),g.registerCallBack(this.onEditorKeyDown),y(),n.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(t){this.props.children!==t.children&&(this.filterSuggestions(t),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){g.deregisterCallBack(this.onEditorKeyDown),m(),n.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var t=this,e=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,s=n.dropdownClassName,c=n.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:n.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,e),a&&o.a.createElement("span",{className:l()("rdw-suggestion-dropdown",s),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(e,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:t.addMention,"data-index":n,onMouseEnter:t.onOptionMouseEnter,onMouseLeave:t.onOptionMouseLeave,className:l()("rdw-suggestion-option",c,{"rdw-suggestion-option-active":n===i})},e.text)}))))}}])&&Fn(e.prototype,i),t}(),t.propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=e.separator,u=e.trigger,f=e.getSuggestions,p=e.onChange,d=e.getEditorState,h=e.getWrapperRef,v=e.caseSensitive,b=e.dropdownClassName,_=e.optionClassName,w=e.modalHandler;this.config={separator:i,trigger:u,getSuggestions:f,onChange:p,getEditorState:d,getWrapperRef:h,caseSensitive:v,dropdownClassName:b,optionClassName:_,modalHandler:w}};function Wn(t){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,Wn),this.getHashtagComponent=function(){function t(t){var e=t.children,r=e[0].props.text;return o.a.createElement("a",{href:r,className:l()("rdw-hashtag-link",n)},e)}var n=e.className;return t.propTypes={children:a.a.object},t},this.findHashtagEntities=function(t,n){for(var r=t.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===e.hashCharacter?(i=o=0,r=r.substr(e.hashCharacter.length)):0<=(o=r.indexOf(e.separator+e.hashCharacter))&&(r=r.substr(o+(e.separator+e.hashCharacter).length),i+=o+e.separator.length),0<=o){var a=0<=r.indexOf(e.separator)?r.indexOf(e.separator):r.length,s=r.substr(0,a);s&&0<s.length&&(n(i,i+s.length+e.hashCharacter.length),i+=e.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:e.findHashtagEntities,component:e.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "}function Yn(t){var e=t.block,n=t.contentState.getEntity(e.getEntityAt(0)).getData(),r=n.src,i=n.height,a=n.width;return o.a.createElement("iframe",{height:i,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);Yn.propTypes={block:a.a.object,contentState:a.a.object};var Vn=Yn;function Qn(t){return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gn(t){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Jn(t,e){return(Jn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(37);var Xn=function(t){var e,n;return n=e=function(){function e(){var n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=function(t,e){return!e||"object"!==Qn(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,(n=Gn(e)).call.apply(n,[this].concat(i)))).state={hovered:!1},r.setEntityAlignmentLeft=function(){r.setEntityAlignment("left")},r.setEntityAlignmentRight=function(){r.setEntityAlignment("right")},r.setEntityAlignmentCenter=function(){r.setEntityAlignment("none")},r.setEntityAlignment=function(e){var n=r.props,o=n.block,i=n.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:e}),t.onChange(s.EditorState.push(t.getEditorState(),i,"change-block-data")),r.setState({dummy:!0})},r.toggleHovered=function(){var t=!r.state.hovered;r.setState({hovered:t})},r}var n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jn(t,e)}(e,r.Component),n=e,(i=[{key:"renderAlignmentOptions",value:function(t){return o.a.createElement("div",{className:l()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===t})},o.a.createElement(L,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(L,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(L,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var e=this.props,n=e.block,r=e.contentState,i=this.state.hovered,a=t.isReadOnly,s=t.isImageAlignmentEnabled,c=r.getEntity(n.getEntityAt(0)).getData(),u=c.src,f=c.alignment,p=c.height,d=c.width,h=c.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:l()("rdw-image-alignment",{"rdw-image-left":"left"===f,"rdw-image-right":"right"===f,"rdw-image-center":!f||"none"===f})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:u,alt:h,style:{height:p,width:d}}),!a()&&i&&s()?this.renderAlignmentOptions(f):void 0))}}])&&Zn(n.prototype,i),e}(),e.propTypes={block:a.a.object,contentState:a.a.object},n},$n={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},tr={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function er(t){return(er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nr(){return(nr=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function rr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(n),!0).forEach((function(e){ir(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ir(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ar(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function sr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cr(t){return(cr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ur(t,e){return(ur=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n(38),n(39);var lr=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(t,e){return!e||"object"!==er(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,cr(t).call(this,e))).onEditorBlur=function(){n.setState({editorFocused:!1})},n.onEditorFocus=function(t){var e=n.props.onFocus;n.setState({editorFocused:!0});var r=n.focusHandler.isEditorFocused();e&&r&&e(t)},n.onEditorMouseDown=function(){n.focusHandler.onEditorMouseDown()},n.keyBindingFn=function(t){if("Tab"!==t.key)return"ArrowUp"!==t.key&&"ArrowDown"!==t.key||v()&&t.preventDefault(),Object(s.getDefaultKeyBinding)(t);var e=n.props.onTab;if(!e||!e(t)){var r=Object(c.changeDepth)(n.state.editorState,t.shiftKey?-1:1,4);r&&r!==n.state.editorState&&(n.onChange(r),t.preventDefault())}return null},n.onToolbarFocus=function(t){var e=n.props.onFocus;e&&n.focusHandler.isToolbarFocused()&&e(t)},n.onWrapperBlur=function(t){var e=n.props.onBlur;e&&n.focusHandler.isEditorBlur(t)&&e(t,n.getEditorState())},n.onChange=function(t){var e=n.props,r=e.readOnly,o=e.onEditorStateChange;r||"atomic"===Object(c.getSelectedBlocksType)(t)&&t.getSelection().isCollapsed||(o&&o(t,n.props.wrapperId),w(n.props,"editorState")?n.afterChange(t):n.setState({editorState:t},n.afterChange(t)))},n.setWrapperReference=function(t){n.wrapper=t},n.setEditorReference=function(t){n.props.editorRef&&n.props.editorRef(t),n.editor=t},n.getCompositeDecorator=function(t){var e=[].concat(ar(n.props.customDecorators),[{strategy:Nn,component:zn({showOpenOptionOnHover:t.link.showOpenOptionOnHover})}]);return n.props.mention&&e.push.apply(e,ar(function(t){return[new Pn(t.mentionClassName).getMentionDecorator(),new qn(t).getSuggestionDecorator()]}(or({},n.props.mention,{onChange:n.onChange,getEditorState:n.getEditorState,getSuggestions:n.getSuggestions,getWrapperRef:n.getWrapperRef,modalHandler:n.modalHandler})))),n.props.hashtag&&e.push(function(t){return new Wn(t).getHashtagDecorator()}(n.props.hashtag)),new s.CompositeDecorator(e)},n.getWrapperRef=function(){return n.wrapper},n.getEditorState=function(){return n.state?n.state.editorState:null},n.getSuggestions=function(){return n.props.mention&&n.props.mention.suggestions},n.afterChange=function(t){setTimeout((function(){var e=n.props,r=e.onChange,o=e.onContentStateChange;r&&r(Object(s.convertToRaw)(t.getCurrentContent())),o&&o(Object(s.convertToRaw)(t.getCurrentContent()))}))},n.isReadOnly=function(){return n.props.readOnly},n.isImageAlignmentEnabled=function(){return n.state.toolbar.image.alignmentEnabled},n.createEditorState=function(t){var e;if(w(n.props,"editorState"))n.props.editorState&&(e=s.EditorState.set(n.props.editorState,{decorator:t}));else if(w(n.props,"defaultEditorState"))n.props.defaultEditorState&&(e=s.EditorState.set(n.props.defaultEditorState,{decorator:t}));else if(w(n.props,"contentState")){if(n.props.contentState){var r=Object(s.convertFromRaw)(n.props.contentState);e=s.EditorState.createWithContent(r,t),e=s.EditorState.moveSelectionToEnd(e)}}else if(w(n.props,"defaultContentState")||w(n.props,"initialContentState")){var o=n.props.defaultContentState||n.props.initialContentState;o&&(o=Object(s.convertFromRaw)(o),e=s.EditorState.createWithContent(o,t),e=s.EditorState.moveSelectionToEnd(e))}return e||s.EditorState.createEmpty(t)},n.filterEditorProps=function(t){return e=t,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(e).filter((function(t){return n.indexOf(t)<0})),o={},r&&0<r.length&&r.forEach((function(t){o[t]=e[t]})),o;var e,n,r,o},n.getStyleMap=function(t){return or({},Object(c.getCustomStyleMap)(),{},t.customStyleMap)},n.changeEditorState=function(t){var e=Object(s.convertFromRaw)(t),r=n.state.editorState;return r=s.EditorState.push(r,e,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},n.focusEditor=function(){setTimeout((function(){n.editor.focus()}))},n.handleKeyCommand=function(t){var e=n.state,r=e.editorState,o=e.toolbar.inline;if(o&&0<=o.options.indexOf(t)){var i=s.RichUtils.handleKeyCommand(r,t);if(i)return n.onChange(i),!0}return!1},n.handleReturn=function(t){if(v())return!0;var e=n.state.editorState,r=Object(c.handleNewLine)(e,t);return!!r&&(n.onChange(r),!0)},n.handlePastedTextFn=function(t,e){var r=n.state.editorState,o=n.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(t,e,r,n.onChange):!a&&function(t,e,n,r){var o=Object(c.getSelectedBlock)(n);if(o&&"code"===o.type){var i=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),t,n.getCurrentInlineStyle());return r(s.EditorState.push(n,i,"insert-characters")),!0}if(e){var a=k()(e),u=n.getCurrentContent();return a.entityMap.forEach((function(t,e){u=u.mergeEntityData(e,t)})),u=s.Modifier.replaceWithFragment(u,n.getSelection(),new C.List(a.contentBlocks)),r(s.EditorState.push(n,u,"insert-characters")),!0}return!1}(t,e,r,n.onChange)},n.preventDefault=function(t){"INPUT"===t.target.tagName||"LABEL"===t.target.tagName||"TEXTAREA"===t.target.tagName?n.focusHandler.onInputMouseDown():t.preventDefault()};var r=M($n,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());n.wrapperId="rdw-wrapper-".concat(o),n.modalHandler=new f,n.focusHandler=new p,n.blockRendererFn=function(t,e){return function(n){if("function"==typeof e){var r=e(n,t,t.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=t.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:Xn(t),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:Vn,editable:!1}}}}({isReadOnly:n.isReadOnly,isImageAlignmentEnabled:n.isImageAlignmentEnabled,getEditorState:n.getEditorState,onChange:n.onChange},e.customBlockRenderFunc),n.editorProps=n.filterEditorProps(e),n.customStyleMap=n.getStyleMap(e),n.compositeDecorator=n.getCompositeDecorator(r);var i=n.createEditorState(n.compositeDecorator);return Object(c.extractInlineStyle)(i),n.state={editorState:i,editorFocused:!1,toolbar:r},n}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ur(t,e)}(t,r.Component),e=t,(n=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(t){if(t!==this.props){var e={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=M($n,i);e.toolbar=i}if(w(this.props,"editorState")&&r!==t.editorState)e.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(w(this.props,"contentState")&&o!==t.contentState)if(o){var a=this.changeEditorState(o);a&&(e.editorState=a)}else e.editorState=s.EditorState.createEmpty(this.compositeDecorator);t.editorState===r&&t.contentState===o||Object(c.extractInlineStyle)(e.editorState),Object.keys(e).length&&this.setState(e),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var t=this.state,e=t.editorState,n=t.editorFocused,r=t.toolbar,i=this.props,a=i.locale,u=i.localization,f=u.locale,p=u.translations,d=i.toolbarCustomButtons,h=i.toolbarOnFocus,y=i.toolbarClassName,m=i.toolbarHidden,v=i.editorClassName,_=i.wrapperClassName,w=i.toolbarStyle,S=i.editorStyle,x=i.wrapperStyle,M=i.uploadCallback,E=i.ariaLabel,k={modalHandler:this.modalHandler,editorState:e,onChange:this.onChange,translations:or({},tr[a||f],{},p)},C=n||this.focusHandler.isInputFocused()||!h;return o.a.createElement("div",{id:this.wrapperId,className:l()(_,"rdw-editor-wrapper"),style:x,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!m&&o.a.createElement("div",{className:l()("rdw-editor-toolbar",y),style:or({visibility:C?"visible":"hidden"},w),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&h).toString(),onFocus:this.onToolbarFocus},r.options.map((function(t,e){var n=On[t],i=r[t];return"image"===t&&M&&(i.uploadCallback=M),o.a.createElement(n,nr({key:e},k,{config:i}))})),d&&d.map((function(t,e){return o.a.cloneElement(t,or({key:e},k))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:l()(v,"rdw-editor-main"),style:S,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:g.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(s.Editor,nr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:e,onChange:this.onChange,blockStyleFn:b,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:E||"rdw-editor",blockRenderMap:c.blockRenderMap},this.editorProps))))}}])&&sr(e.prototype,n),t}();lr.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},lr.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var fr=lr;n.d(e,"Editor",(function(){return fr}))}],r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i}(n(1024),n(6880),n(11203))},30582:function(t,e,n){"use strict";var r=n(1024),o=n.n(r),i=n(60216),a=n.n(i),s=n(82049),c=n.n(s),u=n(56784),l=n.n(u),f=n(55007),p=n.n(f);function d(){return d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d.apply(this,arguments)}function h(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,g(t,e)}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function y(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}var m={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},v={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},_={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(m).map((function(t){return m[t]})),S={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},x=Object.keys(S).reduce((function(t,e){return t[S[e]]=e,t}),{}),M=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(Object.prototype.hasOwnProperty.call(r,e))return r[e]}return null},E=function(t){var e=M(t,m.TITLE),n=M(t,"titleTemplate");if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,(function(){return e}));var r=M(t,"defaultTitle");return e||r||void 0},k=function(t){return M(t,"onChangeClientState")||function(){}},C=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return d({},t,e)}),{})},D=function(t,e){return e.filter((function(t){return void 0!==t[m.BASE]})).map((function(t){return t[m.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),o=0;o<r.length;o+=1){var i=r[o].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},j=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+t+' should be of type "Array". Instead found type "'+typeof e[t]+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var o={};n.filter((function(t){for(var n,i=Object.keys(t),a=0;a<i.length;a+=1){var s=i[a],c=s.toLowerCase();-1===e.indexOf(c)||"rel"===n&&"canonical"===t[n].toLowerCase()||"rel"===c&&"stylesheet"===t[c].toLowerCase()||(n=c),-1===e.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!t[n])return!1;var u=t[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][u]&&(o[n][u]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],c=d({},r[s],o[s]);r[s]=c}return t}),[]).reverse()},O=function(t,e){if(Array.isArray(t)&&t.length)for(var n=0;n<t.length;n+=1)if(t[n][e])return!0;return!1},I=function(t){return Array.isArray(t)?t.join(""):t},T=function(t,e){return Array.isArray(t)?t.reduce((function(t,n){return function(t,e){for(var n=Object.keys(t),r=0;r<n.length;r+=1)if(e[n[r]]&&e[n[r]].includes(t[n[r]]))return!0;return!1}(n,e)?t.priority.push(n):t.default.push(n),t}),{priority:[],default:[]}):{default:t}},L=function(t,e){var n;return d({},t,((n={})[e]=void 0,n))},A=[m.NOSCRIPT,m.SCRIPT,m.STYLE],N=function(t,e){return void 0===e&&(e=!0),!1===e?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},z=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},R=function(t,e){return void 0===e&&(e={}),Object.keys(t).reduce((function(e,n){return e[S[n]||n]=t[n],e}),e)},P=function(t,e){return e.map((function(e,n){var r,i=((r={key:n})["data-rh"]=!0,r);return Object.keys(e).forEach((function(t){var n=S[t]||t;"innerHTML"===n||"cssText"===n?i.dangerouslySetInnerHTML={__html:e.innerHTML||e.cssText}:i[n]=e[t]})),o().createElement(t,i)}))},B=function(t,e,n){switch(t){case m.TITLE:return{toComponent:function(){return n=e.titleAttributes,(r={key:t=e.title})["data-rh"]=!0,i=R(n,r),[o().createElement(m.TITLE,i,t)];var t,n,r,i},toString:function(){return function(t,e,n,r){var o=z(n),i=I(e);return o?"<"+t+' data-rh="true" '+o+">"+N(i,r)+"</"+t+">":"<"+t+' data-rh="true">'+N(i,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return R(e)},toString:function(){return z(e)}};default:return{toComponent:function(){return P(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var o=Object.keys(r).filter((function(t){return!("innerHTML"===t||"cssText"===t)})).reduce((function(t,e){var o=void 0===r[e]?e:e+'="'+N(r[e],n)+'"';return t?t+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===A.indexOf(t);return e+"<"+t+' data-rh="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}},F=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,o=t.htmlAttributes,i=t.noscriptTags,a=t.styleTags,s=t.title,c=void 0===s?"":s,u=t.titleAttributes,l=t.linkTags,f=t.metaTags,p=t.scriptTags,d={toComponent:function(){},toString:function(){return""}};if(t.prioritizeSeoTags){var h=function(t){var e=t.linkTags,n=t.scriptTags,r=t.encode,o=T(t.metaTags,_),i=T(e,v),a=T(n,b);return{priorityMethods:{toComponent:function(){return[].concat(P(m.META,o.priority),P(m.LINK,i.priority),P(m.SCRIPT,a.priority))},toString:function(){return B(m.META,o.priority,r)+" "+B(m.LINK,i.priority,r)+" "+B(m.SCRIPT,a.priority,r)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(t);d=h.priorityMethods,l=h.linkTags,f=h.metaTags,p=h.scriptTags}return{priority:d,base:B(m.BASE,e,r),bodyAttributes:B("bodyAttributes",n,r),htmlAttributes:B("htmlAttributes",o,r),link:B(m.LINK,l,r),meta:B(m.META,f,r),noscript:B(m.NOSCRIPT,i,r),script:B(m.SCRIPT,p,r),style:B(m.STYLE,a,r),title:B(m.TITLE,{title:c,titleAttributes:u},r)}},U=[],K=function(t,e){var n=this;void 0===e&&(e="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(t){n.context.helmet=t},helmetInstances:{get:function(){return n.canUseDOM?U:n.instances},add:function(t){(n.canUseDOM?U:n.instances).push(t)},remove:function(t){var e=(n.canUseDOM?U:n.instances).indexOf(t);(n.canUseDOM?U:n.instances).splice(e,1)}}},this.context=t,this.canUseDOM=e,e||(t.helmet=F({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},H=o().createContext({}),q=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),W="undefined"!=typeof document,Y=function(t){function e(n){var r;return(r=t.call(this,n)||this).helmetData=new K(r.props.context,e.canUseDOM),r}return h(e,t),e.prototype.render=function(){return o().createElement(H.Provider,{value:this.helmetData.value},this.props.children)},e}(r.Component);Y.canUseDOM=W,Y.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},Y.defaultProps={context:{}},Y.displayName="HelmetProvider";var V=function(t,e){var n,r=document.head||document.querySelector(m.HEAD),o=r.querySelectorAll(t+"[data-rh]"),i=[].slice.call(o),a=[];return e&&e.length&&e.forEach((function(e){var r=document.createElement(t);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&("innerHTML"===o?r.innerHTML=e.innerHTML:"cssText"===o?r.styleSheet?r.styleSheet.cssText=e.cssText:r.appendChild(document.createTextNode(e.cssText)):r.setAttribute(o,void 0===e[o]?"":e[o]));r.setAttribute("data-rh","true"),i.some((function(t,e){return n=e,r.isEqualNode(t)}))?i.splice(n,1):a.push(r)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),a.forEach((function(t){return r.appendChild(t)})),{oldTags:i,newTags:a}},Q=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute("data-rh"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(e),s=0;s<a.length;s+=1){var c=a[s],u=e[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f-=1)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},Z=function(t,e){var n=t.baseTag,r=t.htmlAttributes,o=t.linkTags,i=t.metaTags,a=t.noscriptTags,s=t.onChangeClientState,c=t.scriptTags,u=t.styleTags,l=t.title,f=t.titleAttributes;Q(m.BODY,t.bodyAttributes),Q(m.HTML,r),function(t,e){void 0!==t&&document.title!==t&&(document.title=I(t)),Q(m.TITLE,e)}(l,f);var p={baseTag:V(m.BASE,n),linkTags:V(m.LINK,o),metaTags:V(m.META,i),noscriptTags:V(m.NOSCRIPT,a),scriptTags:V(m.SCRIPT,c),styleTags:V(m.STYLE,u)},d={},h={};Object.keys(p).forEach((function(t){var e=p[t],n=e.newTags,r=e.oldTags;n.length&&(d[t]=n),r.length&&(h[t]=p[t].oldTags)})),e&&e(),s(t,d,h)},G=null,J=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).rendered=!1,e}h(e,t);var n=e.prototype;return n.shouldComponentUpdate=function(t){return!p()(t,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var t,e,n=this.props.context,r=n.setHelmet,o=null,i=(t=n.helmetInstances.get().map((function(t){var e=d({},t.props);return delete e.context,e})),{baseTag:D(["href"],t),bodyAttributes:C("bodyAttributes",t),defer:M(t,"defer"),encode:M(t,"encodeSpecialCharacters"),htmlAttributes:C("htmlAttributes",t),linkTags:j(m.LINK,["rel","href"],t),metaTags:j(m.META,["name","charset","http-equiv","property","itemprop"],t),noscriptTags:j(m.NOSCRIPT,["innerHTML"],t),onChangeClientState:k(t),scriptTags:j(m.SCRIPT,["src","innerHTML"],t),styleTags:j(m.STYLE,["cssText"],t),title:E(t),titleAttributes:C("titleAttributes",t),prioritizeSeoTags:O(t,"prioritizeSeoTags")});Y.canUseDOM?(e=i,G&&cancelAnimationFrame(G),e.defer?G=requestAnimationFrame((function(){Z(e,(function(){G=null}))})):(Z(e),G=null)):F&&(o=F(i)),r(o)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},e}(r.Component);J.propTypes={context:q.isRequired},J.displayName="HelmetDispatcher";var X=["children"],$=["children"],tt=function(t){function e(){return t.apply(this,arguments)||this}h(e,t);var n=e.prototype;return n.shouldComponentUpdate=function(t){return!c()(L(this.props,"helmetData"),L(t,"helmetData"))},n.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case m.SCRIPT:case m.NOSCRIPT:return{innerHTML:e};case m.STYLE:return{cssText:e};default:throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren;return d({},r,((e={})[n.type]=[].concat(r[n.type]||[],[d({},t.newChildProps,this.mapNestedChildrenToProps(n,t.nestedChildren))]),e))},n.mapObjectTypeChildren=function(t){var e,n,r=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(r.type){case m.TITLE:return d({},o,((e={})[r.type]=a,e.titleAttributes=d({},i),e));case m.BODY:return d({},o,{bodyAttributes:d({},i)});case m.HTML:return d({},o,{htmlAttributes:d({},i)});default:return d({},o,((n={})[r.type]=d({},i),n))}},n.mapArrayTypeChildrenToProps=function(t,e){var n=d({},e);return Object.keys(t).forEach((function(e){var r;n=d({},n,((r={})[e]=t[e],r))})),n},n.warnOnInvalidChildren=function(t,e){return l()(w.some((function(e){return t.type===e})),"function"==typeof t.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+t.type+"> elements. Refer to our API for more information."),l()(!e||"string"==typeof e||Array.isArray(e)&&!e.some((function(t){return"string"!=typeof t})),"Helmet expects a string as a child of <"+t.type+">. Did you forget to wrap your children in braces? ( <"+t.type+">{``}</"+t.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(t,e){var n=this,r={};return o().Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=y(o,X),s=Object.keys(a).reduce((function(t,e){return t[x[e]||e]=a[e],t}),{}),c=t.type;switch("symbol"==typeof c?c=c.toString():n.warnOnInvalidChildren(t,i),c){case m.FRAGMENT:e=n.mapChildrenToProps(i,e);break;case m.LINK:case m.META:case m.NOSCRIPT:case m.SCRIPT:case m.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(r,e)},n.render=function(){var t=this.props,e=t.children,n=y(t,$),r=d({},n),i=n.helmetData;return e&&(r=this.mapChildrenToProps(e,r)),!i||i instanceof K||(i=new K(i.context,i.instances)),i?o().createElement(J,d({},r,{context:i.value,helmetData:void 0})):o().createElement(H.Consumer,null,(function(t){return o().createElement(J,d({},r,{context:t}))}))},e}(r.Component);tt.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},tt.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},tt.displayName="Helmet"},82049:function(t){var e="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof a.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof a.toString)return t.toString()===a.toString();if((s=(u=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(e&&t instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!t.$$typeof)&&!i(t[u[c]],a[u[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},17082:function(t,e,n){"use strict";n.d(e,{Nq:function(){return l},oD:function(){return p},t0:function(){return f}});var r,o=n(1024),i=n(30314),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s="html",c="svg",u=function(t,e){var n,r,o,i={};if(t===s)o=document.createElement("div");else{if(t!==c)throw new Error('Invalid element type "'+t+'" for createPortalNode: must be "html" or "svg".');o=document.createElementNS("http://www.w3.org/2000/svg","g")}if(e&&"object"==typeof e)for(var a=0,u=Object.entries(e.attributes);a<u.length;a++){var l=u[a],f=l[0],p=l[1];o.setAttribute(f,p)}var d={element:o,elementType:t,setPortalProps:function(t){i=t},getInitialPortalProps:function(){return i},mount:function(e,o){if(o!==r){if(d.unmount(),e!==n&&!function(t,e){if(e===s)return t instanceof HTMLElement;if(e===c)return t instanceof SVGElement;throw new Error('Unrecognized element type "'+e+'" for validateElementType.')}(e,t))throw new Error('Invalid element type for portal: "'+t+'" portalNodes must be used with '+t+" elements, but OutPortal is within <"+e.tagName+">.");e.replaceChild(d.element,o),n=e,r=o}},unmount:function(t){t&&t!==r||n&&r&&(n.replaceChild(r,d.element),n=void 0,r=void 0)}};return d},l=function(t){function e(e){var n=t.call(this,e)||this;return n.addPropsChannel=function(){Object.assign(n.props.node,{setPortalProps:function(t){n.setState({nodeProps:t})}})},n.state={nodeProps:n.props.node.getInitialPortalProps()},n}return a(e,t),e.prototype.componentDidMount=function(){this.addPropsChannel()},e.prototype.componentDidUpdate=function(){this.addPropsChannel()},e.prototype.render=function(){var t=this,e=this.props,n=e.children,r=e.node;return i.createPortal(o.Children.map(n,(function(e){return o.isValidElement(e)?o.cloneElement(e,t.state.nodeProps):e})),r.element)},e}(o.PureComponent),f=function(t){function e(e){var n=t.call(this,e)||this;return n.placeholderNode=o.createRef(),n.passPropsThroughPortal(),n}return a(e,t),e.prototype.passPropsThroughPortal=function(){var t=Object.assign({},this.props,{node:void 0});this.props.node.setPortalProps(t)},e.prototype.componentDidMount=function(){var t=this.props.node;this.currentPortalNode=t;var e=this.placeholderNode.current,n=e.parentNode;t.mount(n,e),this.passPropsThroughPortal()},e.prototype.componentDidUpdate=function(){var t=this.props.node;this.currentPortalNode&&t!==this.currentPortalNode&&(this.currentPortalNode.unmount(this.placeholderNode.current),this.currentPortalNode.setPortalProps({}),this.currentPortalNode=t);var e=this.placeholderNode.current,n=e.parentNode;t.mount(n,e),this.passPropsThroughPortal()},e.prototype.componentWillUnmount=function(){var t=this.props.node;t.unmount(this.placeholderNode.current),t.setPortalProps({})},e.prototype.render=function(){return o.createElement("div",{ref:this.placeholderNode})},e}(o.PureComponent),p=u.bind(null,s);u.bind(null,c)},41347:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(20011),o=n(1024),i=o.useLayoutEffect,a=function(t,e){"function"!=typeof t?t.current=e:t(e)},s={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},c=function(t){Object.keys(s).forEach((function(e){t.style.setProperty(e,s[e],"important")}))},u=null,l=function(){},f=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],p=!!document.documentElement.currentStyle,d=function(t,e){var n=t.cacheMeasurements,s=t.maxRows,d=t.minRows,h=t.onChange,g=void 0===h?l:h,y=t.onHeightChange,m=void 0===y?l:y,v=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}(t,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),b=void 0!==v.value,_=(0,o.useRef)(null),w=function(t,e){var n=(0,o.useRef)();return(0,o.useCallback)((function(r){t.current=r,n.current&&a(n.current,null),n.current=e,e&&a(e,r)}),[e])}(_,e),S=(0,o.useRef)(0),x=(0,o.useRef)(),M=function(){var t=_.current,e=n&&x.current?x.current:function(t){var e=window.getComputedStyle(t);if(null===e)return null;var n,r=(n=e,f.reduce((function(t,e){return t[e]=n[e],t}),{})),o=r.boxSizing;return""===o?null:(p&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(t);if(e){x.current=e;var r=function(t,e,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),u||((u=document.createElement("textarea")).setAttribute("tab-index","-1"),u.setAttribute("aria-hidden","true"),c(u)),null===u.parentNode&&document.body.appendChild(u);var o=t.paddingSize,i=t.borderSize,a=t.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(t){var e=t;u.style[e]=a[e]})),c(u),u.value=e;var l=function(t,e){var n=t.scrollHeight;return"border-box"===e.sizingStyle.boxSizing?n+e.borderSize:n-e.paddingSize}(u,t);u.value="x";var f=u.scrollHeight-o,p=f*n;"border-box"===s&&(p=p+o+i),l=Math.max(p,l);var d=f*r;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),f]}(e,t.value||t.placeholder||"x",d,s),o=r[0],i=r[1];S.current!==o&&(S.current=o,t.style.setProperty("height",o+"px","important"),m(o,{rowHeight:i}))}};return(0,o.useLayoutEffect)(M),function(t){var e,n,r=(e=t,n=o.useRef(e),i((function(){n.current=e})),n);(0,o.useLayoutEffect)((function(){var t=function(t){r.current(t)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[])}(M),(0,o.createElement)("textarea",(0,r.Z)({},v,{onChange:function(t){b||M(),g(t)},ref:w}))},h=(0,o.forwardRef)(d)},67257:function(t,e,n){!function(t){"use strict";if(!t.setImmediate){var e,n,r,o,i,a=1,s={},c=!1,u=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?e=function(t){process.nextTick((function(){p(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",i=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&p(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),e=function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){p(t.data)},e=function(t){r.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,e=function(t){var e=u.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):e=function(t){setTimeout(p,0,t)},l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:t,args:n};return s[a]=o,e(a),a++},l.clearImmediate=f}function f(t){delete s[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=s[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{f(t),c=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},55007:function(t){t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=t[u],f=e[u];if(!1===(o=n?n.call(r,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},40482:function(t,e,n){"use strict";var r,o=n(48878),i=n(27331),a=function(){try{return new window.XMLHttpRequest}catch(t){}};t.exports=o.extend((function(t){var e=t.events||{};return t&&t===t.window?{0:t,load:function(e){return t.addEventListener("load",e,!1)},bind:function(e,n){return t.addEventListener(e,n,!1)},unbind:function(e,n){return t.removeEventListener(e,n,!1)}}:{0:t,unbind:function(n,r){var o=e[n]||[];if(r){var i=o.indexOf(r);-1!==i&&o.splice(i,1)}else o=[];e[n]=o,t.events=e},bind:function(n,r){var o=e[n]||[];e[n]=o.concat(r),t.events=e},triggerHandler:function(t,n){var r=this;(e[t]||[]).forEach((function(e){n=n&&n[0]&&void 0===n[0].type?[{type:t}].concat(n||[]):n||[],e.apply(r,n)}))}}}),o,{defaultAjaxHeaders:null,ajax:function(t){var e=a();t.xhrFields&&t.xhrFields.withCredentials&&(e.withCredentials=!0),e.onreadystatechange=function(){if(4===e.readyState)if(200!==e.status||e._hasError)t.error&&t.error(e);else try{t.success&&t.success(JSON.parse(e.responseText))}catch(n){t.error&&t.error(e)}},e.withCredentials=t.xhrFields.withCredentials;var n="_="+(new Date).getTime();return-1===t.url.indexOf("?")?t.url+="?"+n:-1===t.url.indexOf("_=")?t.url+="&"+n:t.url=t.url.replace(/_=\d+/,n),e.open(t.type,t.url),e.setRequestHeader("content-type",t.contentType),t.headers&&Object.keys(t.headers).forEach((function(n){var r=t.headers[n];e.setRequestHeader(n,r)})),e.send(t.data.data&&"data="+encodeURIComponent(t.data.data)),{abort:function(t){return e.abort(t)}}},inArray:function(t,e){return-1!==t.indexOf(e)},trim:function(t){return t&&t.trim()},isEmptyObject:function(t){return!t||0===Object.keys(t).length},makeArray:function(t){return[].slice.call(t,0)},param:function(t){return i(t)},support:{cors:(r=a(),!!r&&"withCredentials"in r)}})},33937:function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(40482);!function(t,e){var n={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorRedirectionExceedsLimit:"Negotiate redirection limit exceeded.",errorDuringStartRequest:"Error during start request. Stopping the connection.",errorFromServer:"Error message received from the server: '{0}'.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",aspnetCoreSignalrServer:"Detected a connection attempt to an ASP.NET Core SignalR Server. This client only supports connecting to an ASP.NET SignalR Server. See https://aka.ms/signalr-core-differences for details.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server. Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection.",jsonpNotSupportedWithAccessToken:"The JSONP protocol does not support connections that require a Bearer token to connect, such as the Azure SignalR Service."};if("function"!=typeof t)throw new Error(n.nojQuery);var r,o,i,a,s="complete"===e.document.readyState,c=t(e),u="__Negotiate Aborted__",l={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},f=function(e,n,r){return n===e.state&&(e.state=r,t(e).triggerHandler(l.onStateChanged,[{oldState:n,newState:r}]),!0)},p=function(t){return t._.keepAliveData.activated&&t.transport.supportsKeepAlive(t)};function d(t,e){return e.match(/:\d+$/)?e:e+":"+function(t){return"http:"===t?80:"https:"===t?443:void 0}(t)}function h(e,n){var r=this,o=[];r.tryBuffer=function(n){return e.state===t.signalR.connectionState.connecting&&(o.push(n),!0)},r.drain=function(){if(e.state===t.signalR.connectionState.connected)for(;o.length>0;)n(o.shift())},r.clear=function(){o=[]}}(r=function(t,e,n){return new r.fn.init(t,e,n)})._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:("Microsoft Internet Explorer"===e.navigator.appName&&(a=/MSIE ([0-9]+\.[0-9]+)/.exec(e.navigator.userAgent))&&(i=e.parseFloat(a[1])),i),error:function(t,e,n){var r=new Error(t);return r.source=e,void 0!==n&&(r.context=n),r},transportError:function(t,e,n,r){var o=this.error(t,n,r);return o.transport=e?e.name:void 0,o},format:function(){for(var t=arguments[0],e=0;e<arguments.length-1;e++)t=t.replace("{"+e+"}",arguments[e+1]);return t},firefoxMajorVersion:function(t){var e=t.match(/Firefox\/(\d+)/);return!e||!e.length||e.length<2?0:parseInt(e[1],10)},configurePingInterval:function(n){var o=n._.config,i=function(e){t(n).triggerHandler(l.onError,[e])};o&&!n._.pingIntervalId&&o.pingInterval&&(n._.pingIntervalId=e.setInterval((function(){r.transports._logic.pingServer(n).fail(i)}),o.pingInterval))}},r.events=l,r.resources=n,r.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1},r.changeState=f,r.isDisconnecting=function(t){return t.state===r.connectionState.disconnected},r.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4},r.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.")}},"function"==typeof c.on?c.on("load",(function(){s=!0})):c.load((function(){s=!0})),r.fn=r.prototype={init:function(e,n,r){var o=t(this);this.url=e,this.qs=n,this.lastError=null,this._={keepAliveData:{},connectingMessageBuffer:new h(this,(function(t){o.triggerHandler(l.onReceived,[t])})),lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null,totalTransportConnectTimeout:0,redirectQs:null},"boolean"==typeof r&&(this.logging=r)},_parseResponse:function(t){return t&&"string"==typeof t?this.json.parse(t):t},_originalJson:e.JSON,json:e.JSON,isCrossDomain:function(n,r){var o;return n=t.trim(n),r=r||e.location,0===n.indexOf("http")&&((o=e.document.createElement("a")).href=n,o.protocol+d(o.protocol,o.host)!==r.protocol+d(r.protocol,r.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:r.connectionState.disconnected,clientProtocol:"2.1",supportedProtocols:["1.5","2.0","2.1"],negotiateRedirectSupportedProtocols:["2.0","2.1"],reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(o,i){var a,d=this,h={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},g=d._deferral||t.Deferred(),y=e.document.createElement("a"),m=function(n,o){n.url===o&&n.baseUrl||(n.url=o,y.href=n.url,y.protocol&&":"!==y.protocol?(n.protocol=y.protocol,n.host=y.host):(n.protocol=e.document.location.protocol,n.host=y.host||e.document.location.host),n.baseUrl=n.protocol+"//"+n.host,n.wsProtocol="https:"===n.protocol?"wss://":"ws://",0===n.url.indexOf("//")&&(n.url=e.location.protocol+n.url,n.log("Protocol relative URL detected, normalizing it to '"+n.url+"'.")),n.isCrossDomain(n.url)&&(n.log("Auto detected cross domain url."),"auto"===h.transport&&(h.transport=["webSockets","serverSentEvents","longPolling"]),void 0===n.withCredentials&&(n.withCredentials=!0),t.support.cors||(n.ajaxDataType="jsonp",n.log("Using jsonp because this browser doesn't support CORS.")),n.contentType=r._.defaultContentType))};if(d.lastError=null,d._deferral=g,!d.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");if("function"===t.type(o)?i=o:"object"===t.type(o)&&(t.extend(h,o),"function"===t.type(h.callback)&&(i=h.callback)),h.transport=function(e,n){if(t.isArray(e)){for(var o=e.length-1;o>=0;o--){var i=e[o];"string"===t.type(i)&&r.transports[i]||(n.log("Invalid transport: "+i+", removing it from the transports list."),e.splice(o,1))}0===e.length&&(n.log("No transports remain within the specified transport array."),e=null)}else if(r.transports[e]||"auto"===e){if("auto"===e&&r._.ieVersion<=8)return["longPolling"]}else n.log("Invalid transport: "+e.toString()+"."),e=null;return e}(h.transport,d),!h.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");if(d._.config=h,!s&&!0===h.waitForPageLoad)return d._.deferredStartHandler=function(){d.start(o,i)},c.bind("load",d._.deferredStartHandler),g.promise();if(d.state===r.connectionState.connecting)return g.promise();if(!1===f(d,r.connectionState.disconnected,r.connectionState.connecting))return g.resolve(d),g.promise();!function(n){var o,i;n._.configuredStopReconnectingTimeout||(i=function(e){var n=r._.format(r.resources.reconnectTimeout,e.disconnectTimeout);e.log(n),t(e).triggerHandler(l.onError,[r._.error(n,"TimeoutException")]),e.stop(!1,!1)},n.reconnecting((function(){var t=this;t.state===r.connectionState.reconnecting&&(o=e.setTimeout((function(){i(t)}),t.disconnectTimeout))})),n.stateChanged((function(t){t.oldState===r.connectionState.reconnecting&&e.clearTimeout(o)})),n._.configuredStopReconnectingTimeout=!0)}(d),"auto"===h.transport&&!0===h.jsonp&&(h.transport="longPolling"),d.withCredentials=h.withCredentials,d._originalUrl=d.url,d.ajaxDataType=h.jsonp?"jsonp":"text",m(d,d.url),t(d).bind(l.onStart,(function(e,n){"function"===t.type(i)&&i.call(d),g.resolve(d)})),d._.initHandler=r.transports._logic.initHandler(d),a=function(o,i){var s=r._.error(n.noTransportOnInit);if((i=i||0)>=o.length)return 0===i?d.log("No transports supported by the server were selected."):1===i?d.log("No fallback transports were selected."):d.log("Fallback transports exhausted."),t(d).triggerHandler(l.onError,[s]),g.reject(s),void d.stop();if(d.state!==r.connectionState.disconnected){var u=o[i],h=r.transports[u],y=function(){a(o,i+1)};d.transport=h;try{d._.initHandler.start(h,(function(){var n=r._.firefoxMajorVersion(e.navigator.userAgent)>=11,o=!0;d.log("The start request succeeded. Transitioning to the connected state."),p(d)&&r.transports._logic.monitorKeepAlive(d),r.transports._logic.startHeartbeat(d),r._.configurePingInterval(d),f(d,r.connectionState.connecting,r.connectionState.connected)||d.log("WARNING! The connection was not in the connecting state."),d._.connectingMessageBuffer.drain(),t(d).triggerHandler(l.onStart),c.bind("unload",(function(){d.log("Window unloading, stopping the connection."),d.stop(o)})),n&&c.bind("beforeunload",(function(){e.setTimeout((function(){d.stop(o)}),0)}))}),y)}catch(t){d.log(h.name+" transport threw '"+t.message+"' when attempting to start."),y()}}};var v,b,_,w,S,x,M,E=d.url+"/negotiate",k=function(e,o){var i=r._.error(n.errorOnNegotiate,e,o._.negotiateRequest);t(o).triggerHandler(l.onError,i),g.reject(i),o.stop()};return t(d).triggerHandler(l.onStarting),E=r.transports._logic.prepareQueryString(d,E),d.log("Negotiating with '"+E+"'."),d._.negotiateRequest=(w=0,S=[],x=[],M=function(t,e){var o=r.transports._logic.prepareQueryString(t,t.url+"/negotiate");t.log("Negotiating with '"+o+"'.");var i={url:o,error:function(e,o){o!==u?k(e,t):g.reject(r._.error(n.stoppedWhileNegotiating,null,t._.negotiateRequest))},success:e};return t.accessToken&&(i.headers={Authorization:"Bearer "+t.accessToken}),r.transports._logic.ajax(t,i)},M(d,(function e(o){try{v=d._parseResponse(o)}catch(t){return void k(r._.error(n.errorParsingNegotiateResponse,t),d)}if(v.availableTransports)return _=r._.error(n.aspnetCoreSignalrServer),t(d).triggerHandler(l.onError,[_]),void g.reject(_);if(!v.ProtocolVersion||-1===d.supportedProtocols.indexOf(v.ProtocolVersion))return _=r._.error(r._.format(n.protocolIncompatible,d.clientProtocol,v.ProtocolVersion)),t(d).triggerHandler(l.onError,[_]),void g.reject(_);if(-1!==d.negotiateRedirectSupportedProtocols.indexOf(v.ProtocolVersion)){if(v.Error)return _=r._.error(r._.format(n.errorFromServer,v.Error)),t(d).triggerHandler(l.onError,[_]),void g.reject(_);if(v.RedirectUrl){if(100===w)return void k(r._.error(n.errorRedirectionExceedsLimit),d);"auto"===h.transport&&(h.transport=["webSockets","serverSentEvents","longPolling"]),d.log("Received redirect to: "+v.RedirectUrl),d.accessToken=v.AccessToken;var i=v.RedirectUrl.split("?",2);return m(d,i[0]),d._.redirectQs=2===i.length?i[1]:null,"jsonp"===d.ajaxDataType&&d.accessToken?void k(r._.error(n.jsonpNotSupportedWithAccessToken),d):(w++,void M(d,e))}}b=d._.keepAliveData,d.appRelativeUrl=v.Url,d.id=v.ConnectionId,d.token=v.ConnectionToken,d.webSocketServerUrl=v.WebSocketServerUrl,d._.pollTimeout=1e3*v.ConnectionTimeout+1e4,d.disconnectTimeout=1e3*v.DisconnectTimeout,d._.totalTransportConnectTimeout=d.transportConnectTimeout+1e3*v.TransportConnectTimeout,v.KeepAliveTimeout?(b.activated=!0,b.timeout=1e3*v.KeepAliveTimeout,b.timeoutWarning=b.timeout*d.keepAliveWarnAt,d._.beatInterval=(b.timeout-b.timeoutWarning)/3):b.activated=!1,d.reconnectWindow=d.disconnectTimeout+(b.timeout||0),t.each(r.transports,(function(t){if(0===t.indexOf("_")||"webSockets"===t&&!v.TryWebSockets)return!0;x.push(t)})),t.isArray(h.transport)?t.each(h.transport,(function(e,n){t.inArray(n,x)>=0&&S.push(n)})):"auto"===h.transport?S=x:t.inArray(h.transport,x)>=0&&S.push(h.transport),a(S)}))),g.promise()},starting:function(e){var n=this;return t(n).bind(l.onStarting,(function(t,r){e.call(n)})),n},send:function(t){var e=this;if(e.state===r.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(e.state===r.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return e.transport.send(e,t),e},received:function(e){var n=this;return t(n).bind(l.onReceived,(function(t,r){e.call(n,r)})),n},stateChanged:function(e){var n=this;return t(n).bind(l.onStateChanged,(function(t,r){e.call(n,r)})),n},error:function(e){var n=this;return t(n).bind(l.onError,(function(t,r,o){n.lastError=r,e.call(n,r,o)})),n},disconnected:function(e){var n=this;return t(n).bind(l.onDisconnect,(function(t,r){e.call(n)})),n},connectionSlow:function(e){var n=this;return t(n).bind(l.onConnectionSlow,(function(t,r){e.call(n)})),n},reconnecting:function(e){var n=this;return t(n).bind(l.onReconnecting,(function(t,r){e.call(n)})),n},reconnected:function(e){var n=this;return t(n).bind(l.onReconnect,(function(t,r){e.call(n)})),n},stop:function(o,i){var a=this,d=a._deferral;return a._.deferredStartHandler&&c.unbind("load",a._.deferredStartHandler),delete a._.config,delete a._.deferredStartHandler,s||a._.config&&!0!==a._.config.waitForPageLoad?a.state!==r.connectionState.disconnected?(a.log("Stopping connection."),e.clearTimeout(a._.beatHandle),e.clearInterval(a._.pingIntervalId),a.transport&&(a.transport.stop(a),!1!==i&&a.transport.abort(a,o),p(a)&&r.transports._logic.stopMonitoringKeepAlive(a),a.transport=null),a._.negotiateRequest&&(a._.negotiateRequest.abort(u),delete a._.negotiateRequest),a._.initHandler&&a._.initHandler.stop(),delete a._deferral,delete a.messageId,delete a.groupsToken,delete a.id,delete a._.pingIntervalId,delete a._.lastMessageAt,delete a._.lastActiveAt,a._.connectingMessageBuffer.clear(),t(a).unbind(l.onStart),delete a.accessToken,delete a.protocol,delete a.host,delete a.baseUrl,delete a.wsProtocol,delete a.contentType,a.url=a._originalUrl,a._.redirectQs=null,f(a,a.state,r.connectionState.disconnected),t(a).triggerHandler(l.onDisconnect),a):void 0:(a.log("Stopping connection prior to negotiate."),void(d&&d.reject(r._.error(n.stoppedWhileLoading))))},log:function(t){!function(t,n){var r;!1!==n&&void 0!==e.console&&(r="["+(new Date).toTimeString()+"] SignalR: "+t,e.console.debug?e.console.debug(r):e.console.log&&e.console.log(r))}(t,this.logging)}},r.fn.init.prototype=r.fn,r.noConflict=function(){return t.connection===r&&(t.connection=o),r},t.connection&&(o=t.connection),t.connection=t.signalR=r}(o,window),function(t,e){var n,o=t.signalR,i=t.signalR.events,a=t.signalR.changeState,s="__Start Aborted__";function c(r){r._.keepAliveData.monitoring&&function(e){var n,r=e._.keepAliveData;e.state===o.connectionState.connected&&((n=(new Date).getTime()-e._.lastMessageAt)>=r.timeout?(e.log("Keep alive timed out. Notifying transport that connection has been lost."),e.transport.lostConnection(e)):n>=r.timeoutWarning?r.userNotified||(e.log("Keep alive has been missed, connection may be dead/slow."),t(e).triggerHandler(i.onConnectionSlow),r.userNotified=!0):r.userNotified=!1)}(r),n.markActive(r)&&(r._.beatHandle=e.setTimeout((function(){c(r)}),r._.beatInterval))}function u(t,e){var r=t.url+e;return t.transport&&(r+="?transport="+t.transport.name),n.prepareQueryString(t,r)}function l(t){this.connection=t,this.startRequested=!1,this.startCompleted=!1,this.connectionStopped=!1}o.transports={},l.prototype={start:function(t,n,r){var o=this,i=o.connection,a=!1;o.startRequested||o.connectionStopped?i.log("WARNING! "+t.name+" transport cannot be started. Initialization ongoing or completed."):(i.log(t.name+" transport starting."),t.start(i,(function(){a||o.initReceived(t,n)}),(function(e){return a||(a=!0,o.transportFailed(t,e,r)),!o.startCompleted||o.connectionStopped})),o.transportTimeoutHandle=e.setTimeout((function(){a||(a=!0,i.log(t.name+" transport timed out when trying to connect."),o.transportFailed(t,void 0,r))}),i._.totalTransportConnectTimeout))},stop:function(){this.connectionStopped=!0,e.clearTimeout(this.transportTimeoutHandle),o.transports._logic.tryAbortStartRequest(this.connection)},initReceived:function(t,n){var r=this,i=r.connection;r.startRequested?i.log("WARNING! The client received multiple init messages."):r.connectionStopped||(r.startRequested=!0,e.clearTimeout(r.transportTimeoutHandle),i.log(t.name+" transport connected. Initiating start request."),o.transports._logic.ajaxStart(i,(function(){r.startCompleted=!0,n()})))},transportFailed:function(n,r,a){var s,c=this.connection,u=c._deferral;this.connectionStopped||(e.clearTimeout(this.transportTimeoutHandle),this.startRequested?this.startCompleted||(s=o._.error(o.resources.errorDuringStartRequest,r),c.log(n.name+" transport failed during the start request. Stopping the connection."),t(c).triggerHandler(i.onError,[s]),u&&u.reject(s),c.stop()):(n.stop(c),c.log(n.name+" transport failed to connect. Attempting to fall back."),a()))}},n=o.transports._logic={ajax:function(e,n){return t.ajax(t.extend(!0,{},t.signalR.ajaxDefaults,{type:"GET",data:{},xhrFields:{withCredentials:e.withCredentials},contentType:e.contentType,dataType:e.ajaxDataType},n))},pingServer:function(e){var r,i,a=t.Deferred();return e.transport?(r=e.url+"/ping",r=n.addQs(r,e.qs),i=n.ajax(e,{url:r,headers:e.accessToken?{Authorization:"Bearer "+e.accessToken}:{},success:function(t){var n;try{n=e._parseResponse(t)}catch(t){return a.reject(o._.transportError(o.resources.pingServerFailedParse,e.transport,t,i)),void e.stop()}"pong"===n.Response?a.resolve():a.reject(o._.transportError(o._.format(o.resources.pingServerFailedInvalidResponse,t),e.transport,null,i))},error:function(t){401===t.status||403===t.status?(a.reject(o._.transportError(o._.format(o.resources.pingServerFailedStatusCode,t.status),e.transport,t,i)),e.stop()):a.reject(o._.transportError(o.resources.pingServerFailed,e.transport,t,i))}})):a.reject(o._.transportError(o.resources.noConnectionTransport,e.transport)),a.promise()},prepareQueryString:function(t,r){var o;return o=n.addQs(r,"clientProtocol="+t.clientProtocol),o="string"==typeof t._.redirectQs?n.addQs(o,t._.redirectQs):n.addQs(o,t.qs),t.token&&(o+="&connectionToken="+e.encodeURIComponent(t.token)),t.data&&(o+="&connectionData="+e.encodeURIComponent(t.data)),o},addQs:function(e,n){var o,i=-1!==e.indexOf("?")?"&":"?";if(!n)return e;if("object"===(void 0===n?"undefined":r(n)))return e+i+t.param(n);if("string"==typeof n)return"?"!==(o=n.charAt(0))&&"&"!==o||(i=""),e+i+n;throw new Error("Query string property must be either a string or object.")},getUrl:function(t,r,o,i,a){var s=("webSockets"===r?"":t.baseUrl)+t.appRelativeUrl,c="transport="+r;return!a&&t.groupsToken&&(c+="&groupsToken="+e.encodeURIComponent(t.groupsToken)),o?(s+=i?"/poll":"/reconnect",!a&&t.messageId&&(c+="&messageId="+e.encodeURIComponent(t.messageId))):s+="/connect",s+="?"+c,s=n.prepareQueryString(t,s),t.transport&&t.accessToken&&("serverSentEvents"!==t.transport.name&&"webSockets"!==t.transport.name||(s+="&access_token="+e.encodeURIComponent(t.accessToken))),a||(s+="&tid="+Math.floor(11*Math.random())),s},maximizePersistentResponse:function(t){return{MessageId:t.C,Messages:t.M,Initialized:void 0!==t.S,ShouldReconnect:void 0!==t.T,LongPollDelay:t.L,GroupsToken:t.G,Error:t.E}},updateGroups:function(t,e){e&&(t.groupsToken=e)},stringifySend:function(t,e){return"string"==typeof e||null==e?e:t.json.stringify(e)},ajaxSend:function(e,r){var a,s=n.stringifySend(e,r),c=u(e,"/send"),l=function(e,n){t(n).triggerHandler(i.onError,[o._.transportError(o.resources.sendFailed,n.transport,e,a),r])};return a=n.ajax(e,{url:c,type:"jsonp"===e.ajaxDataType?"GET":"POST",contentType:o._.defaultContentType,headers:e.accessToken?{Authorization:"Bearer "+e.accessToken}:{},data:{data:s},success:function(t){var r;if(t){try{r=e._parseResponse(t)}catch(t){return l(t,e),void e.stop()}n.triggerReceived(e,r)}},error:function(t,n){"abort"!==n&&"parsererror"!==n&&l(t,e)}})},ajaxAbort:function(t,e){if(void 0!==t.transport){e=void 0===e||e;var r=u(t,"/abort");n.ajax(t,{url:r,async:e,timeout:1e3,type:"POST",headers:t.accessToken?{Authorization:"Bearer "+t.accessToken}:{},dataType:"text"}),t.log("Fired ajax abort async = "+e+".")}},ajaxStart:function(e,r){var a=function(t){var n=e._deferral;n&&n.reject(t)},c=function(n){e.log("The start request failed. Stopping the connection."),t(e).triggerHandler(i.onError,[n]),a(n),e.stop()};e._.startRequest=n.ajax(e,{url:u(e,"/start"),headers:e.accessToken?{Authorization:"Bearer "+e.accessToken}:{},success:function(t,n,i){var a;try{a=e._parseResponse(t)}catch(e){return void c(o._.error(o._.format(o.resources.errorParsingStartResponse,t),e,i))}"started"===a.Response?r():c(o._.error(o._.format(o.resources.invalidStartResponse,t),null,i))},error:function(t,n,r){n!==s?c(o._.error(o.resources.errorDuringStartRequest,r,t)):(e.log("The start request aborted because connection.stop() was called."),a(o._.error(o.resources.stoppedDuringStartRequest,null,t)))}})},tryAbortStartRequest:function(t){t._.startRequest&&(t._.startRequest.abort(s),delete t._.startRequest)},tryInitialize:function(t,e,n){e.Initialized&&n?n():e.Initialized&&t.log("WARNING! The client received an init message after reconnecting.")},triggerReceived:function(e,n){e._.connectingMessageBuffer.tryBuffer(n)||t(e).triggerHandler(i.onReceived,[n])},processMessages:function(e,r,i){var a;if(r&&void 0!==r.I)n.triggerReceived(e,r);else if(n.markLastMessage(e),r){if((a=n.maximizePersistentResponse(r)).Error)return e.log("Received an error message from the server: "+r.E),t(e).triggerHandler(o.events.onError,[o._.error(r.E,"ServerError")]),void e.stop(!1,!1);n.updateGroups(e,a.GroupsToken),a.MessageId&&(e.messageId=a.MessageId),a.Messages&&(t.each(a.Messages,(function(t,r){n.triggerReceived(e,r)})),n.tryInitialize(e,a,i))}},monitorKeepAlive:function(e){var r=e._.keepAliveData;r.monitoring?e.log("Tried to monitor keep alive but it's already being monitored."):(r.monitoring=!0,n.markLastMessage(e),e._.keepAliveData.reconnectKeepAliveUpdate=function(){n.markLastMessage(e)},t(e).bind(i.onReconnect,e._.keepAliveData.reconnectKeepAliveUpdate),e.log("Now monitoring keep alive with a warning timeout of "+r.timeoutWarning+", keep alive timeout of "+r.timeout+" and disconnecting timeout of "+e.disconnectTimeout))},stopMonitoringKeepAlive:function(e){var n=e._.keepAliveData;n.monitoring&&(n.monitoring=!1,t(e).unbind(i.onReconnect,e._.keepAliveData.reconnectKeepAliveUpdate),e._.keepAliveData={},e.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(t){t._.lastActiveAt=(new Date).getTime(),c(t)},markLastMessage:function(t){t._.lastMessageAt=(new Date).getTime()},markActive:function(t){return!!n.verifyLastActive(t)&&(t._.lastActiveAt=(new Date).getTime(),!0)},isConnectedOrReconnecting:function(t){return t.state===o.connectionState.connected||t.state===o.connectionState.reconnecting},ensureReconnectingState:function(e){return!0===a(e,o.connectionState.connected,o.connectionState.reconnecting)&&t(e).triggerHandler(i.onReconnecting),e.state===o.connectionState.reconnecting},clearReconnectTimeout:function(t){t&&t._.reconnectTimeout&&(e.clearTimeout(t._.reconnectTimeout),delete t._.reconnectTimeout)},verifyLastActive:function(e){if((new Date).getTime()-e._.lastActiveAt>=e.reconnectWindow){var n=o._.format(o.resources.reconnectWindowTimeout,new Date(e._.lastActiveAt),e.reconnectWindow);return e.log(n),t(e).triggerHandler(i.onError,[o._.error(n,"TimeoutException")]),e.stop(!1,!1),!1}return!0},reconnect:function(t,r){var i=o.transports[r];if(n.isConnectedOrReconnecting(t)&&!t._.reconnectTimeout){if(!n.verifyLastActive(t))return;t._.reconnectTimeout=e.setTimeout((function(){n.verifyLastActive(t)&&(i.stop(t),n.ensureReconnectingState(t)&&(t.log(r+" reconnecting."),i.start(t)))}),t.reconnectDelay)}},handleParseFailure:function(e,n,r,a,s){var c=o._.transportError(o._.format(o.resources.parseFailed,n),e.transport,r,s);a&&a(c)?e.log("Failed to parse server response while attempting to connect."):(t(e).triggerHandler(i.onError,[c]),e.stop())},initHandler:function(t){return new l(t)},foreverFrame:{count:0,connections:{}}}}(o,window),function(t,e){var n=t.signalR,r=t.signalR.events,o=t.signalR.changeState,i=n.transports._logic;n.transports.webSockets={name:"webSockets",supportsKeepAlive:function(){return!0},send:function(e,o){var a=i.stringifySend(e,o);try{e.socket.send(a)}catch(i){t(e).triggerHandler(r.onError,[n._.transportError(n.resources.webSocketsInvalidState,e.transport,i,e.socket),o])}},start:function(a,s,c){var u,l=!1,f=this,p=!s,d=t(a);e.WebSocket?a.socket||(u=a.webSocketServerUrl?a.webSocketServerUrl:a.wsProtocol+a.host,u+=i.getUrl(a,this.name,p),a.log("Connecting to websocket endpoint '"+u+"'."),a.socket=new e.WebSocket(u),a.socket.onopen=function(){l=!0,a.log("Websocket opened."),i.clearReconnectTimeout(a),!0===o(a,n.connectionState.reconnecting,n.connectionState.connected)&&d.triggerHandler(r.onReconnect)},a.socket.onclose=function(e){var o;this===a.socket&&(l&&void 0!==e.wasClean&&!1===e.wasClean?(o=n._.transportError(n.resources.webSocketClosed,a.transport,e),a.log("Unclean disconnect from websocket: "+(e.reason||"[no reason given]."))):a.log("Websocket closed."),c&&c(o)||(o&&t(a).triggerHandler(r.onError,[o]),f.reconnect(a)))},a.socket.onmessage=function(t){var e;try{e=a._parseResponse(t.data)}catch(e){return void i.handleParseFailure(a,t.data,e,c,t)}e&&i.processMessages(a,e,s)}):c()},reconnect:function(t){i.reconnect(t,this.name)},lostConnection:function(t){this.reconnect(t)},stop:function(t){i.clearReconnectTimeout(t),t.socket&&(t.log("Closing the Websocket."),t.socket.close(),t.socket=null)},abort:function(t,e){i.ajaxAbort(t,e)}}}(o,window),function(t,e){var n=t.signalR,r=t.signalR.events,o=t.signalR.changeState,i=n.transports._logic,a=function(t){e.clearTimeout(t._.reconnectAttemptTimeoutHandle),delete t._.reconnectAttemptTimeoutHandle};n.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:function(){return!0},timeOut:3e3,start:function(s,c,u){var l,f=this,p=!1,d=t(s),h=!c;if(s.eventSource&&(s.log("The connection already has an event source. Stopping it."),s.stop()),e.EventSource){l=i.getUrl(s,this.name,h);try{s.log("Attempting to connect to SSE endpoint '"+l+"'."),s.eventSource=new e.EventSource(l,{withCredentials:s.withCredentials})}catch(t){return s.log("EventSource failed trying to connect with error "+t.Message+"."),void(u?u():(d.triggerHandler(r.onError,[n._.transportError(n.resources.eventSourceFailedToConnect,s.transport,t)]),h&&f.reconnect(s)))}h&&(s._.reconnectAttemptTimeoutHandle=e.setTimeout((function(){!1===p&&s.eventSource.readyState!==e.EventSource.OPEN&&f.reconnect(s)}),f.timeOut)),s.eventSource.addEventListener("open",(function(t){s.log("EventSource connected."),a(s),i.clearReconnectTimeout(s),!1===p&&(p=!0,!0===o(s,n.connectionState.reconnecting,n.connectionState.connected)&&d.triggerHandler(r.onReconnect))}),!1),s.eventSource.addEventListener("message",(function(t){var e;if("initialized"!==t.data){try{e=s._parseResponse(t.data)}catch(e){return void i.handleParseFailure(s,t.data,e,u,t)}i.processMessages(s,e,c)}}),!1),s.eventSource.addEventListener("error",(function(t){var o=n._.transportError(n.resources.eventSourceError,s.transport,t);this===s.eventSource&&(u&&u(o)||(s.log("EventSource readyState: "+s.eventSource.readyState+"."),t.eventPhase===e.EventSource.CLOSED?(s.log("EventSource reconnecting due to the server connection ending."),f.reconnect(s)):(s.log("EventSource error."),d.triggerHandler(r.onError,[o]))))}),!1)}else u&&(s.log("This browser doesn't support SSE."),u())},reconnect:function(t){i.reconnect(t,this.name)},lostConnection:function(t){this.reconnect(t)},send:function(t,e){i.ajaxSend(t,e)},stop:function(t){a(t),i.clearReconnectTimeout(t),t&&t.eventSource&&(t.log("EventSource calling close()."),t.eventSource.close(),t.eventSource=null,delete t.eventSource)},abort:function(t,e){i.ajaxAbort(t,e)}}}(o,window),function(t,e){var n,r,o=t.signalR,i=t.signalR.events,a=t.signalR.changeState,s=o.transports._logic,c=function(){var t=e.document.createElement("iframe");return t.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),t},u=(n=null,r=0,{prevent:function(){o._.ieVersion<=8&&(0===r&&(n=e.setInterval((function(){var t=c();e.document.body.appendChild(t),e.document.body.removeChild(t),t=null}),1e3)),r++)},cancel:function(){1===r&&e.clearInterval(n),r>0&&r--}});o.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:function(){return!0},iframeClearThreshold:50,start:function(t,n,r){if(t.accessToken)r&&(t.log("Forever Frame does not support connections that require a Bearer token to connect, such as the Azure SignalR Service."),r());else{var o,i=this,a=s.foreverFrame.count+=1,l=c(),f=function(){t.log("Forever frame iframe finished loading and is no longer receiving messages."),r&&r()||i.reconnect(t)};e.EventSource?r&&(t.log("Forever Frame is not supported by SignalR on browsers with SSE support."),r()):(l.setAttribute("data-signalr-connection-id",t.id),u.prevent(),o=s.getUrl(t,this.name),o+="&frameId="+a,e.document.documentElement.appendChild(l),t.log("Binding to iframe's load event."),l.addEventListener?l.addEventListener("load",f,!1):l.attachEvent&&l.attachEvent("onload",f),l.src=o,s.foreverFrame.connections[a]=t,t.frame=l,t.frameId=a,n&&(t.onSuccess=function(){t.log("Iframe transport started."),n()}))}},reconnect:function(t){var n=this;s.isConnectedOrReconnecting(t)&&s.verifyLastActive(t)&&e.setTimeout((function(){if(s.verifyLastActive(t)&&t.frame&&s.ensureReconnectingState(t)){var e=t.frame,r=s.getUrl(t,n.name,!0)+"&frameId="+t.frameId;t.log("Updating iframe src to '"+r+"'."),e.src=r}}),t.reconnectDelay)},lostConnection:function(t){this.reconnect(t)},send:function(t,e){s.ajaxSend(t,e)},receive:function(e,n){var r,i,a;if(e.json!==e._originalJson&&(n=e._originalJson.stringify(n)),a=e._parseResponse(n),s.processMessages(e,a,e.onSuccess),e.state===t.signalR.connectionState.connected&&(e.frameMessageCount=(e.frameMessageCount||0)+1,e.frameMessageCount>o.transports.foreverFrame.iframeClearThreshold&&(e.frameMessageCount=0,(r=e.frame.contentWindow||e.frame.contentDocument)&&r.document&&r.document.body)))for(i=r.document.body;i.firstChild;)i.removeChild(i.firstChild)},stop:function(t){var n=null;if(u.cancel(),t.frame){if(t.frame.stop)t.frame.stop();else try{(n=t.frame.contentWindow||t.frame.contentDocument).document&&n.document.execCommand&&n.document.execCommand("Stop")}catch(e){t.log("Error occurred when stopping foreverFrame transport. Message = "+e.message+".")}t.frame.parentNode===e.document.documentElement&&e.document.documentElement.removeChild(t.frame),delete s.foreverFrame.connections[t.frameId],t.frame=null,t.frameId=null,delete t.frame,delete t.frameId,delete t.onSuccess,delete t.frameMessageCount,t.log("Stopping forever frame.")}},abort:function(t,e){s.ajaxAbort(t,e)},getConnection:function(t){return s.foreverFrame.connections[t]},started:function(e){!0===a(e,o.connectionState.reconnecting,o.connectionState.connected)&&t(e).triggerHandler(i.onReconnect)}}}(o,window),function(t,e){var n=t.signalR,r=t.signalR.events,o=t.signalR.changeState,i=t.signalR.isDisconnecting,a=n.transports._logic;n.transports.longPolling={name:"longPolling",supportsKeepAlive:function(){return!1},reconnectDelay:3e3,start:function(s,c,u){var l=this,f=function(){f=t.noop,s.log("LongPolling connected."),c?c():s.log("WARNING! The client received an init message after reconnecting.")},p=function(t){return!!u(t)&&(s.log("LongPolling failed to connect."),!0)},d=s._,h=0,g=function(i){e.clearTimeout(d.reconnectTimeoutId),d.reconnectTimeoutId=null,!0===o(i,n.connectionState.reconnecting,n.connectionState.connected)&&(i.log("Raising the reconnect event"),t(i).triggerHandler(r.onReconnect))};s.pollXhr&&(s.log("Polling xhr requests already exists, aborting."),s.stop()),s.messageId=null,d.reconnectTimeoutId=null,d.pollTimeoutId=e.setTimeout((function(){!function o(c,u){var y=!(null===c.messageId),m=!u,v=a.getUrl(c,l.name,y,m,!0),b={};c.messageId&&(b.messageId=c.messageId),c.groupsToken&&(b.groupsToken=c.groupsToken),!0!==i(c)&&(s.log("Opening long polling request to '"+v+"'."),c.pollXhr=a.ajax(s,{xhrFields:{onprogress:function(){a.markLastMessage(s)}},url:v,type:"POST",contentType:n._.defaultContentType,data:b,timeout:s._.pollTimeout,headers:s.accessToken?{Authorization:"Bearer "+s.accessToken}:{},success:function(n){var r,u,l,y=0;s.log("Long poll complete."),h=0;try{r=s._parseResponse(n)}catch(t){return void a.handleParseFailure(c,n,t,p,c.pollXhr)}null!==d.reconnectTimeoutId&&g(c),r&&(u=a.maximizePersistentResponse(r)),a.processMessages(c,r,f),u&&"number"===t.type(u.LongPollDelay)&&(y=u.LongPollDelay),!0!==i(c)&&((l=u&&u.ShouldReconnect)&&!a.ensureReconnectingState(c)||(y>0?d.pollTimeoutId=e.setTimeout((function(){o(c,l)}),y):o(c,l)))},error:function(i,u){var f=n._.transportError(n.resources.longPollFailed,s.transport,i,c.pollXhr);if(e.clearTimeout(d.reconnectTimeoutId),d.reconnectTimeoutId=null,"abort"!==u){if(!p(f)){if(h++,s.state!==n.connectionState.reconnecting&&(s.log("An error occurred using longPolling. Status = "+u+". Response = "+i.responseText+"."),t(c).triggerHandler(r.onError,[f])),(s.state===n.connectionState.connected||s.state===n.connectionState.reconnecting)&&!a.verifyLastActive(s))return;if(!a.ensureReconnectingState(c))return;d.pollTimeoutId=e.setTimeout((function(){o(c,!0)}),l.reconnectDelay)}}else s.log("Aborted xhr request.")}}),y&&!0===u&&(d.reconnectTimeoutId=e.setTimeout((function(){g(c)}),Math.min(1e3*(Math.pow(2,h)-1),36e5))))}(s)}),250)},lostConnection:function(t){t.pollXhr&&t.pollXhr.abort("lostConnection")},send:function(t,e){a.ajaxSend(t,e)},stop:function(t){e.clearTimeout(t._.pollTimeoutId),e.clearTimeout(t._.reconnectTimeoutId),delete t._.pollTimeoutId,delete t._.reconnectTimeoutId,t.pollXhr&&(t.pollXhr.abort(),t.pollXhr=null,delete t.pollXhr)},abort:function(t,e){a.ajaxAbort(t,e)}}}(o,window),function(t){var e=0,n=t.signalR;function r(t){return t+".hubProxy"}function o(e){return t.isFunction(e)||"undefined"===t.type(e)?null:e}function i(t){for(var e in t)if(t.hasOwnProperty(e))return!0;return!1}function a(t,e){var n,r=t._.invocationCallbacks;for(var o in i(r)&&t.log("Clearing hub invocation callbacks with error: "+e+"."),t._.invocationCallbackId=0,delete t._.invocationCallbacks,t._.invocationCallbacks={},r)(n=r[o]).method.call(n.scope,{E:e})}function s(e){return t.isFunction(e)&&e.toString().slice(0,256).indexOf("// Call the client hub method")>=0}function c(t,e){return new c.fn.init(t,e)}function u(e,n){var r={qs:null,logging:!1,useDefaultPath:!0};return t.extend(r,n),e&&!r.useDefaultPath||(e=(e||"")+"/signalr"),new u.fn.init(e,r)}c.fn=c.prototype={init:function(t,e){this.state={},this.connection=t,this.hubName=e,this._={callbackMap:{}}},constructor:c,hasSubscriptions:function(){return i(this._.callbackMap)},on:function(n,o,i){var a=this,c=a._.callbackMap,u=!i&&s(o);(i=i||o)._signalRGuid||(i._signalRGuid=e++);var l,f=c[n=n.toLowerCase()];f||(f=[],c[n]=f);for(var p=0;p<f.length;p++)(f[p].guid===i._signalRGuid||u&&f[p].isFromOldGeneratedHubProxy)&&(l=f[p]);l||(l={guid:i._signalRGuid,eventHandlers:[],isFromOldGeneratedHubProxy:u},c[n].push(l));var d=function(t,e){o.apply(a,e)};return l.eventHandlers.push(d),t(a).bind(r(n),d),a},off:function(e,n,o){var i,a=this,c=a._.callbackMap,u=!o&&s(n);if(o=o||n,i=c[e=e.toLowerCase()])if(n){for(var l,f=0;f<i.length;f++)(i[f].guid===o._signalRGuid||u&&i[f].isFromOldGeneratedHubProxy)&&(l=i[f]);if(l){for(var p=0;p<l.eventHandlers.length;p++)t(a).unbind(r(e),l.eventHandlers[p]);i.splice(f,1),0===i.length&&delete c[e]}}else n||(t(a).unbind(r(e)),delete c[e]);return a},invoke:function(e){var r=this,i=r.connection,a=function(t,e){var n,r=t.length,o=[];for(n=0;n<r;n+=1)t.hasOwnProperty(n)&&(o[n]=e.call(undefined,t[n],n,t));return o}(t.makeArray(arguments).slice(1),o),s={H:r.hubName,M:e,A:a,I:i._.invocationCallbackId},c=t.Deferred();return i._.invocationCallbacks[i._.invocationCallbackId.toString()]={scope:r,method:function(o){var a,s,u=r._maximizeHubResponse(o);t.extend(r.state,u.State),u.Progress?c.notifyWith?c.notifyWith(r,[u.Progress.Data]):i._.progressjQueryVersionLogged||(i.log("A hub method invocation progress update was received but the version of jQuery in use ("+t.prototype.jquery+") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."),i._.progressjQueryVersionLogged=!0):u.Error?(u.StackTrace&&i.log(u.Error+"\n"+u.StackTrace+"."),a=u.IsHubException?"HubException":"Exception",(s=n._.error(u.Error,a)).data=u.ErrorData,i.log(r.hubName+"."+e+" failed to execute. Error: "+s.message),c.rejectWith(r,[s])):(i.log("Invoked "+r.hubName+"."+e),c.resolveWith(r,[u.Result]))}},i._.invocationCallbackId+=1,t.isEmptyObject(r.state)||(s.S=r.state),i.log("Invoking "+r.hubName+"."+e),i.send(s),c.promise()},_maximizeHubResponse:function(t){return{State:t.S,Result:t.R,Progress:t.P?{Id:t.P.I,Data:t.P.D}:null,Id:t.I,IsHubException:t.H,Error:t.E,StackTrace:t.T,ErrorData:t.D}}},c.fn.init.prototype=c.fn,u.fn=u.prototype=t.connection(),u.fn.init=function(e,n){var o={qs:null,logging:!1,useDefaultPath:!0},i=this;t.extend(o,n),t.signalR.fn.init.call(i,e,o.qs,o.logging),i.proxies={},i._.invocationCallbackId=0,i._.invocationCallbacks={},i.received((function(e){var n,o,a,s,c,u;e&&(void 0!==e.P?(a=e.P.I.toString(),(s=i._.invocationCallbacks[a])&&s.method.call(s.scope,e)):void 0!==e.I?(a=e.I.toString(),(s=i._.invocationCallbacks[a])&&(i._.invocationCallbacks[a]=null,delete i._.invocationCallbacks[a],s.method.call(s.scope,e))):(n=this._maximizeClientHubInvocation(e),i.log("Triggering client hub event '"+n.Method+"' on hub '"+n.Hub+"'."),c=n.Hub.toLowerCase(),u=n.Method.toLowerCase(),o=this.proxies[c],t.extend(o.state,n.State),t(o).triggerHandler(r(u),[n.Args])))})),i.error((function(t,e){var n,r;e&&(n=e.I,(r=i._.invocationCallbacks[n])&&(i._.invocationCallbacks[n]=null,delete i._.invocationCallbacks[n],r.method.call(r.scope,{E:t})))})),i.reconnecting((function(){i.transport&&"webSockets"===i.transport.name&&a(i,"Connection started reconnecting before invocation result was received.")})),i.disconnected((function(){a(i,"Connection was disconnected before invocation result was received.")}))},u.fn._maximizeClientHubInvocation=function(t){return{Hub:t.H,Method:t.M,Args:t.A,State:t.S}},u.fn._registerSubscribedHubs=function(){var e=this;e._subscribedToHubs||(e._subscribedToHubs=!0,e.starting((function(){var n=[];t.each(e.proxies,(function(t){this.hasSubscriptions()&&(n.push({name:t}),e.log("Client subscribed to hub '"+t+"'."))})),0===n.length&&e.log("No hubs have been subscribed to. The client will not receive data from hubs. To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to."),e.data=e.json.stringify(n)})))},u.fn.createHubProxy=function(t){t=t.toLowerCase();var e=this.proxies[t];return e||(e=c(this,t),this.proxies[t]=e),this._registerSubscribedHubs(),e},u.fn.init.prototype=u.fn,t.hubConnection=u}(o,window),o.signalR.version="2.4.1",e.OB=o.hubConnection,o.signalR},4234:function(t,e,n){"use strict";n.d(e,{Z:function(){return C}});var r=n(1024),o=n.n(r),i=n(60216),a=n.n(i),s=(n(15296),n(94386),n(48868),n(96609),n(92274),n(68268),n(81874),n(31341),n(54861),n(50200)),c=n.n(s),u=n(40001),l=n.n(u),f=n(98511),p=n.n(f),d=n(54006),h=n(15206),g=n.n(h),y=(n(82937),n(66403),n(42295),n(52963),n(34994),null),m=null;function v(){if(null===y){if("undefined"==typeof document)return y=0;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),y=n}return y}function b(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function _(t){return t&&t.ownerDocument?t.ownerDocument:document}g()&&window.addEventListener("resize",(function(){m!==window.devicePixelRatio&&(m=window.devicePixelRatio,y=null)}));var w=function(){function t(e,n){var r=this;this.onScroll=function(){var t=b(r.el);r.scrollXTicking||(t.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(t.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(e=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(e||n)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(t,"x"):r.onTrackClick(t,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(t,"y"):r.onTrackClick(t,"y"))))},this.drag=function(e){var n=r.axis[r.draggedAxis].track,o=n.rect[r.axis[r.draggedAxis].sizeAttr],i=r.axis[r.draggedAxis].scrollbar,a=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],s=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);e.preventDefault(),e.stopPropagation();var c=(("y"===r.draggedAxis?e.pageY:e.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(o-i.size)*(a-s);"x"===r.draggedAxis&&(c=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?c-(o+i.size):c,c=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-c:c),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=c},this.onEndDrag=function(t){var e=_(r.el),n=b(r.el);t.preventDefault(),t.stopPropagation(),r.el.classList.remove(r.classNames.dragging),e.removeEventListener("mousemove",r.drag,!0),e.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){e.removeEventListener("click",r.preventClick,!0),e.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(t){t.preventDefault(),t.stopPropagation()},this.el=e,this.minScrollbarWidth=20,this.options=Object.assign({},t.defaultOptions,{},n),this.classNames=Object.assign({},t.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,t.instances.has(this.el)||(this.recalculate=c()(this.recalculate.bind(this),64),this.onMouseMove=c()(this.onMouseMove.bind(this),64),this.hideScrollbars=l()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=l()(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=p()(t.getRtlHelpers),this.init())}t.getRtlHelpers=function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=e.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var o=t.getOffset(n),i=t.getOffset(r);n.scrollLeft=999;var a=t.getOffset(r);return{isRtlScrollingInverted:o.left!==i.left&&i.left-a.left!=0,isRtlScrollbarInverted:o.left!==i.left}},t.getOffset=function(t){var e=t.getBoundingClientRect(),n=_(t),r=b(t);return{top:e.top+(r.pageYOffset||n.documentElement.scrollTop),left:e.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var e=t.prototype;return e.init=function(){t.instances.set(this.el,this),g()&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var t=this;if(Array.prototype.filter.call(this.el.children,(function(e){return e.classList.contains(t.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),n=document.createElement("div");e.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),e.appendChild(n),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.initListeners=function(){var t=this,e=b(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.addEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize);var n=!1,r=e.ResizeObserver||d.Z;this.resizeObserver=new r((function(){n&&t.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new e.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},e.recalculate=function(){var t=b(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var e=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var s=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=s+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=c>r,this.axis.y.isOverflowing=s>u,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var l=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>u-l,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(t){if(void 0===t&&(t="y"),!this.axis[t].isOverflowing)return 0;var e,n=this.contentEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],o=r/n;return e=Math.max(~~(o*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(e=Math.min(e,this.options.scrollbarMaxSize)),e},e.positionScrollbar=function(e){if(void 0===e&&(e="y"),this.axis[e].isOverflowing){var n=this.contentWrapperEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[e].sizeAttr],10),i=this.axis[e].scrollbar,a=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],s=(a="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-a:a)/(n-o),c=~~((r-i.size)*s);c="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?c+(r-i.size):c,i.el.style.transform="x"===e?"translate3d("+c+"px, 0, 0)":"translate3d(0, "+c+"px, 0)"}},e.toggleTrackVisibility=function(t){void 0===t&&(t="y");var e=this.axis[t].track.el,n=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(t){void 0===t&&(t="y"),this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(t){void 0===t&&(t="y");var e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(t,e){void 0===e&&(e="y");var n=_(this.el),r=b(this.el),o=this.axis[e].scrollbar,i="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=i-o.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(t,e){var n=this;if(void 0===e&&(e="y"),this.options.clickOnTrack){var r=b(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();var o=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],i=parseInt(this.elStyles[this.axis[e].sizeAttr],10),a=this.contentWrapperEl[this.axis[e].scrollOffsetAttr],s=("y"===e?this.mouseY-o:this.mouseX-o)<0?-1:1,c=-1===s?a-i:a+i;!function t(){var o,i;-1===s?a>c&&(a-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[e].offsetAttr]=a,o)),r.requestAnimationFrame(t)):a<c&&(a+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[e].offsetAttr]=a,i)),r.requestAnimationFrame(t))}()}},e.getContentElement=function(){return this.contentEl},e.getScrollElement=function(){return this.contentWrapperEl},e.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:v()}catch(t){return v()}},e.removeListeners=function(){var t=this,e=b(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(e){t.el.removeEventListener(e,t.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},e.unMount=function(){this.removeListeners(),t.instances.delete(this.el)},e.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.findChild=function(t,e){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(function(t){return n.call(t,e)}))[0]},t}();w.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},w.instances=new WeakMap;var S=w;function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(){return M=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},M.apply(this,arguments)}function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var k=o().forwardRef((function(t,e){var n,i=t.children,a=t.scrollableNodeProps,s=void 0===a?{}:a,c=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["children","scrollableNodeProps"]),u=(0,r.useRef)(),l=(0,r.useRef)(),f=(0,r.useRef)(),p={},d={},h=[];return Object.keys(c).forEach((function(t){Object.prototype.hasOwnProperty.call(S.defaultOptions,t)?p[t]=c[t]:t.match(/data-simplebar-(.+)/)&&"data-simplebar-direction"!==t?h.push({name:t,value:c[t]}):d[t]=c[t]})),h.length&&console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' —> 'autoHide=\"false\"'\n "),(0,r.useEffect)((function(){var t;return u=s.ref||u,l.current&&(n=new S(l.current,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(n,!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(t=h,Array.prototype.reduce.call(t,(function(t,e){var n=e.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(t,e){return e.toUpperCase()}));switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t}),{})),{},p,{},u&&{scrollableNode:u.current},{},f.current&&{contentNode:f.current})),e&&(e.current=n)),function(){n.unMount(),n=null}}),[]),o().createElement("div",M({ref:l,"data-simplebar":!0},d),o().createElement("div",{className:"simplebar-wrapper"},o().createElement("div",{className:"simplebar-height-auto-observer-wrapper"},o().createElement("div",{className:"simplebar-height-auto-observer"})),o().createElement("div",{className:"simplebar-mask"},o().createElement("div",{className:"simplebar-offset"},"function"==typeof i?i({scrollableNodeRef:u,contentNodeRef:f}):o().createElement("div",M({},s,{className:"simplebar-content-wrapper".concat(s.className?" ".concat(s.className):"")}),o().createElement("div",{className:"simplebar-content"},i)))),o().createElement("div",{className:"simplebar-placeholder"})),o().createElement("div",{className:"simplebar-track simplebar-horizontal"},o().createElement("div",{className:"simplebar-scrollbar"})),o().createElement("div",{className:"simplebar-track simplebar-vertical"},o().createElement("div",{className:"simplebar-scrollbar"})))}));k.displayName="SimpleBar",k.propTypes={children:a().oneOfType([a().node,a().func]),scrollableNodeProps:a().object};var C=k},82602:function(t,e,n){"use strict";n.d(e,{WU:function(){return u}});var r=["second","minute","hour","day","week","month","year"],o=["秒","分钟","小时","天","周","个月","年"],i={},a=function(t,e){i[t]=e},s=[60,60,24,7,365/7/12,12];function c(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}var u=function(t,e,n){var r=function(t,e){return(+(e?c(e):new Date)-+c(t))/1e3}(t,n&&n.relativeDate);return function(t,e){for(var n=t<0?1:0,r=t=Math.abs(t),o=0;t>=s[o]&&o<s.length;o++)t/=s[o];return(t=Math.floor(t))>(0==(o*=2)?9:1)&&(o+=1),e(t,o,r)[n].replace("%s",t.toString())}(r,function(t){return i[t]||i.en_US}(e))};a("en_US",(function(t,e){if(0===e)return["just now","right now"];var n=r[Math.floor(e/2)];return t>1&&(n+="s"),[t+" "+n+" ago","in "+t+" "+n]})),a("zh_CN",(function(t,e){if(0===e)return["刚刚","片刻后"];var n=o[~~(e/2)];return[t+" "+n+"前",t+" "+n+"后"]}))},52423:function(t,e,n){var r;!function(o,i){"use strict";var a="function",s="undefined",c="object",u="string",l="major",f="model",p="name",d="type",h="vendor",g="version",y="architecture",m="console",v="mobile",b="tablet",_="smarttv",w="wearable",S="embedded",x="Amazon",M="Apple",E="ASUS",k="BlackBerry",C="Browser",D="Chrome",j="Firefox",O="Google",I="Huawei",T="LG",L="Microsoft",A="Motorola",N="Opera",z="Samsung",R="Sharp",P="Sony",B="Xiaomi",F="Zebra",U="Facebook",K="Chromium OS",H="Mac OS",q=" Browser",W=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},Y=function(t,e){return typeof t===u&&-1!==V(e).indexOf(V(t))},V=function(t){return t.toLowerCase()},Q=function(t,e){if(typeof t===u)return t=t.replace(/^\s\s*/,""),typeof e===s?t:t.substring(0,500)},Z=function(t,e){for(var n,r,o,s,u,l,f=0;f<e.length&&!u;){var p=e[f],d=e[f+1];for(n=r=0;n<p.length&&!u&&p[n];)if(u=p[n++].exec(t))for(o=0;o<d.length;o++)l=u[++r],typeof(s=d[o])===c&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;f+=2}},G=function(t,e){for(var n in e)if(typeof e[n]===c&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(Y(e[n][r],t))return"?"===n?i:n}else if(Y(e[n],t))return"?"===n?i:n;return e.hasOwnProperty("*")?e["*"]:t},J={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,N+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[p,N+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[p,N]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[p,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+C],g],[/\bfocus\/([\w\.]+)/i],[g,[p,j+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[p,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[p,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[p,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[g,[p,j]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360"+q]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+q],g],[/samsungbrowser\/([\w\.]+)/i],[g,[p,z+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,U],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,D+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,D+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,G,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],g],[/(wolvic)\/([\w\.]+)/i],[p,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,j+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,V]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[h,z],[d,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,z],[d,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[h,M],[d,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,M],[d,b]],[/(macintosh);/i],[f,[h,M]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,R],[d,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[h,I],[d,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,I],[d,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[f,/_/g," "],[h,B],[d,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[h,B],[d,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,"OPPO"],[d,v]],[/\b(opd2\d{3}a?) bui/i],[f,[h,"OPPO"],[d,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,"Vivo"],[d,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[h,"Realme"],[d,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[h,A],[d,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,A],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,T],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,T],[d,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[h,"Lenovo"],[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[h,"Nokia"],[d,v]],[/(pixel c)\b/i],[f,[h,O],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,O],[d,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[h,P],[d,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[h,P],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,"OnePlus"],[d,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,x],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[h,x],[d,v]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,k],[d,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,E],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,E],[d,v]],[/(nexus 9)/i],[f,[h,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g," "],[d,v]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[f,[h,"TCL"],[d,b]],[/(itel) ((\w+))/i],[[h,V],f,[d,G,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,"Meizu"],[d,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[h,"Ulefone"],[d,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[f,[h,"Nothing"],[d,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[d,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,f,[d,b]],[/(surface duo)/i],[f,[h,L],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,"Fairphone"],[d,v]],[/(u304aa)/i],[f,[h,"AT&T"],[d,v]],[/\bsie-(\w*)/i],[f,[h,"Siemens"],[d,v]],[/\b(rct\w+) b/i],[f,[h,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[f,[h,"NuVision"],[d,b]],[/\b(k88) b/i],[f,[h,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[f,[h,"ZTE"],[d,v]],[/\b(gen\d{3}) b.+49h/i],[f,[h,"Swiss"],[d,v]],[/\b(zur\d{3}) b/i],[f,[h,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[f,[h,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],f,[d,b]],[/\b(ns-?\w{0,9}) b/i],[f,[h,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],f,[d,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],f,[d,v]],[/\b(ph-1) /i],[f,[h,"Essential"],[d,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[f,[h,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[f,[h,"Rotor"],[d,b]],[/(shield[\w ]+) b/i],[f,[h,"Nvidia"],[d,b]],[/(sprint) (\w+)/i],[h,f,[d,v]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[h,L],[d,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,F],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,F],[d,v]],[/smart-tv.+(samsung)/i],[h,[d,_]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[h,z],[d,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,T],[d,_]],[/(apple) ?tv/i],[h,[f,M+" TV"],[d,_]],[/crkey/i],[[f,D+"cast"],[h,O],[d,_]],[/droid.+aft(\w+)( bui|\))/i],[f,[h,x],[d,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,R],[d,_]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,P],[d,_]],[/(mitv-\w{5}) bui/i],[f,[h,B],[d,_]],[/Hbbtv.*(technisat) (.*);/i],[h,f,[d,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Q],[f,Q],[d,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[d,m]],[/droid.+; (shield) bui/i],[f,[h,"Nvidia"],[d,m]],[/(playstation [345portablevi]+)/i],[f,[h,P],[d,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,L],[d,m]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[f,[h,z],[d,w]],[/((pebble))app/i],[h,f,[d,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[h,M],[d,w]],[/droid.+; (glass) \d/i],[f,[h,O],[d,w]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,F],[d,w]],[/(quest( \d| pro)?)/i],[f,[h,U],[d,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,S]],[/(aeobc)\b/i],[f,[h,x],[d,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[d,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,v]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[g,G,J]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,G,J],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,H],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,g],[/\(bb(10);/i],[g,[p,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,j+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[p,D+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,K],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,g]]},$=function(t,e){if(typeof t===c&&(e=t,t=i),!(this instanceof $))return new $(t,e).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=t||(n&&n.userAgent?n.userAgent:""),m=n&&n.userAgentData?n.userAgentData:i,_=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(X,e):X,w=n&&n.userAgent==r;return this.getBrowser=function(){var t,e={};return e[p]=i,e[g]=i,Z.call(e,r,_.browser),e[l]=typeof(t=e[g])===u?t.replace(/[^\d\.]/g,"").split(".")[0]:i,w&&n&&n.brave&&typeof n.brave.isBrave==a&&(e[p]="Brave"),e},this.getCPU=function(){var t={};return t[y]=i,Z.call(t,r,_.cpu),t},this.getDevice=function(){var t={};return t[h]=i,t[f]=i,t[d]=i,Z.call(t,r,_.device),w&&!t[d]&&m&&m.mobile&&(t[d]=v),w&&"Macintosh"==t[f]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(t[f]="iPad",t[d]=b),t},this.getEngine=function(){var t={};return t[p]=i,t[g]=i,Z.call(t,r,_.engine),t},this.getOS=function(){var t={};return t[p]=i,t[g]=i,Z.call(t,r,_.os),w&&!t[p]&&m&&m.platform&&"Unknown"!=m.platform&&(t[p]=m.platform.replace(/chrome os/i,K).replace(/macos/i,H)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r=typeof t===u&&t.length>500?Q(t,500):t,this},this.setUA(r),this};$.VERSION="0.7.39",$.BROWSER=W([p,g,l]),$.CPU=W([y]),$.DEVICE=W([f,h,d,m,v,_,b,w,S]),$.ENGINE=$.OS=W([p,g]),typeof e!==s?(t.exports&&(e=t.exports=$),e.UAParser=$):n.amdO?(r=function(){return $}.call(e,n,e,t))===i||(t.exports=r):typeof o!==s&&(o.UAParser=$);var tt=typeof o!==s&&(o.jQuery||o.Zepto);if(tt&&!tt.ua){var et=new $;tt.ua=et.getResult(),tt.ua.get=function(){return et.getUA()},tt.ua.set=function(t){et.setUA(t);var e=et.getResult();for(var n in e)tt.ua[n]=e[n]}}}("object"==typeof window?window:this)}}]);