@bull-board/ui 6.0.1 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1346) hide show
  1. package/dist/index.ejs +17 -1
  2. package/dist/static/css/async/23080.2193c0e5.css +1 -0
  3. package/dist/static/css/async/26335.e838b811.css +1 -0
  4. package/dist/static/css/async/4670.c4807cec.css +1 -0
  5. package/dist/static/css/async/70021.5dba326b.css +1 -0
  6. package/dist/static/css/async/97241.9073eb35.css +1 -0
  7. package/dist/static/css/main.7afc0da6.css +1 -0
  8. package/dist/static/js/25030.e30fc237.js +2 -0
  9. package/dist/static/js/25030.e30fc237.js.LICENSE.txt +34 -0
  10. package/dist/static/js/async/1004.c6a6b1e7.js +1 -0
  11. package/dist/static/js/async/10124.3b4311de.js +1 -0
  12. package/dist/static/js/async/10314.cd4146b6.js +1 -0
  13. package/dist/static/js/async/10433.3c56f7f8.js +1 -0
  14. package/dist/static/js/async/10474.d3e52c82.js +1 -0
  15. package/dist/static/js/async/10634.6734a7e1.js +1 -0
  16. package/dist/static/js/async/1067.b6c269df.js +1 -0
  17. package/dist/static/js/async/10731.6f3ca27a.js +1 -0
  18. package/dist/static/js/async/1075.4c74c51d.js +1 -0
  19. package/dist/static/js/async/10807.d9d04a47.js +1 -0
  20. package/dist/static/js/async/10847.08eba4ae.js +1 -0
  21. package/dist/static/js/async/1109.9985784c.js +1 -0
  22. package/dist/static/js/async/11120.d36ac466.js +1 -0
  23. package/dist/static/js/async/11424.f0008975.js +1 -0
  24. package/dist/static/js/async/11469.8c2a81ab.js +1 -0
  25. package/dist/static/js/async/11600.f01cb2a3.js +1 -0
  26. package/dist/static/js/async/11634.14c572d3.js +1 -0
  27. package/dist/static/js/async/12035.abae17e3.js +1 -0
  28. package/dist/static/js/async/12041.2a3ba0f9.js +1 -0
  29. package/dist/static/js/async/12282.e014bf6d.js +1 -0
  30. package/dist/static/js/async/12291.5fb4bbc4.js +1 -0
  31. package/dist/static/js/async/12311.768d2079.js +1 -0
  32. package/dist/static/js/async/12423.9b7c1887.js +1 -0
  33. package/dist/static/js/async/1266.0a1877ce.js +1 -0
  34. package/dist/static/js/async/12673.3aa5e020.js +1 -0
  35. package/dist/static/js/async/12829.d2db53ff.js +1 -0
  36. package/dist/static/js/async/12958.f31b9f83.js +1 -0
  37. package/dist/static/js/async/1298.3dacac46.js +1 -0
  38. package/dist/static/js/async/1309.50c4d447.js +1 -0
  39. package/dist/static/js/async/13209.03c017dd.js +1 -0
  40. package/dist/static/js/async/13392.0071ce96.js +1 -0
  41. package/dist/static/js/async/13399.a327f5ce.js +1 -0
  42. package/dist/static/js/async/1350.b04dc250.js +1 -0
  43. package/dist/static/js/async/13523.88ac262c.js +1 -0
  44. package/dist/static/js/async/13538.58ca4576.js +1 -0
  45. package/dist/static/js/async/13746.9f60bdaf.js +1 -0
  46. package/dist/static/js/async/13883.96cea6c3.js +1 -0
  47. package/dist/static/js/async/14264.aa3974c7.js +1 -0
  48. package/dist/static/js/async/14385.097c00e5.js +1 -0
  49. package/dist/static/js/async/14576.e1693682.js +1 -0
  50. package/dist/static/js/async/1466.1a375af1.js +1 -0
  51. package/dist/static/js/async/14760.8aaaa5f6.js +1 -0
  52. package/dist/static/js/async/14776.a5ff16b6.js +1 -0
  53. package/dist/static/js/async/14777.b6e63493.js +1 -0
  54. package/dist/static/js/async/14851.34ee8653.js +1 -0
  55. package/dist/static/js/async/14957.434b78d5.js +1 -0
  56. package/dist/static/js/async/15132.8eab3430.js +1 -0
  57. package/dist/static/js/async/1536.bdc311e9.js +1 -0
  58. package/dist/static/js/async/1550.237c018e.js +1 -0
  59. package/dist/static/js/async/15641.d828d296.js +1 -0
  60. package/dist/static/js/async/15724.783637e0.js +1 -0
  61. package/dist/static/js/async/15747.f697e337.js +1 -0
  62. package/dist/static/js/async/15934.901dc4c4.js +1 -0
  63. package/dist/static/js/async/16054.50ac3169.js +1 -0
  64. package/dist/static/js/async/16116.81b5516c.js +1 -0
  65. package/dist/static/js/async/16259.aaf18eb3.js +1 -0
  66. package/dist/static/js/async/16664.ef2ab6a0.js +1 -0
  67. package/dist/static/js/async/16691.a8b2a780.js +1 -0
  68. package/dist/static/js/async/16949.a352452f.js +1 -0
  69. package/dist/static/js/async/17013.dbc96e34.js +1 -0
  70. package/dist/static/js/async/17030.cd05eb60.js +1 -0
  71. package/dist/static/js/async/17032.40e8b63c.js +1 -0
  72. package/dist/static/js/async/17090.066d4b65.js +1 -0
  73. package/dist/static/js/async/17526.6ef4ec4d.js +1 -0
  74. package/dist/static/js/async/17561.8f4a9bbf.js +1 -0
  75. package/dist/static/js/async/17629.1e6d68d0.js +1 -0
  76. package/dist/static/js/async/1766.7bf9b8b2.js +1 -0
  77. package/dist/static/js/async/17825.3dfbff0e.js +1 -0
  78. package/dist/static/js/async/1811.a5d4b5ec.js +1 -0
  79. package/dist/static/js/async/18164.5fe06fb5.js +1 -0
  80. package/dist/static/js/async/18171.af1d8f8d.js +1 -0
  81. package/dist/static/js/async/18323.41909371.js +1 -0
  82. package/dist/static/js/async/18355.172a32dd.js +1 -0
  83. package/dist/static/js/async/18423.178b2d1b.js +1 -0
  84. package/dist/static/js/async/18491.cf69871d.js +1 -0
  85. package/dist/static/js/async/185.1c26f761.js +1 -0
  86. package/dist/static/js/async/1886.91a5e833.js +1 -0
  87. package/dist/static/js/async/18942.130ec57b.js +1 -0
  88. package/dist/static/js/async/19246.2a1d515b.js +1 -0
  89. package/dist/static/js/async/19331.12ca94a5.js +1 -0
  90. package/dist/static/js/async/19407.ede27bb1.js +1 -0
  91. package/dist/static/js/async/19449.16127b28.js +1 -0
  92. package/dist/static/js/async/19459.c46a7a5b.js +1 -0
  93. package/dist/static/js/async/19577.d47a9d98.js +1 -0
  94. package/dist/static/js/async/19738.081a50a2.js +1 -0
  95. package/dist/static/js/async/20062.f5dc5e58.js +1 -0
  96. package/dist/static/js/async/20168.cea6121a.js +1 -0
  97. package/dist/static/js/async/20176.e0f4d158.js +1 -0
  98. package/dist/static/js/async/20306.ce0432cb.js +56 -0
  99. package/dist/static/js/async/20306.ce0432cb.js.LICENSE.txt +1 -0
  100. package/dist/static/js/async/20562.d84966db.js +1 -0
  101. package/dist/static/js/async/20589.e7a422dc.js +1 -0
  102. package/dist/static/js/async/20606.9d39403d.js +1 -0
  103. package/dist/static/js/async/2065.3b3a6827.js +1 -0
  104. package/dist/static/js/async/2092.d4a1efa3.js +1 -0
  105. package/dist/static/js/async/20926.eac55503.js +1 -0
  106. package/dist/static/js/async/20976.81cf76c7.js +1 -0
  107. package/dist/static/js/async/20985.44fe2d9a.js +1 -0
  108. package/dist/static/js/async/21026.09bd527f.js +1 -0
  109. package/dist/static/js/async/21110.3a578eaa.js +1 -0
  110. package/dist/static/js/async/21184.6269ed75.js +1 -0
  111. package/dist/static/js/async/21374.c2c7fba6.js +1 -0
  112. package/dist/static/js/async/21856.b6510ea6.js +1 -0
  113. package/dist/static/js/async/21881.a81f559e.js +1 -0
  114. package/dist/static/js/async/21943.697795ef.js +1 -0
  115. package/dist/static/js/async/22023.a47a57b8.js +1 -0
  116. package/dist/static/js/async/2206.636d1986.js +1 -0
  117. package/dist/static/js/async/22088.3c26da2d.js +1 -0
  118. package/dist/static/js/async/2237.cf0e3429.js +1 -0
  119. package/dist/static/js/async/22404.bb52136d.js +1 -0
  120. package/dist/static/js/async/22510.b5a07d3e.js +1 -0
  121. package/dist/static/js/async/22519.498c6856.js +1 -0
  122. package/dist/static/js/async/22530.b81b18dc.js +1 -0
  123. package/dist/static/js/async/22862.19af1e8e.js +1 -0
  124. package/dist/static/js/async/2295.271701b1.js +1 -0
  125. package/dist/static/js/async/23080.8c84a1ef.js +1 -0
  126. package/dist/static/js/async/23313.3be9e216.js +1 -0
  127. package/dist/static/js/async/23381.12da3072.js +1 -0
  128. package/dist/static/js/async/23501.4646a4dc.js +1 -0
  129. package/dist/static/js/async/2351.29ca6319.js +1 -0
  130. package/dist/static/js/async/23539.33809ff6.js +1 -0
  131. package/dist/static/js/async/2354.a15a9d8e.js +1 -0
  132. package/dist/static/js/async/23745.1e1a6b28.js +1 -0
  133. package/dist/static/js/async/23874.1364f4e0.js +1 -0
  134. package/dist/static/js/async/23907.ad905f45.js +1 -0
  135. package/dist/static/js/async/23926.82234597.js +1 -0
  136. package/dist/static/js/async/24006.cadccb06.js +1 -0
  137. package/dist/static/js/async/24085.f267e2b2.js +1 -0
  138. package/dist/static/js/async/24228.1bcc6c7f.js +1 -0
  139. package/dist/static/js/async/24469.d93850c7.js +1 -0
  140. package/dist/static/js/async/24731.dc8e6e38.js +1 -0
  141. package/dist/static/js/async/24774.cae0cd2c.js +1 -0
  142. package/dist/static/js/async/2498.88fb9354.js +1 -0
  143. package/dist/static/js/async/25025.e4d98080.js +1 -0
  144. package/dist/static/js/async/25032.e003584f.js +1 -0
  145. package/dist/static/js/async/25150.963c18c2.js +1 -0
  146. package/dist/static/js/async/25442.82626453.js +1 -0
  147. package/dist/static/js/async/25454.5d514527.js +1 -0
  148. package/dist/static/js/async/25678.2e14c083.js +1 -0
  149. package/dist/static/js/async/2571.716f7cae.js +1 -0
  150. package/dist/static/js/async/2585.fd62ef55.js +1 -0
  151. package/dist/static/js/async/25883.50e7d595.js +1 -0
  152. package/dist/static/js/async/26019.4485048f.js +1 -0
  153. package/dist/static/js/async/26093.0a23ee07.js +1 -0
  154. package/dist/static/js/async/26335.24d897e6.js +1 -0
  155. package/dist/static/js/async/26366.e23929d9.js +1 -0
  156. package/dist/static/js/async/26754.60f6dd2f.js +1 -0
  157. package/dist/static/js/async/26760.c0177a7e.js +1 -0
  158. package/dist/static/js/async/26846.bcbb7a7d.js +1 -0
  159. package/dist/static/js/async/26975.c121509e.js +1 -0
  160. package/dist/static/js/async/27172.3796ed57.js +1 -0
  161. package/dist/static/js/async/2719.8e7c25ea.js +1 -0
  162. package/dist/static/js/async/27412.b5613d58.js +1 -0
  163. package/dist/static/js/async/27428.141929f7.js +1 -0
  164. package/dist/static/js/async/27437.ec091436.js +1 -0
  165. package/dist/static/js/async/27906.0cb8e83d.js +1 -0
  166. package/dist/static/js/async/28000.ecbc331f.js +1 -0
  167. package/dist/static/js/async/28181.43f317f4.js +1 -0
  168. package/dist/static/js/async/28333.eeb6ff2e.js +1 -0
  169. package/dist/static/js/async/28413.718e2241.js +1 -0
  170. package/dist/static/js/async/2845.d5dd8364.js +1 -0
  171. package/dist/static/js/async/28784.e11a92f5.js +1 -0
  172. package/dist/static/js/async/28853.18b8e611.js +1 -0
  173. package/dist/static/js/async/28899.68897fb9.js +1 -0
  174. package/dist/static/js/async/29320.0d6a93eb.js +1 -0
  175. package/dist/static/js/async/29408.04675e1c.js +1 -0
  176. package/dist/static/js/async/29528.cdf040e6.js +1 -0
  177. package/dist/static/js/async/29586.a39083a2.js +1 -0
  178. package/dist/static/js/async/2977.06d1b060.js +1 -0
  179. package/dist/static/js/async/29778.da947a2e.js +1 -0
  180. package/dist/static/js/async/29917.83c21026.js +1 -0
  181. package/dist/static/js/async/30039.b08c0b66.js +1 -0
  182. package/dist/static/js/async/3009.da737e01.js +1 -0
  183. package/dist/static/js/async/30450.c5825f41.js +1 -0
  184. package/dist/static/js/async/30472.65597e1d.js +1 -0
  185. package/dist/static/js/async/30474.022bdf09.js +1 -0
  186. package/dist/static/js/async/30641.2cfa07b8.js +1 -0
  187. package/dist/static/js/async/30678.e0cf4712.js +1 -0
  188. package/dist/static/js/async/30761.6677bd73.js +1 -0
  189. package/dist/static/js/async/30813.33706803.js +1 -0
  190. package/dist/static/js/async/30969.97665b1c.js +1 -0
  191. package/dist/static/js/async/31125.7793a2f5.js +1 -0
  192. package/dist/static/js/async/31189.6872cf11.js +1 -0
  193. package/dist/static/js/async/31399.ebfc1b94.js +1 -0
  194. package/dist/static/js/async/31447.487a3761.js +1 -0
  195. package/dist/static/js/async/31460.8b001359.js +1 -0
  196. package/dist/static/js/async/31475.6eba8231.js +1 -0
  197. package/dist/static/js/async/3165.34ebe623.js +1 -0
  198. package/dist/static/js/async/31654.9059b3f0.js +1 -0
  199. package/dist/static/js/async/31719.995b2c08.js +1 -0
  200. package/dist/static/js/async/31832.6cf2647c.js +1 -0
  201. package/dist/static/js/async/3223.f718ffaf.js +1 -0
  202. package/dist/static/js/async/32230.68501dc3.js +1 -0
  203. package/dist/static/js/async/32240.8f8006d3.js +1 -0
  204. package/dist/static/js/async/32430.2089fe8e.js +1 -0
  205. package/dist/static/js/async/32495.608612a6.js +1 -0
  206. package/dist/static/js/async/32543.f3411e62.js +1 -0
  207. package/dist/static/js/async/32595.7e8067c5.js +1 -0
  208. package/dist/static/js/async/32970.238e96b1.js +1 -0
  209. package/dist/static/js/async/33035.549f8212.js +1 -0
  210. package/dist/static/js/async/3338.15fd5179.js +1 -0
  211. package/dist/static/js/async/33421.97822ef5.js +1 -0
  212. package/dist/static/js/async/33538.aae151e2.js +1 -0
  213. package/dist/static/js/async/33635.b244a29e.js +1 -0
  214. package/dist/static/js/async/33727.85ca119a.js +1 -0
  215. package/dist/static/js/async/34003.2fec3e94.js +1 -0
  216. package/dist/static/js/async/34302.545803bc.js +1 -0
  217. package/dist/static/js/async/34759.51703542.js +1 -0
  218. package/dist/static/js/async/3478.9345c487.js +1 -0
  219. package/dist/static/js/async/34850.4b970812.js +1 -0
  220. package/dist/static/js/async/34932.c2b4a67c.js +1 -0
  221. package/dist/static/js/async/34938.bff23c4e.js +1 -0
  222. package/dist/static/js/async/35136.8b1bd49a.js +1 -0
  223. package/dist/static/js/async/35245.e24deb26.js +1 -0
  224. package/dist/static/js/async/35359.5f44bb4b.js +1 -0
  225. package/dist/static/js/async/35512.d3820bf7.js +1 -0
  226. package/dist/static/js/async/35533.483bb33f.js +1 -0
  227. package/dist/static/js/async/35601.2da49190.js +1 -0
  228. package/dist/static/js/async/35770.eb24f4c8.js +1 -0
  229. package/dist/static/js/async/35793.e6990251.js +1 -0
  230. package/dist/static/js/async/35831.dfca408b.js +1 -0
  231. package/dist/static/js/async/3592.67525d9c.js +1 -0
  232. package/dist/static/js/async/36113.fcebc16d.js +1 -0
  233. package/dist/static/js/async/36305.d1117d78.js +1 -0
  234. package/dist/static/js/async/36346.1410dbb8.js +1 -0
  235. package/dist/static/js/async/36805.9620f583.js +1 -0
  236. package/dist/static/js/async/36926.e6da974a.js +1 -0
  237. package/dist/static/js/async/37001.7115e11c.js +1 -0
  238. package/dist/static/js/async/37453.b8947899.js +1 -0
  239. package/dist/static/js/async/37476.fb77a645.js +1 -0
  240. package/dist/static/js/async/37477.37e3ceda.js +1 -0
  241. package/dist/static/js/async/37554.f0c8c306.js +1 -0
  242. package/dist/static/js/async/3756.a5a9a058.js +1 -0
  243. package/dist/static/js/async/37716.66244a73.js +1 -0
  244. package/dist/static/js/async/37908.4e5d4ebe.js +1 -0
  245. package/dist/static/js/async/37923.b772180b.js +1 -0
  246. package/dist/static/js/async/37981.63dcd22d.js +1 -0
  247. package/dist/static/js/async/37985.62dba04f.js +1 -0
  248. package/dist/static/js/async/38023.04e06c11.js +1 -0
  249. package/dist/static/js/async/38045.dbdca7ee.js +1 -0
  250. package/dist/static/js/async/38050.036becdb.js +1 -0
  251. package/dist/static/js/async/38059.55ca9a7a.js +1 -0
  252. package/dist/static/js/async/38264.106c01d2.js +1 -0
  253. package/dist/static/js/async/38340.1e7a4d60.js +1 -0
  254. package/dist/static/js/async/38437.f8b5e3da.js +1 -0
  255. package/dist/static/js/async/38490.19964988.js +1 -0
  256. package/dist/static/js/async/38541.776c88d1.js +1 -0
  257. package/dist/static/js/async/38707.2d5f9dae.js +1 -0
  258. package/dist/static/js/async/38755.9ea3085d.js +1 -0
  259. package/dist/static/js/async/38775.1c3e0899.js +1 -0
  260. package/dist/static/js/async/39029.3d627694.js +1 -0
  261. package/dist/static/js/async/39124.9a4fb841.js +1 -0
  262. package/dist/static/js/async/39261.6df7af76.js +1 -0
  263. package/dist/static/js/async/39307.cc219a77.js +1 -0
  264. package/dist/static/js/async/39325.3a48f532.js +1 -0
  265. package/dist/static/js/async/39356.70261334.js +1 -0
  266. package/dist/static/js/async/39553.e7b180bf.js +1 -0
  267. package/dist/static/js/async/39614.a503efc9.js +1 -0
  268. package/dist/static/js/async/39707.c3695c63.js +1 -0
  269. package/dist/static/js/async/39733.c195f574.js +1 -0
  270. package/dist/static/js/async/40109.ffa68e30.js +1 -0
  271. package/dist/static/js/async/40118.6bb8bcaa.js +1 -0
  272. package/dist/static/js/async/40259.8fcafe82.js +1 -0
  273. package/dist/static/js/async/40339.89fe8e8f.js +1 -0
  274. package/dist/static/js/async/40463.786da866.js +1 -0
  275. package/dist/static/js/async/40517.48a4e34c.js +1 -0
  276. package/dist/static/js/async/40689.21d43276.js +1 -0
  277. package/dist/static/js/async/4073.9c297f45.js +1 -0
  278. package/dist/static/js/async/40774.0700cdbb.js +1 -0
  279. package/dist/static/js/async/40808.c81b825b.js +1 -0
  280. package/dist/static/js/async/40970.5d815928.js +1 -0
  281. package/dist/static/js/async/41048.361d1df2.js +1 -0
  282. package/dist/static/js/async/41261.f82f8e70.js +1 -0
  283. package/dist/static/js/async/41275.fa97f80c.js +1 -0
  284. package/dist/static/js/async/41420.4767b309.js +1 -0
  285. package/dist/static/js/async/4145.d98e0a8d.js +1 -0
  286. package/dist/static/js/async/41572.f9198ebc.js +1 -0
  287. package/dist/static/js/async/41601.39a2f3ac.js +1 -0
  288. package/dist/static/js/async/41721.93b0bd66.js +1 -0
  289. package/dist/static/js/async/41928.1d9f7cbc.js +1 -0
  290. package/dist/static/js/async/42108.21ea90b2.js +1 -0
  291. package/dist/static/js/async/42145.f72c3e64.js +1 -0
  292. package/dist/static/js/async/42238.153f7322.js +1 -0
  293. package/dist/static/js/async/42298.c867a784.js +1 -0
  294. package/dist/static/js/async/42357.4cf5243f.js +1 -0
  295. package/dist/static/js/async/42575.6811e103.js +1 -0
  296. package/dist/static/js/async/42652.621e87db.js +1 -0
  297. package/dist/static/js/async/42770.49b47d84.js +1 -0
  298. package/dist/static/js/async/42842.0441ecd2.js +1 -0
  299. package/dist/static/js/async/42856.46cb3865.js +1 -0
  300. package/dist/static/js/async/42967.be7e6239.js +1 -0
  301. package/dist/static/js/async/43042.46ce81c8.js +1 -0
  302. package/dist/static/js/async/43178.91678ffb.js +1 -0
  303. package/dist/static/js/async/43210.2d1b3d32.js +1 -0
  304. package/dist/static/js/async/43714.6a39f6b3.js +1 -0
  305. package/dist/static/js/async/43810.fd7fc770.js +1 -0
  306. package/dist/static/js/async/44004.806e8f8f.js +1 -0
  307. package/dist/static/js/async/4406.9080170e.js +1 -0
  308. package/dist/static/js/async/44067.65256bf2.js +1 -0
  309. package/dist/static/js/async/44369.7bb921db.js +1 -0
  310. package/dist/static/js/async/44381.a3340653.js +1 -0
  311. package/dist/static/js/async/44744.72454b71.js +1 -0
  312. package/dist/static/js/async/44980.9884f9d0.js +1 -0
  313. package/dist/static/js/async/44997.82019646.js +1 -0
  314. package/dist/static/js/async/45122.8ec2ea6a.js +1 -0
  315. package/dist/static/js/async/45133.4fa5d2bd.js +1 -0
  316. package/dist/static/js/async/45181.ed1f1429.js +1 -0
  317. package/dist/static/js/async/45223.a9efe132.js +1 -0
  318. package/dist/static/js/async/45245.791bac9e.js +1 -0
  319. package/dist/static/js/async/45269.2d0d8e0f.js +1 -0
  320. package/dist/static/js/async/45324.7ce05862.js +1 -0
  321. package/dist/static/js/async/4547.b41ae52f.js +1 -0
  322. package/dist/static/js/async/45685.1b53a873.js +1 -0
  323. package/dist/static/js/async/45771.1f01a638.js +1 -0
  324. package/dist/static/js/async/45827.a4823f4d.js +1 -0
  325. package/dist/static/js/async/46025.c8d706a2.js +1 -0
  326. package/dist/static/js/async/4619.24fbd7fb.js +1 -0
  327. package/dist/static/js/async/46437.d1944e88.js +1 -0
  328. package/dist/static/js/async/46476.d8b087aa.js +1 -0
  329. package/dist/static/js/async/46675.01982d3d.js +1 -0
  330. package/dist/static/js/async/4670.10a7fb1a.js +1 -0
  331. package/dist/static/js/async/46915.e6710abd.js +1 -0
  332. package/dist/static/js/async/47025.c8e518e9.js +1 -0
  333. package/dist/static/js/async/47116.0866f144.js +1 -0
  334. package/dist/static/js/async/47118.cc0db726.js +1 -0
  335. package/dist/static/js/async/47232.3967fdec.js +1 -0
  336. package/dist/static/js/async/47423.97dab8a0.js +1 -0
  337. package/dist/static/js/async/47484.50bc7713.js +1 -0
  338. package/dist/static/js/async/475.e23c5a15.js +1 -0
  339. package/dist/static/js/async/47592.46e627f5.js +1 -0
  340. package/dist/static/js/async/47736.1e554c9e.js +1 -0
  341. package/dist/static/js/async/47809.1d8b0fe2.js +1 -0
  342. package/dist/static/js/async/4786.41ce483a.js +1 -0
  343. package/dist/static/js/async/4798.be4783ec.js +1 -0
  344. package/dist/static/js/async/48396.07ec55ec.js +1 -0
  345. package/dist/static/js/async/48740.639c5215.js +1 -0
  346. package/dist/static/js/async/48801.b83c46da.js +1 -0
  347. package/dist/static/js/async/48834.965caaf8.js +1 -0
  348. package/dist/static/js/async/49081.b042bfc1.js +1 -0
  349. package/dist/static/js/async/491.a0125b60.js +1 -0
  350. package/dist/static/js/async/49170.34212fab.js +1 -0
  351. package/dist/static/js/async/49352.19025f5b.js +1 -0
  352. package/dist/static/js/async/49360.3fade65b.js +1 -0
  353. package/dist/static/js/async/49429.819d310e.js +1 -0
  354. package/dist/static/js/async/49516.d5038e2c.js +1 -0
  355. package/dist/static/js/async/49623.5fa96975.js +1 -0
  356. package/dist/static/js/async/49802.045ae677.js +1 -0
  357. package/dist/static/js/async/49878.3c830d4e.js +1 -0
  358. package/dist/static/js/async/49986.b62bbe45.js +1 -0
  359. package/dist/static/js/async/50093.192229a7.js +1 -0
  360. package/dist/static/js/async/50122.21eda1d4.js +1 -0
  361. package/dist/static/js/async/5016.bd47dbac.js +1 -0
  362. package/dist/static/js/async/50206.ee03efa3.js +1 -0
  363. package/dist/static/js/async/50296.52e98cd5.js +1 -0
  364. package/dist/static/js/async/5033.a7cbba1f.js +1 -0
  365. package/dist/static/js/async/50389.8e69f2e0.js +1 -0
  366. package/dist/static/js/async/50454.d768c143.js +1 -0
  367. package/dist/static/js/async/50522.276644bc.js +1 -0
  368. package/dist/static/js/async/50535.41a0b35a.js +1 -0
  369. package/dist/static/js/async/50561.054b0f90.js +1 -0
  370. package/dist/static/js/async/50577.0b3a0a95.js +1 -0
  371. package/dist/static/js/async/50643.43643df7.js +1 -0
  372. package/dist/static/js/async/50886.0db9a372.js +1 -0
  373. package/dist/static/js/async/51129.f79373fe.js +1 -0
  374. package/dist/static/js/async/51337.aca79823.js +1 -0
  375. package/dist/static/js/async/51350.f1c9f65d.js +1 -0
  376. package/dist/static/js/async/51520.4e93b965.js +1 -0
  377. package/dist/static/js/async/51620.b20f504b.js +1 -0
  378. package/dist/static/js/async/5186.5a854ae4.js +1 -0
  379. package/dist/static/js/async/51953.9a31290c.js +1 -0
  380. package/dist/static/js/async/51954.dd7b2083.js +1 -0
  381. package/dist/static/js/async/5198.6601c1ef.js +1 -0
  382. package/dist/static/js/async/5203.4b6e4f90.js +1 -0
  383. package/dist/static/js/async/52051.16d04c86.js +1 -0
  384. package/dist/static/js/async/52062.1ccbd79e.js +1 -0
  385. package/dist/static/js/async/5216.63e3cda0.js +1 -0
  386. package/dist/static/js/async/5228.40890b4f.js +1 -0
  387. package/dist/static/js/async/52305.1a1e415a.js +1 -0
  388. package/dist/static/js/async/5240.e86440a9.js +1 -0
  389. package/dist/static/js/async/52441.dc52f145.js +1 -0
  390. package/dist/static/js/async/52535.4cdefca9.js +1 -0
  391. package/dist/static/js/async/52731.561f1dfb.js +1 -0
  392. package/dist/static/js/async/52854.24aecb72.js +1 -0
  393. package/dist/static/js/async/5287.cf02e3ab.js +1 -0
  394. package/dist/static/js/async/5289.2657c680.js +1 -0
  395. package/dist/static/js/async/52913.3b3fa576.js +1 -0
  396. package/dist/static/js/async/52990.3ea8f07b.js +1 -0
  397. package/dist/static/js/async/53349.1cc618cf.js +1 -0
  398. package/dist/static/js/async/53356.7a3cbf84.js +1 -0
  399. package/dist/static/js/async/53436.79136691.js +1 -0
  400. package/dist/static/js/async/5353.c3eddb76.js +1 -0
  401. package/dist/static/js/async/53538.f6585604.js +1 -0
  402. package/dist/static/js/async/53620.58dc9c7b.js +1 -0
  403. package/dist/static/js/async/53630.55917a61.js +1 -0
  404. package/dist/static/js/async/53866.6f68830b.js +1 -0
  405. package/dist/static/js/async/53884.67d6245a.js +1 -0
  406. package/dist/static/js/async/54135.13c8ebb0.js +1 -0
  407. package/dist/static/js/async/54219.054f780a.js +1 -0
  408. package/dist/static/js/async/54546.1163f9cd.js +1 -0
  409. package/dist/static/js/async/54553.0f06b938.js +1 -0
  410. package/dist/static/js/async/54871.e668d006.js +1 -0
  411. package/dist/static/js/async/55041.c22caba4.js +1 -0
  412. package/dist/static/js/async/55241.805041b2.js +1 -0
  413. package/dist/static/js/async/55362.6f05e6f9.js +1 -0
  414. package/dist/static/js/async/5541.7b068cf2.js +1 -0
  415. package/dist/static/js/async/55632.27d844a0.js +1 -0
  416. package/dist/static/js/async/5567.3a68aebd.js +1 -0
  417. package/dist/static/js/async/55737.09d45b31.js +1 -0
  418. package/dist/static/js/async/55773.c62a995c.js +1 -0
  419. package/dist/static/js/async/56028.b4a8a7f7.js +1 -0
  420. package/dist/static/js/async/56221.34088119.js +1 -0
  421. package/dist/static/js/async/56240.cba846ba.js +1 -0
  422. package/dist/static/js/async/56252.65e5fc76.js +1 -0
  423. package/dist/static/js/async/56267.e5cff2b3.js +1 -0
  424. package/dist/static/js/async/56268.aa191a17.js +1 -0
  425. package/dist/static/js/async/56341.08cd60bb.js +1 -0
  426. package/dist/static/js/async/5653.e81ee306.js +1 -0
  427. package/dist/static/js/async/56614.8761252d.js +1 -0
  428. package/dist/static/js/async/56906.a874b699.js +1 -0
  429. package/dist/static/js/async/56919.cd45f26f.js +1 -0
  430. package/dist/static/js/async/57022.e6114d3a.js +1 -0
  431. package/dist/static/js/async/5737.0c2f9cbf.js +1 -0
  432. package/dist/static/js/async/57622.8aa8a3a2.js +1 -0
  433. package/dist/static/js/async/57673.4e6691e2.js +1 -0
  434. package/dist/static/js/async/57809.901c00d0.js +1 -0
  435. package/dist/static/js/async/57846.b68d3136.js +1 -0
  436. package/dist/static/js/async/57860.e7813628.js +1 -0
  437. package/dist/static/js/async/5790.52a28b74.js +1 -0
  438. package/dist/static/js/async/57974.3d243d31.js +1 -0
  439. package/dist/static/js/async/58029.8658984b.js +1 -0
  440. package/dist/static/js/async/58064.577afbed.js +1 -0
  441. package/dist/static/js/async/58078.2db25938.js +1 -0
  442. package/dist/static/js/async/58103.becb3837.js +1 -0
  443. package/dist/static/js/async/58106.6cc6013c.js +1 -0
  444. package/dist/static/js/async/5813.665f576a.js +1 -0
  445. package/dist/static/js/async/58153.c83783f8.js +1 -0
  446. package/dist/static/js/async/58386.e62b1636.js +1 -0
  447. package/dist/static/js/async/58421.d0fb271c.js +1 -0
  448. package/dist/static/js/async/5846.f76a0e30.js +1 -0
  449. package/dist/static/js/async/58515.b4e7861e.js +1 -0
  450. package/dist/static/js/async/58776.d0a0654c.js +1 -0
  451. package/dist/static/js/async/58874.5489f43e.js +1 -0
  452. package/dist/static/js/async/58923.0cc8939f.js +1 -0
  453. package/dist/static/js/async/58975.ae66f04c.js +1 -0
  454. package/dist/static/js/async/59109.fb192aea.js +1 -0
  455. package/dist/static/js/async/59151.cdeceff9.js +1 -0
  456. package/dist/static/js/async/59261.c6dfa2b4.js +1 -0
  457. package/dist/static/js/async/59638.9bd119e1.js +1 -0
  458. package/dist/static/js/async/59709.78dc2446.js +1 -0
  459. package/dist/static/js/async/59796.c1d17951.js +1 -0
  460. package/dist/static/js/async/59879.ed0dd9a6.js +1 -0
  461. package/dist/static/js/async/60290.7637c675.js +1 -0
  462. package/dist/static/js/async/60475.8e0516ab.js +1 -0
  463. package/dist/static/js/async/60756.6b83f7eb.js +1 -0
  464. package/dist/static/js/async/60973.660e4430.js +1 -0
  465. package/dist/static/js/async/6116.6b0f704d.js +1 -0
  466. package/dist/static/js/async/61277.b7d4d18d.js +1 -0
  467. package/dist/static/js/async/61281.48582760.js +1 -0
  468. package/dist/static/js/async/61398.9f077334.js +1 -0
  469. package/dist/static/js/async/61444.0db3bfe6.js +1 -0
  470. package/dist/static/js/async/61495.e404d936.js +1 -0
  471. package/dist/static/js/async/61578.2f4f7a92.js +1 -0
  472. package/dist/static/js/async/61624.28d0f238.js +1 -0
  473. package/dist/static/js/async/61670.f7893df4.js +1 -0
  474. package/dist/static/js/async/61712.b575620b.js +1 -0
  475. package/dist/static/js/async/61714.a1e7743a.js +1 -0
  476. package/dist/static/js/async/61798.0695eadd.js +1 -0
  477. package/dist/static/js/async/61851.03a1e382.js +1 -0
  478. package/dist/static/js/async/61953.457feb35.js +1 -0
  479. package/dist/static/js/async/62145.8c8d7e92.js +1 -0
  480. package/dist/static/js/async/62179.e94c0ace.js +1 -0
  481. package/dist/static/js/async/62184.d1549513.js +1 -0
  482. package/dist/static/js/async/62336.60d1b994.js +1 -0
  483. package/dist/static/js/async/62379.769a8638.js +1 -0
  484. package/dist/static/js/async/62437.1a6e7f83.js +1 -0
  485. package/dist/static/js/async/62438.6ea2beda.js +1 -0
  486. package/dist/static/js/async/62477.23e456a5.js +1 -0
  487. package/dist/static/js/async/62663.253ac2b5.js +1 -0
  488. package/dist/static/js/async/6271.172e8b73.js +1 -0
  489. package/dist/static/js/async/62999.d16442b1.js +1 -0
  490. package/dist/static/js/async/63032.8b302f35.js +1 -0
  491. package/dist/static/js/async/63092.b73b91c9.js +1 -0
  492. package/dist/static/js/async/63172.6be130e0.js +1 -0
  493. package/dist/static/js/async/63197.8c86404c.js +1 -0
  494. package/dist/static/js/async/63298.edb1475d.js +1 -0
  495. package/dist/static/js/async/63671.a2aec4f4.js +1 -0
  496. package/dist/static/js/async/63757.f0329834.js +1 -0
  497. package/dist/static/js/async/63767.391c17a7.js +1 -0
  498. package/dist/static/js/async/63930.17dff848.js +1 -0
  499. package/dist/static/js/async/63985.3849e776.js +1 -0
  500. package/dist/static/js/async/64130.f933bbca.js +1 -0
  501. package/dist/static/js/async/64735.f4c2e1b9.js +1 -0
  502. package/dist/static/js/async/6481.34d813de.js +1 -0
  503. package/dist/static/js/async/64893.fca47769.js +1 -0
  504. package/dist/static/js/async/64915.f71984d6.js +1 -0
  505. package/dist/static/js/async/65072.89c4df62.js +1 -0
  506. package/dist/static/js/async/65076.2d116fd4.js +1 -0
  507. package/dist/static/js/async/65099.8a2b48b2.js +1 -0
  508. package/dist/static/js/async/6543.ba995296.js +1 -0
  509. package/dist/static/js/async/6553.1e160336.js +1 -0
  510. package/dist/static/js/async/65575.211a1b32.js +1 -0
  511. package/dist/static/js/async/65736.90e1adad.js +1 -0
  512. package/dist/static/js/async/65782.c4ddb583.js +1 -0
  513. package/dist/static/js/async/65902.9979e1b7.js +1 -0
  514. package/dist/static/js/async/66028.b265ede8.js +1 -0
  515. package/dist/static/js/async/66108.e5c908aa.js +1 -0
  516. package/dist/static/js/async/66200.528bc2ec.js +1 -0
  517. package/dist/static/js/async/66319.37a93540.js +1 -0
  518. package/dist/static/js/async/66485.e0945ef4.js +1 -0
  519. package/dist/static/js/async/6653.2e36effe.js +1 -0
  520. package/dist/static/js/async/66563.99ec249c.js +1 -0
  521. package/dist/static/js/async/66856.e5eaa24e.js +1 -0
  522. package/dist/static/js/async/66894.373f0c0d.js +1 -0
  523. package/dist/static/js/async/66896.643f707b.js +1 -0
  524. package/dist/static/js/async/67156.e0353070.js +1 -0
  525. package/dist/static/js/async/67163.b6f02bfb.js +1 -0
  526. package/dist/static/js/async/67230.16a596d8.js +1 -0
  527. package/dist/static/js/async/67330.d3cc28aa.js +1 -0
  528. package/dist/static/js/async/67413.064506a9.js +1 -0
  529. package/dist/static/js/async/67457.a749307d.js +1 -0
  530. package/dist/static/js/async/67858.d36eb946.js +1 -0
  531. package/dist/static/js/async/68215.a1b0b853.js +1 -0
  532. package/dist/static/js/async/68288.14a19cca.js +1 -0
  533. package/dist/static/js/async/68373.94a3bd7d.js +1 -0
  534. package/dist/static/js/async/68429.40356109.js +1 -0
  535. package/dist/static/js/async/68463.09f68c52.js +1 -0
  536. package/dist/static/js/async/68556.f8b71b2a.js +1 -0
  537. package/dist/static/js/async/68563.f38db1ca.js +1 -0
  538. package/dist/static/js/async/68965.f809b40e.js +1 -0
  539. package/dist/static/js/async/69067.4ec19753.js +1 -0
  540. package/dist/static/js/async/69120.8944380f.js +1 -0
  541. package/dist/static/js/async/69202.09f9c0e7.js +1 -0
  542. package/dist/static/js/async/69626.39690c1d.js +1 -0
  543. package/dist/static/js/async/69840.2fd5f597.js +1 -0
  544. package/dist/static/js/async/69899.b897b476.js +1 -0
  545. package/dist/static/js/async/69963.6697c398.js +1 -0
  546. package/dist/static/js/async/69997.ae80f435.js +1 -0
  547. package/dist/static/js/async/70021.821e3f35.js +1 -0
  548. package/dist/static/js/async/7019.ab03e099.js +1 -0
  549. package/dist/static/js/async/7023.5e03d207.js +1 -0
  550. package/dist/static/js/async/70371.e43edb7e.js +1 -0
  551. package/dist/static/js/async/7047.0c275b02.js +1 -0
  552. package/dist/static/js/async/70512.f388bab6.js +1 -0
  553. package/dist/static/js/async/70725.ee784ff0.js +1 -0
  554. package/dist/static/js/async/70922.643b8d8f.js +1 -0
  555. package/dist/static/js/async/70947.ce61990b.js +1 -0
  556. package/dist/static/js/async/70995.86cec231.js +1 -0
  557. package/dist/static/js/async/7104.3d756b1f.js +1 -0
  558. package/dist/static/js/async/71252.b3255378.js +1 -0
  559. package/dist/static/js/async/71378.c8f9760e.js +1 -0
  560. package/dist/static/js/async/71449.7b2f2912.js +1 -0
  561. package/dist/static/js/async/71557.fa39c983.js +1 -0
  562. package/dist/static/js/async/71725.bae23813.js +1 -0
  563. package/dist/static/js/async/71926.28773c8a.js +1 -0
  564. package/dist/static/js/async/71944.5d271bb6.js +1 -0
  565. package/dist/static/js/async/72056.cda67224.js +1 -0
  566. package/dist/static/js/async/72164.2dcfb2b3.js +1 -0
  567. package/dist/static/js/async/72262.92b2c803.js +1 -0
  568. package/dist/static/js/async/7232.0ac78f71.js +1 -0
  569. package/dist/static/js/async/72518.ebed2f67.js +1 -0
  570. package/dist/static/js/async/72591.9e376e9f.js +1 -0
  571. package/dist/static/js/async/72710.81b13fd1.js +1 -0
  572. package/dist/static/js/async/72812.4e4cbf7a.js +1 -0
  573. package/dist/static/js/async/72998.776a8595.js +1 -0
  574. package/dist/static/js/async/73075.442bfd69.js +1 -0
  575. package/dist/static/js/async/73139.e36f74c4.js +1 -0
  576. package/dist/static/js/async/7314.e5daa1ff.js +1 -0
  577. package/dist/static/js/async/73189.7b029f2a.js +1 -0
  578. package/dist/static/js/async/73210.089871f4.js +1 -0
  579. package/dist/static/js/async/73252.299825d8.js +1 -0
  580. package/dist/static/js/async/73289.fb3f4ceb.js +1 -0
  581. package/dist/static/js/async/73455.677cd123.js +1 -0
  582. package/dist/static/js/async/73501.f0f3aad6.js +1 -0
  583. package/dist/static/js/async/73818.0f56e3f9.js +1 -0
  584. package/dist/static/js/async/7392.be2547f9.js +1 -0
  585. package/dist/static/js/async/73956.e33f0b16.js +1 -0
  586. package/dist/static/js/async/74362.c3911275.js +1 -0
  587. package/dist/static/js/async/74366.1ca60694.js +1 -0
  588. package/dist/static/js/async/74522.c8d31b1c.js +1 -0
  589. package/dist/static/js/async/7465.6517af39.js +1 -0
  590. package/dist/static/js/async/74705.b5b2ae54.js +1 -0
  591. package/dist/static/js/async/75451.d412de0d.js +1 -0
  592. package/dist/static/js/async/75485.f2510f75.js +1 -0
  593. package/dist/static/js/async/75543.8d9f85dc.js +1 -0
  594. package/dist/static/js/async/75987.b7947364.js +1 -0
  595. package/dist/static/js/async/76063.0ed6247b.js +1 -0
  596. package/dist/static/js/async/76092.1298a4e4.js +1 -0
  597. package/dist/static/js/async/76181.49bd723e.js +1 -0
  598. package/dist/static/js/async/76292.a85e7d79.js +1 -0
  599. package/dist/static/js/async/76385.d6dfc11d.js +1 -0
  600. package/dist/static/js/async/76386.40fb1c97.js +1 -0
  601. package/dist/static/js/async/76455.c0ae308e.js +1 -0
  602. package/dist/static/js/async/76495.b9104147.js +1 -0
  603. package/dist/static/js/async/76516.2f9bc032.js +1 -0
  604. package/dist/static/js/async/76692.12c85b5a.js +1 -0
  605. package/dist/static/js/async/76771.14fa4f38.js +1 -0
  606. package/dist/static/js/async/76791.02b0cb76.js +1 -0
  607. package/dist/static/js/async/76863.b147ba03.js +1 -0
  608. package/dist/static/js/async/76888.f2c31f89.js +1 -0
  609. package/dist/static/js/async/77527.67574fcf.js +1 -0
  610. package/dist/static/js/async/77697.2d7747dc.js +1 -0
  611. package/dist/static/js/async/77793.ceb926dd.js +1 -0
  612. package/dist/static/js/async/77885.b472829f.js +1 -0
  613. package/dist/static/js/async/77935.e7152978.js +1 -0
  614. package/dist/static/js/async/77952.68e2ae1a.js +1 -0
  615. package/dist/static/js/async/78111.2ae902e9.js +1 -0
  616. package/dist/static/js/async/78136.319071e7.js +1 -0
  617. package/dist/static/js/async/7823.90f7102c.js +1 -0
  618. package/dist/static/js/async/78277.c0c07887.js +1 -0
  619. package/dist/static/js/async/78326.f9aa6620.js +1 -0
  620. package/dist/static/js/async/78492.5b64bf63.js +1 -0
  621. package/dist/static/js/async/78583.d6ad964a.js +1 -0
  622. package/dist/static/js/async/78617.cb4833ad.js +1 -0
  623. package/dist/static/js/async/78821.d5857384.js +1 -0
  624. package/dist/static/js/async/78970.3153e390.js +1 -0
  625. package/dist/static/js/async/79228.d0366ca5.js +1 -0
  626. package/dist/static/js/async/7924.e66ebf3e.js +1 -0
  627. package/dist/static/js/async/79248.98319a2c.js +1 -0
  628. package/dist/static/js/async/79264.9010f031.js +1 -0
  629. package/dist/static/js/async/7944.f00ce5ff.js +1 -0
  630. package/dist/static/js/async/79540.72a69794.js +1 -0
  631. package/dist/static/js/async/79742.18210fe3.js +1 -0
  632. package/dist/static/js/async/79758.6aa2774a.js +1 -0
  633. package/dist/static/js/async/79981.574ab598.js +1 -0
  634. package/dist/static/js/async/80179.69ac6af3.js +1 -0
  635. package/dist/static/js/async/80299.aa895ab0.js +1 -0
  636. package/dist/static/js/async/80311.d6801e91.js +1 -0
  637. package/dist/static/js/async/80373.6b2ffdea.js +1 -0
  638. package/dist/static/js/async/80658.d353cce6.js +1 -0
  639. package/dist/static/js/async/80676.d4ecdbc6.js +1 -0
  640. package/dist/static/js/async/80745.e1f3998d.js +1 -0
  641. package/dist/static/js/async/80938.0b25cf99.js +1 -0
  642. package/dist/static/js/async/81191.4395de03.js +1 -0
  643. package/dist/static/js/async/81358.cf338637.js +1 -0
  644. package/dist/static/js/async/81393.06db3561.js +1 -0
  645. package/dist/static/js/async/81521.d07d88f8.js +1 -0
  646. package/dist/static/js/async/81535.af27763d.js +1 -0
  647. package/dist/static/js/async/8157.4ddd3d4e.js +1 -0
  648. package/dist/static/js/async/81614.b15d9eba.js +1 -0
  649. package/dist/static/js/async/81685.8c16246a.js +1 -0
  650. package/dist/static/js/async/81773.20d362ff.js +1 -0
  651. package/dist/static/js/async/8179.b8182c6b.js +1 -0
  652. package/dist/static/js/async/81799.76fbc1d3.js +1 -0
  653. package/dist/static/js/async/81954.1d4f250a.js +1 -0
  654. package/dist/static/js/async/82183.fcff87e1.js +1 -0
  655. package/dist/static/js/async/82295.238a7caa.js +1 -0
  656. package/dist/static/js/async/82320.7e09a92d.js +1 -0
  657. package/dist/static/js/async/8241.393e80a2.js +1 -0
  658. package/dist/static/js/async/82541.be8585fb.js +1 -0
  659. package/dist/static/js/async/82644.1dc0ebee.js +1 -0
  660. package/dist/static/js/async/8274.11df270f.js +1 -0
  661. package/dist/static/js/async/8275.3736f6f4.js +1 -0
  662. package/dist/static/js/async/82759.4e83e689.js +1 -0
  663. package/dist/static/js/async/82896.b1fe1e42.js +1 -0
  664. package/dist/static/js/async/83006.048965a3.js +1 -0
  665. package/dist/static/js/async/83099.fbe0c400.js +1 -0
  666. package/dist/static/js/async/83160.aa221d89.js +1 -0
  667. package/dist/static/js/async/83287.d146052a.js +1 -0
  668. package/dist/static/js/async/83343.1c4d680c.js +1 -0
  669. package/dist/static/js/async/83545.9a55e5fe.js +1 -0
  670. package/dist/static/js/async/83804.02c41285.js +1 -0
  671. package/dist/static/js/async/83907.1b9438fc.js +1 -0
  672. package/dist/static/js/async/83940.2f3c6c55.js +1 -0
  673. package/dist/static/js/async/83970.d7f7100e.js +1 -0
  674. package/dist/static/js/async/8407.a1db0c89.js +1 -0
  675. package/dist/static/js/async/84475.2bbb5a29.js +1 -0
  676. package/dist/static/js/async/84497.569ff74d.js +1 -0
  677. package/dist/static/js/async/845.d8ddbfce.js +1 -0
  678. package/dist/static/js/async/84546.330bd1f7.js +1 -0
  679. package/dist/static/js/async/84791.2d5defab.js +1 -0
  680. package/dist/static/js/async/84854.8541487b.js +1 -0
  681. package/dist/static/js/async/84880.74cb6518.js +1 -0
  682. package/dist/static/js/async/8501.ac5f9539.js +1 -0
  683. package/dist/static/js/async/85093.c2351775.js +1 -0
  684. package/dist/static/js/async/85426.825ab66f.js +1 -0
  685. package/dist/static/js/async/85681.fd2c5d20.js +1 -0
  686. package/dist/static/js/async/85694.68edf402.js +1 -0
  687. package/dist/static/js/async/85787.bee88e41.js +1 -0
  688. package/dist/static/js/async/85835.f985acad.js +1 -0
  689. package/dist/static/js/async/85926.3281823c.js +1 -0
  690. package/dist/static/js/async/86055.1fbb566c.js +1 -0
  691. package/dist/static/js/async/86155.9fe01da9.js +1 -0
  692. package/dist/static/js/async/86202.609c5977.js +1 -0
  693. package/dist/static/js/async/86394.82f2a8c7.js +1 -0
  694. package/dist/static/js/async/86548.f944b2fb.js +1 -0
  695. package/dist/static/js/async/86630.92010b6f.js +1 -0
  696. package/dist/static/js/async/86791.bb778a33.js +1 -0
  697. package/dist/static/js/async/86831.e81dc1d5.js +1 -0
  698. package/dist/static/js/async/87123.6af0d2b2.js +1 -0
  699. package/dist/static/js/async/87129.52199417.js +1 -0
  700. package/dist/static/js/async/8746.82852dec.js +1 -0
  701. package/dist/static/js/async/87586.f29e1233.js +1 -0
  702. package/dist/static/js/async/87623.f5739704.js +1 -0
  703. package/dist/static/js/async/87636.e69bcf71.js +1 -0
  704. package/dist/static/js/async/87928.9183885f.js +1 -0
  705. package/dist/static/js/async/87936.1eb1e712.js +1 -0
  706. package/dist/static/js/async/880.e49b0c61.js +1 -0
  707. package/dist/static/js/async/88036.6b37035a.js +1 -0
  708. package/dist/static/js/async/88055.467e76b0.js +1 -0
  709. package/dist/static/js/async/88099.2f156156.js +1 -0
  710. package/dist/static/js/async/8813.f1980f9a.js +1 -0
  711. package/dist/static/js/async/88328.61a965af.js +1 -0
  712. package/dist/static/js/async/88476.a62282b4.js +1 -0
  713. package/dist/static/js/async/88524.de41919f.js +1 -0
  714. package/dist/static/js/async/88830.55d2b030.js +1 -0
  715. package/dist/static/js/async/88987.387e7ea1.js +1 -0
  716. package/dist/static/js/async/89216.24ab2f32.js +1 -0
  717. package/dist/static/js/async/89327.d39bc713.js +1 -0
  718. package/dist/static/js/async/89485.4e190a48.js +1 -0
  719. package/dist/static/js/async/89486.24b8c341.js +1 -0
  720. package/dist/static/js/async/89598.34fa1f28.js +1 -0
  721. package/dist/static/js/async/89601.8f132b5b.js +1 -0
  722. package/dist/static/js/async/89651.e63defd8.js +1 -0
  723. package/dist/static/js/async/89667.16a55f7f.js +1 -0
  724. package/dist/static/js/async/89819.21c7f761.js +1 -0
  725. package/dist/static/js/async/89891.cf6fe8ab.js +1 -0
  726. package/dist/static/js/async/90191.9786d1f1.js +1 -0
  727. package/dist/static/js/async/90317.e8738147.js +1 -0
  728. package/dist/static/js/async/90404.b200b6ba.js +1 -0
  729. package/dist/static/js/async/90785.81ba2d5c.js +1 -0
  730. package/dist/static/js/async/90937.b6e231ad.js +1 -0
  731. package/dist/static/js/async/90957.36cd82ba.js +1 -0
  732. package/dist/static/js/async/91106.ac58a956.js +1 -0
  733. package/dist/static/js/async/91259.0056852c.js +1 -0
  734. package/dist/static/js/async/9128.890d918c.js +1 -0
  735. package/dist/static/js/async/91280.2556f87e.js +1 -0
  736. package/dist/static/js/async/91355.536ce223.js +1 -0
  737. package/dist/static/js/async/91717.9289d8de.js +1 -0
  738. package/dist/static/js/async/91934.02ec6ee8.js +1 -0
  739. package/dist/static/js/async/92110.d181559d.js +1 -0
  740. package/dist/static/js/async/92324.bd944437.js +1 -0
  741. package/dist/static/js/async/92411.57c2fe58.js +1 -0
  742. package/dist/static/js/async/92603.3ffb4bda.js +1 -0
  743. package/dist/static/js/async/92669.e7fdcabc.js +1 -0
  744. package/dist/static/js/async/92759.f8f1d6e2.js +1 -0
  745. package/dist/static/js/async/92783.aab807c0.js +1 -0
  746. package/dist/static/js/async/92802.db4b611e.js +1 -0
  747. package/dist/static/js/async/92803.df13bc82.js +1 -0
  748. package/dist/static/js/async/92895.b4feceb6.js +1 -0
  749. package/dist/static/js/async/92907.da535db6.js +1 -0
  750. package/dist/static/js/async/92968.d712c261.js +1 -0
  751. package/dist/static/js/async/92975.abe45068.js +1 -0
  752. package/dist/static/js/async/9315.0703d736.js +1 -0
  753. package/dist/static/js/async/93157.8bd49458.js +1 -0
  754. package/dist/static/js/async/93160.da7122bf.js +1 -0
  755. package/dist/static/js/async/93312.8121a79f.js +1 -0
  756. package/dist/static/js/async/93357.728a2f6d.js +1 -0
  757. package/dist/static/js/async/93640.e60bb3dd.js +1 -0
  758. package/dist/static/js/async/93745.78f947ca.js +1 -0
  759. package/dist/static/js/async/93809.8ca56a5f.js +1 -0
  760. package/dist/static/js/async/93833.6ae3b249.js +1 -0
  761. package/dist/static/js/async/93929.62cc9274.js +1 -0
  762. package/dist/static/js/async/93942.71f9d38c.js +1 -0
  763. package/dist/static/js/async/93969.569b4d31.js +1 -0
  764. package/dist/static/js/async/94107.355991fe.js +1 -0
  765. package/dist/static/js/async/94282.85e17ae7.js +1 -0
  766. package/dist/static/js/async/9432.3b964a5e.js +1 -0
  767. package/dist/static/js/async/94370.a31b22a8.js +1 -0
  768. package/dist/static/js/async/94489.6cc2dbd3.js +1 -0
  769. package/dist/static/js/async/94870.e1e1cf66.js +1 -0
  770. package/dist/static/js/async/95039.77bf5775.js +1 -0
  771. package/dist/static/js/async/95281.e1ba804b.js +1 -0
  772. package/dist/static/js/async/9562.6cdac491.js +1 -0
  773. package/dist/static/js/async/95929.c1e120ca.js +1 -0
  774. package/dist/static/js/async/96014.36dd32ff.js +1 -0
  775. package/dist/static/js/async/96230.fd156baf.js +1 -0
  776. package/dist/static/js/async/96310.4acd23f0.js +1 -0
  777. package/dist/static/js/async/96509.200a1666.js +1 -0
  778. package/dist/static/js/async/9671.df6ad2ea.js +1 -0
  779. package/dist/static/js/async/96749.0f447105.js +1 -0
  780. package/dist/static/js/async/96851.0b721064.js +1 -0
  781. package/dist/static/js/async/9686.2b3f83b7.js +1 -0
  782. package/dist/static/js/async/96924.3e589058.js +1 -0
  783. package/dist/static/js/async/96931.1c67476b.js +1 -0
  784. package/dist/static/js/async/97226.bca50687.js +1 -0
  785. package/dist/static/js/async/97241.ae67a920.js +1 -0
  786. package/dist/static/js/async/97350.9fe1635f.js +1 -0
  787. package/dist/static/js/async/97364.de9aeae4.js +1 -0
  788. package/dist/static/js/async/97381.81fa4d94.js +1 -0
  789. package/dist/static/js/async/97653.4e3d1de0.js +1 -0
  790. package/dist/static/js/async/97984.df51aff2.js +1 -0
  791. package/dist/static/js/async/97995.d690ea3c.js +1 -0
  792. package/dist/static/js/async/98147.cdcf0c77.js +1 -0
  793. package/dist/static/js/async/98222.dac1e0ad.js +1 -0
  794. package/dist/static/js/async/98223.4f018a09.js +1 -0
  795. package/dist/static/js/async/98556.6a673dc6.js +1 -0
  796. package/dist/static/js/async/98667.c01d7e90.js +1 -0
  797. package/dist/static/js/async/98730.b5c73782.js +1 -0
  798. package/dist/static/js/async/98844.bbba7662.js +1 -0
  799. package/dist/static/js/async/98907.8f4e0178.js +1 -0
  800. package/dist/static/js/async/99039.9363f394.js +1 -0
  801. package/dist/static/js/async/99244.9635f3ef.js +1 -0
  802. package/dist/static/js/async/99282.38e22983.js +1 -0
  803. package/dist/static/js/async/99414.dcd88ed1.js +1 -0
  804. package/dist/static/js/async/99471.9fc0b80d.js +1 -0
  805. package/dist/static/js/async/99518.26dc6baf.js +1 -0
  806. package/dist/static/js/async/99537.4e7338e4.js +1 -0
  807. package/dist/static/js/async/99571.a17c660d.js +1 -0
  808. package/dist/static/js/async/9985.7963feed.js +1 -0
  809. package/dist/static/js/async/highlight-worker.e0105321.js +1 -0
  810. package/dist/static/js/async/highlight.928a4ac5.js +1 -0
  811. package/dist/static/js/lib-axios.5b2565a9.js +1 -0
  812. package/dist/static/js/lib-react.067a7e0e.js +2 -0
  813. package/dist/static/js/lib-react.067a7e0e.js.LICENSE.txt +35 -0
  814. package/dist/static/js/lib-router.73947a57.js +1 -0
  815. package/dist/static/js/main.9c6e75df.js +1 -0
  816. package/package.json +21 -44
  817. package/dist/static/0157e7555c.chunk.js +0 -1
  818. package/dist/static/027136f116.chunk.js +0 -1
  819. package/dist/static/02bc073524.chunk.js +0 -1
  820. package/dist/static/02cb0e00de.chunk.js +0 -1
  821. package/dist/static/0325028dbb.chunk.js +0 -1
  822. package/dist/static/0337a07612.chunk.js +0 -1
  823. package/dist/static/03807cd51a.chunk.js +0 -1
  824. package/dist/static/03aa0cc691.chunk.js +0 -1
  825. package/dist/static/03cf155dfc.chunk.js +0 -1
  826. package/dist/static/0469105d39.chunk.js +0 -1
  827. package/dist/static/0474e4a989.chunk.js +0 -1
  828. package/dist/static/04aa44571d.chunk.js +0 -1
  829. package/dist/static/04d7fcd03b.chunk.js +0 -1
  830. package/dist/static/05a155cc3b.chunk.js +0 -1
  831. package/dist/static/05e28c186e.chunk.js +0 -1
  832. package/dist/static/05fdf93216.chunk.js +0 -1
  833. package/dist/static/0709b03993.chunk.js +0 -1
  834. package/dist/static/07a1e5864f.chunk.js +0 -1
  835. package/dist/static/0897245bf2.chunk.js +0 -1
  836. package/dist/static/09f5c2b268.chunk.js +0 -1
  837. package/dist/static/0a2a5a6302.chunk.js +0 -1
  838. package/dist/static/0b8936c1dc.chunk.js +0 -1
  839. package/dist/static/0bceb06d6a.chunk.js +0 -1
  840. package/dist/static/0cdc2baeaf.chunk.js +0 -1
  841. package/dist/static/0e06e23179.chunk.js +0 -1
  842. package/dist/static/0e1a51dc12.chunk.js +0 -1
  843. package/dist/static/0e22ed55ca.chunk.js +0 -1
  844. package/dist/static/0e91ae46e7.chunk.js +0 -1
  845. package/dist/static/0eb1fd8d53.chunk.js +0 -1
  846. package/dist/static/0f76af9d2b.chunk.js +0 -1
  847. package/dist/static/0fa8b38b70.chunk.js +0 -1
  848. package/dist/static/101f76345e.chunk.js +0 -1
  849. package/dist/static/10c0ef6e15.chunk.js +0 -1
  850. package/dist/static/10ca40e538.chunk.js +0 -1
  851. package/dist/static/10d4bf93a4.chunk.js +0 -1
  852. package/dist/static/12a1370eca.chunk.js +0 -1
  853. package/dist/static/12c4d68aa7.chunk.js +0 -1
  854. package/dist/static/1323e08508.chunk.js +0 -1
  855. package/dist/static/132c4e7bba.chunk.js +0 -1
  856. package/dist/static/13443b317f.chunk.js +0 -1
  857. package/dist/static/135ca4e003.chunk.js +0 -1
  858. package/dist/static/137b3e12cc.chunk.js +0 -1
  859. package/dist/static/149d9e8453.chunk.js +0 -1
  860. package/dist/static/14ed3cfa21.chunk.js +0 -1
  861. package/dist/static/14ff418223.chunk.js +0 -1
  862. package/dist/static/1539172d4b.chunk.js +0 -1
  863. package/dist/static/155a70f382.chunk.js +0 -1
  864. package/dist/static/1574609386.chunk.js +0 -1
  865. package/dist/static/1601062258.chunk.js +0 -1
  866. package/dist/static/16ad6ee969.chunk.js +0 -1
  867. package/dist/static/174732e43d.chunk.js +0 -1
  868. package/dist/static/17e228d514.chunk.js +0 -1
  869. package/dist/static/17fc097b55.chunk.js +0 -1
  870. package/dist/static/180fde593e.chunk.js +0 -1
  871. package/dist/static/1858e0a259.chunk.js +0 -1
  872. package/dist/static/18be4be38f.chunk.js +0 -1
  873. package/dist/static/18f14dc2a8.chunk.js +0 -1
  874. package/dist/static/1954242a5d.chunk.js +0 -1
  875. package/dist/static/19bcc457d0.chunk.js +0 -1
  876. package/dist/static/1a399185cf.chunk.js +0 -1
  877. package/dist/static/1b89602869.chunk.js +0 -1
  878. package/dist/static/1b8f07c5f8.chunk.js +0 -1
  879. package/dist/static/1bd139f02a.chunk.js +0 -1
  880. package/dist/static/1c9000473a.chunk.js +0 -1
  881. package/dist/static/1da433cd5c.chunk.js +0 -1
  882. package/dist/static/1e10026c16.chunk.js +0 -1
  883. package/dist/static/1e1daf8779.chunk.js +0 -1
  884. package/dist/static/1e47de8d41.chunk.js +0 -1
  885. package/dist/static/1e7bec5506.chunk.js +0 -1
  886. package/dist/static/1e86ccb9c0.chunk.js +0 -1
  887. package/dist/static/1ec35c51fa.chunk.js +0 -1
  888. package/dist/static/1ee99d4af7.chunk.js +0 -1
  889. package/dist/static/1ef55790e9.chunk.js +0 -1
  890. package/dist/static/1f0d578cdf.chunk.js +0 -1
  891. package/dist/static/1f72addeb7.chunk.js +0 -1
  892. package/dist/static/20faec8e90.chunk.js +0 -1
  893. package/dist/static/2170b8075a.chunk.js +0 -1
  894. package/dist/static/223add6888.chunk.js +0 -1
  895. package/dist/static/22439a1453.chunk.js +0 -1
  896. package/dist/static/22bae913db.chunk.js +0 -1
  897. package/dist/static/231f0dece3.chunk.js +0 -1
  898. package/dist/static/2340b4cbb8.chunk.js +0 -1
  899. package/dist/static/236df2f612.chunk.js +0 -1
  900. package/dist/static/238534100a.chunk.js +0 -1
  901. package/dist/static/26a8e9d58f.chunk.js +0 -1
  902. package/dist/static/26be4b88cc.chunk.js +0 -1
  903. package/dist/static/26d4ae1a5e.chunk.js +0 -1
  904. package/dist/static/27745883ac.chunk.js +0 -1
  905. package/dist/static/277d4755e2.chunk.js +0 -1
  906. package/dist/static/282a21bb68.chunk.js +0 -1
  907. package/dist/static/28cddf2b36.chunk.js +0 -1
  908. package/dist/static/293474a12a.chunk.js +0 -1
  909. package/dist/static/294e02584d.chunk.js +0 -1
  910. package/dist/static/29f4a51770.chunk.js +0 -1
  911. package/dist/static/2a8ddf664e.chunk.js +0 -1
  912. package/dist/static/2aaa87738d.chunk.js +0 -1
  913. package/dist/static/2adee732b9.chunk.js +0 -1
  914. package/dist/static/2b4fc54201.chunk.js +0 -1
  915. package/dist/static/2b8f089be9.chunk.js +0 -1
  916. package/dist/static/2bdf7aba19.chunk.js +0 -1
  917. package/dist/static/2c7282d83d.chunk.js +0 -1
  918. package/dist/static/2d1d155f04.chunk.js +0 -1
  919. package/dist/static/2d35a90d87.chunk.js +0 -1
  920. package/dist/static/2d813e9d87.chunk.js +0 -1
  921. package/dist/static/2e17e5a378.chunk.js +0 -1
  922. package/dist/static/2e5173304d.chunk.js +0 -1
  923. package/dist/static/2e853a239e.chunk.js +0 -1
  924. package/dist/static/2eca00d7f1.chunk.js +0 -1
  925. package/dist/static/2f57726900.chunk.js +0 -1
  926. package/dist/static/3029bc1760.chunk.js +0 -1
  927. package/dist/static/31382b60fb.chunk.js +0 -1
  928. package/dist/static/3189332cb8.chunk.js +0 -1
  929. package/dist/static/318c7072ef.chunk.js +0 -1
  930. package/dist/static/31f5ff1d08.chunk.js +0 -1
  931. package/dist/static/320c4af339.chunk.js +0 -1
  932. package/dist/static/322a5965f8.chunk.js +0 -1
  933. package/dist/static/32a1e96086.chunk.js +0 -1
  934. package/dist/static/32b8b2b0c3.chunk.js +0 -1
  935. package/dist/static/32bff43632.chunk.js +0 -1
  936. package/dist/static/32fb47d28b.chunk.js +0 -1
  937. package/dist/static/334657823a.chunk.js +0 -1
  938. package/dist/static/3416a0f3df.chunk.js +0 -1
  939. package/dist/static/34255ae226.chunk.js +0 -1
  940. package/dist/static/34e9d368a3.chunk.js +0 -1
  941. package/dist/static/35b364c1c1.chunk.js +0 -1
  942. package/dist/static/3649a3826d.chunk.js +0 -1
  943. package/dist/static/3651c614f3.chunk.js +0 -1
  944. package/dist/static/36688e56ed.chunk.js +0 -1
  945. package/dist/static/36c5d966c8.chunk.js +0 -1
  946. package/dist/static/36d0237406.chunk.js +0 -1
  947. package/dist/static/3761407d26.chunk.js +0 -1
  948. package/dist/static/377b83ac1b.chunk.js +0 -1
  949. package/dist/static/37a1e2e9df.chunk.js +0 -1
  950. package/dist/static/389467c353.chunk.js +0 -1
  951. package/dist/static/3901d2bc79.chunk.js +0 -1
  952. package/dist/static/396402e91c.chunk.js +0 -1
  953. package/dist/static/3b11b9283f.chunk.js +0 -1
  954. package/dist/static/3df25b7561.chunk.js +0 -1
  955. package/dist/static/3df590e27e.chunk.js +0 -1
  956. package/dist/static/3e442aae77.chunk.js +0 -1
  957. package/dist/static/3e7320c9ec.chunk.js +0 -1
  958. package/dist/static/3e8832b213.chunk.js +0 -1
  959. package/dist/static/3f8d22e658.chunk.js +0 -1
  960. package/dist/static/40a1da7301.chunk.js +0 -1
  961. package/dist/static/41712e3d50.chunk.js +0 -1
  962. package/dist/static/42712d5097.chunk.js +0 -1
  963. package/dist/static/42de011564.chunk.js +0 -1
  964. package/dist/static/4364b8afc0.chunk.js +0 -1
  965. package/dist/static/436e06605d.chunk.js +0 -1
  966. package/dist/static/44fad05dbf.chunk.js +0 -1
  967. package/dist/static/4570965a45.chunk.js +0 -1
  968. package/dist/static/45954596ee.chunk.js +0 -1
  969. package/dist/static/4624c1d1dd.chunk.js +0 -1
  970. package/dist/static/475a938010.chunk.js +0 -1
  971. package/dist/static/483d595b3f.chunk.js +0 -1
  972. package/dist/static/485a877720.chunk.js +0 -1
  973. package/dist/static/487a450011.chunk.js +0 -1
  974. package/dist/static/4b195f8f32.chunk.js +0 -1
  975. package/dist/static/4b5c9ee677.chunk.js +0 -1
  976. package/dist/static/4b7b80b711.chunk.js +0 -1
  977. package/dist/static/4c26a55228.chunk.js +0 -1
  978. package/dist/static/4c547f7ff3.chunk.js +0 -1
  979. package/dist/static/4cc7cb20b7.chunk.js +0 -1
  980. package/dist/static/4d3ff7a41d.chunk.js +0 -1
  981. package/dist/static/4d606a61df.chunk.js +0 -1
  982. package/dist/static/4dd6e16c38.chunk.js +0 -1
  983. package/dist/static/4e08959012.chunk.js +0 -1
  984. package/dist/static/4e1d607599.chunk.js +0 -1
  985. package/dist/static/50445ddfdd.chunk.js +0 -1
  986. package/dist/static/5068e454d7.chunk.js +0 -1
  987. package/dist/static/5085af6a99.chunk.js +0 -1
  988. package/dist/static/50b43f2d2f.chunk.js +0 -1
  989. package/dist/static/510161d9ed.chunk.js +0 -1
  990. package/dist/static/513839726c.chunk.js +0 -1
  991. package/dist/static/51fab8aacb.chunk.js +0 -1
  992. package/dist/static/526b96ed27.chunk.js +0 -1
  993. package/dist/static/530c714df1.chunk.js +0 -1
  994. package/dist/static/532ee3c97e.chunk.js +0 -1
  995. package/dist/static/551ad6967a.chunk.js +0 -1
  996. package/dist/static/5575a10d29.chunk.js +0 -1
  997. package/dist/static/559ec754bc.chunk.js +0 -1
  998. package/dist/static/56325c71f7.chunk.js +0 -1
  999. package/dist/static/566e305244.chunk.css +0 -1
  1000. package/dist/static/5703bdcb5c.chunk.js +0 -1
  1001. package/dist/static/572a19b081.chunk.js +0 -1
  1002. package/dist/static/58ef65c5bc.chunk.js +0 -1
  1003. package/dist/static/596e5829dc.chunk.js +0 -1
  1004. package/dist/static/596e6c41d2.chunk.js +0 -1
  1005. package/dist/static/5a94493736.chunk.js +0 -1
  1006. package/dist/static/5ac0508a93.chunk.js +0 -1
  1007. package/dist/static/5b05d0169c.chunk.js +0 -1
  1008. package/dist/static/5b5c48f376.chunk.js +0 -1
  1009. package/dist/static/5bb6a56719.chunk.js +0 -1
  1010. package/dist/static/5be25218f3.chunk.js +0 -1
  1011. package/dist/static/5c03b3e352.chunk.js +0 -1
  1012. package/dist/static/5c4463cc16.chunk.js +0 -1
  1013. package/dist/static/5c5a15fe5d.chunk.js +0 -1
  1014. package/dist/static/5dcab007f9.chunk.js +0 -1
  1015. package/dist/static/5dd3ff162a.chunk.js +0 -1
  1016. package/dist/static/5e190caccf.chunk.js +0 -1
  1017. package/dist/static/5fa2a6945a.chunk.js +0 -1
  1018. package/dist/static/5fda2118d1.chunk.js +0 -1
  1019. package/dist/static/5ffe58e040.chunk.js +0 -1
  1020. package/dist/static/6042cdc256.chunk.js +0 -1
  1021. package/dist/static/60f022e401.chunk.js +0 -1
  1022. package/dist/static/60f8c6c56a.chunk.js +0 -1
  1023. package/dist/static/60fee24aed.chunk.js +0 -1
  1024. package/dist/static/6100f78376.chunk.js +0 -1
  1025. package/dist/static/61ad4ccc01.chunk.js +0 -1
  1026. package/dist/static/61cee125eb.chunk.js +0 -1
  1027. package/dist/static/61d7a48c22.chunk.js +0 -1
  1028. package/dist/static/61d80e1836.chunk.js +0 -1
  1029. package/dist/static/62ddfa23ba.chunk.js +0 -1
  1030. package/dist/static/63156c839d.chunk.js +0 -1
  1031. package/dist/static/6425f57c88.chunk.js +0 -1
  1032. package/dist/static/64282fd724.chunk.js +0 -1
  1033. package/dist/static/648eab5b58.chunk.js +0 -1
  1034. package/dist/static/64b584d700.chunk.js +0 -1
  1035. package/dist/static/6527cce678.chunk.js +0 -1
  1036. package/dist/static/65e40020e7.chunk.js +0 -1
  1037. package/dist/static/65fc7104e4.chunk.js +0 -1
  1038. package/dist/static/660fee52c3.chunk.js +0 -1
  1039. package/dist/static/6621c96c9a.chunk.js +0 -1
  1040. package/dist/static/668dddcf7b.chunk.js +0 -1
  1041. package/dist/static/66d08c5e3c.chunk.js +0 -1
  1042. package/dist/static/67531362ff.chunk.js +0 -1
  1043. package/dist/static/6778363738.chunk.js +0 -1
  1044. package/dist/static/683ec27b96.chunk.js +0 -1
  1045. package/dist/static/68e14076a5.chunk.js +0 -1
  1046. package/dist/static/68e5b2e23e.chunk.css +0 -1
  1047. package/dist/static/6b569d3056.chunk.js +0 -1
  1048. package/dist/static/6baf596270.chunk.js +0 -1
  1049. package/dist/static/6bb63f7a66.chunk.js +0 -1
  1050. package/dist/static/6bbbe2208b.chunk.js +0 -1
  1051. package/dist/static/6c058f0b4e.chunk.js +0 -1
  1052. package/dist/static/6c526938b4.chunk.js +0 -1
  1053. package/dist/static/6d76a6fa97.chunk.js +0 -1
  1054. package/dist/static/6e60283af1.chunk.js +0 -1
  1055. package/dist/static/6ece317c3f.chunk.js +0 -1
  1056. package/dist/static/6ee4cda3e2.chunk.js +0 -1
  1057. package/dist/static/6efd233c00.chunk.js +0 -1
  1058. package/dist/static/6f5e08da25.chunk.js +0 -1
  1059. package/dist/static/6f75cd527d.chunk.js +0 -1
  1060. package/dist/static/6fa04ef40a.chunk.js +0 -1
  1061. package/dist/static/6fccd8500c.chunk.js +0 -1
  1062. package/dist/static/6fe0ac83b7.chunk.js +0 -1
  1063. package/dist/static/7039a580a0.chunk.js +0 -1
  1064. package/dist/static/70e27852ac.chunk.js +0 -1
  1065. package/dist/static/71aa4e6235.chunk.js +0 -1
  1066. package/dist/static/7261511e6d.chunk.js +0 -1
  1067. package/dist/static/73416d113d.chunk.js +0 -1
  1068. package/dist/static/736f6a237e.chunk.js +0 -1
  1069. package/dist/static/73ff1c5d21.chunk.js +0 -1
  1070. package/dist/static/748f8c490e.chunk.js +0 -1
  1071. package/dist/static/764d6e0e41.chunk.js +0 -1
  1072. package/dist/static/7688fe1f96.chunk.js +0 -1
  1073. package/dist/static/770c0b031a.chunk.js +0 -1
  1074. package/dist/static/77126fcee1.chunk.js +0 -1
  1075. package/dist/static/771804620d.chunk.js +0 -1
  1076. package/dist/static/772a50ac7b.chunk.js +0 -1
  1077. package/dist/static/77f8db559a.chunk.js +0 -1
  1078. package/dist/static/78e1a651c3.chunk.js +0 -1
  1079. package/dist/static/79894ae437.chunk.js +0 -1
  1080. package/dist/static/79c2b2864b.chunk.js +0 -1
  1081. package/dist/static/7a411c7a98.chunk.js +0 -1
  1082. package/dist/static/7a84533fd1.chunk.js +0 -1
  1083. package/dist/static/7ae8b4c9d8.chunk.js +0 -1
  1084. package/dist/static/7b0996191c.chunk.js +0 -1
  1085. package/dist/static/7b32ef3399.chunk.js +0 -1
  1086. package/dist/static/7c495be4d2.chunk.js +0 -1
  1087. package/dist/static/7c75482236.chunk.js +0 -1
  1088. package/dist/static/7caf1fd1df.chunk.js +0 -1
  1089. package/dist/static/7d44fa59de.chunk.js +0 -1
  1090. package/dist/static/7e13ea94b5.chunk.js +0 -1
  1091. package/dist/static/7e68ce4ec8.chunk.js +0 -1
  1092. package/dist/static/7f27ce03c2.chunk.js +0 -1
  1093. package/dist/static/7f7ca4ff25.chunk.js +0 -1
  1094. package/dist/static/7fadfc1496.chunk.js +0 -1
  1095. package/dist/static/7fda656956.chunk.js +0 -1
  1096. package/dist/static/809314a917.chunk.js +0 -1
  1097. package/dist/static/80e30164d2.chunk.js +0 -1
  1098. package/dist/static/81f52ba4c8.chunk.js +0 -1
  1099. package/dist/static/82fb555921.chunk.js +0 -1
  1100. package/dist/static/82ffc95595.chunk.js +0 -1
  1101. package/dist/static/83dbb00e54.chunk.js +0 -1
  1102. package/dist/static/845c85d9a2.chunk.js +0 -1
  1103. package/dist/static/853676ea6f.chunk.js +0 -1
  1104. package/dist/static/85f4bc0ecc.chunk.js +0 -1
  1105. package/dist/static/8683fdab6e.chunk.js +0 -1
  1106. package/dist/static/8821cb8d04.chunk.js +0 -1
  1107. package/dist/static/8964724d22.chunk.js +0 -1
  1108. package/dist/static/89be591d92.chunk.js +0 -1
  1109. package/dist/static/89ebe699d9.chunk.js +0 -1
  1110. package/dist/static/8b4cec81d9.chunk.js +0 -1
  1111. package/dist/static/8b6e51a20e.chunk.js +0 -1
  1112. package/dist/static/8c8ee195db.chunk.js +0 -1
  1113. package/dist/static/8dd3c34e2c.chunk.js +0 -1
  1114. package/dist/static/8dd90f456a.chunk.js +0 -1
  1115. package/dist/static/8f8a72df6c.chunk.js +0 -1
  1116. package/dist/static/9058a71af5.chunk.js +0 -1
  1117. package/dist/static/908e024270.chunk.js +0 -1
  1118. package/dist/static/90edae8206.chunk.js +0 -1
  1119. package/dist/static/911c1f0a2f.chunk.js +0 -1
  1120. package/dist/static/912eaf1720.chunk.js +0 -1
  1121. package/dist/static/91c783496c.chunk.js +0 -1
  1122. package/dist/static/9279fa5399.chunk.js +0 -1
  1123. package/dist/static/92ab066371.chunk.js +0 -1
  1124. package/dist/static/92bace70d4.chunk.js +0 -1
  1125. package/dist/static/92ce7157e0.chunk.js +0 -1
  1126. package/dist/static/93cc57ea6d.chunk.js +0 -1
  1127. package/dist/static/93f78225fb.chunk.js +0 -1
  1128. package/dist/static/9406498339.chunk.js +0 -1
  1129. package/dist/static/9442158b0f.chunk.js +0 -1
  1130. package/dist/static/949bbe441a.chunk.js +0 -1
  1131. package/dist/static/94d02fd440.chunk.js +0 -1
  1132. package/dist/static/9549584392.chunk.js +0 -1
  1133. package/dist/static/96031b1477.chunk.js +0 -1
  1134. package/dist/static/965ccf94db.chunk.js +0 -1
  1135. package/dist/static/96b15bb9d8.chunk.js +0 -1
  1136. package/dist/static/96e190a782.chunk.js +0 -1
  1137. package/dist/static/97201022e5.chunk.js +0 -1
  1138. package/dist/static/9746d23b7c.chunk.js +0 -1
  1139. package/dist/static/98388705c9.chunk.js +0 -1
  1140. package/dist/static/98c615cff0.chunk.js +0 -1
  1141. package/dist/static/99afe30a8b.chunk.js +0 -1
  1142. package/dist/static/9a22fa8abc.chunk.js +0 -1
  1143. package/dist/static/9b2b1c8462.chunk.js +0 -1
  1144. package/dist/static/9bdccac383.chunk.js +0 -1
  1145. package/dist/static/9d07471216.chunk.js +0 -1
  1146. package/dist/static/9e311d6547.chunk.js +0 -1
  1147. package/dist/static/9fdcee45e2.chunk.js +0 -1
  1148. package/dist/static/a02fdf74ec.chunk.js +0 -1
  1149. package/dist/static/a0adf8879d.chunk.js +0 -1
  1150. package/dist/static/a1d69c7a71.chunk.js +0 -1
  1151. package/dist/static/a233fe880c.chunk.js +0 -1
  1152. package/dist/static/a3368acb3f.chunk.js +0 -1
  1153. package/dist/static/a401527c64.chunk.js +0 -1
  1154. package/dist/static/a4e1ca893b.chunk.js +0 -1
  1155. package/dist/static/a4ff3cf731.chunk.js +0 -1
  1156. package/dist/static/a55a94e72c.chunk.js +0 -1
  1157. package/dist/static/a55e72fe5f.chunk.js +0 -1
  1158. package/dist/static/a5dbcc968e.chunk.js +0 -1
  1159. package/dist/static/a682506ebd.chunk.js +0 -1
  1160. package/dist/static/a788686962.chunk.js +0 -1
  1161. package/dist/static/a7b4a300f5.chunk.js +0 -1
  1162. package/dist/static/a8275711ae.chunk.js +0 -1
  1163. package/dist/static/a87a460cd4.chunk.js +0 -1
  1164. package/dist/static/a939b1a7cf.chunk.js +0 -1
  1165. package/dist/static/a972634495.chunk.js +0 -1
  1166. package/dist/static/a9ae439b0c.chunk.js +0 -1
  1167. package/dist/static/a9b6f196c1.chunk.js +0 -1
  1168. package/dist/static/aac72d5fcd.chunk.js +0 -1
  1169. package/dist/static/aae0d038b3.chunk.js +0 -1
  1170. package/dist/static/ac753fe047.chunk.js +0 -1
  1171. package/dist/static/ac7d7499fa.chunk.js +0 -1
  1172. package/dist/static/acaa8a8837.chunk.js +0 -1
  1173. package/dist/static/acba35e24f.chunk.js +0 -1
  1174. package/dist/static/accc38a8ce.chunk.js +0 -1
  1175. package/dist/static/acdd859dfc.chunk.js +0 -1
  1176. package/dist/static/ad6aab8722.chunk.js +0 -1
  1177. package/dist/static/adf14fb128.chunk.js +0 -1
  1178. package/dist/static/ae45496151.chunk.js +0 -1
  1179. package/dist/static/aec20f3863.chunk.js +0 -1
  1180. package/dist/static/b06c3e4636.chunk.js +0 -1
  1181. package/dist/static/b0aed4ff2f.chunk.js +0 -1
  1182. package/dist/static/b19006fd22.chunk.js +0 -1
  1183. package/dist/static/b1e4e0361d.chunk.js +0 -1
  1184. package/dist/static/b1f233dab4.chunk.js +0 -1
  1185. package/dist/static/b3ffa78072.chunk.js +0 -1
  1186. package/dist/static/b400f57054.chunk.js +0 -1
  1187. package/dist/static/b4200e28d0.chunk.js +0 -1
  1188. package/dist/static/b43bd25c9a.chunk.js +0 -1
  1189. package/dist/static/b480f33fbd.chunk.js +0 -1
  1190. package/dist/static/b5acd082a1.chunk.js +0 -1
  1191. package/dist/static/b76614f6ce.chunk.js +0 -1
  1192. package/dist/static/b782fd82bd.chunk.js +0 -1
  1193. package/dist/static/b79fe4eb6f.chunk.js +0 -1
  1194. package/dist/static/b82320698b.chunk.js +0 -1
  1195. package/dist/static/b832b4f396.chunk.js +0 -1
  1196. package/dist/static/b8dd728ace.chunk.js +0 -1
  1197. package/dist/static/b9095c5873.chunk.js +0 -1
  1198. package/dist/static/b97da963b8.chunk.js +0 -1
  1199. package/dist/static/ba47bbc89b.chunk.js +0 -1
  1200. package/dist/static/ba79bd552b.chunk.js +0 -1
  1201. package/dist/static/baed4d6c0f.chunk.js +0 -1
  1202. package/dist/static/bc65b030b2.chunk.js +0 -1
  1203. package/dist/static/bcd08057ea.chunk.js +0 -1
  1204. package/dist/static/bcde62881b.chunk.js +0 -1
  1205. package/dist/static/be305e4383.chunk.js +0 -1
  1206. package/dist/static/be9ede7042.chunk.js +0 -1
  1207. package/dist/static/bf0bab6a29.chunk.js +0 -1
  1208. package/dist/static/bf7a6bfc72.chunk.js +0 -1
  1209. package/dist/static/bf815c9e74.chunk.js +0 -1
  1210. package/dist/static/bfa2c38baf.chunk.js +0 -1
  1211. package/dist/static/bfdaf3178a.chunk.js +0 -1
  1212. package/dist/static/bff09c8c27.chunk.js +0 -1
  1213. package/dist/static/c07063b9ed.chunk.js +0 -1
  1214. package/dist/static/c0d43c203d.chunk.js +0 -1
  1215. package/dist/static/c0eb21c110.chunk.js +0 -1
  1216. package/dist/static/c12bced07b.chunk.js +0 -1
  1217. package/dist/static/c1d0d86d6b.chunk.js +0 -1
  1218. package/dist/static/c1d912c500.chunk.js +0 -1
  1219. package/dist/static/c1f9bb8b91.chunk.js +0 -1
  1220. package/dist/static/c30100c8d7.chunk.js +0 -1
  1221. package/dist/static/c34b3e5127.chunk.js +0 -1
  1222. package/dist/static/c39b20f88d.chunk.js +0 -1
  1223. package/dist/static/c3fb6ba503.chunk.js +0 -1
  1224. package/dist/static/c409b217ee.chunk.js +0 -1
  1225. package/dist/static/c42a708181.chunk.js +0 -1
  1226. package/dist/static/c62cd3f1c8.chunk.js +0 -1
  1227. package/dist/static/c77fc00e5e.chunk.js +0 -1
  1228. package/dist/static/c8b8b1ba14.chunk.js +0 -1
  1229. package/dist/static/c90a235670.chunk.js +0 -1
  1230. package/dist/static/ca97cf516e.chunk.js +0 -1
  1231. package/dist/static/cae7556f1e.chunk.js +0 -1
  1232. package/dist/static/cba3628624.chunk.js +0 -1
  1233. package/dist/static/cd2460b4ee.chunk.js +0 -1
  1234. package/dist/static/cd49b150e0.chunk.js +0 -1
  1235. package/dist/static/cda8f35c73.chunk.js +0 -1
  1236. package/dist/static/ce4161e9ef.chunk.js +0 -1
  1237. package/dist/static/ce8ea79f5e.chunk.js +0 -1
  1238. package/dist/static/d006b4de51.chunk.js +0 -1
  1239. package/dist/static/d07f6aafae.chunk.js +0 -1
  1240. package/dist/static/d089b0ac57.chunk.js +0 -1
  1241. package/dist/static/d10f77e66a.chunk.js +0 -1
  1242. package/dist/static/d12d02a285.chunk.js +0 -1
  1243. package/dist/static/d29dfaf973.chunk.js +0 -1
  1244. package/dist/static/d2dc78c6a7.chunk.js +0 -1
  1245. package/dist/static/d2f64073c1.chunk.js +0 -1
  1246. package/dist/static/d43f41f09b.chunk.js +0 -1
  1247. package/dist/static/d4c4bf4ca8.chunk.js +0 -1
  1248. package/dist/static/d50bdf460b.chunk.js +0 -1
  1249. package/dist/static/d544df3af3.chunk.js +0 -1
  1250. package/dist/static/d55fad746e.chunk.js +0 -1
  1251. package/dist/static/d5d49e5137.chunk.js +0 -1
  1252. package/dist/static/d6c3b49d1f.chunk.js +0 -1
  1253. package/dist/static/d701a8805a.chunk.js +0 -1
  1254. package/dist/static/d7a49cf39c.chunk.js +0 -1
  1255. package/dist/static/d7ce6b8889.chunk.js +0 -1
  1256. package/dist/static/d85b7fabb4.chunk.js +0 -1
  1257. package/dist/static/d85f400bb9.chunk.js +0 -1
  1258. package/dist/static/d889b16693.chunk.js +0 -1
  1259. package/dist/static/d93114fe7e.chunk.js +0 -1
  1260. package/dist/static/db0f50cba4.chunk.js +0 -1
  1261. package/dist/static/dc1f9d2808.chunk.js +0 -1
  1262. package/dist/static/dc5dd53556.chunk.js +0 -1
  1263. package/dist/static/dca03a23ae.chunk.js +0 -1
  1264. package/dist/static/dcbff8032d.chunk.js +0 -1
  1265. package/dist/static/dcf2398cb4.chunk.js +0 -2
  1266. package/dist/static/dcf2398cb4.chunk.js.LICENSE.txt +0 -1
  1267. package/dist/static/dd1500a6e6.chunk.js +0 -1
  1268. package/dist/static/de0cf6ec8c.chunk.js +0 -1
  1269. package/dist/static/de51c0f1e6.chunk.js +0 -1
  1270. package/dist/static/de5391248b.chunk.js +0 -1
  1271. package/dist/static/df040269c5.chunk.js +0 -1
  1272. package/dist/static/df6d0bbfae.chunk.js +0 -1
  1273. package/dist/static/df75744efc.chunk.js +0 -1
  1274. package/dist/static/e199d5c2be.chunk.js +0 -1
  1275. package/dist/static/e1ce424b73.chunk.js +0 -1
  1276. package/dist/static/e212d9eb9d.chunk.js +0 -1
  1277. package/dist/static/e391b53a55.chunk.js +0 -1
  1278. package/dist/static/e3f825064b.chunk.js +0 -1
  1279. package/dist/static/e439834569.chunk.js +0 -1
  1280. package/dist/static/e4eebfadf3.chunk.js +0 -1
  1281. package/dist/static/e4fda03d20.chunk.js +0 -1
  1282. package/dist/static/e54f39cb95.chunk.js +0 -1
  1283. package/dist/static/e5579f3010.chunk.js +0 -1
  1284. package/dist/static/e596a4f22b.chunk.js +0 -1
  1285. package/dist/static/e5db3c86fa.chunk.js +0 -1
  1286. package/dist/static/e5eadcab3a.chunk.js +0 -1
  1287. package/dist/static/e5f3446052.chunk.js +0 -1
  1288. package/dist/static/e7525af914.chunk.js +0 -1
  1289. package/dist/static/e769747c26.chunk.js +0 -1
  1290. package/dist/static/e7ea08ccfc.chunk.js +0 -1
  1291. package/dist/static/e7efb46669.chunk.js +0 -1
  1292. package/dist/static/e7f22344e2.chunk.js +0 -1
  1293. package/dist/static/e81ee8d311.chunk.js +0 -1
  1294. package/dist/static/e933a564fb.chunk.js +0 -1
  1295. package/dist/static/e9c8a6360b.chunk.js +0 -1
  1296. package/dist/static/ea178ac2f1.chunk.js +0 -1
  1297. package/dist/static/ea19284ea3.chunk.js +0 -1
  1298. package/dist/static/eb4de1d461.chunk.js +0 -1
  1299. package/dist/static/ebd960eb18.chunk.js +0 -1
  1300. package/dist/static/eccf4ece6b.chunk.js +0 -1
  1301. package/dist/static/ee1d30eb2e.chunk.js +0 -1
  1302. package/dist/static/eeba9c02ae.chunk.js +0 -1
  1303. package/dist/static/eec4bc8905.chunk.js +0 -1
  1304. package/dist/static/eef128b4da.chunk.js +0 -1
  1305. package/dist/static/ef64ca1433.chunk.js +0 -1
  1306. package/dist/static/f0bc029197.chunk.js +0 -1
  1307. package/dist/static/f17e61dc45.chunk.js +0 -1
  1308. package/dist/static/f29a97c88c.chunk.css +0 -1
  1309. package/dist/static/f30825efa4.chunk.js +0 -1
  1310. package/dist/static/f30f42c916.chunk.js +0 -1
  1311. package/dist/static/f32de44596.chunk.js +0 -1
  1312. package/dist/static/f3634218e8.chunk.js +0 -1
  1313. package/dist/static/f37284326c.chunk.js +0 -1
  1314. package/dist/static/f37df099e0.chunk.js +0 -1
  1315. package/dist/static/f4237297d5.chunk.js +0 -1
  1316. package/dist/static/f52a599c02.chunk.js +0 -1
  1317. package/dist/static/f5c8d451f0.chunk.js +0 -1
  1318. package/dist/static/f5e2a807a4.chunk.js +0 -1
  1319. package/dist/static/f6044d9f89.chunk.js +0 -1
  1320. package/dist/static/f60de44df1.chunk.js +0 -1
  1321. package/dist/static/f631f9537e.chunk.js +0 -1
  1322. package/dist/static/f65335255d.chunk.js +0 -1
  1323. package/dist/static/f7159aacbd.chunk.js +0 -1
  1324. package/dist/static/f7763f1155.chunk.css +0 -1
  1325. package/dist/static/f77866acbc.chunk.js +0 -1
  1326. package/dist/static/f77d21e512.chunk.js +0 -1
  1327. package/dist/static/f817851e4c.chunk.js +0 -1
  1328. package/dist/static/f94c52fcca.chunk.js +0 -1
  1329. package/dist/static/f9d16d826d.chunk.js +0 -1
  1330. package/dist/static/fa78d32e99.chunk.css +0 -1
  1331. package/dist/static/fb0c26bd3f.chunk.js +0 -1
  1332. package/dist/static/fb4fd74524.chunk.js +0 -1
  1333. package/dist/static/fbfc52deb7.chunk.js +0 -1
  1334. package/dist/static/fcd55e3179.chunk.js +0 -1
  1335. package/dist/static/fce01ef938.chunk.js +0 -1
  1336. package/dist/static/fdae12e1c9.chunk.js +0 -1
  1337. package/dist/static/fdb70f785f.chunk.js +0 -1
  1338. package/dist/static/fe20e514cb.chunk.js +0 -1
  1339. package/dist/static/fe32a3165e.chunk.js +0 -1
  1340. package/dist/static/fec539bfda.chunk.js +0 -1
  1341. package/dist/static/fee684a39c.chunk.js +0 -1
  1342. package/dist/static/ffab78f226.chunk.js +0 -1
  1343. package/dist/static/main.b6a63a86d7.css +0 -1
  1344. package/dist/static/main.caa49eff58.js +0 -1
  1345. package/dist/static/vendor.3e53d99c43.js +0 -2
  1346. package/dist/static/vendor.3e53d99c43.js.LICENSE.txt +0 -63
@@ -1,2 +0,0 @@
1
- /*! For license information please see dcf2398cb4.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([[7249],{73335:function(e){"undefined"!=typeof self&&self,e.exports=(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){return"#"===e||""===e||Array.isArray(e)&&0===e.length||!1}e.r(t),e.d(t,{default:()=>C,get:()=>c,isRoot:()=>n,join:()=>E,remove:()=>b,removeUndefinedItems:()=>v,set:()=>m,split:()=>u,splitLast:()=>x});const r=/~1/g,i=/~0/g,s=/\/+/g,o=/(^[#/]*|\/+$)/g;function a(e){return e.replace(r,"/").replace(i,"~")}function l(e){return a(decodeURIComponent(e))}function u(e){if(null==e||"string"!=typeof e||n(e))return Array.isArray(e)?e:[];const t=e.indexOf("#")>=0?l:a,r=(e=(e=e.replace(s,"/")).replace(o,"")).split("/");for(let e=0,n=r.length;e<n;e+=1)r[e]=t(r[e]);return r}function c(e,t,r=void 0){if(null==t||null==e)return r;if(n(t))return e;const i=h(e,u(t));return void 0===i?r:i}function h(e,t){const n=t.shift();if(void 0!==e)return void 0!==n?h(e[n],t):e}const f=/^\[.*\]$/,d=/^\[(.+)\]$/;function p(e,t){return"__proto__"===e||"constructor"==e&&t.length>0&&"prototype"==t[0]}function m(e,t,n){if(null==t)return e;const r=u(t);if(0===r.length)return e;null==e&&(e=f.test(r[0])?[]:{});let i,s,o=e;for(;r.length>1;)i=r.shift(),s=f.test(r[0]),p(i,r)||(o=y(o,i,s));return i=r.pop(),g(o,i,n),e}function g(e,t,n){let r;const i=t.match(d);"[]"===t&&Array.isArray(e)?e.push(n):i?(r=i.pop(),e[r]=n):e[t]=n}function y(e,t,n){if(null!=e[t])return e[t];const r=n?[]:{};return g(e,t,r),r}function v(e){let t=0,n=0;for(;t+n<e.length;)void 0===e[t+n]&&(n+=1),e[t]=e[t+n],t+=1;return e.length=e.length-n,e}function b(e,t,n){const r=u(t),i=r.pop(),s=c(e,r);return s&&delete s[i],Array.isArray(s)&&!0!==n&&v(s),e}const w=/\/+/g,D=/~/g,k=/\//g;function A(e,t){if(0===e.length)return t?"#":"";for(let n=0,r=e.length;n<r;n+=1)e[n]=e[n].replace(D,"~0").replace(k,"~1"),t&&(e[n]=encodeURIComponent(e[n]));return((t?"#/":"/")+e.join("/")).replace(w,"/")}function E(e,...t){const n=[];if(Array.isArray(e))return A(e,!0===arguments[1]);const r=arguments[arguments.length-1],i="boolean"==typeof r?r:e&&"#"===e[0];for(let e=0,t=arguments.length;e<t;e+=1)n.push.apply(n,u(arguments[e]));const s=[];for(let e=0,t=n.length;e<t;e+=1)if(".."===n[e]){if(0===s.length)return i?"#":"";s.pop()}else s.push(n[e]);return A(s,i)}function x(e){const t=u(e);if(0===t.length)return"string"==typeof e&&"#"===e[0]?["#",t[0]]:["",void 0];if(1===t.length)return"#"===e[0]?["#",t[0]]:["",t[0]];const n=t.pop();return[E(t,"#"===e[0]),n]}const C={get:c,set:m,remove:b,join:E,split:u,splitLast:x,isRoot:n,removeUndefinedItems:v};return t})()},52743:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var i={};return n.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=r(e[t],n)})),s(t).forEach((function(s){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(o(e,s)&&n.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(s,n)(e[s],t[s],n):i[s]=r(t[s],n))})),i}(e,n,l):r(n,l)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})};var l=a;e.exports=l},44574:(e,t,n)=>{"use strict";const r=n(42899);var i;!function(e){e.RULES=[{name:"Grammar",bnf:[["RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_WHITESPACE*",'"|"',"RULE_WHITESPACE*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","Item"],["Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"Item",bnf:[["RULE_WHITESPACE*","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"DecorationName",bnf:[['"ebnf://"',/[^\x5D#]+/]]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*",'")"']]},{name:"StringLiteral",bnf:[["'\"'",/[^"]*/,"'\"'"],['"\'"',/[^']*/,'"\'"']],pinned:1},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RULE_Char",bnf:[[/\x09/],[/\x0A/],[/\x0D/],[/[\x20-\x5c]/],[/[\x5e-\uD7FF]/],[/[\uE000-\uFFFD]/]]},{name:"CharRange",bnf:[["RULE_Char",'"-"',"RULE_Char"]]},{name:"CharCodeRange",bnf:[["CharCode",'"-"',"CharCode"]]},{name:"RULE_WHITESPACE",bnf:[["%RULE_WHITESPACE_CHAR*"],["Comment","RULE_WHITESPACE*"]]},{name:"RULE_S",bnf:[["RULE_WHITESPACE","RULE_S*"],["RULE_EOL","RULE_S*"]]},{name:"%RULE_WHITESPACE_CHAR",bnf:[[/\x09/],[/\x20/]],fragment:!0},{name:"Comment",bnf:[['"/*"',"%RULE_Comment_Body*",'"*/"']]},{name:"%RULE_Comment_Body",bnf:[['!"*/"',/[^*]/]],fragment:!0},{name:"RULE_EOL",bnf:[[/\x0D/,/\x0A/],[/\x0A/],[/\x0D/]]},{name:"Link",bnf:[["'['","Url","']'"]]},{name:"Url",bnf:[[/[^\x5D:/?#]/,'"://"',/[^\x5D#]+/,"%Url1?"]]},{name:"%Url1",bnf:[['"#"',"NCName"]],fragment:!0}],e.defaultParser=new r.Parser(e.RULES,{debug:!1});const t=/^(!|&)/,n=/(\?|\+|\*)$/,i=/^%/;function s(e,o){let a=r.findRuleByName(e,o);return a?a.bnf.map((e=>function(e,o){return e.map((e=>function(e,o){if("string"==typeof e){if(t.test(e))return"";if(i.test(e)){let t=n.exec(e),i=t?t[0]+" ":"",a=function(e,t){let n=r.findRuleByName(e,t);return n&&1==n.bnf.length&&1==n.bnf[0].length&&(n.bnf[0][0]instanceof RegExp||'"'==n.bnf[0][0][0]||"'"==n.bnf[0][0][0])}(e,o);return a?s(e,o)+i:"("+s(e,o)+")"+i}return e}return e.source.replace(/\\(?:x|u)([a-zA-Z0-9]+)/g,"#x$1").replace(/\[\\(?:x|u)([a-zA-Z0-9]+)-\\(?:x|u)([a-zA-Z0-9]+)\]/g,"[#x$1-#x$2]")}(e,o))).join(" ")}(e,o))).join(" | "):"RULE_NOT_FOUND {"+e+"}"}function o(e){let t=[];return e.grammarRules.forEach((n=>{if(!/^%/.test(n.name)){let r=n.recover?" /* { recoverUntil="+n.recover+" } */":"";t.push(n.name+" ::= "+s(n.name,e)+r)}})),t.join("\n")}e.emit=o;let a=0;function l(e){return new RegExp(e.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function u(e,t,n){let r=t.children.filter((e=>"SequenceOrDifference"==e.type)).map((t=>function(e,t,n){let r=null,i=[];return t.children.forEach(((s,o)=>{"Minus"==s.type&&function(e,t){throw console.log("reberia restar "+t+" a "+e),new Error("Difference not supported yet")}(r,s);let c=t.children[o+1];switch(c=c&&"PrimaryDecoration"==c.type&&c.text||"",s.type){case"SubItem":let t="%"+(n+a++);u(e,s,t),i.push(""+t+c);break;case"NCName":case"StringLiteral":i.push(""+s.text+c);break;case"CharCode":case"CharClass":if(c){let t={name:"%"+(n+a++),bnf:[[l(s.text)]]};e.push(t),i.push(""+t.name+c)}else i.push(l(s.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+s.type+" -> "+JSON.stringify(s.text))}r=s})),i}(e,t,n))),i={name:n,bnf:r},s=null;r.forEach((e=>{s=s||e.recover,delete e.recover})),0==n.indexOf("%")&&(i.fragment=!0),s&&(i.recover=s),e.push(i)}function c(t,n=e.defaultParser){let r=n.getAST(t);if(!r)throw new Error("Could not parse "+t);if(r.errors&&r.errors.length)throw r.errors[0];let i=[];return r.children.filter((e=>"Production"==e.type)).map((e=>{let t=e.children.filter((e=>"NCName"==e.type))[0].text;u(i,e,t)})),i}e.getRules=c,e.Transform=function(t,n=e.defaultParser){return c(t.join(""),n)};class h extends r.Parser{constructor(t,n){super(c(t,n&&!0===n.debugRulesParser?new r.Parser(e.RULES,{debug:!0}):e.defaultParser),n)}emitSource(){return o(this)}}e.Parser=h}(i||(i={})),t.A=i},42899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.findRuleByName=t.parseRuleName=t.escapeRegExp=t.readToken=void 0;const r=/^[A-Z0-9_]+$/,i=/(\?|\+|\*)$/,s=/^(@|&|!)/,o="WS",a=n(89849);function l(e,t){let n=t.exec(e);return n&&0==n.index?0==n[0].length&&t.source.length>0?null:{type:null,text:n[0],rest:e.substr(n[0].length),start:0,end:n[0].length-1,fullText:n[0],errors:[],children:[],parent:null}:null}function u(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function c(e){e.rest="",e.children&&e.children.forEach((e=>c(e)))}function h(e,t){e.start+=t,e.end+=t,e.children&&e.children.forEach((t=>h(t,e.start)))}function f(e,t){t.errors&&t.errors.length&&t.errors.forEach((t=>e.push(t))),t.children&&t.children.forEach((t=>f(e,t)))}function d(e){let t=i.exec(e),n=s.exec(e),r=t&&t[0]||"",o=n&&n[0]||"",a={raw:e,name:e.replace(i,"").replace(s,""),isOptional:"?"==r||"*"==r,allowRepetition:"+"==r||"*"==r,atLeastOne:"+"==r,lookupPositive:"&"==o,lookupNegative:"!"==o,pinned:"@"==o,lookup:!1,isLiteral:!1};return a.isLiteral="'"==a.name[0]||'"'==a.name[0],a.lookup=a.lookupNegative||a.lookupPositive,a}function p(e,t){let n=d(e);return t.cachedRules[n.name]||null}function m(e,t){if(e.children){let n=e.children.filter((e=>e.type&&t.test(e.type)));for(let t=0;t<n.length;t++){let r=e.children.indexOf(n[t]);-1!=r&&e.children.splice(r,1)}e.children.forEach((e=>m(e,t)))}}t.readToken=l,t.escapeRegExp=u,t.parseRuleName=d,t.findRuleByName=p;const g=["EOF"];class y{constructor(e,t){this.grammarRules=e,this.options=t,this.cachedRules={},this.debug=!!t&&!0===t.debug;let n=[],r=[];if(e.forEach((e=>{let t=d(e.name);if(t.name in this.cachedRules)n.push("Duplicated rule "+t.name);else{if(this.cachedRules[t.name]=e,e.bnf&&e.bnf.length)e.bnf.forEach((t=>{if("string"==typeof t[0]&&d(t[0]).name==e.name){let t="Left recursion is not allowed, rule: "+e.name;-1==n.indexOf(t)&&n.push(t)}t.forEach((e=>{if("string"==typeof e){let t=d(e);t.isLiteral||-1!=r.indexOf(t.name)||-1!=g.indexOf(t.name)||r.push(t.name)}}))}));else{let t="Missing rule content, rule: "+e.name;-1==n.indexOf(t)&&n.push(t)}o==e.name&&(e.implicitWs=!1),e.implicitWs&&-1==r.indexOf(o)&&r.push(o),e.recover&&-1==r.indexOf(e.recover)&&r.push(e.recover)}})),r.forEach((e=>{e in this.cachedRules||n.push("Missing rule "+e)})),n.length)throw new Error(n.join("\n"))}getAST(e,t){t||(t=this.grammarRules.filter((e=>!e.fragment&&0!=e.name.indexOf("%")))[0].name);let n=this.parse(e,t);if(n){f(n.errors,n),h(n,0),m(n,/^%/),this.options&&this.options.keepUpperRules||m(n,r);let e=n.rest;e&&new a.TokenError("Unexpected end of input: \n"+e,n),c(n),n.rest=e}return n}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,n=0){let i,s=null,c=d(t),h=this.debug&&!r.test(c.name);h&&console.log(new Array(n).join("│ ")+"Trying to get "+t+" from "+JSON.stringify(e.split("\n")[0]));let f=c.name,m=p(c.name,this);if("EOF"==c.name){if(e.length)return null;if(0==e.length)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!m&&c.isLiteral){let t=c.name.trim();if(t.startsWith('"')?t=JSON.parse(t):t.startsWith("'")&&(t=t.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),""===t)return{type:"%%EMPTY%%",text:"",rest:e,start:0,end:0,fullText:"",errors:[],children:[],parent:null};i=new RegExp(u(t)),f=null}}catch(e){return e instanceof ReferenceError&&console.error(e),null}if(i){let t=l(e,i);if(t)return t.type=f,t}else{let t=m.bnf;t instanceof Array&&t.forEach((t=>{if(s)return;let r=null,i={type:c.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:e};m.fragment&&(i.fragment=!0);let u=e,f=0,p=t.length>0,g=!1;for(let e=0;e<t.length;e++)if("string"==typeof t[e]){let l,c=d(t[e]);p=p&&c.isOptional;let y=!1;do{if(l=null,m.implicitWs&&(l=this.parse(u,c.name,n+1),!l)){let e;do{if(e=this.parse(u,o,n+1),!e)break;i.text=i.text+e.text,i.end=i.text.length,e.parent=i,i.children.push(e),u=u.substr(e.text.length),f+=e.text.length}while(e&&e.text.length)}if(l=l||this.parse(u,c.name,n+1),c.lookupNegative){if(l)return;break}if(c.lookupPositive&&!l)return;if(!l){if(c.isOptional)break;if(c.atLeastOne&&y)break}if(l&&m.pinned==e+1&&(r=l,h&&console.log(new Array(n+1).join("│ ")+"└─ "+l.type+" PINNED")),l||(l=this.parseRecovery(m,u,n+1)),!l){if(!r)return;s=i,l={type:"SyntaxError",text:u,children:[],end:u.length,errors:[],fullText:"",parent:null,start:0,rest:""},u.length?new a.TokenError(`Unexpected end of input. Expecting ${c.name} Got: ${u}`,l):new a.TokenError(`Unexpected end of input. Missing ${c.name}`,l),h&&console.log(new Array(n+1).join("│ ")+"└─ "+l.type+" "+JSON.stringify(l.text))}if(y=!0,g=!0,"%%EMPTY%%"==l.type)break;l.start+=f,l.end+=f,!c.lookupPositive&&l.type&&(l.fragment?l.children&&l.children.forEach((e=>{e.start+=f,e.end+=f,e.parent=i,i.children.push(e)})):(l.parent=i,i.children.push(l))),c.lookup&&(l.lookup=!0),h&&console.log(new Array(n+1).join("│ ")+"└─ "+l.type+" "+JSON.stringify(l.text)),c.lookup||l.lookup||(i.text=i.text+l.text,i.end=i.text.length,u=u.substr(l.text.length),f+=l.text.length),i.rest=u}while(l&&c.allowRepetition&&u.length&&!l.lookup)}else{let r=l(u,t[e]);if(!r)return;h&&console.log(new Array(n+1).join("│ ")+"└> "+JSON.stringify(r.text)+t[e].source),g=!0,r.start+=f,r.end+=f,i.text=i.text+r.text,i.end=i.text.length,u=u.substr(r.text.length),f+=r.text.length,i.rest=u}g&&(s=i,h&&console.log(new Array(n).join("│ ")+"├<─┴< PUSHING "+s.type+" "+JSON.stringify(s.text)))})),s&&m.simplifyWhenOneChildren&&1==s.children.length&&(s=s.children[0])}return s||h&&console.log(t+" NOT RESOLVED FROM "+e),s}parseRecovery(e,t,n){if(e.recover&&t.length){let r=this.debug;r&&console.log(new Array(n+1).join("│ ")+"Trying to recover until token "+e.recover+" from "+JSON.stringify(t.split("\n")[0]+t.split("\n")[1]));let i,s={type:"SyntaxError",text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:""};do{if(i=this.parse(t,e.recover,n+1),i){new a.TokenError('Unexpected input: "'+s.text+`" Expecting: ${e.name}`,s);break}s.text=s.text+t[0],s.end=s.text.length,t=t.substr(1)}while(!i&&t.length>0);if(s.text.length>0&&i)return r&&console.log(new Array(n+1).join("│ ")+"Recovered text: "+JSON.stringify(s.text)),s}return null}}t.Parser=y,t.default=y},89849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenError=void 0;class n extends Error{constructor(e,t){if(super(e),this.message=e,this.token=t,!t||!t.errors)throw this;t.errors.push(this)}inspect(){return"SyntaxError: "+this.message}}t.TokenError=n},38792:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;0!=i--;){var o=s[i];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}},88696:function(e){e.exports=function(){"use strict";function e(e,t){return e(t={exports:{}},t.exports),t.exports}var t=e((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),n=e((function(e){var t=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=t)})),r=(n.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),i=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e},s=function(e){try{return!!e()}catch(e){return!0}},o=!s((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),a=t.document,l=r(a)&&r(a.createElement),u=!o&&!s((function(){return 7!=Object.defineProperty((e="div",l?a.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),c=Object.defineProperty,h={f:o?Object.defineProperty:function(e,t,n){if(i(e),t=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}(t,!0),i(n),u)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},f=o?function(e,t,n){return h.f(e,t,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}(1,n))}:function(e,t,n){return e[t]=n,e},d={}.hasOwnProperty,p=function(e,t){return d.call(e,t)},m=0,g=Math.random(),y=e((function(e){var r="__core-js_shared__",i=t[r]||(t[r]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),v=y("native-function-to-string",Function.toString),b=e((function(e){var r=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++m+g).toString(36))}("src"),i="toString",s=(""+v).split(i);n.inspectSource=function(e){return v.call(e)},(e.exports=function(e,n,i,o){var a="function"==typeof i;a&&(p(i,"name")||f(i,"name",n)),e[n]!==i&&(a&&(p(i,r)||f(i,r,e[n]?""+e[n]:s.join(String(n)))),e===t?e[n]=i:o?e[n]?e[n]=i:f(e,n,i):(delete e[n],f(e,n,i)))})(Function.prototype,i,(function(){return"function"==typeof this&&this[r]||v.call(this)}))})),w=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},D="prototype",k=function(e,r,i){var s,o,a,l,u=e&k.F,c=e&k.G,h=e&k.S,d=e&k.P,p=e&k.B,m=c?t:h?t[r]||(t[r]={}):(t[r]||{})[D],g=c?n:n[r]||(n[r]={}),y=g[D]||(g[D]={});for(s in c&&(i=r),i)a=((o=!u&&m&&void 0!==m[s])?m:i)[s],l=p&&o?w(a,t):d&&"function"==typeof a?w(Function.call,a):a,m&&b(m,s,a,e&k.U),g[s]!=a&&f(g,s,l),d&&y[s]!=a&&(y[s]=a)};t.core=n,k.F=1,k.G=2,k.S=4,k.P=8,k.B=16,k.W=32,k.U=64,k.R=128;var A=k,E=Math.ceil,x=Math.floor,C=function(e){return isNaN(e=+e)?0:(e>0?x:E)(e)},S=function(e,t){var n,r,i=String(function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}(e)),s=C(t),o=i.length;return s<0||s>=o?void 0:(n=i.charCodeAt(s))<55296||n>56319||s+1===o||(r=i.charCodeAt(s+1))<56320||r>57343?n:r-56320+(n-55296<<10)+65536};A(A.P,"String",{codePointAt:function(e){return S(this,e)}}),n.String.codePointAt;var O=Math.max,F=Math.min,_=String.fromCharCode,T=String.fromCodePoint;A(A.S+A.F*(!!T&&1!=T.length),"String",{fromCodePoint:function(e){for(var t,n=arguments,r=[],i=arguments.length,s=0;i>s;){if(t=+n[s++],a=1114111,((o=C(o=t))<0?O(o+a,0):F(o,a))!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?_(t):_(55296+((t-=65536)>>10),t%1024+56320))}var o,a;return r.join("")}}),n.String.fromCodePoint;var B,P,I,M,$,N,L,R,j,q,V,z,U,H,W={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},K={isSpaceSeparator:function(e){return"string"==typeof e&&W.Space_Separator.test(e)},isIdStartChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||W.ID_Start.test(e))},isIdContinueChar:function(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||"‌"===e||"‍"===e||W.ID_Continue.test(e))},isDigit:function(e){return"string"==typeof e&&/[0-9]/.test(e)},isHexDigit:function(e){return"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}};function G(e,t,n){var r=e[t];if(null!=r&&"object"==typeof r)if(Array.isArray(r))for(var i=0;i<r.length;i++){var s=String(i),o=G(r,s,n);void 0===o?delete r[s]:Object.defineProperty(r,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(var a in r){var l=G(r,a,n);void 0===l?delete r[a]:Object.defineProperty(r,a,{value:l,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}function J(){for(q="default",V="",z=!1,U=1;;){H=Y();var e=Q[q]();if(e)return e}}function Y(){if(B[M])return String.fromCodePoint(B.codePointAt(M))}function Z(){var e=Y();return"\n"===e?($++,N=0):e?N+=e.length:N++,e&&(M+=e.length),e}var Q={default:function(){switch(H){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":return void Z();case"/":return Z(),void(q="comment");case void 0:return Z(),X("eof")}if(!K.isSpaceSeparator(H))return Q[P]();Z()},comment:function(){switch(H){case"*":return Z(),void(q="multiLineComment");case"/":return Z(),void(q="singleLineComment")}throw se(Z())},multiLineComment:function(){switch(H){case"*":return Z(),void(q="multiLineCommentAsterisk");case void 0:throw se(Z())}Z()},multiLineCommentAsterisk:function(){switch(H){case"*":return void Z();case"/":return Z(),void(q="default");case void 0:throw se(Z())}Z(),q="multiLineComment"},singleLineComment:function(){switch(H){case"\n":case"\r":case"\u2028":case"\u2029":return Z(),void(q="default");case void 0:return Z(),X("eof")}Z()},value:function(){switch(H){case"{":case"[":return X("punctuator",Z());case"n":return Z(),ee("ull"),X("null",null);case"t":return Z(),ee("rue"),X("boolean",!0);case"f":return Z(),ee("alse"),X("boolean",!1);case"-":case"+":return"-"===Z()&&(U=-1),void(q="sign");case".":return V=Z(),void(q="decimalPointLeading");case"0":return V=Z(),void(q="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return V=Z(),void(q="decimalInteger");case"I":return Z(),ee("nfinity"),X("numeric",1/0);case"N":return Z(),ee("aN"),X("numeric",NaN);case'"':case"'":return z='"'===Z(),V="",void(q="string")}throw se(Z())},identifierNameStartEscape:function(){if("u"!==H)throw se(Z());Z();var e=te();switch(e){case"$":case"_":break;default:if(!K.isIdStartChar(e))throw ae()}V+=e,q="identifierName"},identifierName:function(){switch(H){case"$":case"_":case"‌":case"‍":return void(V+=Z());case"\\":return Z(),void(q="identifierNameEscape")}if(!K.isIdContinueChar(H))return X("identifier",V);V+=Z()},identifierNameEscape:function(){if("u"!==H)throw se(Z());Z();var e=te();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!K.isIdContinueChar(e))throw ae()}V+=e,q="identifierName"},sign:function(){switch(H){case".":return V=Z(),void(q="decimalPointLeading");case"0":return V=Z(),void(q="zero");case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return V=Z(),void(q="decimalInteger");case"I":return Z(),ee("nfinity"),X("numeric",U*(1/0));case"N":return Z(),ee("aN"),X("numeric",NaN)}throw se(Z())},zero:function(){switch(H){case".":return V+=Z(),void(q="decimalPoint");case"e":case"E":return V+=Z(),void(q="decimalExponent");case"x":case"X":return V+=Z(),void(q="hexadecimal")}return X("numeric",0*U)},decimalInteger:function(){switch(H){case".":return V+=Z(),void(q="decimalPoint");case"e":case"E":return V+=Z(),void(q="decimalExponent")}if(!K.isDigit(H))return X("numeric",U*Number(V));V+=Z()},decimalPointLeading:function(){if(K.isDigit(H))return V+=Z(),void(q="decimalFraction");throw se(Z())},decimalPoint:function(){switch(H){case"e":case"E":return V+=Z(),void(q="decimalExponent")}return K.isDigit(H)?(V+=Z(),void(q="decimalFraction")):X("numeric",U*Number(V))},decimalFraction:function(){switch(H){case"e":case"E":return V+=Z(),void(q="decimalExponent")}if(!K.isDigit(H))return X("numeric",U*Number(V));V+=Z()},decimalExponent:function(){switch(H){case"+":case"-":return V+=Z(),void(q="decimalExponentSign")}if(K.isDigit(H))return V+=Z(),void(q="decimalExponentInteger");throw se(Z())},decimalExponentSign:function(){if(K.isDigit(H))return V+=Z(),void(q="decimalExponentInteger");throw se(Z())},decimalExponentInteger:function(){if(!K.isDigit(H))return X("numeric",U*Number(V));V+=Z()},hexadecimal:function(){if(K.isHexDigit(H))return V+=Z(),void(q="hexadecimalInteger");throw se(Z())},hexadecimalInteger:function(){if(!K.isHexDigit(H))return X("numeric",U*Number(V));V+=Z()},string:function(){switch(H){case"\\":return Z(),void(V+=function(){switch(Y()){case"b":return Z(),"\b";case"f":return Z(),"\f";case"n":return Z(),"\n";case"r":return Z(),"\r";case"t":return Z(),"\t";case"v":return Z(),"\v";case"0":if(Z(),K.isDigit(Y()))throw se(Z());return"\0";case"x":return Z(),function(){var e="",t=Y();if(!K.isHexDigit(t))throw se(Z());if(e+=Z(),t=Y(),!K.isHexDigit(t))throw se(Z());return e+=Z(),String.fromCodePoint(parseInt(e,16))}();case"u":return Z(),te();case"\n":case"\u2028":case"\u2029":return Z(),"";case"\r":return Z(),"\n"===Y()&&Z(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case void 0:throw se(Z())}return Z()}());case'"':return z?(Z(),X("string",V)):void(V+=Z());case"'":return z?void(V+=Z()):(Z(),X("string",V));case"\n":case"\r":throw se(Z());case"\u2028":case"\u2029":!function(e){console.warn("JSON5: '"+le(e)+"' in strings is not valid ECMAScript; consider escaping")}(H);break;case void 0:throw se(Z())}V+=Z()},start:function(){switch(H){case"{":case"[":return X("punctuator",Z())}q="value"},beforePropertyName:function(){switch(H){case"$":case"_":return V=Z(),void(q="identifierName");case"\\":return Z(),void(q="identifierNameStartEscape");case"}":return X("punctuator",Z());case'"':case"'":return z='"'===Z(),void(q="string")}if(K.isIdStartChar(H))return V+=Z(),void(q="identifierName");throw se(Z())},afterPropertyName:function(){if(":"===H)return X("punctuator",Z());throw se(Z())},beforePropertyValue:function(){q="value"},afterPropertyValue:function(){switch(H){case",":case"}":return X("punctuator",Z())}throw se(Z())},beforeArrayValue:function(){if("]"===H)return X("punctuator",Z());q="value"},afterArrayValue:function(){switch(H){case",":case"]":return X("punctuator",Z())}throw se(Z())},end:function(){throw se(Z())}};function X(e,t){return{type:e,value:t,line:$,column:N}}function ee(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(Y()!==r)throw se(Z());Z()}}function te(){for(var e="",t=4;t-- >0;){var n=Y();if(!K.isHexDigit(n))throw se(Z());e+=Z()}return String.fromCodePoint(parseInt(e,16))}var ne={start:function(){if("eof"===L.type)throw oe();re()},beforePropertyName:function(){switch(L.type){case"identifier":case"string":return R=L.value,void(P="afterPropertyName");case"punctuator":return void ie();case"eof":throw oe()}},afterPropertyName:function(){if("eof"===L.type)throw oe();P="beforePropertyValue"},beforePropertyValue:function(){if("eof"===L.type)throw oe();re()},beforeArrayValue:function(){if("eof"===L.type)throw oe();"punctuator"!==L.type||"]"!==L.value?re():ie()},afterPropertyValue:function(){if("eof"===L.type)throw oe();switch(L.value){case",":return void(P="beforePropertyName");case"}":ie()}},afterArrayValue:function(){if("eof"===L.type)throw oe();switch(L.value){case",":return void(P="beforeArrayValue");case"]":ie()}},end:function(){}};function re(){var e;switch(L.type){case"punctuator":switch(L.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=L.value}if(void 0===j)j=e;else{var t=I[I.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,R,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(null!==e&&"object"==typeof e)I.push(e),P=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{var n=I[I.length-1];P=null==n?"end":Array.isArray(n)?"afterArrayValue":"afterPropertyValue"}}function ie(){I.pop();var e=I[I.length-1];P=null==e?"end":Array.isArray(e)?"afterArrayValue":"afterPropertyValue"}function se(e){return ue(void 0===e?"JSON5: invalid end of input at "+$+":"+N:"JSON5: invalid character '"+le(e)+"' at "+$+":"+N)}function oe(){return ue("JSON5: invalid end of input at "+$+":"+N)}function ae(){return ue("JSON5: invalid identifier character at "+$+":"+(N-=5))}function le(e){var t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){var n=e.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return e}function ue(e){var t=new SyntaxError(e);return t.lineNumber=$,t.columnNumber=N,t}return{parse:function(e,t){B=String(e),P="start",I=[],M=0,$=1,N=0,L=void 0,R=void 0,j=void 0;do{L=J(),ne[P]()}while("eof"!==L.type);return"function"==typeof t?G({"":j},"",t):j},stringify:function(e,t,n){var r,i,s,o=[],a="",l="";if(null==t||"object"!=typeof t||Array.isArray(t)||(n=t.space,s=t.quote,t=t.replacer),"function"==typeof t)i=t;else if(Array.isArray(t)){r=[];for(var u=0,c=t;u<c.length;u+=1){var h=c[u],f=void 0;"string"==typeof h?f=h:("number"==typeof h||h instanceof String||h instanceof Number)&&(f=String(h)),void 0!==f&&r.indexOf(f)<0&&r.push(f)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),"number"==typeof n?n>0&&(n=Math.min(10,Math.floor(n)),l=" ".substr(0,n)):"string"==typeof n&&(l=n.substr(0,10)),d("",{"":e});function d(e,t){var n=t[e];switch(null!=n&&("function"==typeof n.toJSON5?n=n.toJSON5(e):"function"==typeof n.toJSON&&(n=n.toJSON(e))),i&&(n=i.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return"null";case!0:return"true";case!1:return"false"}return"string"==typeof n?p(n):"number"==typeof n?String(n):"object"==typeof n?Array.isArray(n)?function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);var t=a;a+=l;for(var n,r=[],i=0;i<e.length;i++){var s=d(String(i),e);r.push(void 0!==s?s:"null")}if(0===r.length)n="[]";else if(""===l)n="["+r.join(",")+"]";else{var u=",\n"+a,c=r.join(u);n="[\n"+a+c+",\n"+t+"]"}return o.pop(),a=t,n}(n):function(e){if(o.indexOf(e)>=0)throw TypeError("Converting circular structure to JSON5");o.push(e);var t=a;a+=l;for(var n,i,s=[],u=0,c=r||Object.keys(e);u<c.length;u+=1){var h=c[u],f=d(h,e);if(void 0!==f){var p=m(h)+":";""!==l&&(p+=" "),p+=f,s.push(p)}}if(0===s.length)n="{}";else if(""===l)n="{"+(i=s.join(","))+"}";else{var g=",\n"+a;i=s.join(g),n="{\n"+a+i+",\n"+t+"}"}return o.pop(),a=t,n}(n):void 0}function p(e){for(var t={"'":.1,'"':.2},n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},r="",i=0;i<e.length;i++){var o=e[i];switch(o){case"'":case'"':t[o]++,r+=o;continue;case"\0":if(K.isDigit(e[i+1])){r+="\\x00";continue}}if(n[o])r+=n[o];else if(o<" "){var a=o.charCodeAt(0).toString(16);r+="\\x"+("00"+a).substring(a.length)}else r+=o}var l=s||Object.keys(t).reduce((function(e,n){return t[e]<t[n]?e:n}));return l+(r=r.replace(new RegExp(l,"g"),n[l]))+l}function m(e){if(0===e.length)return p(e);var t=String.fromCodePoint(e.codePointAt(0));if(!K.isIdStartChar(t))return p(e);for(var n=t.length;n<e.length;n++)if(!K.isIdContinueChar(String.fromCodePoint(e.codePointAt(n))))return p(e);return e}}}}()},63662:function(e){var t;t=function(){function e(t,n,r){return this.id=++e.highestId,this.name=t,this.symbols=n,this.postprocess=r,this}function t(e,t,n,r){this.rule=e,this.dot=t,this.reference=n,this.data=[],this.wantedBy=r,this.isComplete=this.dot===e.symbols.length}function n(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function r(e,t){this.rules=e,this.start=t||this.rules[0].name;var n=this.byName={};this.rules.forEach((function(e){n.hasOwnProperty(e.name)||(n[e.name]=[]),n[e.name].push(e)}))}function i(){this.reset("")}function s(e,t,s){if(e instanceof r){var o=e;s=t}else o=r.fromCompiled(e,t);for(var a in this.grammar=o,this.options={keepHistory:!1,lexer:o.lexer||new i},s||{})this.options[a]=s[a];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new n(o,0);this.table=[l],l.wants[o.start]=[],l.predict(o.start),l.process(),this.current=0}function o(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";throw new Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(o).join(" "):this.symbols.slice(0,e).map(o).join(" ")+" ● "+this.symbols.slice(e).map(o).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var n=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return n.left=this,n.right=e,n.isComplete&&(n.data=n.build(),n.right=void 0),n},t.prototype.build=function(){var e=[],t=this;do{e.push(t.right.data),t=t.left}while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,s.fail))},n.prototype.process=function(e){for(var t=this.states,n=this.wants,r=this.completed,i=0;i<t.length;i++){var o=t[i];if(o.isComplete){if(o.finish(),o.data!==s.fail){for(var a=o.wantedBy,l=a.length;l--;){var u=a[l];this.complete(u,o)}if(o.reference===this.index){var c=o.rule.name;(this.completed[c]=this.completed[c]||[]).push(o)}}}else{if("string"!=typeof(c=o.rule.symbols[o.dot])){this.scannable.push(o);continue}if(n[c]){if(n[c].push(o),r.hasOwnProperty(c)){var h=r[c];for(l=0;l<h.length;l++){var f=h[l];this.complete(o,f)}}}else n[c]=[o],this.predict(c)}}},n.prototype.predict=function(e){for(var n=this.grammar.byName[e]||[],r=0;r<n.length;r++){var i=n[r],s=this.wants[e],o=new t(i,0,this.index,s);this.states.push(o)}},n.prototype.complete=function(e,t){var n=e.nextState(t);this.states.push(n)},r.fromCompiled=function(t,n){var i=t.Lexer;t.ParserStart&&(n=t.ParserStart,t=t.ParserRules);var s=new r(t=t.map((function(t){return new e(t.name,t.symbols,t.postprocess)})),n);return s.lexer=i,s},i.prototype.reset=function(e,t){this.buffer=e,this.index=0,this.line=t?t.line:1,this.lastLineBreak=t?-t.col:0},i.prototype.next=function(){if(this.index<this.buffer.length){var e=this.buffer[this.index++];return"\n"===e&&(this.line+=1,this.lastLineBreak=this.index),{value:e}}},i.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},i.prototype.formatError=function(e,t){var n=this.buffer;if("string"==typeof n){var r=n.split("\n").slice(Math.max(0,this.line-5),this.line),i=n.indexOf("\n",this.index);-1===i&&(i=n.length);var s=this.index-this.lastLineBreak,o=String(this.line).length;return t+=" at line "+this.line+" col "+s+":\n\n",(t+=r.map((function(e,t){return a(this.line-r.length+t+1,o)+" "+e}),this).join("\n"))+"\n"+a("",o+s)+"^\n"}return t+" at index "+(this.index-1);function a(e,t){var n=String(e);return Array(t-n.length+1).join(" ")+n}},s.fail={},s.prototype.feed=function(e){var t,r=this.lexer;for(r.reset(e,this.lexerState);;){try{if(!(t=r.next()))break}catch(e){var s=new n(this.grammar,this.current+1);throw this.table.push(s),(l=new Error(this.reportLexerError(e))).offset=this.current,l.token=e.token,l}var o=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var a=this.current+1;s=new n(this.grammar,a),this.table.push(s);for(var l,u=void 0!==t.text?t.text:t.value,c=r.constructor===i?t.value:t,h=o.scannable,f=h.length;f--;){var d=h[f],p=d.rule.symbols[d.dot];if(p.test?p.test(c):p.type?p.type===t.type:p.literal===u){var m=d.nextState({data:c,token:t,isToken:!0,reference:a-1});s.states.push(m)}}if(s.process(),0===s.states.length)throw(l=new Error(this.reportError(t))).offset=this.current,l.token=t,l;this.options.keepHistory&&(o.lexerState=r.save()),this.current++}return o&&(this.lexerState=r.save()),this.results=this.finish(),this},s.prototype.reportLexerError=function(e){var t,n,r=e.token;return r?(t="input "+JSON.stringify(r.text[0])+" (lexer error)",n=this.lexer.formatError(r,"Syntax error")):(t="input (lexer error)",n=e.message),this.reportErrorCommon(n,t)},s.prototype.reportError=function(e){var t=(e.type?e.type+" token: ":"")+JSON.stringify(void 0!==e.value?e.value:e),n=this.lexer.formatError(e,"Syntax error");return this.reportErrorCommon(n,t)},s.prototype.reportErrorCommon=function(e,t){var n=[];n.push(e);var r=this.table.length-2,i=this.table[r],s=i.states.filter((function(e){var t=e.rule.symbols[e.dot];return t&&"string"!=typeof t}));return 0===s.length?(n.push("Unexpected "+t+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(i.states,n)):(n.push("Unexpected "+t+". Instead, I was expecting to see one of the following:\n"),s.map((function(e){return this.buildFirstStateStack(e,[])||[e]}),this).forEach((function(e){var t=e[0],r=t.rule.symbols[t.dot],i=this.getSymbolDisplay(r);n.push("A "+i+" based on:"),this.displayStateStack(e,n)}),this)),n.push(""),n.join("\n")},s.prototype.displayStateStack=function(e,t){for(var n,r=0,i=0;i<e.length;i++){var s=e[i],o=s.rule.toString(s.dot);o===n?r++:(r>0&&t.push(" ^ "+r+" more lines identical to this"),r=0,t.push(" "+o)),n=o}},s.prototype.getSymbolDisplay=function(e){return function(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);throw new Error("Unknown symbol type: "+e)}}(e)},s.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var n=e.wantedBy[0],r=[e].concat(t),i=this.buildFirstStateStack(n,r);return null===i?null:[e].concat(i)},s.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},s.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},s.prototype.rewind=function(e){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},s.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(n){n.rule.name===t&&n.dot===n.rule.symbols.length&&0===n.reference&&n.data!==s.fail&&e.push(n)})),e.map((function(e){return e.data}))},{Parser:s,Grammar:r,Rule:e}},e.exports?e.exports=t():this.nearley=t()},38931:(e,t)=>{"use strict";function n(e){return e[0]}Object.defineProperty(t,"__esModule",{value:!0});const r=e=>[].concat(...e.map((e=>Array.isArray(e)?r(e):e)));function i(e){return e?Array.isArray(e)?r(e).join(""):e:""}const s={Lexer:void 0,ParserRules:[{name:"Reverse_path",symbols:["Path"]},{name:"Reverse_path$string$1",symbols:[{literal:"<"},{literal:">"}],postprocess:e=>e.join("")},{name:"Reverse_path",symbols:["Reverse_path$string$1"]},{name:"Forward_path$subexpression$1$subexpression$1",symbols:[{literal:"<"},/[pP]/,/[oO]/,/[sS]/,/[tT]/,/[mM]/,/[aA]/,/[sS]/,/[tT]/,/[eE]/,/[rR]/,{literal:"@"}],postprocess:function(e){return e.join("")}},{name:"Forward_path$subexpression$1",symbols:["Forward_path$subexpression$1$subexpression$1","Domain",{literal:">"}]},{name:"Forward_path",symbols:["Forward_path$subexpression$1"]},{name:"Forward_path$subexpression$2",symbols:[{literal:"<"},/[pP]/,/[oO]/,/[sS]/,/[tT]/,/[mM]/,/[aA]/,/[sS]/,/[tT]/,/[eE]/,/[rR]/,{literal:">"}],postprocess:function(e){return e.join("")}},{name:"Forward_path",symbols:["Forward_path$subexpression$2"]},{name:"Forward_path",symbols:["Path"]},{name:"Path$ebnf$1$subexpression$1",symbols:["A_d_l",{literal:":"}]},{name:"Path$ebnf$1",symbols:["Path$ebnf$1$subexpression$1"],postprocess:n},{name:"Path$ebnf$1",symbols:[],postprocess:()=>null},{name:"Path",symbols:[{literal:"<"},"Path$ebnf$1","Mailbox",{literal:">"}]},{name:"A_d_l$ebnf$1",symbols:[]},{name:"A_d_l$ebnf$1$subexpression$1",symbols:[{literal:","},"At_domain"]},{name:"A_d_l$ebnf$1",symbols:["A_d_l$ebnf$1","A_d_l$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"A_d_l",symbols:["At_domain","A_d_l$ebnf$1"]},{name:"At_domain",symbols:[{literal:"@"},"Domain"]},{name:"Domain$ebnf$1",symbols:[]},{name:"Domain$ebnf$1$subexpression$1",symbols:[{literal:"."},"sub_domain"]},{name:"Domain$ebnf$1",symbols:["Domain$ebnf$1","Domain$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"Domain",symbols:["sub_domain","Domain$ebnf$1"]},{name:"sub_domain",symbols:["U_label"]},{name:"Let_dig",symbols:["ALPHA_DIGIT"],postprocess:n},{name:"Ldh_str$ebnf$1",symbols:[]},{name:"Ldh_str$ebnf$1",symbols:["Ldh_str$ebnf$1","ALPHA_DIG_DASH"],postprocess:e=>e[0].concat([e[1]])},{name:"Ldh_str",symbols:["Ldh_str$ebnf$1","Let_dig"]},{name:"U_Let_dig",symbols:["ALPHA_DIGIT_U"],postprocess:n},{name:"U_Ldh_str$ebnf$1",symbols:[]},{name:"U_Ldh_str$ebnf$1",symbols:["U_Ldh_str$ebnf$1","ALPHA_DIG_DASH_U"],postprocess:e=>e[0].concat([e[1]])},{name:"U_Ldh_str",symbols:["U_Ldh_str$ebnf$1","U_Let_dig"]},{name:"U_label$ebnf$1$subexpression$1",symbols:["U_Ldh_str"]},{name:"U_label$ebnf$1",symbols:["U_label$ebnf$1$subexpression$1"],postprocess:n},{name:"U_label$ebnf$1",symbols:[],postprocess:()=>null},{name:"U_label",symbols:["U_Let_dig","U_label$ebnf$1"]},{name:"address_literal$subexpression$1",symbols:["IPv4_address_literal"]},{name:"address_literal$subexpression$1",symbols:["IPv6_address_literal"]},{name:"address_literal$subexpression$1",symbols:["General_address_literal"]},{name:"address_literal",symbols:[{literal:"["},"address_literal$subexpression$1",{literal:"]"}]},{name:"non_local_part",symbols:["Domain"],postprocess:function(e){return{DomainName:i(e[0])}}},{name:"non_local_part",symbols:["address_literal"],postprocess:function(e){return{AddressLiteral:i(e[0])}}},{name:"Mailbox",symbols:["Local_part",{literal:"@"},"non_local_part"],postprocess:function(e){return{localPart:i(e[0]),domainPart:i(e[2])}}},{name:"Local_part",symbols:["Dot_string"],postprocess:function(e){return{DotString:i(e[0])}}},{name:"Local_part",symbols:["Quoted_string"],postprocess:function(e){return{QuotedString:i(e[0])}}},{name:"Dot_string$ebnf$1",symbols:[]},{name:"Dot_string$ebnf$1$subexpression$1",symbols:[{literal:"."},"Atom"]},{name:"Dot_string$ebnf$1",symbols:["Dot_string$ebnf$1","Dot_string$ebnf$1$subexpression$1"],postprocess:e=>e[0].concat([e[1]])},{name:"Dot_string",symbols:["Atom","Dot_string$ebnf$1"]},{name:"Atom$ebnf$1",symbols:[/[0-9A-Za-z!#$%&'*+\-/=?^_`{|}~\u0080-\uFFFF/]/]},{name:"Atom$ebnf$1",symbols:["Atom$ebnf$1",/[0-9A-Za-z!#$%&'*+\-/=?^_`{|}~\u0080-\uFFFF/]/],postprocess:e=>e[0].concat([e[1]])},{name:"Atom",symbols:["Atom$ebnf$1"]},{name:"Quoted_string$ebnf$1",symbols:[]},{name:"Quoted_string$ebnf$1",symbols:["Quoted_string$ebnf$1","QcontentSMTP"],postprocess:e=>e[0].concat([e[1]])},{name:"Quoted_string",symbols:["DQUOTE","Quoted_string$ebnf$1","DQUOTE"]},{name:"QcontentSMTP",symbols:["qtextSMTP"]},{name:"QcontentSMTP",symbols:["quoted_pairSMTP"]},{name:"quoted_pairSMTP",symbols:[{literal:"\\"},/[\x20-\x7e]/]},{name:"qtextSMTP",symbols:[/[\x20-\x21\x23-\x5b\x5d-\x7e\u0080-\uFFFF]/],postprocess:n},{name:"IPv4_address_literal$macrocall$2",symbols:[{literal:"."},"Snum"]},{name:"IPv4_address_literal$macrocall$1",symbols:["IPv4_address_literal$macrocall$2","IPv4_address_literal$macrocall$2","IPv4_address_literal$macrocall$2"]},{name:"IPv4_address_literal",symbols:["Snum","IPv4_address_literal$macrocall$1"]},{name:"IPv6_address_literal$subexpression$1",symbols:[/[iI]/,/[pP]/,/[vV]/,{literal:"6"},{literal:":"}],postprocess:function(e){return e.join("")}},{name:"IPv6_address_literal",symbols:["IPv6_address_literal$subexpression$1","IPv6_addr"]},{name:"General_address_literal$ebnf$1",symbols:["dcontent"]},{name:"General_address_literal$ebnf$1",symbols:["General_address_literal$ebnf$1","dcontent"],postprocess:e=>e[0].concat([e[1]])},{name:"General_address_literal",symbols:["Standardized_tag",{literal:":"},"General_address_literal$ebnf$1"]},{name:"Standardized_tag",symbols:["Ldh_str"]},{name:"dcontent",symbols:[/[\x21-\x5a\x5e-\x7e]/],postprocess:n},{name:"Snum",symbols:["DIGIT"]},{name:"Snum$subexpression$1",symbols:[/[1-9]/,"DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$1"]},{name:"Snum$subexpression$2",symbols:[{literal:"1"},"DIGIT","DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$2"]},{name:"Snum$subexpression$3",symbols:[{literal:"2"},/[0-4]/,"DIGIT"]},{name:"Snum",symbols:["Snum$subexpression$3"]},{name:"Snum$subexpression$4",symbols:[{literal:"2"},{literal:"5"},/[0-5]/]},{name:"Snum",symbols:["Snum$subexpression$4"]},{name:"IPv6_addr",symbols:["IPv6_full"]},{name:"IPv6_addr",symbols:["IPv6_comp"]},{name:"IPv6_addr",symbols:["IPv6v4_full"]},{name:"IPv6_addr",symbols:["IPv6v4_comp"]},{name:"IPv6_hex",symbols:["HEXDIG"]},{name:"IPv6_hex$subexpression$1",symbols:["HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$1"]},{name:"IPv6_hex$subexpression$2",symbols:["HEXDIG","HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$2"]},{name:"IPv6_hex$subexpression$3",symbols:["HEXDIG","HEXDIG","HEXDIG","HEXDIG"]},{name:"IPv6_hex",symbols:["IPv6_hex$subexpression$3"]},{name:"IPv6_full$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_full$macrocall$1",symbols:["IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2","IPv6_full$macrocall$2"]},{name:"IPv6_full",symbols:["IPv6_hex","IPv6_full$macrocall$1"]},{name:"IPv6_comp$ebnf$1$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_comp$ebnf$1$subexpression$1$macrocall$1",symbols:["IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2","IPv6_comp$ebnf$1$subexpression$1$macrocall$2"]},{name:"IPv6_comp$ebnf$1$subexpression$1",symbols:["IPv6_hex","IPv6_comp$ebnf$1$subexpression$1$macrocall$1"]},{name:"IPv6_comp$ebnf$1",symbols:["IPv6_comp$ebnf$1$subexpression$1"],postprocess:n},{name:"IPv6_comp$ebnf$1",symbols:[],postprocess:()=>null},{name:"IPv6_comp$string$1",symbols:[{literal:":"},{literal:":"}],postprocess:e=>e.join("")},{name:"IPv6_comp$ebnf$2$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6_comp$ebnf$2$subexpression$1$macrocall$1",symbols:["IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2","IPv6_comp$ebnf$2$subexpression$1$macrocall$2"]},{name:"IPv6_comp$ebnf$2$subexpression$1",symbols:["IPv6_hex","IPv6_comp$ebnf$2$subexpression$1$macrocall$1"]},{name:"IPv6_comp$ebnf$2",symbols:["IPv6_comp$ebnf$2$subexpression$1"],postprocess:n},{name:"IPv6_comp$ebnf$2",symbols:[],postprocess:()=>null},{name:"IPv6_comp",symbols:["IPv6_comp$ebnf$1","IPv6_comp$string$1","IPv6_comp$ebnf$2"]},{name:"IPv6v4_full$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_full$macrocall$1",symbols:["IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2","IPv6v4_full$macrocall$2"]},{name:"IPv6v4_full",symbols:["IPv6_hex","IPv6v4_full$macrocall$1",{literal:":"},"IPv4_address_literal"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1$macrocall$1",symbols:["IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$2"]},{name:"IPv6v4_comp$ebnf$1$subexpression$1",symbols:["IPv6_hex","IPv6v4_comp$ebnf$1$subexpression$1$macrocall$1"]},{name:"IPv6v4_comp$ebnf$1",symbols:["IPv6v4_comp$ebnf$1$subexpression$1"],postprocess:n},{name:"IPv6v4_comp$ebnf$1",symbols:[],postprocess:()=>null},{name:"IPv6v4_comp$string$1",symbols:[{literal:":"},{literal:":"}],postprocess:e=>e.join("")},{name:"IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2",symbols:[{literal:":"},"IPv6_hex"]},{name:"IPv6v4_comp$ebnf$2$subexpression$1$macrocall$1",symbols:["IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$2"]},{name:"IPv6v4_comp$ebnf$2$subexpression$1",symbols:["IPv6_hex","IPv6v4_comp$ebnf$2$subexpression$1$macrocall$1",{literal:":"}]},{name:"IPv6v4_comp$ebnf$2",symbols:["IPv6v4_comp$ebnf$2$subexpression$1"],postprocess:n},{name:"IPv6v4_comp$ebnf$2",symbols:[],postprocess:()=>null},{name:"IPv6v4_comp",symbols:["IPv6v4_comp$ebnf$1","IPv6v4_comp$string$1","IPv6v4_comp$ebnf$2","IPv4_address_literal"]},{name:"DIGIT",symbols:[/[0-9]/],postprocess:n},{name:"ALPHA_DIGIT_U",symbols:[/[0-9A-Za-z\u0080-\uFFFF]/],postprocess:n},{name:"ALPHA_DIGIT",symbols:[/[0-9A-Za-z]/],postprocess:n},{name:"ALPHA_DIG_DASH",symbols:[/[-0-9A-Za-z]/],postprocess:n},{name:"ALPHA_DIG_DASH_U",symbols:[/[-0-9A-Za-z\u0080-\uFFFF]/],postprocess:n},{name:"HEXDIG",symbols:[/[0-9A-Fa-f]/],postprocess:n},{name:"DQUOTE",symbols:[{literal:'"'}],postprocess:n}],ParserStart:"Reverse_path"};t.default=s},85626:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.canonicalize=t.canonicalize_quoted_string=t.normalize=t.normalize_dot_string=t.parse=void 0;const i=n(63662),s=r(n(38931));s.default.ParserStart="Mailbox";const o=i.Grammar.fromCompiled(s.default);function a(e){const t=new i.Parser(o);if(t.feed(e),1!==t.results.length)throw new Error("address parsing failed: ambiguous grammar");return t.results[0]}function l(e){return function(){const t=e.indexOf("+");return-1===t?e:e.substr(0,t)}().replace(/\./g,"").toLowerCase()}function u(e){return`"${e.substr(1).substr(0,e.length-2).replace(/(?:\\(.))/g,"$1").replace(/(?:(["\\]))/g,"\\$1")}"`}t.parse=a,t.normalize_dot_string=l,t.normalize=function(e){var t,n;const r=a(e),i=null!==(t=r.domainPart.AddressLiteral)&&void 0!==t?t:r.domainPart.DomainName.toLowerCase();return`${null!==(n=r.localPart.QuotedString)&&void 0!==n?n:l(r.localPart.DotString)}@${i}`},t.canonicalize_quoted_string=u,t.canonicalize=function(e){var t;const n=a(e),r=null!==(t=n.domainPart.AddressLiteral)&&void 0!==t?t:n.domainPart.DomainName.toLowerCase();return`${n.localPart.QuotedString?u(n.localPart.QuotedString):n.localPart.DotString}@${r}`}},47112:(e,t,n)=>{!function(e){"use strict";e.exports.is_uri=n,e.exports.is_http_uri=r,e.exports.is_https_uri=i,e.exports.is_web_uri=s,e.exports.isUri=n,e.exports.isHttpUri=r,e.exports.isHttpsUri=i,e.exports.isWebUri=s;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function n(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var n,r,i,s,o,a="",l="";if(a=(n=t(e))[1],r=n[2],i=n[3],s=n[4],o=n[5],a&&a.length&&i.length>=0){if(r&&r.length){if(0!==i.length&&!/^\//.test(i))return}else if(/^\/\//.test(i))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return l+=a+":",r&&r.length&&(l+="//"+r),l+=i,s&&s.length&&(l+="?"+s),o&&o.length&&(l+="#"+o),l}}}function r(e,r){if(n(e)){var i,s,o,a,l="",u="",c="",h="";if(l=(i=t(e))[1],u=i[2],s=i[3],o=i[4],a=i[5],l){if(r){if("https"!=l.toLowerCase())return}else if("http"!=l.toLowerCase())return;if(u)return/:(\d+)$/.test(u)&&(c=u.match(/:(\d+)$/)[0],u=u.replace(/:\d+$/,"")),h+=l+":",h+="//"+u,c&&(h+=c),h+=s,o&&o.length&&(h+="?"+o),a&&a.length&&(h+="#"+a),h}}}function i(e){return r(e,!0)}function s(e){return r(e)||i(e)}}(e=n.nmd(e))},77213:(e,t,n)=>{"use strict";n.d(t,{Bc:()=>ye,Gw:()=>se,OO:()=>Ce,wm:()=>he,yU:()=>xe});var r=n(14830),i=n(83173),s=n(29587);class o{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,s.mv)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(c(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function a(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class l{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function u(e){return e.selection.main.from}function c(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],s="$"!=r[r.length-1];return i||s?new RegExp(`${i?"^":""}(?:${r})${s?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const h=r.YH.define(),f=new WeakMap;function d(e){if(!Array.isArray(e))return e;let t=f.get(e);return t||f.set(e,t=function(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=a(t)+a(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}(e)),t}const p=r.Pe.define(),m=r.Pe.define();class g{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=(0,r.vS)(e,t),i=(0,r.Fh)(n);this.chars.push(n);let s=e.slice(t,t+i),o=s.toUpperCase();this.folded.push((0,r.vS)(o==s?s.toLowerCase():o,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:s,byWord:o}=this;if(1==t.length){let i=(0,r.vS)(e,0),s=(0,r.Fh)(i),o=s==e.length?0:-100;if(i==t[0]);else{if(i!=n[0])return null;o+=-200}return this.ret(o,[0,s])}let a=e.indexOf(this.pattern);if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,u=0;if(a<0){for(let s=0,o=Math.min(e.length,200);s<o&&u<l;){let o=(0,r.vS)(e,s);o!=t[u]&&o!=n[u]||(i[u++]=s),s+=(0,r.Fh)(o)}if(u<l)return null}let c=0,h=0,f=!1,d=0,p=-1,m=-1,g=/[a-z]/.test(e),y=!0;for(let i=0,u=Math.min(e.length,200),v=0;i<u&&h<l;){let u=(0,r.vS)(e,i);a<0&&(c<l&&u==t[c]&&(s[c++]=i),d<l&&(u==t[d]||u==n[d]?(0==d&&(p=i),m=i+1,d++):d=0));let b,w=u<255?u>=48&&u<=57||u>=97&&u<=122?2:u>=65&&u<=90?1:0:(b=(0,r.MK)(u))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!i||1==w&&g||0==v&&0!=w)&&(t[h]==u||n[h]==u&&(f=!0)?o[h++]=i:o.length&&(y=!1)),v=w,i+=(0,r.Fh)(u)}return h==l&&0==o[0]&&y?this.result((f?-200:0)-100,o,e):d==l&&0==p?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):d==l?this.ret(-900-e.length,[p,m]):h==l?this.result((f?-200:0)-100-700+(y?0:-1100),o,e):2==t.length?null:this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[],s=0;for(let e of t){let t=e+(this.astral?(0,r.Fh)((0,r.vS)(n,e)):1);s&&i[s-1]==e?i[s-1]=t:(i[s++]=e,i[s++]=t)}return this.ret(e-n.length,i)}}class y{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}const v=r.sj.define({combine:e=>(0,r.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:w,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>b(e(n),t(n)),optionClass:(e,t)=>n=>b(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function b(e,t){return e?t?e+" "+t:e:t}function w(e,t,n,r,s,o){let a,l,u=e.textDirection==i.OP.RTL,c=u,h=!1,f="top",d=t.left-s.left,p=s.right-t.right,m=r.right-r.left,g=r.bottom-r.top;if(c&&d<Math.min(m,p)?c=!1:!c&&p<Math.min(m,d)&&(c=!0),m<=(c?d:p))a=Math.max(s.top,Math.min(n.top,s.bottom-g))-t.top,l=Math.min(400,c?d:p);else{h=!0,l=Math.min(400,(u?t.right:s.right-t.left)-30);let e=s.bottom-t.bottom;e>=g||e>t.top?a=n.bottom-t.top:(f="bottom",a=t.bottom-n.top)}return{style:`${f}: ${a/((t.bottom-t.top)/o.offsetHeight)}px; max-width: ${l/((t.right-t.left)/o.offsetWidth)}px`,class:"cm-completionInfo-"+(h?u?"left-narrow":"right-narrow":c?"left":"right")}}function D(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class k{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:s}=r.open,o=e.state.facet(v);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let s=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(s.slice(o,t)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(s.slice(t,n))),a.className="cm-completionMatchedText",o=n}return o<s.length&&i.appendChild(document.createTextNode(s.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=D(i.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:r}=e.state.field(t).open;for(let t,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]<r.length)return this.applyCompletion(e,r[+t[1]]),void n.preventDefault()})),this.dom.addEventListener("focusout",(t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(v).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:m.of(null)})})),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:s,disabled:o}=n.open;r.open&&r.open.options==i||(this.range=D(i.length,s,e.state.facet(v).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),o!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=D(t.options.length,t.selected,this.view.state.facet(v).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let s="string"==typeof r?document.createTextNode(r):r(n);if(!s)return;"then"in s?s.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>(0,i.c_)(this.view.state,e,"completion info"))):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(v).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));let i=null;for(let s=n.from;s<n.to;s++){let{completion:o,match:a}=e[s],{section:l}=o;if(l){let e="string"==typeof l?l:l.name;e!=i&&(s>n.from||0==n.from)&&(i=e,"string"!=typeof l&&l.header?r.appendChild(l.header(l)):r.appendChild(document.createElement("completion-section")).textContent=e)}const u=r.appendChild(document.createElement("li"));u.id=t+"-"+s,u.setAttribute("role","option");let c=this.optionClass(o);c&&(u.className=c);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,a);t&&u.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function A(e,t){return n=>new k(n,e,t)}function E(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class x{constructor(e,t,n,r,i,s){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=s}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new x(this.options,O(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i){let s=function(e,t){let n=[],r=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}},s=t.facet(v);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(!1===r.result.filter)for(let t of r.result.options)i(new l(t,r.source,e?e(t):[],1e9-n.length));else{let n,o=t.sliceDoc(r.from,r.to),a=s.filterStrict?new y(o):new g(o);for(let t of r.result.options)if(n=a.match(t.label)){let s=t.displayLabel?e?e(t,n.matched):[]:n.matched;i(new l(t,r.source,s,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,i=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.name<t.name?-1:1)};for(let n of r.sort(i))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e["string"==typeof n?n:n.name])}}let o=[],a=null,u=s.compareCompletions;for(let e of n.sort(((e,t)=>t.score-e.score||u(e.completion,t.completion)))){let t=e.completion;!a||a.label!=t.label||a.detail!=t.detail||null!=a.type&&null!=t.type&&a.type!=t.type||a.apply!=t.apply||a.boost!=t.boost?o.push(e):E(e.completion)>E(a)&&(o[o.length-1]=e),a=e.completion}return o}(e,t);if(!s.length)return r&&e.some((e=>1==e.state))?new x(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let o=t.facet(v).selectOnOpen?0:-1;if(r&&r.selected!=o&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){o=t;break}}return new x(s,O(n,o),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:N,above:i.aboveCursor},r?r.timestamp:Date.now(),o,!1)}map(e){return new x(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class C{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new C(F,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(v),r=(n.override||t.languageDataAt("autocomplete",u(t)).map(d)).map((t=>(this.active.find((e=>e.source==t))||new T(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;let i=n==e.length,s=r==t.length;if(i||s)return i==s;if(e[n++].result!=t[r++].result)return!1}}(r,this.active)?i=x.build(r,t,this.id,i,n):i&&i.disabled&&!r.some((e=>1==e.state))&&(i=null),!i&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new T(e.source,0):e)));for(let t of e.effects)t.is(I)&&(i=i&&i.setSelected(t.value,this.id));return r==this.active&&i==this.open?this:new C(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:S}}const S={"aria-autocomplete":"list"};function O(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const F=[];function _(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(h);if(n&&t.activateOnCompletion(n))return"input"}return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class T{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=_(e,t),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new T(r.source,0));for(let t of e.effects)if(t.is(p))r=new T(r.source,1,t.value?u(e.state):-1);else if(t.is(m))r=new T(r.source,0);else if(t.is(P))for(let e of t.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new T(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(u(e.startState))?new T(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new T(this.source,this.state,e.mapPos(this.explicitPos))}}class B extends T{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let s=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),l=u(e.state);if((this.explicitPos<0?l<=s:l<this.from)||l>a||!i||"delete"==t&&u(e.startState)==this.from)return new T(this.source,"input"==t&&n.activateOnTyping?1:0);let h=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):c(e,!0).test(i)}(i.validFor,e.state,s,a)?new B(this.source,h,i,s,a):i.update&&(i=i.update(i,s,a,new o(e.state,l,h>=0)))?new B(this.source,h,i,i.from,null!==(r=i.to)&&void 0!==r?r:u(e.state)):new T(this.source,1,h)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new T(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new B(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new T(this.source,0)}}const P=r.Pe.define({map:(e,t)=>e.map((e=>e.map(t)))}),I=r.Pe.define(),M=r.sU.define({create:()=>C.start(),update:(e,t)=>e.update(t),provide:e=>[i.DK.from(e,(e=>e.tooltip)),i.Lz.contentAttributes.from(e,(e=>e.attrs))]});function $(e,t){const n=t.completion.apply||t.completion.label;let i=e.state.field(M).active.find((e=>e.source==t.source));return i instanceof B&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:s}=e.selection,o=n-s.from,a=i-s.from;return Object.assign(Object.assign({},e.changeByRange((l=>l!=s&&n!=i&&e.sliceDoc(l.from+o,l.from+a)!=e.sliceDoc(n,i)?{range:l}:{changes:{from:l.from+o,to:i==s.from?l.to:l.from+a,insert:t},range:r.OF.cursor(l.from+o+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:h.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}const N=A(M,$);function L(e,t="option"){return n=>{let r=n.state.field(M,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(v).interactionDelay)return!1;let s,o=1;"page"==t&&(s=(0,i.Eg)(n,r.open.tooltip))&&(o=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,l=r.open.selected>-1?r.open.selected+o*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),n.dispatch({effects:I.of(l)}),!0}}class R{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const j=i.Z9.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(M).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(M),n=e.state.facet(v);if(!e.selectionSet&&!e.docChanged&&e.startState.field(M)==t)return;let r=e.transactions.some((e=>(e.selection||e.docChanged)&&!_(e,n)));for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.updates.length+e.transactions.length>50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){(0,i.c_)(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some((e=>e.effects.some((e=>e.is(p)))))&&(this.pendingStart=!0);let s=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),s):-1,0!=this.composing)for(let t of e.transactions)"input"==_(t,n)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(M);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,n=u(t),r=new o(t,n,e.explicitPos==n),s=new R(e,r);this.running.push(s),Promise.resolve(e.source(r)).then((e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:m.of(null)}),(0,i.c_)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(v).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(v);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(void 0===i.done)continue;if(this.running.splice(r--,1),i.done){let r=new B(i.active.source,i.active.explicitPos,i.done,i.done.from,null!==(e=i.done.to)&&void 0!==e?e:u(i.updates.length?i.updates[0].startState:this.view.state));for(let e of i.updates)r=r.update(e,n);if(r.hasResult()){t.push(r);continue}}let s=this.view.state.field(M).active.find((e=>e.source==i.active.source));if(s&&1==s.state)if(null==i.done){let e=new T(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(s)}t.length&&this.view.dispatch({effects:P.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(M,!1);if(t&&t.tooltip&&this.view.state.facet(v).closeOnBlur){let n=t.open&&(0,i.Eg)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:m.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:p.of(!1)})),20),this.composing=0}}}),q="object"==typeof navigator&&/Win/.test(navigator.platform),V=r.Nb.highest(i.Lz.domEventHandlers({keydown(e,t){let n=t.state.field(M,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!q||!e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find((e=>e.source==r.source)),s=r.completion.commitCharacters||i.result.commitCharacters;return s&&s.indexOf(e.key)>-1&&$(t,r),!1}})),z=i.Lz.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class U{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class H{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.iR.TrackDel),n=e.mapPos(this.to,1,r.iR.TrackDel);return null==t||null==n?null:new H(this.field,t,n)}}class W{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),o=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=o,a=/^\t*/.exec(i)[0].length;for(let t=0;t<a;t++)n+=e.facet(s.Xt);r.push(t+n.length-a),i=n+i.slice(a)}n.push(i),t+=i.length+1}let a=this.fieldPositions.map((e=>new H(e.field,r[e.line]+e.from,r[e.line]+e.to)));return{text:n,ranges:a}}static parse(e){let t,n=[],r=[],i=[];for(let s of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let e=t[1]?+t[1]:null,o=t[2]||t[3]||"",a=-1;for(let t=0;t<n.length;t++)(null!=e?n[t].seq==e:o&&n[t].name==o)&&(a=t);if(a<0){let t=0;for(;t<n.length&&(null==e||null!=n[t].seq&&n[t].seq<e);)t++;n.splice(t,0,{seq:e,name:o}),a=t;for(let e of i)e.field>=a&&e.field++}i.push(new U(a,r.length,t.index,t.index+o.length)),s=s.slice(0,t.index)+o+s.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(s);){s=s.slice(0,e.index)+e[1]+s.slice(e.index+e[0].length);for(let t of i)t.line==r.length&&t.from>e.index&&(t.from--,t.to--)}r.push(s)}return new W(r,i)}}let K=i.NZ.widget({widget:new class extends i.xO{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),G=i.NZ.mark({class:"cm-snippetField"});class J{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.NZ.set(e.map((e=>(e.from==e.to?K:G).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new J(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Y=r.Pe.define({map:(e,t)=>e&&e.map(t)}),Z=r.Pe.define(),Q=r.sU.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Y))return n.value;if(n.is(Z)&&e)return new J(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.Lz.decorations.from(e,(e=>e?e.deco:i.NZ.none))});function X(e,t){return r.OF.create(e.filter((e=>e.field==t)).map((e=>r.OF.range(e.from,e.to))))}function ee(e){let t=W.parse(e);return(e,n,i,s)=>{let{text:o,ranges:a}=t.instantiate(e.state,i),l={changes:{from:i,to:s,insert:r.EY.of(o)},scrollIntoView:!0,annotations:n?[h.of(n),r.ZX.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=X(a,0)),a.some((e=>e.field>0))){let t=new J(a,0),n=l.effects=[Y.of(t)];void 0===e.state.field(Q,!1)&&n.push(r.Pe.appendConfig.of([Q,ie,oe,z]))}e.dispatch(e.state.update(l))}}function te(e){return({state:t,dispatch:n})=>{let r=t.field(Q,!1);if(!r||e<0&&0==r.active)return!1;let i=r.active+e,s=e>0&&!r.ranges.some((t=>t.field==i+e));return n(t.update({selection:X(r.ranges,i),effects:Y.of(s?null:new J(r.ranges,i)),scrollIntoView:!0})),!0}}const ne=[{key:"Tab",run:te(1),shift:te(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Q,!1)&&(t(e.update({effects:Y.of(null)})),!0)}],re=r.sj.define({combine:e=>e.length?e[0]:ne}),ie=r.Nb.highest(i.w4.compute([re],(e=>e.facet(re))));function se(e,t){return Object.assign(Object.assign({},t),{apply:ee(e)})}const oe=i.Lz.domEventHandlers({mousedown(e,t){let n,r=t.state.field(Q,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find((e=>e.from<=n&&e.to>=n));return!(!i||i.field==r.active||(t.dispatch({selection:X(r.ranges,i.field),effects:Y.of(r.ranges.some((e=>e.field>i.field))?new J(r.ranges,i.field):null),scrollIntoView:!0}),0))}}),ae={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},le=r.Pe.define({map(e,t){let n=t.mapPos(e,-1,r.iR.TrackAfter);return null==n?void 0:n}}),ue=new class extends r.FB{};ue.startSide=1,ue.endSide=-1;const ce=r.sU.define({create:()=>r.om.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(le)&&(e=e.update({add:[ue.range(n.value,n.value+1)]}));return e}});function he(){return[ge,ce]}const fe="()[]{}<>";function de(e){for(let t=0;t<8;t+=2)if(fe.charCodeAt(t)==e)return fe.charAt(t+1);return(0,r.MK)(e<128?e:e+1)}function pe(e,t){return e.languageDataAt("closeBrackets",t)[0]||ae}const me="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ge=i.Lz.inputHandler.of(((e,t,n,i)=>{if((me?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let s=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.Fh)((0,r.vS)(i,0))||t!=s.from||n!=s.to)return!1;let o=function(e,t){let n=pe(e,e.selection.main.head),i=n.brackets||ae.brackets;for(let s of i){let o=de((0,r.vS)(s,0));if(t==s)return o==s?ke(e,s,i.indexOf(s+s+s)>-1,n):we(e,s,o,n.before||ae.before);if(t==o&&ve(e,e.selection.main.from))return De(e,0,o)}return null}(e.state,i);return!!o&&(e.dispatch(o),!0)})),ye=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=pe(e,e.selection.main.head).brackets||ae.brackets,i=null,s=e.changeByRange((t=>{if(t.empty){let i=function(e,t){let n=e.sliceString(t-2,t);return(0,r.Fh)((0,r.vS)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let s of n)if(s==i&&be(e.doc,t.head)==de((0,r.vS)(s,0)))return{changes:{from:t.head-s.length,to:t.head+s.length},range:r.OF.cursor(t.head-s.length)}}return{range:i=t}}));return i||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function ve(e,t){let n=!1;return e.field(ce).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function be(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,r.Fh)((0,r.vS)(n,0)))}function we(e,t,n,i){let s=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:le.of(o.to+t.length),range:r.OF.range(o.anchor+t.length,o.head+t.length)};let a=be(e.doc,o.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:t+n,from:o.head},effects:le.of(o.head+t.length),range:r.OF.cursor(o.head+t.length)}:{range:s=o}}));return s?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function De(e,t,n){let i=null,s=e.changeByRange((t=>t.empty&&be(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.OF.cursor(t.head+n.length)}:i={range:t}));return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function ke(e,t,n,i){let o=i.stringPrefixes||ae.stringPrefixes,a=null,l=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:le.of(i.to+t.length),range:r.OF.range(i.anchor+t.length,i.head+t.length)};let l,u=i.head,c=be(e.doc,u);if(c==t){if(Ae(e,u))return{changes:{insert:t+t,from:u},effects:le.of(u+t.length),range:r.OF.cursor(u+t.length)};if(ve(e,u)){let i=n&&e.sliceDoc(u,u+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:u,to:u+i.length,insert:i},range:r.OF.cursor(u+i.length)}}}else{if(n&&e.sliceDoc(u-2*t.length,u)==t+t&&(l=Ee(e,u-2*t.length,o))>-1&&Ae(e,l))return{changes:{insert:t+t+t+t,from:u},effects:le.of(u+t.length),range:r.OF.cursor(u+t.length)};if(e.charCategorizer(u)(c)!=r.Je.Word&&Ee(e,u,o)>-1&&!function(e,t,n,r){let i=(0,s.mv)(e).resolveInner(t,-1),o=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let s=0;s<5;s++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),a=s.indexOf(n);if(!a||a>-1&&r.indexOf(s.slice(0,a))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,u,t,o))return{changes:{insert:t+t,from:u},effects:le.of(u+t.length),range:r.OF.cursor(u+t.length)}}return{range:a=i}}));return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Ae(e,t){let n=(0,s.mv)(e).resolveInner(t+1);return n.parent&&n.from==t}function Ee(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.Je.Word)return t;for(let s of n){let n=t-s.length;if(e.sliceDoc(n,t)==s&&i(e.sliceDoc(n-1,n))!=r.Je.Word)return n}return-1}function xe(e={}){return[V,M,v.of(e),j,Se,z]}const Ce=[{key:"Ctrl-Space",run:e=>!!e.state.field(M,!1)&&(e.dispatch({effects:p.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(M,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:m.of(null)}),0))}},{key:"ArrowDown",run:L(!0)},{key:"ArrowUp",run:L(!1)},{key:"PageDown",run:L(!0,"page")},{key:"PageUp",run:L(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(M,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(v).interactionDelay)&&$(e,t.open.options[t.open.selected])}}],Se=r.Nb.highest(i.w4.computeN([v],(e=>e.facet(v).defaultKeymap?[Ce]:[])))},47143:(e,t,n)=>{"use strict";n.d(t,{b6:()=>w,cL:()=>N,pw:()=>Te});var r=n(14830),i=n(83173),s=n(29587),o=n(79066);function a(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}const l=a(p,0),u=a(d,0),c=a(((e,t)=>d(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),s=t.length-1;s>=0&&t[s].to>r.from?t[s].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function h(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const f=50;function d(e,t,n=t.selection.ranges){let r=n.map((e=>h(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,{open:t,close:n},r,i){let s,o,a=e.sliceDoc(r-f,r),l=e.sliceDoc(i,i+f),u=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,h=a.length-u;if(a.slice(h-t.length,h)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=2*f?s=o=e.sliceDoc(r,i):(s=e.sliceDoc(r,r+f),o=e.sliceDoc(i-f,i));let d=/^\s*/.exec(s)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-n.length;return s.slice(d,d+t.length)==t&&o.slice(m,m+n.length)==n?{open:{pos:r+d+t.length,margin:/\s/.test(s.charAt(d+t.length))?1:0},close:{pos:i-p-n.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n<i.length;n++)if(t=i[n]){let i=r[n],{open:s,close:o}=t;e.push({from:s.pos-i.open.length,to:s.pos+s.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function p(e,t,n=t.selection.ranges){let r=[],i=-1;for(let{from:e,to:s}of n){let n=r.length,o=1e9,a=h(t,e).line;if(a){for(let n=e;n<=s;){let l=t.doc.lineAt(n);if(l.from>i&&(e==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+a.length)==a?e:-1;e<l.text.length&&e<o&&(o=e),r.push({line:l,comment:n,token:a,indent:e,empty:t,single:!1})}n=l.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}}if(2!=e&&r.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:i,empty:s,single:o}of r)!o&&s||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,s=r+i.length;" "==t.text[s-t.from]&&s++,e.push({from:r,to:s})}return{changes:e}}return null}const m=r.YH.define(),g=r.YH.define(),y=r.sj.define(),v=r.sj.define({combine:e=>(0,r.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),b=r.sU.define({create:()=>$.empty,update(e,t){let n=t.state.facet(v),i=t.annotation(m);if(i){let r=C.fromTransaction(t,i.selection),s=i.side,o=0==s?e.undone:e.done;return o=r?S(o,o.length,n.minDepth,r):T(o,t.startState.selection),new $(0==s?i.rest:o,0==s?o:i.rest)}let s=t.annotation(g);if("full"!=s&&"before"!=s||(e=e.isolate()),!1===t.annotation(r.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=C.fromTransaction(t),a=t.annotation(r.ZX.time),l=t.annotation(r.ZX.userEvent);return o?e=e.addChanges(o,a,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),"full"!=s&&"after"!=s||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new $(e.done.map(C.fromJSON),e.undone.map(C.fromJSON))});function w(e={}){return[b,v.of(e),i.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?k:"historyRedo"==e.inputType?A:null;return!!n&&(e.preventDefault(),n(t))}})]}function D(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(b,!1);if(!i)return!1;let s=i.pop(e,n,t);return!!s&&(r(s),!0)}}const k=D(0,!1),A=D(1,!1),E=D(0,!0),x=D(1,!0);class C{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new C(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new C(e.changes&&r.VR.fromJSON(e.changes),[],e.mapped&&r.Gu.fromJSON(e.mapped),e.startSelection&&r.OF.fromJSON(e.startSelection),e.selectionsAfter.map(r.OF.fromJSON))}static fromTransaction(e,t){let n=F;for(let t of e.startState.facet(y)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new C(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,F)}static selection(e){return new C(void 0,F,void 0,void 0,e)}}function S(e,t,n,r){let i=t+1>n+20?t-n-1:0,s=e.slice(i,t);return s.push(r),s}function O(e,t){return e.length?t.length?e.concat(t):e:t}const F=[],_=200;function T(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-_));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),S(e,e.length-1,1e9,n.setSelAfter(r)))}return[C.selection([t])]}function B(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function P(e,t){if(!e.length)return e;let n=e.length,r=F;for(;n;){let i=I(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[C.selection(r)]:F}function I(e,t,n){let i=O(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):F,n);if(!e.changes)return C.selection(i);let s=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new C(s,r.Pe.mapEffects(e.effects,t),a,e.startSelection.map(o),i)}const M=/^(input\.type|delete)($|\.)/;class ${constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new $(this.done,this.undone):this}addChanges(e,t,n,r,i){let s=this.done,o=s[s.length-1];return s=o&&o.changes&&!o.changes.empty&&e.changes&&(!n||M.test(n))&&(!o.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(i,function(e,t){let n=[],r=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,i,s)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];s>=t&&i<=o&&(r=!0)}})),r}(o.changes,e.changes))||"input.type.compose"==n)?S(s,s.length-1,r.minDepth,new C(e.changes.compose(o.changes),O(e.effects,o.effects),o.mapped,o.startSelection,F)):S(s,s.length,r.minDepth,e),new $(s,F,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:F;return i.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(s=i[i.length-1],o=e,s.ranges.length==o.ranges.length&&0===s.ranges.filter(((e,t)=>e.empty!=o.ranges[t].empty)).length)?this:new $(T(this.done,e),this.undone,t,n);var s,o}addMapping(e){return new $(P(this.done,e),P(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],s=i.selectionsAfter[0]||t.selection;if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:m.of({side:e,rest:B(r),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?F:r.slice(0,r.length-1);return i.mapped&&(n=P(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:m.of({side:e,rest:n,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}$.empty=new $(F,F);const N=[{key:"Mod-z",run:k,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:A,preventDefault:!0},{linux:"Ctrl-Shift-z",run:A,preventDefault:!0},{key:"Mod-u",run:E,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:x,preventDefault:!0}];function L(e,t){return r.OF.create(e.ranges.map(t),e.mainIndex)}function R(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function j({state:e,dispatch:t},n){let r=L(e.selection,n);return!r.eq(e.selection,!0)&&(t(R(e,r)),!0)}function q(e,t){return r.OF.cursor(t?e.to:e.from)}function V(e,t){return j(e,(n=>n.empty?e.moveByChar(n,t):q(n,t)))}function z(e){return e.textDirectionAt(e.state.selection.main.head)==i.OP.LTR}const U=e=>V(e,!z(e)),H=e=>V(e,z(e));function W(e,t){return j(e,(n=>n.empty?e.moveByGroup(n,t):q(n,t)))}function K(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function G(e,t,n){let i,a,l=(0,s.mv)(e).resolveInner(t.head),u=n?o.uY.closedBy:o.uY.openedBy;for(let r=t.head;;){let t=n?l.childAfter(r):l.childBefore(r);if(!t)break;K(e,t,u)?l=t:r=n?t.to:t.from}return a=l.type.prop(u)&&(i=n?(0,s.jU)(e,l.from,1):(0,s.jU)(e,l.to,-1))&&i.matched?n?i.end.to:i.end.from:n?l.to:l.from,r.OF.cursor(a,n?-1:1)}function J(e,t){return j(e,(n=>{if(!n.empty)return q(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}"undefined"!=typeof Intl&&Intl.Segmenter;const Y=e=>J(e,!1),Z=e=>J(e,!0);function Q(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,s=0;if(n){for(let t of e.state.facet(i.Lz.scrollMargins)){let n=t(e);(null==n?void 0:n.top)&&(r=Math.max(null==n?void 0:n.top,r)),(null==n?void 0:n.bottom)&&(s=Math.max(null==n?void 0:n.bottom,s))}t=e.scrollDOM.clientHeight-r-s}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:s,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function X(e,t){let n,r=Q(e),{state:s}=e,o=L(s.selection,(n=>n.empty?e.moveVertically(n,t,r.height):q(n,t)));if(o.eq(s.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(s.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+r.marginTop,u=a.bottom-r.marginBottom;t&&t.top>l&&t.bottom<u&&(n=i.Lz.scrollIntoView(o.main.head,{y:"start",yMargin:t.top-l}))}return e.dispatch(R(s,o),{effects:n}),!0}const ee=e=>X(e,!1),te=e=>X(e,!0);function ne(e,t,n){let i=e.lineBlockAt(t.head),s=e.moveToLineBoundary(t,n);if(s.head==t.head&&s.head!=(n?i.to:i.from)&&(s=e.moveToLineBoundary(t,n,!1)),!n&&s.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(s=r.OF.cursor(i.from+n))}return s}function re(e,t){let n=L(e.state.selection,(e=>{let n=t(e);return r.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(R(e.state,n)),!0)}function ie(e,t){return re(e,(n=>e.moveByChar(n,t)))}const se=e=>ie(e,!z(e)),oe=e=>ie(e,z(e));function ae(e,t){return re(e,(n=>e.moveByGroup(n,t)))}function le(e,t){return re(e,(n=>e.moveVertically(n,t)))}const ue=e=>le(e,!1),ce=e=>le(e,!0);function he(e,t){return re(e,(n=>e.moveVertically(n,t,Q(e).height)))}const fe=e=>he(e,!1),de=e=>he(e,!0),pe=({state:e,dispatch:t})=>(t(R(e,{anchor:0})),!0),me=({state:e,dispatch:t})=>(t(R(e,{anchor:e.doc.length})),!0),ge=({state:e,dispatch:t})=>(t(R(e,{anchor:e.selection.main.anchor,head:0})),!0),ye=({state:e,dispatch:t})=>(t(R(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ve(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:s}=e,o=s.changeByRange((i=>{let{from:s,to:o}=i;if(s==o){let r=t(i);r<s?(n="delete.backward",r=be(e,r,!1)):r>s&&(n="delete.forward",r=be(e,r,!0)),s=Math.min(s,r),o=Math.max(o,r)}else s=be(e,s,!1),o=be(e,o,!0);return s==o?{range:i}:{changes:{from:s,to:o},range:r.OF.cursor(s,s<i.head?-1:1)}}));return!o.changes.empty&&(e.dispatch(s.update(o,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?i.Lz.announce.of(s.phrase("Selection deleted")):void 0})),!0)}function be(e,t,n){if(e instanceof i.Lz)for(let r of e.state.facet(i.Lz.atomicRanges).map((t=>t(e))))r.between(t,t,((e,r)=>{e<t&&r>t&&(t=n?r:e)}));return t}const we=(e,t,n)=>ve(e,(i=>{let o,a,l=i.from,{state:u}=e,c=u.doc.lineAt(l);if(n&&!t&&l>c.from&&l<c.from+200&&!/[^ \t]/.test(o=c.text.slice(0,l-c.from))){if("\t"==o[o.length-1])return l-1;let e=(0,r.y$)(o,u.tabSize)%(0,s.tp)(u)||(0,s.tp)(u);for(let t=0;t<e&&" "==o[o.length-1-t];t++)l--;a=l}else a=(0,r.zK)(c.text,l-c.from,t,t)+c.from,a==l&&c.number!=(t?u.doc.lines:1)?a+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(c.text.slice(a-c.from,l-c.from))&&(a=(0,r.zK)(c.text,a-c.from,!1,!1)+c.from);return a})),De=e=>we(e,!1,!0),ke=e=>we(e,!0,!1),Ae=(e,t)=>ve(e,(n=>{let i=n.head,{state:s}=e,o=s.doc.lineAt(i),a=s.charCategorizer(i);for(let e=null;;){if(i==(t?o.to:o.from)){i==n.head&&o.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,r.zK)(o.text,i-o.from,t)+o.from,u=o.text.slice(Math.min(i,l)-o.from,Math.max(i,l)-o.from),c=a(u);if(null!=e&&c!=e)break;" "==u&&i==n.head||(e=c),i=l}return i})),Ee=e=>Ae(e,!1);function xe(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),s=e.doc.lineAt(r.to);if(r.empty||r.to!=s.from||(s=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(r)}else t.push({from:i.from,to:s.to,ranges:[r]});n=s.number+1}return t}function Ce(e,t,n){if(e.readOnly)return!1;let i=[],s=[];for(let t of xe(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),a=o.length+1;if(n){i.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)s.push(r.OF.range(Math.min(e.doc.length,n.anchor+a),Math.min(e.doc.length,n.head+a)))}else{i.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)s.push(r.OF.range(e.anchor-a,e.head-a))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:r.OF.create(s,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Se(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of xe(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Oe=Fe(!1);function Fe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange((n=>{let{from:i,to:a}=n,l=t.doc.lineAt(i),u=!e&&i==a&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,s.mv)(e).resolveInner(t),i=r.childBefore(t),a=r.childAfter(t);return i&&a&&i.to<=t&&a.from>=t&&(n=i.type.prop(o.uY.closedBy))&&n.indexOf(a.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(a.from).from&&!/\S/.test(e.sliceDoc(i.to,a.from))?{from:i.to,to:a.from}:null}(t,i);e&&(i=a=(a<=l.to?l:t.doc.lineAt(a)).to);let c=new s.KB(t,{simulateBreak:i,simulateDoubleBreak:!!u}),h=(0,s._v)(c,i);for(null==h&&(h=(0,r.y$)(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));a<l.to&&/\s/.test(l.text[a-l.from]);)a++;u?({from:i,to:a}=u):i>l.from&&i<l.from+100&&!/\S/.test(l.text.slice(0,i))&&(i=l.from);let f=["",(0,s.EI)(t,h)];return u&&f.push((0,s.EI)(t,c.lineIndent(l.from,-1))),{changes:{from:i,to:a,insert:r.EY.of(f)},range:r.OF.cursor(i+1+f[1].length)}}));return n(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function _e(e,t){let n=-1;return e.changeByRange((i=>{let s=[];for(let r=i.from;r<=i.to;){let o=e.doc.lineAt(r);o.number>n&&(i.empty||i.to>o.from)&&(t(o,s,i),n=o.number),r=o.to+1}let o=e.changes(s);return{changes:s,range:r.OF.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}}))}const Te=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>j(e,(t=>G(e.state,t,!z(e)))),shift:e=>re(e,(t=>G(e.state,t,!z(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>j(e,(t=>G(e.state,t,z(e)))),shift:e=>re(e,(t=>G(e.state,t,z(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Ce(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Se(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Ce(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Se(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=r.OF.create([n.main]):n.main.empty||(i=r.OF.create([r.OF.cursor(n.main.head)])),!!i&&(t(R(e,i)),!0)}},{key:"Mod-Enter",run:Fe(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=xe(e).map((({from:t,to:n})=>r.OF.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:r.OF.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=L(e.selection,(t=>{var n;for(let i=(0,s.mv)(e).resolveStack(t.from,1);i;i=i.next){let{node:e}=i;if((e.from<t.from&&e.to>=t.to||e.to>t.to&&e.from<=t.from)&&(null===(n=e.parent)||void 0===n?void 0:n.parent))return r.OF.range(e.to,e.from)}return t}));return t(R(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(_e(e,((t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let o=(0,r.y$)(i,e.tabSize),a=0,l=(0,s.EI)(e,Math.max(0,o-(0,s.tp)(e)));for(;a<i.length&&a<l.length&&i.charCodeAt(a)==l.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+i.length,insert:l.slice(a)})})),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(_e(e,((t,n)=>{n.push({from:t.from,insert:e.facet(s.Xt)})})),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new s.KB(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=_e(e,((t,i,o)=>{let a=(0,s._v)(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let l=/^\s*/.exec(t.text)[0],u=(0,s.EI)(e,a);(l!=u||o.from<t.from+l.length)&&(n[t.from]=a,i.push({from:t.from,to:t.from+l.length,insert:u}))}));return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(xe(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),r=L(t.selection,(t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)})).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let i=!1,o=L(e.selection,(t=>{let o=(0,s.jU)(e,t.head,-1)||(0,s.jU)(e,t.head,1)||t.head>0&&(0,s.jU)(e,t.head-1,1)||t.head<e.doc.length&&(0,s.jU)(e,t.head+1,-1);if(!o||!o.end)return t;i=!0;let a=o.start.from==t.head?o.end.to:o.end.from;return n?r.OF.range(t.anchor,a):r.OF.cursor(a)}));return!!i&&(t(R(e,o)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=h(e.state,n.from);return r.line?l(e):!!r.block&&c(e)}},{key:"Alt-A",run:u}].concat([{key:"ArrowLeft",run:U,shift:se,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>W(e,!z(e)),shift:e=>ae(e,!z(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>j(e,(t=>ne(e,t,!z(e)))),shift:e=>re(e,(t=>ne(e,t,!z(e)))),preventDefault:!0},{key:"ArrowRight",run:H,shift:oe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>W(e,z(e)),shift:e=>ae(e,z(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>j(e,(t=>ne(e,t,z(e)))),shift:e=>re(e,(t=>ne(e,t,z(e)))),preventDefault:!0},{key:"ArrowUp",run:Y,shift:ue,preventDefault:!0},{mac:"Cmd-ArrowUp",run:pe,shift:ge},{mac:"Ctrl-ArrowUp",run:ee,shift:fe},{key:"ArrowDown",run:Z,shift:ce,preventDefault:!0},{mac:"Cmd-ArrowDown",run:me,shift:ye},{mac:"Ctrl-ArrowDown",run:te,shift:de},{key:"PageUp",run:ee,shift:fe},{key:"PageDown",run:te,shift:de},{key:"Home",run:e=>j(e,(t=>ne(e,t,!1))),shift:e=>re(e,(t=>ne(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:pe,shift:ge},{key:"End",run:e=>j(e,(t=>ne(e,t,!0))),shift:e=>re(e,(t=>ne(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:me,shift:ye},{key:"Enter",run:Oe},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:De,shift:De},{key:"Delete",run:ke},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Ee},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Ae(e,!0)},{mac:"Mod-Backspace",run:e=>ve(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>ve(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))}].concat([{key:"Ctrl-b",run:U,shift:se,preventDefault:!0},{key:"Ctrl-f",run:H,shift:oe},{key:"Ctrl-p",run:Y,shift:ue},{key:"Ctrl-n",run:Z,shift:ce},{key:"Ctrl-a",run:e=>j(e,(t=>r.OF.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>re(e,(t=>r.OF.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>j(e,(t=>r.OF.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>re(e,(t=>r.OF.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:ke},{key:"Ctrl-h",run:De},{key:"Ctrl-k",run:e=>ve(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))},{key:"Ctrl-Alt-h",run:Ee},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:r.EY.of(["",""])},range:r.OF.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),s=n==i.from?n-1:(0,r.zK)(i.text,n-i.from,!1)+i.from,o=n==i.to?n+1:(0,r.zK)(i.text,n-i.from,!0)+i.from;return{changes:{from:s,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(s,n))},range:r.OF.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:te}].map((e=>({mac:e.key,run:e.run,shift:e.shift})))))},29587:(e,t,n)=>{"use strict";n.d(t,{EI:()=>O,KB:()=>_,Lv:()=>ue,Oh:()=>T,SG:()=>Ce,WD:()=>R,Xt:()=>C,Yy:()=>E,_v:()=>F,b_:()=>q,bj:()=>d,cr:()=>he,f7:()=>ee,jU:()=>_e,mv:()=>p,mz:()=>N,tp:()=>S,y9:()=>me,yd:()=>V});var r,i=n(79066),s=n(14830),o=n(83173),a=n(49913),l=n(98104);const u=new i.uY;const c=new i.uY;class h{constructor(e,t,n=[],r=""){this.data=e,this.name=r,s.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(s.$t.prototype,"tree",{get(){return p(this)}}),this.parser=t,this.extension=[A.of(this),s.$t.languageData.of(((e,t,n)=>{let r=f(e,t,n),i=r.type.prop(u);if(!i)return[];let s=e.facet(i),o=r.type.prop(c);if(o){let i=r.resolve(t-r.from,n);for(let t of o)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(s)}}return s}))].concat(n)}isActiveAt(e,t,n=-1){return f(e,t,n).type.prop(u)==this.data}findRegions(e){let t=e.facet(A);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(u)==this.data)return void n.push({from:t,to:t+e.length});let s=e.prop(i.uY.mounted);if(s){if(s.tree.prop(u)==this.data){if(s.overlay)for(let e of s.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(s.overlay){let e=n.length;if(r(s.tree,s.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let s=e.children[n];s instanceof i.PH&&r(s,e.positions[n]+t)}};return r(p(e),0),n}get allowsNesting(){return!0}}function f(e,t,n){let r=e.facet(A),s=p(e).topNode;if(!r||r.allowsNesting)for(let e=s;e;e=e.enter(t,n,i.Qj.ExcludeBuffers))e.type.isTop&&(s=e);return s}h.setState=s.Pe.define();class d extends h{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=(n=e.languageData,s.sj.define({combine:n?e=>e.concat(n):void 0}));var n;return new d(t,e.parser.configure({props:[u.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new d(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(e){let t=e.field(h.state,!1);return t?t.tree:i.PH.empty}class m{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let g=null;class y{constructor(e,t,n=[],r,i,s,o,a){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new y(e,t,[],i.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new m(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.PH.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.rr.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=g;g=this;try{return e()}finally{g=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=v(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=i.rr.applyChanges(n,t),r=i.PH.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&a.push({from:n,to:r})}}}return new y(this.parser,t,n,r,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=v(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i.iX{createParse(t,n,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let t=g;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new i.PH(i.Z6.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return g}}function v(e,t,n){return i.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class b{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new b(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=y.create(e.facet(A).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new b(n)}}h.state=s.sU.define({create:b.init,update(e,t){for(let e of t.effects)if(e.is(h.setState))return e.value;return t.startState.facet(A)!=t.state.facet(A)?b.init(t.state):e.apply(t)}});let w=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(w=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const D="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,k=o.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(h.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(h.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=w(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(h.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!D?Math.max(25,e.timeRemaining()-5):1e9),o=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work((()=>D&&D()||Date.now()>s),r+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:h.setState.of(new b(i.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,o.c_)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),A=s.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[h.state,k,o.Lz.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class E{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const x=s.sj.define(),C=s.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function S(e){let t=e.facet(C);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function O(e,t){let n="",r=e.tabSize,i=e.facet(C)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let e=0;e<t;e++)n+=i;return n}function F(e,t){e instanceof s.$t&&(e=new _(e));for(let n of e.state.facet(x)){let r=n(e,t);if(void 0!==r)return r}let n=p(e.state);return n.length>=t?function(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t!=r.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return B(r,e,n)}(e,n,t):null}class _{constructor(e,t={}){this.state=e,this.options=t,this.unit=S(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),s=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return s>-1&&(i+=s-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,s.y$)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const T=new i.uY;function B(e,t,n){for(let r=e;r;r=r.next){let e=P(r.node);if(e)return e(M.create(t,n,r))}return 0}function P(e){let t=e.type.prop(T);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.uY.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>function(e,t,n,r,i){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==e.pos+o,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=null==i||i<=s.from?s.to:Math.min(s.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.from<o?n:null;e=i.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?I:null}function I(){return 0}class M extends _{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new M(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if($(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return B(this.context.next,this.base,this.pos)}}function $(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function N({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const L=200;function R(){return s.$t.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+L)return e;let s=n.sliceString(i.from,r);if(!t.some((e=>e.test(s))))return e;let{state:o}=e,a=-1,l=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==a)continue;a=t.from;let n=F(o,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],i=O(o,n);r!=i&&l.push({from:t.from,to:t.from+r.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const j=s.sj.define(),q=new i.uY;function V(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function z(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function U(e,t,n){for(let r of e.facet(j)){let i=r(e,t,n);if(i)return i}return function(e,t,n){let r=p(e);if(r.length<n)return null;let i=null;for(let s=r.resolveStack(n,1);s;s=s.next){let o=s.node;if(o.to<=n||o.from>n)continue;if(i&&o.from<t)break;let a=o.type.prop(q);if(a&&(o.to<r.length-50||r.length==e.doc.length||!z(o))){let r=a(o,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function H(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const W=s.Pe.define({map:H}),K=s.Pe.define({map:H});function G(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const J=s.sU.define({create:()=>o.NZ.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(W)&&!Z(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(ne),i=r?o.NZ.replace({widget:new oe(r(t.state,n.value))}):se;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(K)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{e<r&&t>r&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>o.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],i=e[n++];if("number"!=typeof r||"number"!=typeof i)throw new RangeError("Invalid JSON for fold state");t.push(se.range(r,i))}return o.NZ.set(t,!0)}});function Y(e,t,n){var r;let i=null;return null===(r=e.field(J,!1))||void 0===r||r.between(t,n,((e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})})),i}function Z(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function Q(e,t){return e.field(J,!1)?t:t.concat(s.Pe.appendConfig.of(re()))}function X(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return o.Lz.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const ee=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of G(e)){let n=U(e.state,t.from,t.to);if(n)return e.dispatch({effects:Q(e.state,[W.of(n),X(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(J,!1))return!1;let t=[];for(let n of G(e)){let r=Y(e.state,n.from,n.to);r&&t.push(K.of(r),X(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let i=e.lineBlockAt(r),s=U(t,i.from,i.to);s&&n.push(W.of(s)),r=(s?e.lineBlockAt(s.to):i).to+1}return n.length&&e.dispatch({effects:Q(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(J,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(K.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],te={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},ne=s.sj.define({combine:e=>(0,s.QR)(e,te)});function re(e){let t=[J,ce];return e&&t.push(ne.of(e)),t}function ie(e,t){let{state:n}=e,r=n.facet(ne),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=Y(e.state,n.from,n.to);r&&e.dispatch({effects:K.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let s=document.createElement("span");return s.textContent=r.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}const se=o.NZ.replace({widget:new class extends o.xO{toDOM(e){return ie(e,null)}}});class oe extends o.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ie(e,this.value)}}const ae={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class le extends o.wJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function ue(e={}){let t=Object.assign(Object.assign({},ae),e),n=new le(t,!0),r=new le(t,!1),i=o.Z9.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(A)!=e.state.facet(A)||e.startState.field(J,!1)!=e.state.field(J,!1)||p(e.startState)!=p(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s.vB;for(let i of e.viewportLineBlocks){let s=Y(e.state,i.from,i.to)?r:U(e.state,i.from,i.to)?n:null;s&&t.add(i.from,i.from,s)}return t.finish()}}),{domEventHandlers:a}=t;return[i,(0,o.cU)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||s.om.empty},initialSpacer:()=>new le(t,!1),domEventHandlers:Object.assign(Object.assign({},a),{click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return!0;let r=Y(e.state,t.from,t.to);if(r)return e.dispatch({effects:K.of(r)}),!0;let i=U(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:W.of(i)}),!0)}})}),re()]}const ce=o.Lz.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class he{constructor(e,t){let n;function r(e){let t=l.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,s=t.scope;this.scope=s instanceof h?e=>e.prop(u)==s.data:s?e=>e==s:void 0,this.style=(0,a.az)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new l.G(n):null,this.themeType=t.themeType}static define(e,t){return new he(e,t||{})}}const fe=s.sj.define(),de=s.sj.define({combine:e=>e.length?[e[0]]:null});function pe(e){let t=e.facet(fe);return t.length?t:e.facet(de)}function me(e,t){let n,r=[ye];return e instanceof he&&(e.module&&r.push(o.Lz.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(de.of(e)):n?r.push(fe.computeN([o.Lz.darkTheme],(t=>t.facet(o.Lz.darkTheme)==("dark"==n)?[e]:[]))):r.push(fe.of(e)),r}class ge{constructor(e){this.markCache=Object.create(null),this.tree=p(e.state),this.decorations=this.buildDeco(e,pe(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=p(e.state),n=pe(e.state),r=n!=pe(e.startState),{viewport:i}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length<i.to&&!r&&t.type==this.tree.type&&s>=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return o.NZ.none;let n=new s.vB;for(let{from:r,to:i}of e.visibleRanges)(0,a.DM)(this.tree,t,((e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=o.NZ.mark({class:r})))}),r,i);return n.finish()}}const ye=s.Nb.high(o.Z9.fromClass(ge,{decorations:e=>e.decorations})),ve=(a._A.meta,a._A.link,a._A.heading,a._A.emphasis,a._A.strong,a._A.strikethrough,a._A.keyword,a._A.atom,a._A.bool,a._A.url,a._A.contentSeparator,a._A.labelName,a._A.literal,a._A.inserted,a._A.string,a._A.deleted,a._A.regexp,a._A.escape,a._A.string,a._A.variableName,a._A.variableName,a._A.typeName,a._A.namespace,a._A.className,a._A.variableName,a._A.macroName,a._A.propertyName,a._A.comment,a._A.invalid,o.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}})),be=1e4,we="()[]{}",De=s.sj.define({combine:e=>(0,s.QR)(e,{afterCursor:!0,brackets:we,maxScanDistance:be,renderMatch:Ee})}),ke=o.NZ.mark({class:"cm-matchingBracket"}),Ae=o.NZ.mark({class:"cm-nonmatchingBracket"});function Ee(e){let t=[],n=e.matched?ke:Ae;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const xe=[s.sU.define({create:()=>o.NZ.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(De);for(let e of t.state.selection.ranges){if(!e.empty)continue;let i=_e(t.state,e.head,-1,r)||e.head>0&&_e(t.state,e.head-1,1,r)||r.afterCursor&&(_e(t.state,e.head,1,r)||e.head<t.state.doc.length&&_e(t.state,e.head+1,-1,r));i&&(n=n.concat(r.renderMatch(i,t.state)))}return o.NZ.set(n,!0)},provide:e=>o.Lz.decorations.from(e)}),ve];function Ce(e={}){return[De.of(e),xe]}const Se=new i.uY;function Oe(e,t,n){let r=e.prop(t<0?i.uY.openedBy:i.uY.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function Fe(e){let t=e.type.prop(Se);return t?t(e.node):e}function _e(e,t,n,r={}){let i=r.maxScanDistance||be,s=r.brackets||we,o=p(e),a=o.resolveInner(t,n);for(let e=a;e;e=e.parent){let r=Oe(e.type,n,s);if(r&&e.from<e.to){let i=Fe(e);if(i&&(n>0?t>=i.from&&t<i.to:t>i.from&&t<=i.to))return Te(0,0,n,e,i,r,s)}}return function(e,t,n,r,i,s,o){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let e=0;!c.next().done&&e<=s;){let s=c.value;n<0&&(e+=s.length);let a=t+e*n;for(let e=n>0?0:s.length-1,t=n>0?s.length:-1;e!=t;e+=n){let t=o.indexOf(s[e]);if(!(t<0||r.resolveInner(a+e,1).type!=i))if(t%2==0==n>0)h++;else{if(1==h)return{start:u,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};h--}}n>0&&(e+=s.length)}return c.done?{start:u,matched:!1}:null}(e,t,n,o,a.type,i,s)}function Te(e,t,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},u=0,c=null==a?void 0:a.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==u&&s.indexOf(c.type.name)>-1&&c.from<c.to){let e=Fe(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(Oe(c.type,n,o))u++;else if(Oe(c.type,-n,o)){if(0==u){let e=Fe(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}u--}}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}const Be=Object.create(null),Pe=[i.Z6.none],Ie=[],Me=Object.create(null),$e=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])$e[e]=Le(Be,t);function Ne(e,t){Ie.indexOf(e)>-1||(Ie.push(e),console.warn(t))}function Le(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||a._A[n];r?"function"==typeof r?t.length?t=t.map(r):Ne(n,`Modifier ${n} used at start of tag`):t.length?Ne(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:Ne(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),s=r+" "+n.map((e=>e.id)),o=Me[s];if(o)return o.id;let l=Me[s]=i.Z6.define({id:Pe.length,name:r,props:[(0,a.pn)({[r]:n})]});return Pe.push(l),l.id}o.OP.RTL,o.OP.LTR},29853:(e,t,n)=>{"use strict";n.d(t,{PL:()=>g,pJ:()=>z,$w:()=>D,bu:()=>E});var r=n(83173),i=n(14830);function s(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;t<arguments.length;t++)o(e,arguments[t]);return e}function o(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)o(e,t[n])}}class a{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class l{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,s=n.facet(A).markerFilter;s&&(i=s(i,n));let o=r.NZ.set(i.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?r.NZ.widget({widget:new S(e),diagnostic:e}).range(e.from):r.NZ.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e,inclusive:!0}).range(e.from,e.to))),!0);return new l(o,t,u(o))}}function u(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:i})=>{if(!t||i.diagnostic==t)return r=new a(e,n,i.diagnostic),!1})),r}function c(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(A).hideOn(e,n,r);if(null!=i)return i;let s=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(f)))&&!e.changes.touchesRange(s.from,Math.max(s.to,r)))}function h(e,t){return e.field(m,!1)?t:t.concat(i.Pe.appendConfig.of(q))}const f=i.Pe.define(),d=i.Pe.define(),p=i.Pe.define(),m=i.sU.define({create:()=>new l(r.NZ.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=u(n,e.selected.diagnostic,i)||u(n,null,i)}e=new l(n,e.panel,r)}for(let n of t.effects)n.is(f)?e=l.init(n.value,e.panel,t.state):n.is(d)?e=new l(e.diagnostics,n.value?F.open:null,e.selected):n.is(p)&&(e=new l(e.diagnostics,e.panel,n.value));return e},provide:e=>[r.S7.from(e,(e=>e.panel)),r.Lz.decorations.from(e,(e=>e.diagnostics))]});function g(e){let t=e.field(m,!1);return t?t.diagnostics.size:0}const y=r.NZ.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function v(e,t,n){let{diagnostics:r}=e.state.field(m),i=[],s=2e8,o=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:a})=>{t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0))&&(i.push(a.diagnostic),s=Math.min(e,s),o=Math.max(r,o))}));let a=e.state.facet(A).tooltipFilter;return a&&(i=a(i,e.state)),i.length?{pos:s,end:o,above:e.state.doc.lineAt(s).to<o,create:()=>({dom:b(e,i)})}:null}function b(e,t){return s("ul",{class:"cm-tooltip-lint"},t.map((t=>C(e,t,!1))))}const w=e=>{let t=e.state.field(m,!1);return!(!t||!t.panel||(e.dispatch({effects:d.of(!1)}),0))},D=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(m,!1);t&&t.panel||e.dispatch({effects:h(e.state,[d.of(!0)])});let n=(0,r.ld)(e,F.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(m,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),0))}}],k=r.Z9.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(A);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(A);t.length&&Promise.all(t.map((e=>Promise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:h(e,[f.of(t)])}}(this.view.state,n))}),(e=>{(0,r.c_)(this.view.state,e)}))}}update(e){let t=e.state.facet(A);(e.docChanged||t!=e.startState.facet(A)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),A=i.sj.define({combine:e=>Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},(0,i.QR)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function E(e,t={}){return[A.of({source:e,config:t}),k,q]}function x(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some((e=>e.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function C(e,t,n){var r;let i=n?x(t.actions):[];return s("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},s("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,a=r=>{if(r.preventDefault(),o)return;o=!0;let i=u(e.state.field(m).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:l}=n,c=i[r]?l.indexOf(i[r]):-1,h=c<0?l:[l.slice(0,c),s("u",l.slice(c,c+1)),l.slice(c+1)];return s("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${l}${c<0?"":` (access key "${i[r]})"`}.`},h)})),t.source&&s("div",{class:"cm-diagnosticSource"},t.source))}class S extends r.xO{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return s("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class O{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=C(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class F{constructor(e){this.view=e,this.items=[],this.list=s("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)w(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=x(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=u(this.view.state.field(m).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=s("div",{class:"cm-panel-lint"},this.list,s("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>w(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(m).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(m),n=0,r=!1,i=null;for(e.between(0,this.view.state.doc.length,((e,s,{spec:o})=>{let a,l=-1;for(let e=n;e<this.items.length;e++)if(this.items[e].diagnostic==o.diagnostic){l=e;break}l<0?(a=new O(this.view,o.diagnostic),this.items.splice(n,0,a),r=!0):(a=this.items[l],l>n&&(this.items.splice(n,l-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();0==this.items.length&&(this.items.push(new O(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=u(this.view.state.field(m).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:p.of(t)})}static open(e){return new F(e)}}function _(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function T(e){return _(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const B=r.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:T("#d11")},".cm-lintRange-warning":{backgroundImage:T("orange")},".cm-lintRange-info":{backgroundImage:T("#999")},".cm-lintRange-hint":{backgroundImage:T("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function P(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}class I extends r.wJ{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce(((e,t)=>P(e)<P(t.severity)?t.severity:e),"hint")}toDOM(e){let t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;let n=this.diagnostics,r=e.state.facet(V).tooltipFilter;return r&&(n=r(n,e.state)),n.length&&(t.onmouseover=()=>function(e,t,n){function r(){let r=e.elementAtHeight(t.getBoundingClientRect().top+5-e.documentTop);e.coordsAtPos(r.from)&&e.dispatch({effects:L.of({pos:r.from,above:!1,create:()=>({dom:b(e,n),getCoords:()=>t.getBoundingClientRect()})})}),t.onmouseout=t.onmousemove=null,function(e,t){let n=r=>{let i=t.getBoundingClientRect();if(!(r.clientX>i.left-10&&r.clientX<i.right+10&&r.clientY>i.top-10&&r.clientY<i.bottom+10)){for(let e=r.target;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",n),e.state.field(R)&&e.dispatch({effects:L.of(null)})}};window.addEventListener("mousemove",n)}(e,t)}let{hoverTime:i}=e.state.facet(V),s=setTimeout(r,i);t.onmouseout=()=>{clearTimeout(s),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(s),s=setTimeout(r,i)}}(e,t,n)),t}}function M(e,t){let n=Object.create(null);for(let r of t){let t=e.lineAt(r.from);(n[t.from]||(n[t.from]=[])).push(r)}let r=[];for(let e in n)r.push(new I(n[e]).range(+e));return i.om.of(r,!0)}const $=(0,r.cU)({class:"cm-gutter-lint",markers:e=>e.state.field(N)}),N=i.sU.define({create:()=>i.om.empty,update(e,t){e=e.map(t.changes);let n=t.state.facet(V).markerFilter;for(let r of t.effects)if(r.is(f)){let i=r.value;n&&(i=n(i||[],t.state)),e=M(t.state.doc,i.slice(0))}return e}}),L=i.Pe.define(),R=i.sU.define({create:()=>null,update:(e,t)=>(e&&t.docChanged&&(e=c(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(((e,t)=>t.is(L)?t.value:e),e)),provide:e=>r.DK.from(e)}),j=r.Lz.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:_('<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>')},".cm-lint-marker-warning":{content:_('<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>')},".cm-lint-marker-error":{content:_('<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>')}}),q=[m,r.Lz.decorations.compute([m],(e=>{let{selected:t,panel:n}=e.field(m);return t&&n&&t.from!=t.to?r.NZ.set([y.range(t.from,t.to)]):r.NZ.none})),(0,r.Ux)(v,{hideOn:c}),B],V=i.sj.define({combine:e=>(0,i.QR)(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})});function z(e={}){return[V.of(e),N,$,j,R]}},14830:(e,t,n)=>{"use strict";n.d(t,{$t:()=>ke,EY:()=>r,FB:()=>Ee,Fh:()=>E,Gu:()=>S,Je:()=>be,MK:()=>A,Nb:()=>G,OF:()=>$,Pe:()=>he,QR:()=>Ae,VR:()=>O,YH:()=>le,ZX:()=>fe,iR:()=>C,kn:()=>qe,om:()=>Oe,sU:()=>W,sj:()=>R,vB:()=>Fe,vS:()=>k,y$:()=>je,zK:()=>y});class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=f(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),s.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=f(this,e,t);let n=[];return this.decompose(e,t,n,0),s.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let e=t,s=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new u(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):s.from(i.split(e,[])):r.empty}}class i extends r{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let s=this.text[i],o=r+s.length;if((t?n:o)>=e)return new h(r,o,n,s);r=o+1,n++}}decompose(e,t,n,r){let s=e<=0&&t>=this.length?this:new i(a(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=o(s.text,e.text.slice(),0,s.length);if(t.length<=32)n.push(new i(t,e.length+s.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);[e,t]=f(this,e,t);let r=o(this.text,o(n.text,a(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):s.from(i.split(r,[]),l)}sliceString(e,t=this.length,n="\n"){[e,t]=f(this,e,t);let r="";for(let i=0,s=0;i<=t&&s<this.text.length;s++){let o=this.text[s],a=i+o.length;i>e&&s&&(r+=n),e<a&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let s of e)n.push(s),r+=s.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class s extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let s=this.children[i],o=r+s.length,a=n+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,n,r);r=o+1,n=a+1}}decompose(e,t,n,r){for(let i=0,s=0;s<=t&&i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(e<=a&&t>=s){let i=r&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!i?n.push(o):o.decompose(e-s,t-s,n,i)}s=a+1}}replace(e,t,n){if([e,t]=f(this,e,t),n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let o=this.children[r],a=i+o.length;if(e>=i&&t<=a){let l=o.replace(e-i,t-i,n),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let i=this.children.slice();return i[r]=l,new s(i,this.length-(t-e)+n.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=f(this,e,t);let r="";for(let i=0,s=0;i<this.children.length&&s<=t;i++){let o=this.children[i],a=s+o.length;s>e&&i&&(r+=n),e<a&&t>s&&(r+=o.sliceString(e-s,t-s,n)),s=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof s))return 0;let n=0,[r,i,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==a)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),o=r<<1,a=r>>1,l=[],u=0,c=-1,h=[];function f(e){let t;if(e.lines>o&&e instanceof s)for(let t of e.children)f(t);else e.lines>a&&(u>a||!u)?(d(),l.push(e)):e instanceof i&&u&&(t=h[h.length-1])instanceof i&&e.lines+t.lines<=32?(u+=e.lines,c+=e.length+1,h[h.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(u+e.lines>r&&d(),u+=e.lines,c+=e.length+1,h.push(e))}function d(){0!=u&&(l.push(1==h.length?h[0]:s.from(h,c)),c=-1,u=h.length=0)}for(let t of e)f(t);return d(),1==l.length?l[0]:new s(l,t)}}function o(e,t,n=0,r=1e9){for(let i=0,s=0,o=!0;s<e.length&&i<=r;s++){let a=e[s],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),o?(t[t.length-1]+=a,o=!1):t.push(a)),i=l+1}return t}function a(e,t,n){return o(e,[""],t,n)}r.empty=new i([""],0);class l{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],s=this.offsets[n],o=s>>1,a=r instanceof i?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let s=r.children[o+(t<0?-1:0)];e>s.length?(e-=s.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(s),this.offsets.push(t>0?1:(s instanceof i?s.text.length:s.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class u{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class h{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}function f(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}let d="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<d.length;e++)d[e]+=d[e-1];function p(e){for(let t=1;t<d.length;t+=2)if(d[t]>e)return d[t-1]<=e;return!1}function m(e){return e>=127462&&e<=127487}const g=8205;function y(e,t,n=!0,r=!0){return(n?v:b)(e,t,r)}function v(e,t,n){if(t==e.length)return t;t&&w(e.charCodeAt(t))&&D(e.charCodeAt(t-1))&&t--;let r=k(e,t);for(t+=E(r);t<e.length;){let i=k(e,t);if(r==g||i==g||n&&p(i))t+=E(i),r=i;else{if(!m(i))break;{let n=0,r=t-2;for(;r>=0&&m(k(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function b(e,t,n){for(;t>0;){let r=v(e,t-2,n);if(r<t)return r;t--}return 0}function w(e){return e>=56320&&e<57344}function D(e){return e>=55296&&e<56320}function k(e,t){let n=e.charCodeAt(t);if(!D(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return w(r)?r-56320+(n-55296<<10)+65536:n}function A(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function E(e){return e<65536?1:2}const x=/\r\n?|\n/;var C=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(C||(C={}));class S{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?(e(n,r,i),r+=i):r+=s,n+=i}}iterChangedRanges(e,t=!1){T(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new S(e)}composeDesc(e){return this.empty?e:e.empty?this:P(this,e)}mapDesc(e,t=!1){return e.empty?this:B(this,e,t)}mapPos(e,t=-1,n=C.Simple){let r=0,i=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],a=this.sections[s++],l=r+o;if(a<0){if(l>e)return i+(e-r);i+=o}else{if(n!=C.Simple&&l>=e&&(n==C.TrackDel&&r<e&&l>e||n==C.TrackBefore&&r<e||n==C.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!o)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=r+this.sections[n++];if(this.sections[n++]>=0&&r<=t&&i>=e)return!(r<e&&i>t)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new S(e)}static create(e){return new S(e)}}class O extends S{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return T(this,((t,n,r,i,s)=>e=e.replace(r,r+(n-t),s)),!1),e}mapDesc(e,t=!1){return B(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,s=0;i<t.length;i+=2){let o=t[i],a=t[i+1];if(a>=0){t[i]=a,t[i+1]=o;let l=i>>1;for(;n.length<l;)n.push(r.empty);n.push(o?e.slice(s,s+o):r.empty)}s+=o}return new O(t,n)}compose(e){return this.empty?e:e.empty?this:P(this,e,!0)}map(e,t=!1){return e.empty?this:B(this,e,t,!0)}iterChanges(e,t=!1){T(this,e,t)}get desc(){return S.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new I(this);e:for(let s=0,o=0;;){let a=s==e.length?1e9:e[s++];for(;o<a||o==a&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,a-o);F(r,e,-1);let s=-1==i.ins?-1:0==i.off?i.ins:0;F(t,e,s),s>0&&_(n,t,i.text),i.forward(e),o+=e}let l=e[s++];for(;o<l;){if(i.done)break e;let e=Math.min(i.len,l-o);F(t,e,-1),F(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),o+=e}}return{changes:new O(t,n),filtered:S.create(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],s=[],o=0,a=null;function l(e=!1){if(!e&&!i.length)return;o<t&&F(i,t-o,-1);let n=new O(i,s);a=a?a.compose(n.map(a)):n,i=[],s=[],o=0}return function e(u){if(Array.isArray(u))for(let t of u)e(t);else if(u instanceof O){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:e,to:a=e,insert:c}=u;if(e>a||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let h=c?"string"==typeof c?r.of(c.split(n||x)):c:r.empty,f=h.length;if(e==a&&0==f)return;e<o&&l(),e>o&&F(i,e-o,-1),F(i,a-e,f),_(s,i,h),o=a}}(e),l(!a),a}static empty(e){return new O(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let s=e[i];if("number"==typeof s)t.push(s,-1);else{if(!Array.isArray(s)||"number"!=typeof s[0]||s.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==s.length)t.push(s[0],0);else{for(;n.length<i;)n.push(r.empty);n[i]=r.of(s.slice(1)),t.push(s[0],n[i].length)}}}return new O(t,n)}static createSet(e,t){return new O(e,t)}}function F(e,t,n,r=!1){if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function _(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(r.empty);e.push(n)}}function T(e,t,n){let i=e.inserted;for(let s=0,o=0,a=0;a<e.sections.length;){let l=e.sections[a++],u=e.sections[a++];if(u<0)s+=l,o+=l;else{let c=s,h=o,f=r.empty;for(;c+=l,h+=u,u&&i&&(f=f.append(i[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],u=e.sections[a++];t(s,c,o,h,f),s=c,o=h}}}function B(e,t,n,r=!1){let i=[],s=r?[]:null,o=new I(e),a=new I(t);for(let e=-1;;)if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);F(i,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(a.len<o.len||a.len==o.len&&!n))){let t=a.len;for(F(i,a.ins,-1);t;){let n=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=n&&(F(i,0,o.ins),s&&_(s,i,o.text),e=o.i),o.forward(n),t-=n}a.next()}else{if(!(o.ins>=0)){if(o.done&&a.done)return s?O.createSet(i,s):S.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=o.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<n))break;n-=a.len,a.next()}F(i,t,e<o.i?o.ins:0),s&&e<o.i&&_(s,i,o.text),e=o.i,o.forward(o.len-n)}}}function P(e,t,n=!1){let r=[],i=n?[]:null,s=new I(e),o=new I(t);for(let e=!1;;){if(s.done&&o.done)return i?O.createSet(r,i):S.create(r);if(0==s.ins)F(r,s.len,0,e),s.next();else if(0!=o.len||o.done){if(s.done||o.done)throw new Error("Mismatched change set lengths");{let t=Math.min(s.len2,o.len),n=r.length;if(-1==s.ins){let n=-1==o.ins?-1:o.off?0:o.ins;F(r,t,n,e),i&&n&&_(i,r,o.text)}else-1==o.ins?(F(r,s.off?0:s.len,t,e),i&&_(i,r,s.textBit(t))):(F(r,s.off?0:s.len,o.off?0:o.ins,e),i&&!o.off&&_(i,r,o.text));e=(s.ins>t||o.ins>=0&&o.len>t)&&(e||r.length>n),s.forward2(t),o.forward(t)}}else F(r,0,o.ins,e),i&&_(i,r,o.text),o.next()}}class I{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class M{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new M(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return $.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return $.range(this.anchor,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return $.range(e.anchor,e.head)}static create(e,t,n){return new M(e,t,n)}}class ${constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:$.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new $([this.main],0)}addRange(e,t=!0){return $.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,$.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new $(e.ranges.map((e=>M.fromJSON(e))),e.main)}static single(e,t=e){return new $([$.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return $.normalized(e.slice(),t);n=i.to}return new $(e,t)}static cursor(e,t=0,n,r){return M.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:16777215)<<6)}static range(e,t,n,r){let i=(null!=n?n:16777215)<<6|(null==r?7:Math.min(6,r));return t<e?M.create(t,e,48|i):M.create(e,t,(t>e?8:0)|i)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;n<e.length;n++){let r=e[n],i=e[n-1];if(r.empty?r.from<=i.to:r.from<i.to){let s=i.from,o=Math.max(r.to,i.to);n<=t&&t--,e.splice(--n,2,r.anchor>r.head?$.range(o,s):$.range(s,o))}}return new $(e,t)}}function N(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let L=0;class R{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=L++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(e={}){return new R(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:j),!!e.static,e.enables)}of(e){return new q([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new q(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new q(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function j(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class q{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=L++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,s=e[i]>>1,o=2==this.type,a=!1,l=!1,u=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:1&(null!==(t=e[n.id])&&void 0!==t?t:1)||u.push(e[n.id]);return{create:e=>(e.values[s]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||z(e,u)){let t=n(e);if(o?!V(t,e.values[s],r):!r(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[i];if(null!=l){let i=ee(t,l);if(this.dependencies.every((n=>n instanceof R?t.facet(n)===e.facet(n):!(n instanceof W)||t.field(n,!1)==e.field(n,!1)))||(o?V(a=n(e),i,r):r(a=n(e),i)))return e.values[s]=i,0}else a=n(e);return e.values[s]=a,1}}}}function V(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function z(e,t){let n=!1;for(let r of t)1&X(e,r)&&(n=!0);return n}function U(e,t,n){let r=n.map((t=>e[t.id])),i=n.map((e=>e.type)),s=r.filter((e=>!(1&e))),o=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<r.length;t++){let s=ee(e,r[t]);if(2==i[t])for(let e of s)n.push(e);else n.push(s)}return t.combine(n)}return{create(e){for(let t of r)X(e,t);return e.values[o]=a(e),1},update(e,n){if(!z(e,s))return 0;let r=a(e);return t.compare(r,e.values[o])?0:(e.values[o]=r,1)},reconfigure(e,i){let s=z(e,r),l=i.config.facets[t.id],u=i.facet(t);if(l&&!s&&j(n,l))return e.values[o]=u,0;let c=a(e);return t.compare(c,u)?(e.values[o]=u,0):(e.values[o]=c,1)}}}const H=R.define({static:!0});class W{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new W(L++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(H).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,H.of({field:this,create:e})]}get extension(){return this}}function K(e){return t=>new J(t,e)}const G={highest:K(0),high:K(1),default:K(2),low:K(3),lowest:K(4)};class J{constructor(e,t){this.inner=e,this.prec=t}}class Y{of(e){return new Z(this,e)}reconfigure(e){return Y.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Z{constructor(e,t){this.compartment=e,this.inner=t}}class Q{constructor(e,t,n,r,i,s){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],i=Object.create(null),s=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;return function e(s,o){let a=i.get(s);if(null!=a){if(a<=o)return;let e=r[a].indexOf(s);e>-1&&r[a].splice(e,1),s instanceof Z&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let t of s)e(t,o);else if(s instanceof Z){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(s.compartment)||s.inner;n.set(s.compartment,r),e(r,o)}else if(s instanceof J)e(s.inner,s.prec);else if(s instanceof W)r[o].push(s),s.provides&&e(s.provides,o);else if(s instanceof q)r[o].push(s),s.facet.extensions&&e(s.facet.extensions,2);else{let t=s.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,o)}}(e,2),r.reduce(((e,t)=>e.concat(t)))}(e,t,s))n instanceof W?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let o=Object.create(null),a=[],l=[];for(let e of r)o[e.id]=l.length<<1,l.push((t=>e.slot(t)));let u=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,s=u&&u[e]||[];if(t.every((e=>0==e.type)))if(o[r.id]=a.length<<1|1,j(s,t))a.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));a.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(o[e.id]=a.length<<1|1,a.push(e.value)):(o[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));o[r.id]=l.length<<1,l.push((e=>U(e,r,t)))}}let c=l.map((e=>e(o)));return new Q(e,s,c,o,a,i)}}function X(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function ee(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const te=R.define(),ne=R.define({combine:e=>e.some((e=>e)),static:!0}),re=R.define({combine:e=>e.length?e[0]:void 0,static:!0}),ie=R.define(),se=R.define(),oe=R.define(),ae=R.define({combine:e=>!!e.length&&e[0]});class le{constructor(e,t){this.type=e,this.value=t}static define(){return new ue}}class ue{of(e){return new le(this,e)}}class ce{constructor(e){this.map=e}of(e){return new he(this,e)}}class he{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new he(this.type,t)}is(e){return this.type==e}static define(e={}){return new ce(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}he.reconfigure=he.define(),he.appendConfig=he.define();class fe{constructor(e,t,n,r,i,s){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=s,this._doc=null,this._state=null,n&&N(n,t.newLength),i.some((e=>e.type==fe.time))||(this.annotations=i.concat(fe.time.of(Date.now())))}static create(e,t,n,r,i,s){return new fe(e,t,n,r,i,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(fe.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function de(e,t){let n=[];for(let r=0,i=0;;){let s,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))s=e[r++],o=e[r++];else{if(!(i<t.length))return n;s=t[i++],o=t[i++]}!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function pe(e,t,n){var r;let i,s,o;return n?(i=t.changes,s=O.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(s):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:he.mapEffects(e.effects,i).concat(he.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function me(e,t,n){let r=t.selection,i=ve(t.annotations);return t.userEvent&&(i=i.concat(fe.userEvent.of(t.userEvent))),{changes:t.changes instanceof O?t.changes:O.of(t.changes||[],n,e.facet(re)),selection:r&&(r instanceof $?r:$.single(r.anchor,r.head)),effects:ve(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function ge(e,t,n){let r=me(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let i=1;i<t.length;i++){!1===t[i].filter&&(n=!1);let s=!!t[i].sequential;r=pe(r,me(e,t[i],s?r.changes.newLength:e.doc.length),s)}let i=fe.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){let t=e.startState,n=t.facet(oe),r=e;for(let i=n.length-1;i>=0;i--){let s=n[i](e);s&&Object.keys(s).length&&(r=pe(r,me(t,s,e.changes.newLength),!0))}return r==e?e:fe.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(ie)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:de(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=O.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=fe.create(t,r,e.selection&&e.selection.map(i),he.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(se);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof fe?i:Array.isArray(i)&&1==i.length&&i[0]instanceof fe?i[0]:ge(t,ve(i),!1)}return e}(i):i)}fe.time=le.define(),fe.userEvent=le.define(),fe.addToHistory=le.define(),fe.remote=le.define();const ye=[];function ve(e){return null==e?ye:Array.isArray(e)?e:[e]}var be=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(be||(be={}));const we=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let De;try{De=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class ke{constructor(e,t,n,r,i,s){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,s&&(s._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)X(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return X(this,n),ee(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return ge(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let t of e.effects)t.is(Y.reconfigure)?(n&&(i=new Map,n.compartments.forEach(((e,t)=>i.set(t,e))),n=null),i.set(t.value.compartment,t.value.extension)):t.is(he.reconfigure)?(n=null,r=t.value):t.is(he.appendConfig)&&(n=null,r=ve(r).concat(t.value));n?t=e.startState.values.slice():(n=Q.resolve(r,i,this),t=new ke(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let s=e.startState.facet(ne)?e.newSelection:e.newSelection.asSingle();new ke(n,e.newDoc,s,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:$.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],s=ve(n.effects);for(let n=1;n<t.ranges.length;n++){let o=e(t.ranges[n]),a=this.changes(o.changes),l=a.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(l);let u=r.mapDesc(a,!0);i.push(o.range.map(u)),r=r.compose(l),s=he.mapEffects(s,l).concat(he.mapEffects(ve(o.effects),u))}return{changes:r,selection:$.create(i,t.mainIndex),effects:s}}changes(e=[]){return e instanceof O?e:O.of(e,this.doc.length,this.facet(ke.lineSeparator))}toText(e){return r.of(e.split(this.facet(ke.lineSeparator)||x))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(X(this,t),ee(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof W&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let i=n[t],s=e[t];r.push(i.init((e=>i.spec.fromJSON(s,e))))}return ke.create({doc:e.doc,selection:$.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=Q.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(ke.lineSeparator)||x)),i=e.selection?e.selection instanceof $?e.selection:$.single(e.selection.anchor,e.selection.head):$.single(0);return N(i,n.length),t.staticFacet(ne)||(i=i.asSingle()),new ke(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(ke.tabSize)}get lineBreak(){return this.facet(ke.lineSeparator)||"\n"}get readOnly(){return this.facet(ae)}phrase(e,...t){for(let t of this.facet(ke.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(te))for(let s of i(this,t,n))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return be.Space;if(function(e){if(De)return De.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||we.test(n)))return!0}return!1}(e))return be.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return be.Word;return be.Other};var t}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),s=e-n,o=e-n;for(;s>0;){let e=y(t,s,!1);if(i(t.slice(e,s))!=be.Word)break;s=e}for(;o<r;){let e=y(t,o);if(i(t.slice(o,e))!=be.Word)break;o=e}return s==o?null:$.range(s+n,o+n)}}function Ae(e,t,n={}){let r={};for(let t of e)for(let e of Object.keys(t)){let i=t[e],s=r[e];if(void 0===s)r[e]=i;else if(s===i||void 0===i);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](s,i)}}for(let e in t)void 0===r[e]&&(r[e]=t[e]);return r}ke.allowMultipleSelections=ne,ke.tabSize=R.define({combine:e=>e.length?e[0]:4}),ke.lineSeparator=re,ke.readOnly=ae,ke.phrases=R.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),ke.languageData=te,ke.changeFilter=ie,ke.transactionFilter=se,ke.transactionExtender=oe,Y.reconfigure=he.define();class Ee{eq(e){return this==e}range(e,t=e){return xe.create(e,t,this)}}Ee.prototype.startSide=Ee.prototype.endSide=0,Ee.prototype.point=!1,Ee.prototype.mapMode=C.TrackDel;class xe{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new xe(e,t,n)}}function Ce(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Se{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let s=r,o=i.length;;){if(s==o)return s;let r=s+o>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==s)return a>=0?s:o;a>=0?o=r:s=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),s=this.findIndex(n,1e9,!1,i);i<s;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],s=-1,o=-1;for(let a=0;a<this.value.length;a++){let l,u,c=this.value[a],h=this.from[a]+e,f=this.to[a]+e;if(h==f){let e=t.mapPos(h,c.startSide,c.mapMode);if(null==e)continue;if(l=u=e,c.startSide!=c.endSide&&(u=t.mapPos(h,c.endSide),u<l))continue}else if(l=t.mapPos(h,c.startSide),u=t.mapPos(f,c.endSide),l>u||l==u&&c.startSide>0&&c.endSide<=0)continue;(u-l||c.endSide-c.startSide)<0||(s<0&&(s=l),c.point&&(o=Math.max(o,u-l)),n.push(c),r.push(l-s),i.push(u-s))}return{mapped:n.length?new Se(r,i,n,o):null,pos:s}}}class Oe{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Oe(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(n&&(t=t.slice().sort(Ce)),this.isEmpty)return t.length?Oe.of(t):this;let o=new Te(this,null,-1).goto(0),a=0,l=[],u=new Fe;for(;o.value||a<t.length;)if(a<t.length&&(o.from-t[a].from||o.startSide-t[a].value.startSide)>=0){let e=t[a++];u.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(o.chunkIndex)<t[a].from)&&(!s||r>this.chunkEnd(o.chunkIndex)||i<this.chunkPos[o.chunkIndex])&&u.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||r>o.to||i<o.from||s(o.from,o.to,o.value))&&(u.addInner(o.from,o.to,o.value)||l.push(xe.create(o.from,o.to,o.value))),o.next());return u.finishInner(this.nextLayer.isEmpty&&!l.length?Oe.empty:this.nextLayer.update({add:l,filter:s,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i],a=e.touchesRange(s,s+o.length);if(!1===a)r=Math.max(r,o.maxPoint),t.push(o),n.push(e.mapPos(s));else if(!0===a){let{mapped:i,pos:a}=o.map(s,e);i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new Oe(n,t,i||Oe.empty,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],s=this.chunk[r];if(t>=i&&e<=i+s.length&&!1===s.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Be.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Be.from(e).goto(t)}static compare(e,t,n,r,i=-1){let s=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),o=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=_e(s,o,n),l=new Ie(s,a,i),u=new Ie(o,a,i);n.iterGaps(((e,t,n)=>Me(l,e,u,t,n,r))),n.empty&&0==n.length&&Me(l,0,u,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=s.length)return!1;if(!i.length)return!0;let o=_e(i,s),a=new Ie(i,o,0).goto(n),l=new Ie(s,o,0).goto(n);for(;;){if(a.to!=l.to||!$e(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r,i=-1){let s=new Ie(e,null,i).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,n);if(s.point){let n=s.activeForPoint(s.to),i=s.pointFrom<t?n.length+1:s.point.startSide<0?n.length:Math.min(n.length,a);r.point(o,e,s.point,n,i,s.pointRank),a=Math.min(s.openEnd(e),n.length)}else e>o&&(r.span(o,e,s.active,a),a=s.openEnd(e));if(s.to>n)return a+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(e,t=!1){let n=new Fe;for(let r of e instanceof xe?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(Ce(t,r)>0)return e.slice().sort(Ce);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){if(!e.length)return Oe.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=Oe.empty;r=r.nextLayer)t=new Oe(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint));return t}}Oe.empty=new Oe([],[],null,-1),Oe.empty.nextLayer=Oe.empty;class Fe{finishChunk(e){this.chunks.push(new Se(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Fe)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Oe.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Oe.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function _e(e,t,n){let r=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&r.set(t.chunk[e],t.chunkPos[e]);let i=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let s=r.get(e.chunk[t]);null==s||(n?n.mapPos(s):s)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(s,s+e.chunk[t].length))||i.add(e.chunk[t])}return i}class Te{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Be{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let s=e[i];!s.isEmpty;s=s.nextLayer)s.maxPoint>=n&&r.push(new Te(s,t,n,i));return 1==r.length?r[0]:new Be(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Pe(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Pe(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Pe(this.heap,0)}}}function Pe(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class Ie{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Be.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ne(this.active,e),Ne(this.activeTo,e),Ne(this.activeRank,e),this.minActive=Re(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&(i-this.activeRank[t]||r-this.activeTo[t])>0;)t++;Le(this.active,t,n),Le(this.activeTo,t,r),Le(this.activeRank,t,i),e&&Le(e,t,this.cursor.from),this.minActive=Re(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Ne(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Me(e,t,n,r,i,s){e.goto(t),n.goto(r);let o=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,o);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&$e(e.activeForPoint(e.to),n.activeForPoint(n.to))||s.comparePoint(a,i,e.point,n.point):i>a&&!$e(e.active,n.active)&&s.compareRange(a,i,e.active,n.active),r>o)break;a=r,t<=0&&e.next(),t>=0&&n.next()}}function $e(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function Ne(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function Le(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function Re(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function je(e,t,n=e.length){let r=0;for(let i=0;i<n;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=y(e,i));return r}function qe(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=y(e,r)}return!0===r?-1:e.length}},83173:(e,t,n)=>{"use strict";n.d(t,{NZ:()=>pe,OP:()=>Ae,Lz:()=>tr,wJ:()=>Zr,Z9:()=>it,xO:()=>fe,VH:()=>Dr,ld:()=>Wr,Eg:()=>zr,cU:()=>ti,Wu:()=>bi,Ux:()=>Vr,w4:()=>ur,$K:()=>mi,c_:()=>et,S7:()=>Yr,DK:()=>$r});for(var r=n(14830),i=n(98104),s={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},a="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=0;u<10;u++)s[48+u]=s[96+u]=String(u);for(u=1;u<=24;u++)s[u+111]="F"+u;for(u=65;u<=90;u++)s[u]=String.fromCharCode(u+32),o[u]=String.fromCharCode(u);for(var c in s)o.hasOwnProperty(c)||(o[c]=s[c]);function h(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function f(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function d(e,t){if(!t.anchorNode)return!1;try{return f(e,t.anchorNode)}catch(e){return!1}}function p(e){return 3==e.nodeType?S(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function m(e,t,n,r){return!!n&&(v(e,t,n,r,-1)||v(e,t,n,r,1))}function g(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function y(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function v(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:b(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=g(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?b(e):0}}}function b(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function w(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function D(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function k(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}class A{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?b(t):0),n,Math.min(e.focusOffset,n?b(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let E,x=null;function C(e){if(e.setActive)return e.setActive();if(x)return e.focus(x);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],i=t[e++];n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}}}function S(e,t,n=t){let r=E||(E=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function O(e,t,n,r){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let s=new KeyboardEvent("keydown",i);s.synthetic=!0,e.dispatchEvent(s);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,e.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function F(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function _(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function T(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null;n=n.childNodes[r-1],r=b(n)}else{if(!n.parentNode||y(n))return null;r=g(n),n=n.parentNode}}}function B(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r};if(1==n.nodeType&&r<n.childNodes.length){if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{if(!n.parentNode||y(n))return null;r=g(n)+1,n=n.parentNode}}}class P{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new P(e.parentNode,g(e),t)}static after(e,t){return new P(e.parentNode,g(e)+1,t)}}const I=[];class M{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,i=null;for(let s of this.children){if(7&s.flags){if(!s.dom&&(n=i?i.nextSibling:r.firstChild)){let e=M.get(n);(!e||!e.parent&&e.canReuseDOM(s))&&s.reuseDOM(n)}s.sync(e,t),s.flags&=-8}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=s.dom&&(t.written=!0),s.dom.parentNode==r)for(;n&&n!=s.dom;)n=$(n);else r.insertBefore(s.dom,n);i=s.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=$(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==b(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!M.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let r=this.children[e];if(r.dom==n)return t;t+=r.length+r.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,i=-1,s=-1,o=-1;for(let a=0,l=n,u=n;a<this.children.length;a++){let n=this.children[a],c=l+n.length;if(l<e&&c>t)return n.domBoundsAround(e,t,l);if(c>=e&&-1==r&&(r=a,i=l),l>t&&n.dom.parentNode==this.dom){s=a,o=u;break}u=c,l=c+n.breakAfter}return{from:i,to:o<0?n+this.length:o,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=I){this.markDirty();for(let r=e;r<t;r++){let e=this.children[r];e.parent==this&&n.indexOf(e)<0&&e.destroy()}this.children.splice(e,t-e,...n);for(let e=0;e<n.length;e++)n[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new N(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,i,s){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function $(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}M.prototype.breakAfter=0;class N{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function L(e,t,n,r,i,s,o,a,l){let{children:u}=e,c=u.length?u[t]:null,h=s.length?s[s.length-1]:null,f=h?h.breakAfter:o;if(!(t==r&&c&&!o&&!f&&s.length<2&&c.merge(n,i,s.length?h:null,0==n,a,l))){if(r<u.length){let e=u[r];e&&(i<e.length||e.breakAfter&&(null==h?void 0:h.breakAfter))?(t==r&&(e=e.split(i),i=0),!f&&h&&e.merge(0,i,h,!0,0,l)?s[s.length-1]=e:((i||e.children.length&&!e.children[0].length)&&e.merge(0,i,null,!1,0,l),s.push(e))):(null==e?void 0:e.breakAfter)&&(h?h.breakAfter=1:o=1),r++}for(c&&(c.breakAfter=o,n>0&&(!o&&s.length&&c.merge(n,c.length,s[0],!1,a,0)?c.breakAfter=s.shift().breakAfter:(n<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(n,c.length,null,!1,a,0),t++));t<r&&s.length;)if(u[r-1].become(s[s.length-1]))r--,s.pop(),l=s.length?0:a;else{if(!u[t].become(s[0]))break;t++,s.shift(),a=s.length?0:l}!s.length&&t&&r<u.length&&!u[t-1].breakAfter&&u[r].merge(0,0,u[t-1],!1,a,l)&&t--,(t<r||s.length)&&e.replaceChildren(t,r,s)}}function R(e,t,n,r,i,s){let o=e.childCursor(),{i:a,off:l}=o.findPos(n,1),{i:u,off:c}=o.findPos(t,-1),h=t-n;for(let e of r)h+=e.length;e.length+=h,L(e,u,c,a,l,r,0,i,s)}let j="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},q="undefined"!=typeof document?document:{documentElement:{style:{}}};const V=/Edge\/(\d+)/.exec(j.userAgent),z=/MSIE \d/.test(j.userAgent),U=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(j.userAgent),H=!!(z||U||V),W=!H&&/gecko\/(\d+)/i.test(j.userAgent),K=!H&&/Chrome\/(\d+)/.exec(j.userAgent),G="webkitFontSmoothing"in q.documentElement.style,J=!H&&/Apple Computer/.test(j.vendor),Y=J&&(/Mobile\/\w+/.test(j.userAgent)||j.maxTouchPoints>2);var Z={mac:Y||/Mac/.test(j.platform),windows:/Win/.test(j.platform),linux:/Linux|X11/.test(j.platform),ie:H,ie_version:z?q.documentMode||6:U?+U[1]:V?+V[1]:0,gecko:W,gecko_version:W?+(/Firefox\/(\d+)/.exec(j.userAgent)||[0,0])[1]:0,chrome:!!K,chrome_version:K?+K[1]:0,ios:Y,android:/Android\b/.test(j.userAgent),webkit:G,safari:J,webkit_version:G?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=q.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Q extends M{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof Q)||this.length-(t-e)+n.length>256||8&n.flags)||(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new Q(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new P(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,s=t,o=0;0==t&&n<0||t==r&&n>=0?Z.chrome||Z.gecko||(t?(i--,o=1):s<r&&(s++,o=-1)):n<0?i--:s<r&&s++;let a=S(e,i,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:n>=0)?0:a.length-1];return Z.safari&&!o&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l),o?w(l,o<0):l||null}(this.dom,e,t)}}class X extends M{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(F(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,s){return!(n&&(!(n instanceof X&&n.mark.eq(this.mark))||e&&i<=0||t<this.length&&s<=0)||(R(this,e,t,n?n.children.slice():[],i-1,s-1),this.markDirty(),0))}split(e){let t=[],n=0,r=-1,i=0;for(let s of this.children){let o=n+s.length;o>e&&t.push(n<e?s.split(e-n):s),r<0&&n>=e&&(r=i),n=o,i++}let s=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new X(this.mark,t,s)}domAtPos(e){return ne(this,e)}coordsAt(e,t){return ie(this,e,t)}}class ee extends M{static create(e,t,n){return new ee(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=ee.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,r,i,s){return!(n&&(!(n instanceof ee&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&s<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}become(e){return e instanceof ee&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return r.EY.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):r.EY.empty}domAtPos(e){return(this.length?0==e:this.side>0)?P.before(this.dom):P.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let s=this.side?this.side<0:e>0;for(let t=s?r.length-1:0;i=r[t],!(e>0?0==t:t==r.length-1||i.top<i.bottom);t+=s?-1:1);return w(i,!s)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class te extends M{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof te&&e.side==this.side}split(){return new te(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?P.before(this.dom):P.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.EY.empty}get isHidden(){return!0}}function ne(e,t){let n=e.dom,{children:r}=e,i=0;for(let e=0;i<r.length;i++){let s=r[i],o=e+s.length;if(!(o==e&&s.getSide()<=0)){if(t>e&&t<o&&s.dom.parentNode==n)return s.domAtPos(t-e);if(t<=e)break;e=o}}for(let e=i;e>0;e--){let t=r[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=i;e<r.length;e++){let t=r[e];if(t.dom.parentNode==n)return t.domAtPos(0)}return new P(n,0)}function re(e,t,n){let r,{children:i}=e;n>0&&t instanceof X&&i.length&&(r=i[i.length-1])instanceof X&&r.mark.eq(t.mark)?re(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function ie(e,t,n){let r=null,i=-1,s=null,o=-1;!function e(t,a){for(let l=0,u=0;l<t.children.length&&u<=a;l++){let c=t.children[l],h=u+c.length;h>=a&&(c.children.length?e(c,a-u):(!s||s.isHidden&&n>0)&&(h>a||u==h&&c.getSide()>0)?(s=c,o=a-u):(u<a||u==h&&c.getSide()<0&&!c.isHidden)&&(r=c,i=a-u)),u=h}}(e,t);let a=(n<0?r:s)||r||s;return a?a.coordsAt(Math.max(0,a==r?i:o),n):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=p(t);return n[n.length-1]||null}(e)}function se(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}Q.prototype.children=ee.prototype.children=te.prototype.children=I;const oe=Object.create(null);function ae(e,t,n){if(e==t)return!0;e||(e=oe),t||(t=oe);let r=Object.keys(e),i=Object.keys(t);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let s of r)if(s!=n&&(-1==i.indexOf(s)||e[s]!==t[s]))return!1;return!0}function le(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function ue(e){let t=Object.create(null);for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t}class ce extends M{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,s){if(n){if(!(n instanceof ce))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),R(this,e,t,n?n.children.slice():[],i,s),!0}split(e){let t=new ce;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e<this.children.length;e++)t.append(this.children[e],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ae(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){re(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=se(t,this.attrs||{})),n&&(this.attrs=se({class:n},this.attrs||{}))}domAtPos(e){return ne(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(F(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(le(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&M.get(r)instanceof X;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=M.get(r))||void 0===n?void 0:n.isEditable)||Z.ios&&this.children.some((e=>e instanceof Q))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof Q)||/[^ -~]/.test(n.text))return null;let r=p(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=ie(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let r=(t-e.textHeight)/2;return{top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(e){return!1}covers(){return!0}static find(e,t){for(let n=0,r=0;n<e.children.length;n++){let i=e.children[n],s=r+i.length;if(s>=t){if(i instanceof ce)return i;if(s>t)break}r=s+i.breakAfter}return null}}class he extends M{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,s){return!(n&&(!(n instanceof he&&this.widget.compare(n.widget))||e>0&&i<=0||t<this.length&&s<=0)||(this.length=e+(n?n.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?P.before(this.dom):P.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new he(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return I}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):r.EY.empty}domBoundsAround(){return null}become(e){return e instanceof he&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t!=n&&(e<0?t<0:n>0)}}class fe{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var de=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(de||(de={}));class pe extends r.FB{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new me(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new ye(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:s}=ve(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(s?r?2e8:1:-6e8)}return new ye(e,t,n,r,e.widget||null,!0)}static line(e){return new ge(e)}static set(e,t=!1){return r.om.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}pe.none=r.om.empty;class me extends pe{constructor(e){let{start:t,end:n}=ve(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof me&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&ae(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}me.prototype.point=!1;class ge extends pe{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof ge&&this.spec.class==e.spec.class&&ae(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}ge.prototype.mapMode=r.iR.TrackBefore,ge.prototype.point=!0;class ye extends pe{constructor(e,t,n,i,s,o){super(t,n,s,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?r.iR.TrackBefore:r.iR.TrackAfter:r.iR.TrackDel}get type(){return this.startSide!=this.endSide?de.WidgetRange:this.startSide<=0?de.WidgetBefore:de.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof ye&&((t=this.widget)==(n=e.widget)||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function ve(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function be(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}ye.prototype.point=!0;class we{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof he&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ce),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(De(new te(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof he||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(De(new Q(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,s){if(this.disallowBlockEffectsFor[s]&&n instanceof ye){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=t-e;if(n instanceof ye)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new he(n.widget||ke.block,o,n));else{let s=ee.create(n.widget||ke.inline,o,o?0:n.startSide),a=this.atCursorPos&&!s.isEditable&&i<=r.length&&(e<t||n.startSide>0),l=!s.isEditable&&(e<t||i>r.length||n.startSide<=0),u=this.getLine();2!=this.pendingBuffer||a||s.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),a&&(u.append(De(new te(1),r),i),i=r.length+Math.max(0,i-r.length)),u.append(De(s,r),i),this.atCursorPos=l,this.pendingBuffer=l?e<t||i>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,s){let o=new we(e,t,n,s);return o.openEnd=r.om.spans(i,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function De(e,t){for(let n of t)e=new X(n,[e],e.length);return e}class ke extends fe{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ke.inline=new ke("span"),ke.block=new ke("div");var Ae=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Ae||(Ae={}));const Ee=Ae.LTR,xe=Ae.RTL;function Ce(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const Se=Ce("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Oe=Ce("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Fe=Object.create(null),_e=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);Fe[t]=n,Fe[n]=-t}function Te(e){return e<=247?Se[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?Oe[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const Be=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Pe{get dir(){return this.level%2?xe:Ee}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,r){let i=-1;for(let s=0;s<e.length;s++){let o=e[s];if(o.from<=t&&o.to>=t){if(o.level==n)return s;(i<0||(0!=r?r<0?o.from<t:o.to>t:e[i].level>o.level))&&(i=s)}}if(i<0)throw new RangeError("Index out of range");return i}}function Ie(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!Ie(r.inner,i.inner))return!1}return!0}const Me=[];function $e(e,t,n,r,i,s,o){let a=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;l<n;){let t=!0,c=!1;if(u==s.length||l<s[u].from){let e=Me[l];e!=a&&(t=!1,c=16==e)}let h=t||1!=a?null:[],f=t?r:r+1,d=l;e:for(;;)if(u<s.length&&d==s[u].from){if(c)break e;let p=s[u];if(!t)for(let e=p.to,t=u+1;;){if(e==n)break e;if(!(t<s.length&&s[t].from==e)){if(Me[e]==a)break e;break}e=s[t++].to}u++,h?h.push(p):(p.from>l&&o.push(new Pe(l,p.from,f)),Ne(e,p.direction==Ee!=!(f%2)?r+1:r,i,p.inner,p.from,p.to,o),l=p.to),d=p.to}else{if(d==n||(t?Me[d]!=a:Me[d]==a))break;d++}h?$e(e,l,d,r+1,i,h,o):l<d&&o.push(new Pe(l,d,f)),l=d}else for(let l=n,u=s.length;l>t;){let n=!0,c=!1;if(!u||l>s[u-1].to){let e=Me[l-1];e!=a&&(n=!1,c=16==e)}let h=n||1!=a?null:[],f=n?r:r+1,d=l;e:for(;;)if(u&&d==s[u-1].to){if(c)break e;let p=s[--u];if(!n)for(let e=p.from,n=u;;){if(e==t)break e;if(!n||s[n-1].to!=e){if(Me[e-1]==a)break e;break}e=s[--n].from}h?h.push(p):(p.to<l&&o.push(new Pe(p.to,l,f)),Ne(e,p.direction==Ee!=!(f%2)?r+1:r,i,p.inner,p.from,p.to,o),l=p.from),d=p.from}else{if(d==t||(n?Me[d-1]!=a:Me[d-1]==a))break;d--}h?$e(e,d,l,r+1,i,h,o):d<l&&o.push(new Pe(d,l,f)),l=d}}function Ne(e,t,n,r,i,s,o){let a=t%2?2:1;!function(e,t,n,r,i){for(let s=0;s<=r.length;s++){let o=s?r[s-1].to:t,a=s<r.length?r[s].from:n,l=s?256:i;for(let t=o,n=l,r=l;t<a;t++){let i=Te(e.charCodeAt(t));512==i?i=n:8==i&&4==r&&(i=16),Me[t]=4==i?2:i,7&i&&(r=i),n=i}for(let e=o,t=l,r=l;e<a;e++){let i=Me[e];if(128==i)e<a-1&&t==Me[e+1]&&24&t?i=Me[e]=t:Me[e]=256;else if(64==i){let i=e+1;for(;i<a&&64==Me[i];)i++;let s=e&&8==t||i<n&&8==Me[i]?1==r?1:8:256;for(let t=e;t<i;t++)Me[t]=s;e=i-1}else 8==i&&1==r&&(Me[e]=1);t=i,7&i&&(r=i)}}}(e,i,s,r,a),function(e,t,n,r,i){let s=1==i?2:1;for(let o=0,a=0,l=0;o<=r.length;o++){let u=o?r[o-1].to:t,c=o<r.length?r[o].from:n;for(let t,n,r,o=u;o<c;o++)if(n=Fe[t=e.charCodeAt(o)])if(n<0){for(let e=a-3;e>=0;e-=3)if(_e[e+1]==-n){let t=_e[e+2],n=2&t?i:4&t?1&t?s:i:0;n&&(Me[o]=Me[_e[e]]=n),a=e;break}}else{if(189==_e.length)break;_e[a++]=o,_e[a++]=t,_e[a++]=l}else if(2==(r=Me[o])||1==r){let e=r==i;l=e?0:1;for(let t=a-3;t>=0;t-=3){let n=_e[t+2];if(2&n)break;if(e)_e[t+2]|=2;else{if(4&n)break;_e[t+2]|=4}}}}}(e,i,s,r,a),function(e,t,n,r){for(let i=0,s=r;i<=n.length;i++){let o=i?n[i-1].to:e,a=i<n.length?n[i].from:t;for(let l=o;l<a;){let o=Me[l];if(256==o){let o=l+1;for(;;)if(o==a){if(i==n.length)break;o=n[i++].to,a=i<n.length?n[i].from:t}else{if(256!=Me[o])break;o++}let u=1==s,c=u==(1==(o<t?Me[o]:r))?u?1:2:r;for(let t=o,r=i,s=r?n[r-1].to:e;t>l;)t==s&&(t=n[--r].from,s=r?n[r-1].to:e),Me[--t]=c;l=o}else s=o,l++}}}(i,s,r,a),$e(e,i,s,t,n,r,o)}function Le(e){return[new Pe(0,e,0)]}let Re="";function je(e,t,n,i,s){var o;let a=i.head-e.from,l=Pe.find(t,a,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc),u=t[l],c=u.side(s,n);if(a==c){let e=l+=s?1:-1;if(e<0||e>=t.length)return null;u=t[l=e],a=u.side(!s,n),c=u.side(s,n)}let h=(0,r.zK)(e.text,a,u.forward(s,n));(h<u.from||h>u.to)&&(h=c),Re=e.text.slice(Math.min(a,h),Math.max(a,h));let f=l==(s?t.length-1:0)?null:t[l+(s?1:-1)];return f&&h==c&&f.level+(s?0:1)<u.level?r.OF.cursor(f.side(!s,n)+e.from,f.forward(s,n)?1:-1,f.level):r.OF.cursor(h+e.from,u.forward(s,n)?-1:1,u.level)}function qe(e,t,n){for(let r=t;r<n;r++){let t=Te(e.charCodeAt(r));if(1==t)return Ee;if(2==t||4==t)return xe}return Ee}const Ve=r.sj.define(),ze=r.sj.define(),Ue=r.sj.define(),He=r.sj.define(),We=r.sj.define(),Ke=r.sj.define(),Ge=r.sj.define(),Je=r.sj.define({combine:e=>e.some((e=>e))}),Ye=r.sj.define({combine:e=>e.some((e=>e))}),Ze=r.sj.define();class Qe{constructor(e,t="nearest",n="nearest",r=5,i=5,s=!1){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=s}map(e){return e.empty?this:new Qe(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Qe(r.OF.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Xe=r.Pe.define({map:(e,t)=>e.map(t)});function et(e,t,n){let r=e.facet(He);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const tt=r.sj.define({combine:e=>!e.length||e[0]});let nt=0;const rt=r.sj.define();class it{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:s}=t||{};return new it(nt++,e,n,r,(e=>{let t=[rt.of(e)];return s&&t.push(lt.of((t=>{let n=t.plugin(e);return n?s(n):pe.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return it.define((t=>new e(t)),t)}}class st{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(et(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){et(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){et(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const ot=r.sj.define(),at=r.sj.define(),lt=r.sj.define(),ut=r.sj.define(),ct=r.sj.define(),ht=r.sj.define();function ft(e,t){let n=e.state.facet(ht);if(!n.length)return n;let i=n.map((t=>t instanceof Function?t(e):t)),s=[];return r.om.spans(i,t.from,t.to,{point(){},span(e,n,r,i){let o=e-t.from,a=n-t.from,l=s;for(let e=r.length-1;e>=0;e--,i--){let n,s=r[e].spec.bidiIsolate;if(null==s&&(s=qe(t.text,o,a)),i>0&&l.length&&(n=l[l.length-1]).to==o&&n.direction==s)n.to=a,l=n.inner;else{let e={from:o,to:a,direction:s,inner:[]};l.push(e),l=e.inner}}}}),s}const dt=r.sj.define();function pt(e){let t=0,n=0,r=0,i=0;for(let s of e.state.facet(dt)){let o=s(e);o&&(null!=o.left&&(t=Math.max(t,o.left)),null!=o.right&&(n=Math.max(n,o.right)),null!=o.top&&(r=Math.max(r,o.top)),null!=o.bottom&&(i=Math.max(i,o.bottom)))}return{left:t,right:n,top:r,bottom:i}}const mt=r.sj.define();class gt{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new gt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let r=0,i=0,s=0,o=0;;r++){let a=r==e.length?null:e[r],l=s-o,u=a?a.fromB:1e9;for(;i<t.length&&t[i]<u;){let e=t[i],r=t[i+1],s=Math.max(o,e),a=Math.min(u,r);if(s<=a&&new gt(s+l,a+l,s,a).addToSet(n),r>u)break;i+=2}if(!a)return n;new gt(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),s=a.toA,o=a.toB}}}class yt{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.VR.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new gt(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new yt(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class vt extends M{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ce],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new gt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let n=!1;return t&&e.iterChangedRanges(((e,r)=>{e<t.to&&r>t.from&&(n=!0)})),n}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let s=i>-1?function(e,t,n){let r=wt(e,n);if(!r)return null;let{node:i,from:s,to:o}=r,a=i.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(r.from,r.to)!=a)return null;let l=t.invertedDesc,u=new gt(l.mapPos(s),l.mapPos(o),s,o),c=[];for(let t=i.parentNode;;t=t.parentNode){let n=M.get(t);if(n instanceof X)c.push({node:t,deco:n.mark});else{if(n instanceof ce||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:u,text:i,marks:c,line:t};if(t==e.contentDOM)return null;c.push({node:t,deco:new me({inclusive:!0,attributes:ue(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new gt(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(Z.ie||Z.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=function(e,t,n){let i=new Dt;return r.om.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return n=gt.extendWithRanges(n,o),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=Z.chrome||Z.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof he&&e.widget instanceof bt&&i.push(e.dom);r.updateGaps(i)}updateChildren(e,t,n){let r=n?n.range.addToSet(e.slice()):e,i=this.childCursor(t);for(let e=r.length-1;;e--){let t=e>=0?r[e]:null;if(!t)break;let s,o,a,l,{fromA:u,toA:c,fromB:h,toB:f}=t;if(n&&n.range.fromB<f&&n.range.toB>h){let e=we.build(this.view.state.doc,h,n.range.fromB,this.decorations,this.dynamicDecorationMap),t=we.build(this.view.state.doc,n.range.toB,f,this.decorations,this.dynamicDecorationMap);o=e.breakAtStart,a=e.openStart,l=t.openEnd;let r=this.compositionView(n);t.breakAtStart?r.breakAfter=1:t.content.length&&r.merge(r.length,r.length,t.content[0],!1,t.openStart,0)&&(r.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&r.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),s=e.content.concat(r).concat(t.content)}else({content:s,breakAtStart:o,openStart:a,openEnd:l}=we.build(this.view.state.doc,h,f,this.decorations,this.dynamicDecorationMap));let{i:d,off:p}=i.findPos(c,1),{i:m,off:g}=i.findPos(u,-1);L(this,m,g,d,p,s,o,a,l)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Q(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new X(n,[t],t.length);let n=new ce;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=M.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,i=!r&&d(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||t||i))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(o.anchor)),l=o.empty?a:this.moveToLine(this.domAtPos(o.head));if(Z.gecko&&o.empty&&!this.hasComposition&&1==(u=a).node.nodeType&&u.node.firstChild&&(0==u.offset||"false"==u.node.childNodes[u.offset-1].contentEditable)&&(u.offset==u.node.childNodes.length||"false"==u.node.childNodes[u.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null))),a=l=new P(e,0),s=!0}var u;let c=this.view.observer.selectionRange;!s&&c.focusNode&&(m(a.node,a.offset,c.anchorNode,c.anchorOffset)&&m(l.node,l.offset,c.focusNode,c.focusOffset)||this.suppressWidgetCursorChange(c,o))||(this.view.observer.ignore((()=>{Z.android&&Z.chrome&&this.dom.contains(c.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=h(this.view.root);if(e)if(o.empty){if(Z.gecko){let e=(t=a.node,r=a.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|(r<t.childNodes.length&&"false"==t.childNodes[r].contentEditable?2:0));if(e&&3!=e){let t=(1==e?T:B)(a.node,a.offset);t&&(a=new P(t.node,t.offset))}}e.collapse(a.node,a.offset),null!=o.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=o.bidiLevel)}else if(e.extend){e.collapse(a.node,a.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();o.anchor>o.head&&([a,l]=[l,a]),t.setEnd(l.node,l.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}var t,r;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new P(c.anchorNode,c.anchorOffset),this.impreciseHead=l.precise?null:new P(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&m(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=h(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let s=ce.find(this,t.head);if(!s)return;let o=s.posAtStart;if(t.head==o||t.head==o+s.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r<n.childNodes.length;r++){let e=M.get(n.childNodes[r]);e instanceof ce&&(t=e.domAtPos(0))}for(let r=e.offset-1;!t&&r>=0;r--){let e=M.get(n.childNodes[r]);e instanceof ce&&(t=e.domAtPos(e.length))}return t?new P(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=M.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof ce)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,r=0;for(let i=this.length,s=this.children.length-1;s>=0;s--){let o=this.children[s],a=i-o.breakAfter,l=a-o.length;if(a<e)break;l<=e&&(l<e||o.covers(-1))&&(a>e||o.covers(1))&&(!n||o instanceof ce&&!(n instanceof ce&&t>=0))&&(n=o,r=l),i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof ce))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(n,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}n=t}if(!(i instanceof Q))return null;let s=(0,r.zK)(i.text,n);if(s==n)return null;let o=S(i.dom,n,s).getClientRects();for(let e=0;e<o.length;e++){let t=o[e];if(e==o.length-1||t.top<t.bottom&&t.left<t.right)return t}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,s=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,a=this.view.textDirection==Ae.LTR;for(let e=0,l=0;l<this.children.length;l++){let u=this.children[l],c=e+u.length;if(c>r)break;if(e>=n){let n=u.dom.getBoundingClientRect();if(t.push(n.height),s){let t=u.dom.lastChild,r=t?p(t):[];if(r.length){let t=r[r.length-1],s=a?t.right-n.left:n.right-t.left;s>o&&(o=s,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=c)}}}e=c+u.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Ae.RTL:Ae.LTR}measureTextSize(){for(let e of this.children)if(e instanceof ce){let t=e.measureTextSize();if(t)return t}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=p(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new N(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],s=i?i.from-1:this.length;if(s>n){let r=(t.lineBlockAt(s).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(pe.replace({widget:new bt(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,s))}if(!i)break;n=i.to+1}return pe.set(e)}updateDeco(){let e=0,t=this.view.state.facet(lt).map((t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t)),n=!1,i=this.view.state.facet(ut).map(((e,t)=>{let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e}));for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(r.om.join(i))),this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let t of this.view.state.facet(Ze))try{if(t(this.view,e.range,e))return!0}catch(e){et(this.view.state,e,"scroll handler")}let t,{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=pt(this.view),s={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:o,offsetHeight:a}=this.view.scrollDOM;!function(e,t,n,r,i,s,o,a){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,h=!1;c&&!h;)if(1==c.nodeType){let e,f=c==l.body,d=1,p=1;if(f)e=D(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(h=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:d,scaleY:p}=k(c,t)),e={left:t.left,right:t.left+c.clientWidth*d,top:t.top,bottom:t.top+c.clientHeight*p}}let m=0,g=0;if("nearest"==i)t.top<e.top?(g=-(e.top-t.top+o),n>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+g+o)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+o,n<0&&t.top-g<e.top&&(g=-(e.top+g-t.top+o)));else{let r=t.bottom-t.top,s=e.bottom-e.top;g=("center"==i&&r<=s?t.top+r/2-s/2:"start"==i||"center"==i&&n<0?t.top-o:t.bottom-s+o)-e.top}if("nearest"==r?t.left<e.left?(m=-(e.left-t.left+s),n>0&&t.right>e.right+m&&(m=t.right-e.right+m+s)):t.right>e.right&&(m=t.right-e.right+s,n<0&&t.left<e.left+m&&(m=-(e.left+m-t.left+s))):m=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==a?t.left-s:t.right-(e.right-e.left)+s)-e.left,m||g)if(f)u.scrollBy(m,g);else{let e=0,n=0;if(g){let e=c.scrollTop;c.scrollTop+=g/p,n=(c.scrollTop-e)*p}if(m){let t=c.scrollLeft;c.scrollLeft+=m/d,e=(c.scrollLeft-t)*d}t={left:t.left-e,top:t.top-n,right:t.right-e,bottom:t.bottom-n},e&&Math.abs(e-m)<1&&(r="nearest"),n&&Math.abs(n-g)<1&&(i="nearest")}if(f)break;c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,s,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,o),-o),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==Ae.LTR)}}class bt extends fe{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function wt(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=T(n.focusNode,n.focusOffset),i=B(n.focusNode,n.focusOffset),s=r||i;if(i&&r&&i.node!=r.node){let t=M.get(i.node);if(!t||t instanceof Q&&t.text!=i.node.nodeValue)s=i;else if(e.docView.lastCompositionAfterCursor){let e=M.get(r.node);!e||e instanceof Q&&e.text!=r.node.nodeValue||(s=i)}}if(e.docView.lastCompositionAfterCursor=s!=r,!s)return null;let o=t-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}let Dt=class{constructor(){this.changes=[]}compareRange(e,t){be(e,t,this.changes)}comparePoint(e,t){be(e,t,this.changes)}};function kt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function At(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Et(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function xt(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function Ct(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function St(e,t,n){let r,i,s,o,a,l,u,c,h=!1;for(let f=e.firstChild;f;f=f.nextSibling){let e=p(f);for(let d=0;d<e.length;d++){let p=e[d];i&&Et(i,p)&&(p=xt(Ct(p,i.bottom),i.top));let m=kt(t,p),g=At(n,p);if(0==m&&0==g)return 3==f.nodeType?Ot(f,t,n):St(f,t,n);if(!r||o>g||o==g&&s>m){r=f,i=p,s=m,o=g;let a=g?n<p.top?-1:1:m?t<p.left?-1:1:0;h=!a||(a>0?d<e.length-1:d>0)}0==m?n>p.bottom&&(!u||u.bottom<p.bottom)?(a=f,u=p):n<p.top&&(!c||c.top>p.top)&&(l=f,c=p):u&&Et(u,p)?u=Ct(u,p.bottom):c&&Et(c,p)&&(c=xt(c,p.top))}}if(u&&u.bottom>=n?(r=a,i=u):c&&c.top<=n&&(r=l,i=c),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?Ot(r,f,n):h&&"false"!=r.contentEditable?St(r,f,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function Ot(e,t,n){let r=e.nodeValue.length,i=-1,s=1e9,o=0;for(let a=0;a<r;a++){let r=S(e,a,a+1).getClientRects();for(let l=0;l<r.length;l++){let u=r[l];if(u.top==u.bottom)continue;o||(o=t-u.left);let c=(u.top>n?u.top-n:n-u.bottom)-1;if(u.left-1<=t&&u.right+1>=t&&c<s){let n=t>=(u.left+u.right)/2,r=n;if((Z.chrome||Z.gecko)&&S(e,a).getBoundingClientRect().left==u.right&&(r=!n),c<=0)return{node:e,offset:a+(r?1:0)};i=a+(r?1:0),s=c}}}return{node:e,offset:i>-1?i:o>0?e.nodeValue.length:0}}function Ft(e,t,n,r=-1){var i,s;let o,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:u}=e.viewState,{x:c,y:h}=t,f=h-l;if(f<0)return 0;if(f>u)return e.state.doc.length;for(let t=e.viewState.heightOracle.textHeight/2,i=!1;o=e.elementAtHeight(f),o.type!=de.Text;)for(;f=r>0?o.bottom+t:o.top-t,!(f>=0&&f<=u);){if(i)return n?null:0;i=!0,r=-r}h=l+f;let d=o.from;if(d<e.viewport.from)return 0==e.viewport.from?0:n?null:_t(e,a,o,c,h);if(d>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:_t(e,a,o,c,h);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(c,h);g&&!e.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,h),g&&!e.contentDOM.contains(g)&&(g=null));let y,v=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(c,h);e&&({offsetNode:y,offset:v}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(c,h);t&&(({startContainer:y,startOffset:v}=t),(!e.contentDOM.contains(y)||Z.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return S(e,r-1,r).getBoundingClientRect().left>n}(y,v,c)||Z.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return n-(1==e.nodeType?e.getBoundingClientRect():S(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,v,c))&&(y=void 0))}if(!y||!e.docView.dom.contains(y)){let t=ce.find(e.docView,d);if(!t)return f>o.top+o.height/2?o.to:o.from;({node:y,offset:v}=St(t.dom,c,h))}let b=e.docView.nearest(y);if(!b)return null;if(b.isWidget&&1==(null===(s=b.dom)||void 0===s?void 0:s.nodeType)){let e=b.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?b.posAtStart:b.posAtEnd}return b.localPosFromDOM(y,v)+b.posAtStart}function _t(e,t,n,i,s){let o=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;o+=Math.floor((s-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.kn)(a,o,e.state.tabSize)}function Tt(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==de.Text))return e;return n}function Bt(e,t,n,r){let i=e.state.doc.lineAt(t.head),s=e.bidiSpans(i),o=e.textDirectionAt(i.from);for(let a=t,l=null;;){let t=je(i,s,o,a,n),u=Re;if(!t){if(i.number==(n?e.state.doc.lines:1))return a;u="\n",i=e.state.doc.line(i.number+(n?1:-1)),s=e.bidiSpans(i),t=e.visualLineSide(i,!n)}if(l){if(!l(u))return a}else{if(!r)return t;l=r(u)}a=t}}function Pt(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,s)=>{if(t>e&&t<i){let s=r||n||(t-e<i-t?-1:1);t=s<0?e:i,r=s}}));if(!r)return t}}function It(e,t,n){let i=Pt(e.state.facet(ct).map((t=>t(e))),n.from,t.head>n.from?-1:1);return i==n.from?n:r.OF.cursor(i,i<n.from?1:-1)}class Mt{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Z.safari&&e.contentDOM.addEventListener("input",(()=>null)),Z.gecko&&function(e){un.has(e)||(un.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=M.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Nt(e),n=this.handlers,r=this.view.contentDOM;for(let e in t)if("scroll"!=e){let i=!t[e].handlers.length,s=n[e];s&&i!=!s.handlers.length&&(r.removeEventListener(e,this.handleEvent),s=null),s||r.addEventListener(e,this.handleEvent,{passive:i})}for(let e in n)"scroll"==e||t[e]||r.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(27!=e.keyCode&&jt.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),Z.android&&Z.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!Z.ios||e.synthetic||e.altKey||e.metaKey||!((t=Lt.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||Rt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,O(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(Z.safari&&!Z.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function $t(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(e){et(n.state,e)}}}function Nt(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec;if(e&&e.domEventHandlers)for(let r in e.domEventHandlers){let i=e.domEventHandlers[r];i&&n(r).handlers.push($t(t.value,i))}if(e&&e.domEventObservers)for(let r in e.domEventObservers){let i=e.domEventObservers[r];i&&n(r).observers.push($t(t.value,i))}}for(let e in zt)n(e).handlers.push(zt[e]);for(let e in Ut)n(e).observers.push(Ut[e]);return t}const Lt=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Rt="dthko",jt=[16,17,18,20,91,92,224,225];function qt(e){return.7*Math.max(0,e)+8}class Vt{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(ct).map((t=>t(e)));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.$t.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Ve);return n.length?n[0](t):Z.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=h(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e<i.length;e++){let n=i[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=nn(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,r;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,r=e,Math.max(Math.abs(n.clientX-r.clientX),Math.abs(n.clientY-r.clientY))<10))return;this.select(this.lastEvent=e);let i=0,s=0,o=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=pt(this.view);e.clientX-a.left<=o.left+6?i=-qt(o.left-e.clientX):e.clientX+a.right>=o.right-6&&(i=qt(e.clientX-o.right)),e.clientY-a.top<=o.top+6?s=-qt(o.top-e.clientY):e.clientY+a.bottom>=o.bottom-6&&(s=qt(e.clientY-o.bottom)),this.setScrollSpeed(i,s)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let i=e.ranges[n],s=null;if(i.empty){let e=Pt(this.atoms,i.from,0);e!=i.from&&(s=r.OF.cursor(e,-1))}else{let e=Pt(this.atoms,i.from,-1),t=Pt(this.atoms,i.to,1);e==i.from&&t==i.to||(s=r.OF.range(i.from==i.anchor?e:t,i.from==i.head?e:t))}s&&(t||(t=e.ranges.slice()),t[n]=s)}return t?r.OF.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&n.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}const zt=Object.create(null),Ut=Object.create(null),Ht=Z.ie&&Z.ie_version<15||Z.ios&&Z.webkit_version<604;function Wt(e,t){let n,{state:i}=e,s=1,o=i.toText(t),a=o.lines==i.selection.ranges.length;if(null!=sn&&i.selection.ranges.every((e=>e.empty))&&sn==o.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let u=i.toText((a?o.line(s++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:u},range:r.OF.cursor(n.from+u.length)}}))}else n=a?i.changeByRange((e=>{let t=o.line(s++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.OF.cursor(e.from+t.length)}})):i.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function Kt(e,t,n,i){if(1==i)return r.OF.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),s=e.doc.lineAt(t),o=t-s.from;if(0==s.length)return r.OF.cursor(t);0==o?n=1:o==s.length&&(n=-1);let a=o,l=o;n<0?a=(0,r.zK)(s.text,o,!1):l=(0,r.zK)(s.text,o);let u=i(s.text.slice(a,l));for(;a>0;){let e=(0,r.zK)(s.text,a,!1);if(i(s.text.slice(e,a))!=u)break;a=e}for(;l<s.length;){let e=(0,r.zK)(s.text,l);if(i(s.text.slice(l,e))!=u)break;l=e}return r.OF.range(a+s.from,l+s.from)}(e.state,t,n);{let n=ce.find(e.docView,t),i=e.state.doc.lineAt(n?n.posAtEnd:t),s=n?n.posAtStart:i.from,o=n?n.posAtEnd:i.to;return o<e.state.doc.length&&o==i.to&&o++,r.OF.range(s,o)}}Ut.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},zt.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),Ut.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Ut.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},zt.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(Ue))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=Zt(e,t),i=nn(t),s=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),s=s.map(e.changes))},get(t,o,a){let l,u=Zt(e,t),c=Kt(e,u.pos,u.bias,i);if(n.pos!=u.pos&&!o){let t=Kt(e,n.pos,n.bias,i),s=Math.min(t.from,c.from),o=Math.max(t.to,c.to);c=s<c.from?r.OF.range(s,o):r.OF.range(o,s)}return o?s.replaceRange(s.main.extend(c.from,c.to)):a&&1==i&&s.ranges.length>1&&(l=function(e,t){for(let n=0;n<e.ranges.length;n++){let{from:i,to:s}=e.ranges[n];if(i<=t&&s>=t)return r.OF.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(s,u.pos))?l:a?s.addRange(c):r.OF.create([c])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Vt(e,t,n,r)),r&&e.observer.ignore((()=>C(e.contentDOM)));let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let Gt=(e,t)=>e>=t.top&&e<=t.bottom,Jt=(e,t,n)=>Gt(t,n)&&e>=n.left&&e<=n.right;function Yt(e,t,n,r){let i=ce.find(e.docView,t);if(!i)return 1;let s=t-i.posAtStart;if(0==s)return 1;if(s==i.length)return-1;let o=i.coordsAt(s,-1);if(o&&Jt(n,r,o))return-1;let a=i.coordsAt(s,1);return a&&Jt(n,r,a)?1:o&&Gt(r,o)?-1:1}function Zt(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Yt(e,n,t.clientX,t.clientY)}}const Qt=Z.ie&&Z.ie_version<=11;let Xt=null,en=0,tn=0;function nn(e){if(!Qt)return e.detail;let t=Xt,n=tn;return Xt=e,tn=Date.now(),en=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(en+1)%3:1}function rn(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:s}=e.inputState,o=r&&s&&function(e,t){let n=e.state.facet(ze);return n.length?n[0](t):Z.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:s.from,to:s.to}:null,a={from:i,insert:n},l=e.state.changes(o?[o,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}zt.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let e=i.posAtStart,t=e+i.length;(e>=n.to||t<=n.from)&&(n=r.OF.range(e,t))}}let{inputState:i}=e;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},zt.dragend=e=>(e.inputState.draggedContent=null,!1),zt.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,s=()=>{++i==n.length&&rn(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=s,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),s()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return rn(e,t,n,!0),!0}return!1},zt.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Ht?null:t.clipboardData;return n?(Wt(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Wt(e,n.value)}),50)}(e),!1)};let sn=null;zt.copy=zt.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let s=e.doc.lineAt(r);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;sn=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let s=Ht?null:t.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),!1)};const on=r.YH.define();function an(e,t){let n=[];for(let r of e.facet(Ge)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:on.of(!0)}):null}function ln(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=an(e.state,t);n?e.dispatch(n):e.update([])}}),10)}Ut.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),ln(e)},Ut.blur=e=>{e.observer.clearSelectionRange(),ln(e)},Ut.compositionstart=Ut.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},Ut.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Z.chrome&&Z.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},Ut.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},zt.beforeinput=(e,t)=>{var n;let r;if(Z.chrome&&Z.android&&(r=Lt.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return Z.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),Z.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout((()=>Ut.compositionend(e,t)),20),!1};const un=new Set,cn=["pre-wrap","normal","pre-line","break-spaces"];class hn{constructor(e){this.lineWrapping=e,this.doc=r.EY.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return cn.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,i,s){let o=cn.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,a){this.heightSamples={};for(let e=0;e<s.length;e++){let t=s[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class fn{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class dn{constructor(e,t,n,r,i){this.from=e,this.length=t,this.top=n,this.height=r,this._content=i}get type(){return"number"==typeof this._content?de.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof ye?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new dn(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var pn=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(pn||(pn={}));const mn=.001;class gn{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>mn&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return gn.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,s=n.doc;for(let o=r.length-1;o>=0;o--){let{fromA:a,toA:l,fromB:u,toB:c}=r[o],h=i.lineAt(a,pn.ByPosNoHeight,n.setDoc(t),0,0),f=h.to>=l?h:i.lineAt(l,pn.ByPosNoHeight,n,0,0);for(c+=f.to-l,l=f.to;o>0&&h.from<=r[o-1].toA;)a=r[o-1].fromA,u=r[o-1].fromB,o--,a<h.from&&(h=i.lineAt(a,pn.ByPosNoHeight,n,0,0));u+=h.from-a,a=h.from;let d=kn.build(n.setDoc(s),e,u,c);i=i.replace(a,l,d)}return i.updateHeight(n,0)}static empty(){return new vn(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,r=0,i=0;for(;;)if(t==n)if(r>2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r<i){let n=e[t++];n&&(r+=n.size)}else{let t=e[--n];t&&(i+=t.size)}let s=0;return null==e[t-1]?(s=1,t--):null==e[t]&&(s=1,n++),new wn(gn.of(e.slice(0,t)),s,gn.of(e.slice(n)))}}gn.prototype.size=1;class yn extends gn{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,r){return new dn(r,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,r,i){return this.blockAt(0,n,r,i)}forEachLine(e,t,n,r,i,s){e<=i+this.length&&t>=i&&s(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class vn extends yn{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new dn(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof vn||r instanceof bn&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof bn?r=new vn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):gn.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class bn extends gn{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,s=i-r+1,o=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*s);n=t/s,this.length>s+1&&(o=(this.height-t)/(this.length-s-1))}else n=this.height/s;return{firstLine:r,lastLine:i,perLine:n,perChar:o}}blockAt(e,t,n,r){let{firstLine:i,lastLine:s,perLine:o,perChar:a}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),s=t.doc.lineAt(i),l=o+s.length*a,u=Math.max(n,e-l/2);return new dn(s.from,s.length,u,l,0)}{let r=Math.max(0,Math.min(s-i,Math.floor((e-n)/o))),{from:a,length:l}=t.doc.line(i+r);return new dn(a,l,n+o*r,o,0)}}lineAt(e,t,n,r,i){if(t==pn.ByHeight)return this.blockAt(e,n,r,i);if(t==pn.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new dn(t,r-t,0,0,0)}let{firstLine:s,perLine:o,perChar:a}=this.heightMetrics(n,i),l=n.doc.lineAt(e),u=o+l.length*a,c=l.number-s,h=r+o*c+a*(l.from-i-c);return new dn(l.from,l.length,Math.max(r,Math.min(h,r+this.height-u)),u,0)}forEachLine(e,t,n,r,i,s){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(n,i);for(let u=e,c=r;u<=t;){let t=n.doc.lineAt(u);if(u==e){let n=t.number-o;c+=a*n+l*(e-i-n)}let r=a+l*t.length;s(new dn(t.from,t.length,c,r,0)),c+=r,u=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof bn?n[n.length-1]=new bn(e.length+r):n.push(null,new bn(r-1))}if(e>0){let t=n[0];t instanceof bn?n[0]=new bn(e+t.length):n.unshift(new bn(e-1),null)}return gn.of(n)}decomposeLeft(e,t){t.push(new bn(e-1),null)}decomposeRight(e,t){t.push(null,new bn(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],s=Math.max(t,r.from),o=-1;for(r.from>t&&n.push(new bn(r.from-t-1).updateHeight(e,t));s<=i&&r.more;){let t=e.doc.lineAt(s).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==o?o=i:Math.abs(i-o)>=mn&&(o=-2);let a=new vn(t,i);a.outdated=!1,n.push(a),s+=t+1}s<=i&&n.push(null,new bn(i-s).updateHeight(e,s));let a=gn.of(n);return(o<0||Math.abs(a.height-this.height)>=mn||Math.abs(o-this.heightMetrics(e,t).perLine)>=mn)&&(e.heightChanged=!0),a}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class wn extends gn{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return e<i?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}lineAt(e,t,n,r,i){let s=r+this.left.height,o=i+this.left.length+this.break,a=t==pn.ByHeight?e<s:e<o,l=a?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,s,o);if(this.break||(a?l.to<o:l.from>o))return l;let u=t==pn.ByPosNoHeight?pn.ByPosNoHeight:pn.ByPos;return a?l.join(this.right.lineAt(o,u,n,s,o)):this.left.lineAt(o,u,n,r,i).join(l)}forEachLine(e,t,n,r,i,s){let o=r+this.left.height,a=i+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,r,i,s),t>=a&&this.right.forEachLine(e,t,n,o,a,s);else{let l=this.lineAt(a,pn.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,s),l.to>=e&&l.from<=t&&s(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,o,a,s)}}replace(e,t,n){let r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let s=i.length;for(let e of n)i.push(e);if(e>0&&Dn(i,s-1),t<this.length){let e=i.length;this.decomposeRight(t,i),Dn(i,e)}return gn.of(i)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?gn.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:s}=this,o=t+i.length+this.break,a=null;return r&&r.from<=t+i.length&&r.more?a=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=o+s.length&&r.more?a=s=s.updateHeight(e,o,n,r):s.updateHeight(e,o,n),a?this.balanced(i,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Dn(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof bn&&(r=e[t+1])instanceof bn&&e.splice(t-1,3,new bn(n.length+1+r.length))}class kn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof vn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new vn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let r=n.widget?n.widget.estimatedHeight:0,i=n.widget?n.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let s=t-e;n.block?this.addBlock(new yn(s,r,n)):(s||i||r>=5)&&this.addLineDeco(r,i,s)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new vn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new bn(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof vn)return e;let t=new vn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof vn||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new vn(0,-1));let n=e;for(let e of this.nodes)e instanceof vn&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,i){let s=new kn(n,e);return r.om.spans(t,n,i,s,0),s.finish(n)}}class An{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&be(e,t,this.changes,5)}}function En(e,t){let n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.defaultView||window,s=Math.max(0,n.left),o=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let t=e.parentNode;t&&t!=r.body;)if(1==t.nodeType){let n=t,r=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();s=Math.max(s,r.left),o=Math.min(o,r.right),a=Math.max(a,r.top),l=t==e.parentNode?r.bottom:Math.min(l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:s-n.left,right:Math.max(s,o)-n.left,top:a-(n.top+t),bottom:Math.max(a,l)-(n.top+t)}}function xn(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Cn{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}draw(e,t){return pe.replace({widget:new Sn(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Sn extends fe{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class On{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Pn,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ae.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(at).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new hn(t),this.stateDeco=e.facet(lt).filter((e=>"function"!=typeof e)),this.heightMap=gn.empty().applyChanges(this.stateDeco,r.EY.empty,this.heightOracle.setDoc(e.doc),[new gt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=pe.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Fn(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?Pn:new In(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:Mn(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(lt).filter((e=>"function"!=typeof e));let i=e.changedRanges,s=gt.extendWithRanges(i,function(e,t,n){let i=new An;return r.om.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.VR.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=o&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<l.from||t.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let u=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Ye)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,s=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Ae.RTL:Ae.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,c=0;if(a.width&&a.height){let{scaleX:e,scaleY:n}=k(t,a);(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,this.scaleY=n,u|=8,o=l=!0)}let h=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==h&&this.paddingBottom==f||(this.paddingTop=h,this.paddingBottom=f,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let d=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=_(e.scrollDOM);let p=(this.printing?xn:En)(t,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(o=!0),o||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:a}=e.docView.measureTextSize();o=n>0&&i.refresh(s,n,r,a,v/r,t),o&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),i.heightChanged=!1;for(let n of this.viewports){let s=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(o?gn.empty().applyChanges(this.stateDeco,r.EY.empty,this.heightOracle,[new gt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new fn(n.from,s))}i.heightChanged&&(u|=2)}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return b&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&u||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,a=new Fn(r.lineAt(s-1e3*n,pn.ByHeight,i,0,0).from,r.lineAt(o+1e3*(1-n),pn.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n,s=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=r.lineAt(e,pn.ByPos,i,0,0);n="center"==t.y?(o.top+o.bottom)/2-s/2:"start"==t.y||"nearest"==t.y&&e<a.from?o.top:o.bottom-s,a=new Fn(r.lineAt(n-500,pn.ByHeight,i,0,0).from,r.lineAt(n+s+500,pn.ByHeight,i,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new Fn(this.heightMap.lineAt(n,pn.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,pn.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,pn.ByPos,this.heightOracle,0,0),{bottom:i}=this.heightMap.lineAt(t,pn.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:o}=this;return(0==e||r<=s-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||i>=o+Math.max(10,Math.min(n,250)))&&r>s-2e3&&i<o+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let r of e)t.touchesRange(r.from,r.to)||n.push(new Cn(t.mapPos(r.from),t.mapPos(r.to),r.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,s=i>>1,o=i<<1;if(this.defaultTextDirection!=Ae.LTR&&!n)return[];let a=[],l=(i,o,u,c)=>{if(o-i<s)return;let h=this.state.selection.main,f=[h.from];h.empty||f.push(h.to);for(let e of f)if(e>i&&e<o)return l(i,e-10,u,c),void l(e+10,o,u,c);let d=function(e,t){for(let n of e)if(t(n))return n}(e,(e=>e.from>=u.from&&e.to<=u.to&&Math.abs(e.from-i)<s&&Math.abs(e.to-o)<s&&!f.some((t=>e.from<t&&e.to>t))));if(!d){if(o<u.to&&t&&n&&t.visibleRanges.some((e=>e.from<=o&&e.to>=o))){let e=t.moveToLineBoundary(r.OF.cursor(o),!1,!0).head;e>i&&(o=e)}d=new Cn(i,o,this.gapSize(u,i,o,c))}a.push(d)};for(let e of this.viewportLines){if(e.length<o)continue;let t=_n(e.from,e.to,this.stateDeco);if(t.total<o)continue;let r,s,a=this.scrollTarget?this.scrollTarget.range.head:null;if(n){let n,o,l=i/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=a){let r=Bn(t,a),i=((this.visibleBottom-this.visibleTop)/2+l)/e.height;n=r-i,o=r+i}else n=(this.visibleTop-e.top-l)/e.height,o=(this.visibleBottom-e.top+l)/e.height;r=Tn(t,n),s=Tn(t,o)}else{let e,n,o=t.total*this.heightOracle.charWidth,l=i*this.heightOracle.charWidth;if(null!=a){let r=Bn(t,a),i=((this.pixelViewport.right-this.pixelViewport.left)/2+l)/o;e=r-i,n=r+i}else e=(this.pixelViewport.left-l)/o,n=(this.pixelViewport.right+l)/o;r=Tn(t,e),s=Tn(t,n)}r>e.from&&l(e.from,r,e,t),s<e.to&&l(s,e.to,e,t)}return a}gapSize(e,t,n,r){let i=Bn(r,n)-Bn(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){Cn.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=pe.set(e.map((e=>e.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];r.om.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Mn(this.heightMap.lineAt(e,pn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Mn(this.heightMap.lineAt(this.scaler.fromDOM(e),pn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Mn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Fn{constructor(e,t){this.from=e,this.to=t}}function _n(e,t,n){let i=[],s=e,o=0;return r.om.spans(n,e,t,{span(){},point(e,t){e>s&&(i.push({from:s,to:e}),o+=e-s),s=t}},20),s<t&&(i.push({from:s,to:t}),o+=t-s),{total:o,ranges:i}}function Tn({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],s=i-n;if(r<=s)return n+r;r-=s}}function Bn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const Pn={toDOM:e=>e,fromDOM:e=>e,scale:1};class In{constructor(e,t,n){let r=0,i=0,s=0;this.viewports=n.map((({from:n,to:i})=>{let s=t.lineAt(n,pn.ByPos,e,0,0).top,o=t.lineAt(i,pn.ByPos,e,0,0).bottom;return r+=o-s,{from:n,to:i,top:s,bottom:o,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=s+(e.top-i)*this.scale,s=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.top)return r+(e-n)*this.scale;if(e<=i.bottom)return i.domTop+(e-i.top);n=i.bottom,r=i.domBottom}}fromDOM(e){for(let t=0,n=0,r=0;;t++){let i=t<this.viewports.length?this.viewports[t]:null;if(!i||e<i.domTop)return n+(e-r)/this.scale;if(e<=i.domBottom)return i.top+(e-i.domTop);n=i.bottom,r=i.domBottom}}}function Mn(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new dn(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map((e=>Mn(e,t))):e._content)}const $n=r.sj.define({combine:e=>e.join(" ")}),Nn=r.sj.define({combine:e=>e.indexOf(!0)>-1}),Ln=i.G.newName(),Rn=i.G.newName(),jn=i.G.newName(),qn={"&light":"."+Rn,"&dark":"."+jn};function Vn(e,t,n){return new i.G(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const zn=Vn("."+Ln,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},qn),Un="￿";class Hn{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.$t.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Un}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let s=M.get(r),o=M.get(i);(s&&o?s.breakAfter:(s?s.breakAfter:y(r))||y(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,s=-1,o=1;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(i=r.exec(t))&&(s=i.index,o=i[0].length),this.append(t.slice(n,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=o-1);n=s+o}}readNode(e){if(e.cmIgnore)return;let t=M.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Wn(e,n.node,n.offset)?t:0))}}function Wn(e,t,n){for(;;){if(!t||n<b(t))return!1;if(t==e)return!0;n=g(t)+1,t=t.parentNode}}class Kn{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Gn{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=s||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}=e.observer.selectionRange;return n&&(t.push(new Kn(n,r)),i==n&&s==r||t.push(new Kn(i,s))),t}(e),n=new Hn(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.OF.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=s&&s.node==t.focusNode&&s.offset==t.focusOffset||!f(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!f(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),a=e.viewport;if((Z.ios||Z.chrome)&&e.state.selection.main.empty&&n!=i&&(a.from>0||a.to<e.state.doc.length)){let t=Math.min(n,i),r=Math.max(n,i),s=a.from-t,o=a.to-r;0!=s&&1!=s&&0!=t||0!=o&&-1!=o&&r!=e.state.doc.length||(n=0,i=e.state.doc.length)}this.newSel=r.OF.single(i,n)}}}function Jn(e,t){let n,{newSel:i}=t,s=e.state.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:a}=t.bounds,l=s.from,u=null;(8===o||Z.android&&t.text.length<a-i)&&(l=s.to,u="end");let c=function(e,t,n,r){let i=Math.min(e.length,t.length),s=0;for(;s<i&&e.charCodeAt(s)==t.charCodeAt(s);)s++;if(s==i&&e.length==t.length)return null;let o=e.length,a=t.length;for(;o>0&&a>0&&e.charCodeAt(o-1)==t.charCodeAt(a-1);)o--,a--;return"end"==r&&(n-=o+Math.max(0,s-Math.min(o,a))-s),o<s&&e.length<t.length?(s-=n<=s&&n>=o?s-n:0,a=s+(a-o),o=s):a<s&&(s-=n<=s&&n>=a?s-n:0,o=s+(o-a),a=s),{from:s,toA:o,toB:a}}(e.state.doc.sliceString(i,a,Un),t.text,l-i,u);c&&(Z.chrome&&13==o&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==Un+Un&&c.toB--,n={from:i+c.from,to:i+c.toA,insert:r.EY.of(t.text.slice(c.from,c.toB).split(Un))})}else i&&(!e.hasFocus&&e.state.facet(tt)||i.main.eq(s))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!s.empty&&i&&i.main.empty?n={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,s.to)}:n&&n.from>=s.from&&n.to<=s.to&&(n.from!=s.from||n.to!=s.to)&&s.to-s.from-(n.to-n.from)<=4?n={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,s.to))}:(Z.mac||Z.android)&&n&&n.from==n.to&&n.from==s.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.OF.single(i.main.anchor-1,i.main.head-1)),n={from:s.from,to:s.to,insert:r.EY.of([" "])}):Z.chrome&&n&&n.from==n.to&&n.from==s.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.OF.single(i.main.anchor-1,i.main.head-1)),n={from:s.from,to:s.to,insert:r.EY.of([" "])}),n){if(Z.ios&&e.inputState.flushIOSKey(n))return!0;if(Z.android&&(n.to==s.to&&(n.from==s.from||n.from==s.from-1&&" "==e.state.sliceDoc(n.from,s.from))&&1==n.insert.length&&2==n.insert.lines&&O(e.contentDOM,"Enter",13)||(n.from==s.from-1&&n.to==s.to&&0==n.insert.length||8==o&&n.insert.length<n.to-n.from&&n.to>s.head)&&O(e.contentDOM,"Backspace",8)||n.from==s.from&&n.to==s.to+1&&0==n.insert.length&&O(e.contentDOM,"Delete",46)))return!0;let t,a=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>t||(t=function(e,t,n){let i,s=e.state,o=s.selection.main;if(t.from>=o.from&&t.to<=o.to&&t.to-t.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=o.from<t.from?s.sliceDoc(o.from,t.from):"",r=o.to>t.to?s.sliceDoc(t.to,o.to):"";i=s.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+r))}else{let a=s.changes(t),l=n&&n.main.to<=a.newLength?n.main:void 0;if(s.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=o.to&&t.to>=o.to-10){let u,c=e.state.sliceDoc(t.from,t.to),h=n&&wt(e,n.main.head);if(h){let e=t.insert.length-(t.to-t.from);u={from:h.from,to:h.to-e}}else u=e.state.doc.lineAt(o.head);let f=o.to-t.to,d=o.to-o.from;i=s.changeByRange((n=>{if(n.from==o.from&&n.to==o.to)return{changes:a,range:l||n.map(a)};let i=n.to-f,h=i-c.length;if(n.to-n.from!=d||e.state.sliceDoc(h,i)!=c||n.to>=u.from&&n.from<=u.to)return{range:n};let p=s.changes({from:h,to:i,insert:t.insert}),m=n.to-o.to;return{changes:p,range:l?r.OF.range(Math.max(0,l.anchor+m),Math.max(0,l.head+m)):n.map(p)}}))}else i={changes:a,selection:l&&s.selection.replaceRange(l)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:a,scrollIntoView:!0})}(e,n,i));return e.state.facet(Ke).some((t=>t(e,n.from,n.to,a,l)))||e.dispatch(l()),!0}if(i&&!i.main.eq(s)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const Yn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Zn=Z.ie&&Z.ie_version<=11;class Qn{constructor(e){this.view=e,this.active=!1,this.selectionRange=new A,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(Z.ie&&Z.ie_version<=11||Z.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Zn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(e){("change"!=e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(tt)?n.root.activeElement!=this.dom:!d(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(Z.ie&&Z.ie_version<=11||Z.android&&Z.chrome)&&!n.state.selection.main.empty&&r.focusNode&&m(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=h(e.root);if(!t)return!1;let n=Z.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return er(e,n)}let n=null;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?er(e,n):null}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let r=d(this.dom,n);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,r=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1;for(r=Math.min(r,b(n));;)if(r){if(1!=n.nodeType)return!1;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:(n=e,r=b(n))}else{if(n==e)return!0;r=g(n),n=n.parentNode}}(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Yn),Zn&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Zn&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&O(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===n?void 0:n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&d(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Gn(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=Jn(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=Xn(t,e.previousSibling||e.target.previousSibling,-1),r=Xn(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Xn(e,t,n){for(;t;){let r=M.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function er(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return m(o.node,o.offset,i,s)&&([n,r,i,s]=[i,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}}class tr{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new On(e.state||r.$t.create(e)),e.scrollTo&&e.scrollTo.is(Xe)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(rt).map((e=>new st(e)));for(let e of this.plugins)e.update(this);this.observer=new Qn(this),this.inputState=new Mt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new vt(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=1==e.length&&e[0]instanceof r.ZX?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,s=this.state;for(let t of e){if(t.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=t.state}if(this.destroyed)return void(this.viewState.state=s);let o=this.hasFocus,a=0,l=null;e.some((e=>e.annotation(on)))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=an(s,o),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(c=null)):this.observer.clear(),s.facet(r.$t.phrases)!=this.state.facet(r.$t.phrases))return this.setState(s);t=yt.create(this,s,e),t.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(h&&(h=h.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;h=new Qe(e.empty?e:r.OF.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Xe)&&(h=e.value.clip(this.state))}this.viewState.update(t,h),this.bidiCache=ir.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(mt)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet($n)!=t.state.facet($n)&&(this.viewState.mustMeasureContent=!0),(n||i||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!t.empty)for(let e of this.state.facet(We))try{e(t)}catch(e){et(this.state,e,"update listener")}(l||c)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Jn(this,c)&&u.force&&O(this.contentDOM,u.key,u.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new On(e),this.plugins=e.facet(rt).map((e=>new st(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new vt(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(rt),n=e.state.facet(rt);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new st(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){et(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:s}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(s<0)if(_(n))i=-1,s=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,s=e.top}this.updateState=1;let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&o||([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map((e=>{try{return e.read(this)}catch(e){return et(this.state,e),rr}})),u=yt.create(this,this.state,[]),c=!1;u.flags|=o,t?t.flags|=o:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),c=this.docView.update(u),c&&this.docViewUpdate());for(let e=0;e<a.length;e++)if(l[e]!=rr)try{let t=a[e];t.write&&t.write(l[e],this)}catch(e){et(this.state,e)}if(c&&this.docView.updateSelection(!0),!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}{let e=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-s;if(e>1||e<-1){r+=e,n.scrollTop=r/this.scaleY,s=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(We))e(t)}get themeClasses(){return Ln+" "+(this.state.facet(Nn)?jn:Rn)+" "+this.state.facet($n)}updateAttrs(){let e=sr(this,ot,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(tt)?"true":"false",class:"cm-content",style:`${Z.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),sr(this,at,t);let n=this.observer.ignore((()=>{let n=le(this.contentDOM,this.contentAttrs,t),r=le(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)e.is(tr.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(mt);let e=this.state.facet(tr.cspNonce);i.G.mount(this.root,this.styleModules.concat(zn).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return It(this,e,Bt(this,e,t,n))}moveByGroup(e,t){return It(this,e,Bt(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),s=i(n);return e=>{let t=i(e);return s==r.Je.Space&&(s=t),s==t}}(this,e.head,t))))}visualLineSide(e,t){let n=this.bidiSpans(e),i=this.textDirectionAt(e.from),s=n[t?n.length-1:0];return r.OF.cursor(s.side(t,i)+e.from,s.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let s=Tt(e,t.head),o=i&&s.type==de.Text&&(e.lineWrapping||s.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>s.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(s.from),a=e.posAtCoords({x:n==(i==Ae.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return r.OF.cursor(a,n?-1:1)}return r.OF.cursor(n?s.to:s.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return It(this,e,function(e,t,n,i){let s=t.head,o=n?1:-1;if(s==(n?e.state.doc.length:0))return r.OF.cursor(s,t.assoc);let a,l=t.goalColumn,u=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(s,t.assoc||-1),h=e.documentTop;if(c)null==l&&(l=c.left-u.left),a=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(s);null==l&&(l=Math.min(u.right-u.left,e.defaultCharacterWidth*(s-t.from))),a=(o<0?t.top:t.bottom)+h}let f=u.left+l,d=null!=i?i:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let n=a+(d+t)*o,i=Ft(e,{x:f,y:n},!1,o);if(n<u.top||n>u.bottom||(o<0?i<s:i>s)){let t=e.docView.coordsForChar(i),s=!t||n<t.top?-1:1;return r.OF.cursor(i,s,void 0,l)}}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),Ft(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return w(n,i[Pe.find(i,e-r.from,-1,t)].dir==Ae.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Je)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>nr)return Le(e.length);let t,n=this.textDirectionAt(e.from);for(let r of this.bidiCache)if(r.from==e.from&&r.dir==n&&(r.fresh||Ie(r.isolates,t=ft(this,e))))return r.order;t||(t=ft(this,e));let r=function(e,t,n){if(!e)return[new Pe(0,0,t==xe?1:0)];if(t==Ee&&!n.length&&!Be.test(e))return Le(e.length);if(n.length)for(;e.length>Me.length;)Me[Me.length]=256;let r=[],i=t==Ee?0:1;return Ne(e,i,i,n,0,e.length,r),r}(e.text,n,t);return this.bidiCache.push(new ir(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Z.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{C(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Xe.of(new Qe("number"==typeof e?r.OF.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return Xe.of(new Qe(r.OF.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return it.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return it.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=i.G.newName(),r=[$n.of(n),mt.of(Vn(`.${n}`,e))];return t&&t.dark&&r.push(Nn.of(!0)),r}static baseTheme(e){return r.Nb.lowest(mt.of(Vn("."+Ln,e,qn)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&M.get(n)||M.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}tr.styleModule=mt,tr.inputHandler=Ke,tr.scrollHandler=Ze,tr.focusChangeEffect=Ge,tr.perLineTextDirection=Je,tr.exceptionSink=He,tr.updateListener=We,tr.editable=tt,tr.mouseSelectionStyle=Ue,tr.dragMovesSelection=ze,tr.clickAddsSelectionRange=Ve,tr.decorations=lt,tr.outerDecorations=ut,tr.atomicRanges=ct,tr.bidiIsolatedRanges=ht,tr.scrollMargins=dt,tr.darkTheme=Nn,tr.cspNonce=r.sj.define({combine:e=>e.length?e[0]:""}),tr.contentAttributes=at,tr.editorAttributes=ot,tr.lineWrapping=tr.contentAttributes.of({class:"cm-lineWrapping"}),tr.announce=r.Pe.define();const nr=4096,rr={};class ir{constructor(e,t,n,r,i,s){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=s}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],r=e.length?e[e.length-1].dir:Ae.LTR;for(let i=Math.max(0,e.length-10);i<e.length;i++){let s=e[i];s.dir!=r||t.touchesRange(s.from,s.to)||n.push(new ir(t.mapPos(s.from,1),t.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return n}}function sr(e,t,n){for(let r=e.state.facet(t),i=r.length-1;i>=0;i--){let t=r[i],s="function"==typeof t?t(e):t;s&&se(s,n)}return n}const or=Z.mac?"mac":Z.windows?"win":Z.linux?"linux":"key";function ar(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const lr=r.Nb.default(tr.domEventHandlers({keydown:(e,t)=>function(e,t,n,i){let u=function(e){var t=!(a&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||l&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?o:s)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),c=(0,r.vS)(u,0),h=(0,r.Fh)(c)==u.length&&" "!=u,f="",d=!1,p=!1,m=!1;hr&&hr.view==n&&hr.scope==i&&(f=hr.prefix+" ",jt.indexOf(t.keyCode)<0&&(p=!0,hr=null));let g,y,v=new Set,b=e=>{if(e){for(let r of e.run)if(!v.has(r)&&(v.add(r),r(n,t)))return e.stopPropagation&&(m=!0),!0;e.preventDefault&&(e.stopPropagation&&(m=!0),p=!0)}return!1},w=e[i];return w&&(b(w[f+ar(u,t,!h)])?d=!0:h&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Z.windows&&t.ctrlKey&&t.altKey)&&(g=s[t.keyCode])&&g!=u?(b(w[f+ar(g,t,!0)])||t.shiftKey&&(y=o[t.keyCode])!=u&&y!=g&&b(w[f+ar(y,t,!1)]))&&(d=!0):h&&t.shiftKey&&b(w[f+ar(u,t,!0)])&&(d=!0),!d&&b(w._any)&&(d=!0)),p&&(d=!0),d&&m&&t.stopPropagation(),d}(function(e){let t=e.facet(ur),n=cr.get(t);return n||cr.set(t,n=function(e,t=or){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},s=(e,r,s,o,a)=>{var l,u;let c=n[e]||(n[e]=Object.create(null)),h=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,s,o,a=n[n.length-1];"Space"==a&&(a=" ");for(let e=0;e<n.length-1;++e){const a=n[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))i=!0;else if(/^s(hift)?$/i.test(a))s=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?o=!0:i=!0}}return r&&(a="Alt-"+a),i&&(a="Ctrl-"+a),o&&(a="Meta-"+a),s&&(a="Shift-"+a),a}(e,t)));for(let t=1;t<h.length;t++){let n=h.slice(0,t).join(" ");i(n,!0),c[n]||(c[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=hr={view:t,prefix:n,scope:e};return setTimeout((()=>{hr==r&&(hr=null)}),fr),!0}]})}let f=h.join(" ");i(f,!1);let d=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(u=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===u?void 0:u.slice())||[]});s&&d.run.push(s),o&&(d.preventDefault=!0),a&&(d.stopPropagation=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(r.any)}let i=r[t]||r.key;if(i)for(let t of e)s(t,i,r.run,r.preventDefault,r.stopPropagation),r.shift&&s(t,"Shift-"+i,r.shift,r.preventDefault,r.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}(t.state),e,t,"editor")})),ur=r.sj.define({enables:lr}),cr=new WeakMap;let hr=null;const fr=4e3;class dr{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=pr(e);return[new dr(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),s=e.textDirection==Ae.LTR,o=e.contentDOM,a=o.getBoundingClientRect(),l=pr(e),u=o.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),h=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=a.right-(c?parseInt(c.paddingRight):0),d=Tt(e,r),p=Tt(e,i),m=d.type==de.Text?d:null,g=p.type==de.Text?p:null;if(m&&(e.lineWrapping||d.widgetLineBreaks)&&(m=mr(e,r,m)),g&&(e.lineWrapping||p.widgetLineBreaks)&&(g=mr(e,i,g)),m&&g&&m.from==g.from)return v(b(n.from,n.to,m));{let t=m?b(n.from,null,m):w(d,!1),r=g?b(null,n.to,g):w(p,!0),i=[];return(m||d).to<(g||p).from-(m&&g?1:0)||d.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<r.top?i.push(y(h,t.bottom,f,r.top)):t.bottom<r.top&&e.elementAtHeight((t.bottom+r.top)/2).type==de.Text&&(t.bottom=r.top=(t.bottom+r.top)/2),v(t).concat(i).concat(v(r))}function y(e,n,r,i){return new dr(t,e-l.left,n-l.top-.01,r-e,i-n+.01)}function v({top:e,bottom:t,horizontal:n}){let r=[];for(let i=0;i<n.length;i+=2)r.push(y(n[i],e,n[i+1],t));return r}function b(t,n,r){let i=1e9,o=-1e9,a=[];function l(t,n,l,u,c){let d=e.coordsAtPos(t,t==r.to?-2:2),p=e.coordsAtPos(l,l==r.from?2:-2);d&&p&&(i=Math.min(d.top,p.top,i),o=Math.max(d.bottom,p.bottom,o),c==Ae.LTR?a.push(s&&n?h:d.left,s&&u?f:p.right):a.push(!s&&u?h:p.left,!s&&n?f:d.right))}let u=null!=t?t:r.from,c=null!=n?n:r.to;for(let r of e.visibleRanges)if(r.to>u&&r.from<c)for(let i=Math.max(r.from,u),s=Math.min(r.to,c);;){let r=e.state.doc.lineAt(i);for(let o of e.bidiSpans(r)){let e=o.from+r.from,a=o.to+r.from;if(e>=s)break;a>i&&l(Math.max(e,i),null==t&&e<=u,Math.min(a,s),null==n&&a>=c,o.dir)}if(i=r.to+1,i>=s)break}return 0==a.length&&l(u,null==t,c,null==n,e.textDirection),{top:i,bottom:o,horizontal:a}}function w(e,t){let n=a.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function pr(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ae.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function mr(e,t,n){let i=r.OF.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:de.Text}}class gr{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(yr)!=e.state.facet(yr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){!1!==this.layer.updateOnDocViewUpdate&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(yr);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;e==this.scaleX&&t==this.scaleY||(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const yr=r.sj.define();function vr(e){return[it.define((t=>new gr(t,e))),yr.of(e)]}const br=!Z.ios,wr=r.sj.define({combine:e=>(0,r.QR)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function Dr(e={}){return[wr.of(e),Ar,xr,Sr,Ye.of(!0)]}function kr(e){return e.startState.facet(wr)!=e.state.facet(wr)}const Ar=vr({above:!0,markers(e){let{state:t}=e,n=t.facet(wr),i=[];for(let s of t.selection.ranges){let o=s==t.selection.main;if(s.empty?!o||br:n.drawRangeCursor){let t=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=s.empty?s:r.OF.cursor(s.head,s.head>s.anchor?-1:1);for(let r of dr.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=kr(e);return n&&Er(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Er(t.state,e)},class:"cm-cursorLayer"});function Er(e,t){t.style.animationDuration=e.facet(wr).cursorBlinkRate+"ms"}const xr=vr({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:dr.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||kr(e),class:"cm-selectionLayer"}),Cr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};br&&(Cr[".cm-line"].caretColor="transparent !important",Cr[".cm-content"]={caretColor:"transparent !important"});const Sr=r.Nb.highest(tr.theme(Cr)),Or="-10000px";class Fr{constructor(e,t,n,r){this.facet=t,this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e));let i=null;this.tooltipViews=this.tooltips.map((e=>i=n(e,i)))}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter((e=>e));if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let s=[],o=t?[]:null;for(let n=0;n<i.length;n++){let r=i[n],a=-1;if(r){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==r.create&&(a=e)}if(a<0)s[n]=this.createTooltipView(r,n?s[n-1]:null),o&&(o[n]=!!r.above);else{let r=s[n]=this.tooltipViews[a];o&&(o[n]=t[a]),r.update&&r.update(e)}}}for(let e of this.tooltipViews)s.indexOf(e)<0&&(this.removeTooltipView(e),null===(n=e.destroy)||void 0===n||n.call(e));return t&&(o.forEach(((e,n)=>t[n]=e)),t.length=o.length),this.input=r,this.tooltips=i,this.tooltipViews=s,!0}}function _r(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Tr=r.sj.define({combine:e=>{var t,n,r;return{position:Z.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||_r}}}),Br=new WeakMap,Pr=it.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Tr);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,this.manager=new Fr(e,$r,((e,t)=>this.createTooltip(e,t)),(e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()})),this.above=this.manager.tooltips.map((e=>!!e.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(Tr);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",n.dom.appendChild(e)}return n.dom.style.position=this.position,n.dom.style.top=Or,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(Z.gecko)r=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==Or&&"0px"==e.style.left){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(r||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Tr).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:s}=e,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],u=this.manager.tooltipViews[a],{dom:c}=u,h=e.pos[a],f=e.size[a];if(!h||h.bottom<=Math.max(n.top,r.top)||h.top>=Math.min(n.bottom,r.bottom)||h.right<Math.max(n.left,r.left)-.1||h.left>Math.min(n.right,r.right)+.1){c.style.top=Or;continue}let d=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,m=f.right-f.left,g=null!==(t=Br.get(u))&&void 0!==t?t:f.bottom-f.top,y=u.offset||Mr,v=this.view.textDirection==Ae.LTR,b=f.width>r.right-r.left?v?r.left:r.right-f.width:v?Math.min(h.left-(d?14:0)+y.x,r.right-m):Math.max(r.left,h.left-m+(d?14:0)-y.x),w=this.above[a];!l.strictSide&&(w?h.top-(f.bottom-f.top)-y.y<r.top:h.bottom+(f.bottom-f.top)+y.y>r.bottom)&&w==r.bottom-h.bottom>h.top-r.top&&(w=this.above[a]=!w);let D=(w?h.top-r.top:r.bottom-h.bottom)-p;if(D<g&&!1!==u.resize){if(D<this.view.defaultLineHeight){c.style.top=Or;continue}Br.set(u,g),c.style.height=(g=D)/s+"px"}else c.style.height&&(c.style.height="");let k=w?h.top-g-p-y.y:h.bottom+p+y.y,A=b+m;if(!0!==u.overlap)for(let e of o)e.left<A&&e.right>b&&e.top<k+g&&e.bottom>k&&(k=w?e.top-g-2-p:e.bottom+p+2);if("absolute"==this.position?(c.style.top=(k-e.parent.top)/s+"px",c.style.left=(b-e.parent.left)/i+"px"):(c.style.top=k/s+"px",c.style.left=b/i+"px"),d){let e=h.left+(v?y.x:-y.x)-(b+14-7);d.style.left=e/i+"px"}!0!==u.overlap&&o.push({left:b,top:k,right:A,bottom:k+g}),c.classList.toggle("cm-tooltip-above",w),c.classList.toggle("cm-tooltip-below",!w),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Or}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Ir=tr.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Mr={x:0,y:0},$r=r.sj.define({enables:[Pr,Ir]}),Nr=r.sj.define({combine:e=>e.reduce(((e,t)=>e.concat(t)),[])});class Lr{static create(e){return new Lr(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Fr(e,Nr,((e,t)=>this.createHostedView(e,t)),(e=>e.dom.remove()))}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Rr=$r.compute([Nr],(e=>{let t=e.facet(Nr);return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:Lr.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class jr{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let r,i=1;if(n instanceof ee)r=n.posAtStart;else{if(r=e.posAtCoords(t),null==r)return;let n=e.coordsAtPos(r);if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return;let s=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),o=s&&s.dir==Ae.RTL?-1:1;i=t.x<n.left?-o:o}let s=this.source(e,r,i);if(null==s?void 0:s.then){let t=this.pending={pos:r};s.then((n=>{this.pending==t&&(this.pending=null,!n||Array.isArray(n)&&!n.length||e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])}))}),(t=>et(e.state,t,"hover tooltip")))}else!s||Array.isArray(s)&&!s.length||e.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let e=this.view.plugin(Pr),t=e?e.manager.tooltips.findIndex((e=>e.create==Lr.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r.length&&i&&!function(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-qr&&t.clientX<=n.right+qr&&t.clientY>=n.top-qr&&t.clientY<=n.bottom+qr}(i.dom,e)||this.pending){let{pos:i}=r[0]||this.pending,s=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:i;(i==s?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,r,i){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.right<r||s.top>i||Math.min(s.bottom,o)<i)return!1;let a=e.posAtCoords({x:r,y:i},!1);return a>=t&&a<=n}(this.view,i,s,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const qr=4;function Vr(e,t={}){let n=r.Pe.define(),i=r.sU.define({create:()=>[],update(e,i){if(e.length&&(t.hideOnChange&&(i.docChanged||i.selection)?e=[]:t.hideOn&&(e=e.filter((e=>!t.hideOn(i,e)))),i.docChanged)){let t=[];for(let n of e){let e=i.changes.mapPos(n.pos,-1,r.iR.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),n);r.pos=e,null!=r.end&&(r.end=i.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(Ur)&&(e=[]);return e},provide:e=>Nr.from(e)});return[i,it.define((r=>new jr(r,e,i,n,t.hoverTime||300))),Rr]}function zr(e,t){let n=e.plugin(Pr);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const Ur=r.Pe.define(),Hr=r.sj.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function Wr(e,t){let n=e.plugin(Kr),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const Kr=it.fromClass(class{constructor(e){this.input=e.state.facet(Yr),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(Hr);this.top=new Gr(e,!0,t.topContainer),this.bottom=new Gr(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(Hr);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Gr(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Gr(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Yr);if(n!=this.input){let t=n.filter((e=>e)),r=[],i=[],s=[],o=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),o.push(t)):(t=this.panels[a],t.update&&t.update(e)),r.push(t),(t.top?i:s).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(s);for(let e of o)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>tr.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class Gr{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Jr(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Jr(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Jr(e){let t=e.nextSibling;return e.remove(),t}const Yr=r.sj.define({enables:Kr});class Zr extends r.FB{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Zr.prototype.elementClass="",Zr.prototype.toDOM=void 0,Zr.prototype.mapMode=r.iR.TrackBefore,Zr.prototype.startSide=Zr.prototype.endSide=-1,Zr.prototype.point=!0;const Qr=r.sj.define(),Xr={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.om.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},ei=r.sj.define();function ti(e){return[ri(),ei.of(Object.assign(Object.assign({},Xr),e))]}const ni=r.sj.define({combine:e=>e.some((e=>e))});function ri(e){let t=[ii];return e&&!1===e.fixed&&t.push(ni.of(!0)),t}const ii=it.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(ei).map((t=>new li(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(ni),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(ni)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.om.iter(this.view.state.facet(Qr),this.view.viewport.from),i=[],s=this.gutters.map((e=>new ai(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(e.type)){let t=!0;for(let r of e.type)if(r.type==de.Text&&t){oi(n,i,r.from);for(let e of s)e.line(this.view,r,i);t=!1}else if(r.widget)for(let e of s)e.widget(this.view,r)}else if(e.type==de.Text){oi(n,i,e.from);for(let t of s)t.line(this.view,e,i)}else if(e.widget)for(let t of s)t.widget(this.view,e);for(let e of s)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(ei),n=e.state.facet(ei),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.om.eq(e.startState.facet(Qr),e.state.facet(Qr),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new li(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>tr.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Ae.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function si(e){return Array.isArray(e)?e:[e]}function oi(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class ai{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.om.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,s=t.height/e.scaleY;if(this.i==r.elements.length){let t=new ui(e,s,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,s,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];oi(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let s=this.gutter;(0!=r.length||s.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class li{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,s=r.target;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let e=s.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let o=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,o,r)&&r.preventDefault()}));this.markers=si(t.markers(e)),t.initialSpacer&&(this.spacer=new ui(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=si(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.om.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class ui{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){let n="cm-gutterElement",r=this.dom.firstChild;for(let i=0,s=0;;){let o=s,a=i<t.length?t[i++]:null,l=!1;if(a){let e=a.elementClass;e&&(n+=" "+e);for(let e=s;e<this.markers.length;e++)if(this.markers[e].compare(a)){o=e,l=!0;break}}else o=this.markers.length;for(;s<o;){let e=this.markers[s++];if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!a)break;a.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(a.toDOM(e),r)),l&&s++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const ci=r.sj.define(),hi=r.sj.define({combine:e=>(0,r.QR)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class fi extends Zr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function di(e,t){return e.state.facet(hi).formatNumber(t,e.state)}const pi=ei.compute([hi],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(ci),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new fi(di(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(hi)!=e.state.facet(hi),initialSpacer:e=>new fi(di(e,gi(e.state.doc.lines))),updateSpacer(e,t){let n=di(t.view,gi(t.view.state.doc.lines));return n==e.number?e:new fi(n)},domEventHandlers:e.facet(hi).domEventHandlers})));function mi(e={}){return[hi.of(e),ri(),pi]}function gi(e){let t=9;for(;t<e;)t=10*t+9;return t}const yi=new class extends Zr{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},vi=Qr.compute(["selection"],(e=>{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(yi.range(i)))}return r.om.of(t)}));function bi(){return vi}},79066:(e,t,n)=>{"use strict";n.d(t,{PH:()=>p,Qj:()=>d,Z6:()=>u,cF:()=>r,fI:()=>c,iX:()=>P,rr:()=>B,uY:()=>o});const r=1024;let i=0;class s{constructor(e,t){this.from=e,this.to=t}}class o{constructor(e={}){this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}o.closedBy=new o({deserialize:e=>e.split(" ")}),o.openedBy=new o({deserialize:e=>e.split(" ")}),o.group=new o({deserialize:e=>e.split(" ")}),o.isolate=new o({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class a{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[o.mounted.id]}}const l=Object.create(null);class u{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new u(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(o.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(o.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}u.none=new u("",Object.create(null),0,8);class c{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);e&&(r||(r=Object.assign({},n.props)),r[e[0].id]=e[1])}t.push(r?new u(n.name,r,n.id,n.flags):n)}return new c(t)}}const h=new WeakMap,f=new WeakMap;var d;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(d||(d={}));class p{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=a.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new S(this.topNode,e)}cursorAt(e,t=0,n=0){let r=h.get(this)||this.topNode,i=new S(r);return i.moveTo(e,t),h.set(this,i._tree),i}get topNode(){return new w(this,0,0,null)}resolve(e,t=0){let n=v(h.get(this)||this.topNode,e,t,!1);return h.set(this,n),n}resolveInner(e,t=0){let n=v(f.get(this)||this.topNode,e,t,!0);return f.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let r=e.resolveInner(t,n),i=null;for(let e=r instanceof w?r:r.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(i||(i=[r])).push(s.resolve(t,n)),e=s}else{let s=a.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new w(s.tree,s.overlay[0].from+e.from,-1,e);(i||(i=[r])).push(v(o,t,n,!1))}}return i?x(i):r}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e,s=e.mode||0,o=(s&d.IncludeAnonymous)>0;for(let e=this.cursor(s|d.IncludeAnonymous);;){let s=!1;if(e.from<=i&&e.to>=r&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&n&&(o||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:T(u.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new p(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new p(u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:s=r,reused:a=[],minRepeatType:l=i.types.length}=e,u=Array.isArray(n)?new m(n,n.length):n,c=i.types,h=0,f=0;function d(e,t,n,r,m,D){let{id:k,start:A,end:E,size:x}=u,C=f;for(;x<0;){if(u.next(),-1==x){let t=a[k];return n.push(t),void r.push(A-e)}if(-3==x)return void(h=k);if(-4==x)return void(f=k);throw new RangeError(`Unrecognized record size: ${x}`)}let S,O,F=c[k],_=A-e;if(E-A<=s&&(O=function(e,t){let n=u.fork(),r=0,i=0,o=0,a=n.end-s,c={size:0,start:0,skip:0};e:for(let s=n.pos-e;n.pos>s;){let e=n.size;if(n.id==t&&e>=0){c.size=r,c.start=i,c.skip=o,o+=4,r+=4,n.next();continue}let u=n.pos-e;if(e<0||u<s||n.start<a)break;let h=n.id>=l?4:0,f=n.start;for(n.next();n.pos>u;){if(n.size<0){if(-3!=n.size)break e;h+=4}else n.id>=l&&(h+=4);n.next()}i=f,r+=e,o+=h}return(t<0||r==e)&&(c.size=r,c.start=i,c.skip=o),c.size>4?c:void 0}(u.pos-t,m))){let t=new Uint16Array(O.size-O.skip),n=u.pos-O.size,r=t.length;for(;u.pos>n;)r=w(O.start,t,r);S=new g(t,E-O.start,i),_=O.start-e}else{let e=u.pos-x;u.next();let t=[],n=[],r=k>=l?k:-1,i=0,a=E;for(;u.pos>e;)r>=0&&u.id==r&&u.size>=0?(u.end<=a-s&&(v(t,n,A,i,u.end,a,r,C),i=t.length,a=u.end),u.next()):D>2500?y(A,e,t,n):d(A,e,t,n,r,D+1);if(r>=0&&i>0&&i<t.length&&v(t,n,A,i,A,a,r,C),t.reverse(),n.reverse(),r>-1&&i>0){let e=function(e){return(t,n,r)=>{let i,s,a=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof p){if(!l&&i.type==e&&i.length==r)return i;(s=i.prop(o.lookAhead))&&(a=n[l]+i.length+s)}return b(e,t,n,r,a)}}(F);S=T(F,t,n,0,t.length,0,E-A,e,e)}else S=b(F,t,n,E-A,C-E)}n.push(S),r.push(_)}function y(e,t,n,r){let o=[],a=0,l=-1;for(;u.pos>t;){let{id:e,start:t,end:n,size:r}=u;if(r>4)u.next();else{if(l>-1&&t<l)break;l<0&&(l=n-s),o.push(e,t,n),a++,u.next()}}if(a){let t=new Uint16Array(4*a),s=o[o.length-2];for(let e=o.length-3,n=0;e>=0;e-=3)t[n++]=o[e],t[n++]=o[e+1]-s,t[n++]=o[e+2]-s,t[n++]=n;n.push(new g(t,o[2]-s,i)),r.push(s-e)}}function v(e,t,n,r,s,o,a,l){let u=[],c=[];for(;e.length>r;)u.push(e.pop()),c.push(t.pop()+n-s);e.push(b(i.types[a],u,c,o-s,l-o)),t.push(s-n)}function b(e,t,n,r,i=0,s){if(h){let e=[o.contextHash,h];s=s?[e].concat(s):[e]}if(i>25){let e=[o.lookAhead,i];s=s?[e].concat(s):[e]}return new p(e,t,n,r,s)}function w(e,t,n){let{id:r,start:i,end:s,size:o}=u;if(u.next(),o>=0&&r<l){let a=n;if(o>4){let r=u.pos-(o-4);for(;u.pos>r;)n=w(e,t,n)}t[--n]=a,t[--n]=s-e,t[--n]=i-e,t[--n]=r}else-3==o?h=r:-4==o&&(f=r);return n}let D=[],k=[];for(;u.pos>0;)d(e.start||0,e.bufferStart||0,D,k,-1,0);let A=null!==(t=e.length)&&void 0!==t?t:D.length?k[0]+D[0].length:0;return new p(c[e.topID],D.reverse(),k.reverse(),A)}(e)}}p.empty=new p(u.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return u.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return i+"("+s.join(",")+")"}findChild(e,t,n,r,i){let{buffer:s}=this,o=-1;for(let a=e;a!=t&&!(y(i,r,s[a+1],s[a+2])&&(o=a,n>0));a=s[a+3]);return o}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),s=0;for(let o=e,a=0;o<t;){i[a++]=r[o++],i[a++]=r[o++]-n;let t=i[a++]=r[o++]-n;i[a++]=r[o++]-e,s=Math.max(s,t)}return new g(i,s,this.set)}}function y(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function v(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof w&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=r?0:d.IgnoreOverlays;if(r)for(let r=e,o=r.parent;o;r=o,o=r.parent)r instanceof w&&r.index<0&&(null===(i=o.enter(t,n,s))||void 0===i?void 0:i.from)!=r.from&&(e=o);for(;;){let r=e.enter(t,n,s);if(!r)return e;e=r}}class b{cursor(e=0){return new S(this,e)}getChild(e,t=null,n=null){let r=D(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return D(this,e,t,n)}resolve(e,t=0){return v(this,e,t,!1)}resolveInner(e,t=0){return v(this,e,t,!0)}matchContext(e){return k(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class w extends b{constructor(e,t,n,r){super(),this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let s=this;;){for(let{children:o,positions:l}=s._tree,u=t>0?o.length:-1;e!=u;e+=t){let u=o[e],c=l[e]+s.from;if(y(r,n,c,c+u.length))if(u instanceof g){if(i&d.ExcludeBuffers)continue;let o=u.findChild(0,u.buffer.length,t,n-c,r);if(o>-1)return new E(new A(s,u,e,c),null,o)}else if(i&d.IncludeAnonymous||!u.type.isAnonymous||O(u)){let o;if(!(i&d.IgnoreMounts)&&(o=a.get(u))&&!o.overlay)return new w(o.tree,c,e,s);let l=new w(u,c,e,s);return i&d.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?u.children.length-1:0,t,n,r)}}if(i&d.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&d.IgnoreOverlays)&&(r=a.get(this._tree))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?i>=n:i>n))return new w(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function D(e,t,n,r){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(null!=n)for(let e=!1;!e;)if(e=i.type.is(n),!i.nextSibling())return s;for(;;){if(null!=r&&i.type.is(r))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return null==r?s:[]}}function k(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class A{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class E extends b{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new E(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&d.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new E(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new E(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new E(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let s=n.buffer[this.index+1];e.push(n.slice(r,i,s)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function x(e){if(!e.length)return null;let t=0,n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(i.from>n.from||i.to<n.to)&&(n=i,t=r)}let r=n instanceof w&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new C(i,n)}class C{constructor(e,t){this.heads=e,this.node=t}get next(){return x(this.heads)}}class S{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof w)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof w?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&d.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&d.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&d.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&d.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||O(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let s=e;s;s=s._parent)if(s.index==r){if(r==this.index)return s;t=s,n=i+1;break e}r=this.stack[--i]}for(let e=n;e<this.stack.length;e++)t=new E(this.buffer,t,this.stack[e]);return this.bufferNode=new E(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return k(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return k(this.node,e,r);let s=n[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[r]&&e[r]!=s.name)return!1;r--}}return!0}}function O(e){return e.children.some((e=>e instanceof g||!e.type.isAnonymous||O(e)))}const F=new WeakMap;function _(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=F.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof p)){n=1;break}n+=_(e,r)}F.set(t,n)}return n}function T(e,t,n,r,i,s,o,a,l){let u=0;for(let n=r;n<i;n++)u+=_(e,t[n]);let c=Math.ceil(1.5*u/8),h=[],f=[];return function t(n,r,i,o,a){for(let u=i;u<o;){let i=u,d=r[u],p=_(e,n[u]);for(u++;u<o;u++){let t=_(e,n[u]);if(p+t>=c)break;p+=t}if(u==i+1){if(p>c){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[u-1]+n[u-1].length-d;h.push(T(e,n,r,i,u,d,t,null,l))}f.push(d+a-s)}}(t,n,r,i,0),(a||l)(h,f,o)}class B{constructor(e,t,n,r,i=!1,s=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new B(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let u=o<t.length?t[o]:null,c=u?u.fromA:1e9;if(c-a>=n)for(;s&&s.from<c;){let t=s;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,c)-l;t=e>=n?null:new B(e,n,t.tree,t.offset+l,o>0,!!u)}if(t&&r.push(t),s.to>c)break;s=i<e.length?e[i++]:null}if(!u)break;a=u.toA,l=u.toA-u.toB}return r}}class P{startParse(e,t,n){return"string"==typeof e&&(e=new I(e)),n=n?n.length?n.map((e=>new s(e.from,e.to))):[new s(0,0)]:[new s(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class I{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new o({perNode:!0})},49913:(e,t,n)=>{"use strict";n.d(t,{DM:()=>f,_A:()=>F,az:()=>h,pn:()=>l});var r=n(79066);let i=0;class s{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=i++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new s([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new a;return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let o=0;class a{constructor(){this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new s(r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(a.get(t,e));return i}}function l(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){i=0;break}if("/"!=o)throw new RangeError("Invalid path: "+e);s=e.slice(t)}let o=n.length-1,a=n[o];if(!a)throw new RangeError("Invalid path: "+e);let l=new c(r,i,o>0?n.slice(0,o):null);t[a]=l.sort(t[a])}}return u.add(t)}const u=new r.uY;class c{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function h(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function f(e,t,n,r=0,i=e.length){let s=new d(r,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),r,i,"",s.highlighters),s.flush(i)}c.empty=new c([],2,null);class d{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,s){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(s=this.highlighters.filter((e=>!e.scope||e.scope(o))));let h=i,f=function(e){let t=e.type.prop(u);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||c.empty,d=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(s,f.tags);if(d&&(h&&(h+=" "),h+=d,1==f.mode&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(t,a),h),f.opaque)return;let p=e.tree&&e.tree.prop(r.uY.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+a,1),o=this.highlighters.filter((e=>!e.scope||e.scope(p.tree.type))),u=e.firstChild();for(let c=0,f=a;;c++){let d=c<p.overlay.length?p.overlay[c]:null,m=d?d.from+a:l,g=Math.max(t,f),y=Math.min(n,m);if(g<y&&u)for(;e.from<y&&(this.highlightRange(e,g,y,i,s),this.startSpan(Math.min(y,e.to),h),!(e.to>=m)&&e.nextSibling()););if(!d||m>n)break;f=d.to+a,f>t&&(this.highlightRange(r.cursor(),Math.max(t,d.from+a),Math.min(n,f),"",o),this.startSpan(Math.min(n,f),h))}u&&e.parent()}else if(e.firstChild()){p&&(i="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,s),this.startSpan(Math.min(n,e.to),h)}}while(e.nextSibling());e.parent()}}}const p=s.define,m=p(),g=p(),y=p(g),v=p(g),b=p(),w=p(b),D=p(b),k=p(),A=p(k),E=p(),x=p(),C=p(),S=p(C),O=p(),F={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:y,tagName:p(y),propertyName:v,attributeName:p(v),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:b,string:w,docString:p(w),character:p(w),attributeValue:p(w),number:D,integer:p(D),float:p(D),bool:p(b),regexp:p(b),escape:p(b),color:p(b),url:p(b),keyword:E,self:p(E),null:p(E),atom:p(E),unit:p(E),modifier:p(E),operatorKeyword:p(E),controlKeyword:p(E),definitionKeyword:p(E),moduleKeyword:p(E),operator:x,derefOperator:p(x),arithmeticOperator:p(x),logicOperator:p(x),bitwiseOperator:p(x),compareOperator:p(x),updateOperator:p(x),definitionOperator:p(x),typeOperator:p(x),controlOperator:p(x),punctuation:C,separator:p(C),bracket:S,angleBracket:p(S),squareBracket:p(S),paren:p(S),brace:p(S),content:k,heading:A,heading1:p(A),heading2:p(A),heading3:p(A),heading4:p(A),heading5:p(A),heading6:p(A),contentSeparator:p(k),list:p(k),quote:p(k),emphasis:p(k),strong:p(k),link:p(k),monospace:p(k),strikethrough:p(k),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:O,documentMeta:p(O),annotation:p(O),processingInstruction:p(O),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};h([{tag:F.link,class:"tok-link"},{tag:F.heading,class:"tok-heading"},{tag:F.emphasis,class:"tok-emphasis"},{tag:F.strong,class:"tok-strong"},{tag:F.keyword,class:"tok-keyword"},{tag:F.atom,class:"tok-atom"},{tag:F.bool,class:"tok-bool"},{tag:F.url,class:"tok-url"},{tag:F.labelName,class:"tok-labelName"},{tag:F.inserted,class:"tok-inserted"},{tag:F.deleted,class:"tok-deleted"},{tag:F.literal,class:"tok-literal"},{tag:F.string,class:"tok-string"},{tag:F.number,class:"tok-number"},{tag:[F.regexp,F.escape,F.special(F.string)],class:"tok-string2"},{tag:F.variableName,class:"tok-variableName"},{tag:F.local(F.variableName),class:"tok-variableName tok-local"},{tag:F.definition(F.variableName),class:"tok-variableName tok-definition"},{tag:F.special(F.variableName),class:"tok-variableName2"},{tag:F.definition(F.propertyName),class:"tok-propertyName tok-definition"},{tag:F.typeName,class:"tok-typeName"},{tag:F.namespace,class:"tok-namespace"},{tag:F.className,class:"tok-className"},{tag:F.macroName,class:"tok-macroName"},{tag:F.propertyName,class:"tok-propertyName"},{tag:F.operator,class:"tok-operator"},{tag:F.comment,class:"tok-comment"},{tag:F.meta,class:"tok-meta"},{tag:F.invalid,class:"tok-invalid"},{tag:F.punctuation,class:"tok-punctuation"}])},17435:(e,t,n)=>{"use strict";n.d(t,{Og:()=>Zc,vK:()=>L});var r={};n.r(r),n.d(r,{decode:()=>br,encode:()=>kr,format:()=>Ar,parse:()=>$r});var i={};n.r(i),n.d(i,{Any:()=>Rr,Cc:()=>jr,Cf:()=>qr,P:()=>Nr,S:()=>Lr,Z:()=>Vr});var s={};n.r(s),n.d(s,{arrayReplaceAt:()=>pi,assign:()=>di,escapeHtml:()=>Ci,escapeRE:()=>Oi,fromCodePoint:()=>gi,has:()=>fi,isMdAsciiPunct:()=>Bi,isPunctChar:()=>Ti,isSpace:()=>Fi,isString:()=>ci,isValidEntityCode:()=>mi,isWhiteSpace:()=>_i,lib:()=>Ii,normalizeReference:()=>Pi,unescapeAll:()=>Di,unescapeMd:()=>wi});var o={};n.r(o),n.d(o,{parseLinkDestination:()=>$i,parseLinkLabel:()=>Mi,parseLinkTitle:()=>Ni});var a={};n.r(a),n.d(a,{BOM:()=>$u,DOCUMENT:()=>Nu,FLOW_END:()=>Lu,SCALAR:()=>Ru,createScalarToken:()=>Eu,isCollection:()=>ju,isScalar:()=>qu,prettyToken:()=>Vu,resolveAsScalar:()=>Au,setScalarValue:()=>xu,stringify:()=>Ou,tokenType:()=>zu,visit:()=>Iu});var l={};n.r(l),n.d(l,{Alias:()=>ua,CST:()=>a,Composer:()=>ku,Document:()=>Gl,Lexer:()=>Yu,LineCounter:()=>Zu,Pair:()=>qa,Parser:()=>ic,Scalar:()=>fa,Schema:()=>Kl,YAMLError:()=>Yl,YAMLMap:()=>Ka,YAMLParseError:()=>Zl,YAMLSeq:()=>Ja,YAMLWarning:()=>Ql,isAlias:()=>$o,isCollection:()=>Vo,isDocument:()=>No,isMap:()=>Lo,isNode:()=>zo,isPair:()=>Ro,isScalar:()=>jo,isSeq:()=>qo,parse:()=>lc,parseAllDocuments:()=>oc,parseDocument:()=>ac,stringify:()=>uc,visit:()=>Go,visitAsync:()=>Yo});var u=n(77213),c=n(29587);const h={STRING:"String",NUMBER:"Number",TRUE:"True",FALSE:"False",NULL:"Null",OBJECT:"Object",ARRAY:"Array",PROPERTY:"Property",PROPERTY_NAME:"PropertyName",PROPERTY_COLON:"PropertyColon",ITEM:"Item",JSON_TEXT:"JsonText",INVALID:"⚠"},f={Pair:h.PROPERTY,Key:h.PROPERTY_NAME,BlockSequence:h.ARRAY,BlockMapping:h.OBJECT,FlowSequence:h.ARRAY,FlowMapping:h.OBJECT,QuotedLiteral:h.STRING,Literal:h.STRING,Stream:h.JSON_TEXT,Document:h.OBJECT},d={File:h.JSON_TEXT},p=[h.STRING,h.NUMBER,h.TRUE,h.FALSE,h.NULL],m=[h.OBJECT,h.ARRAY,h.ITEM],g="json5",y="json4",v="yaml",b=(e,t)=>{var n,r;switch(t){case v:return null!==(n=f[e])&&void 0!==n?n:e;case g:return null!==(r=d[e])&&void 0!==r?r:e;default:return e}};function w(e,t,n){const r=[];for(let i=t;null==i?void 0:i.parent;i=i.parent)switch(b(i.parent.name,n)){case h.PROPERTY:{const t=T(i.parent,h.PROPERTY_NAME,n);t&&r.unshift(x(e,t).replace(/[/~]/g,(e=>"~"===e?"~0":"~1")));break}case h.ARRAY:if(O(i,n)){const e=P(i.parent,i,n);r.unshift(`${e}`)}}return r.unshift(""),r.join("/")}const D=(e,t,n=-1,r)=>w(e.doc,(0,c.mv)(e).resolve(t,n),r),k=(e,t)=>{const n=(0,c.mv)(e),r=new Map;return n.iterate({enter:n=>{var i,s,o,a,l,u,c,f;if([h.PROPERTY_NAME,h.OBJECT].includes(b(n.name,t))){const h=w(e.doc,n.node,t),{from:d,to:p}=n.node;if(!(null===(s=null===(i=n.node)||void 0===i?void 0:i.nextSibling)||void 0===s?void 0:s.node))return r.set(h,{keyFrom:d,keyTo:p}),!0;const m=t===y?null===(a=null===(o=n.node)||void 0===o?void 0:o.nextSibling)||void 0===a?void 0:a.node:null===(f=null===(c=null===(u=null===(l=n.node)||void 0===l?void 0:l.nextSibling)||void 0===u?void 0:u.node)||void 0===c?void 0:c.nextSibling)||void 0===f?void 0:f.node;if(!m)return r.set(h,{keyFrom:d,keyTo:p}),!0;const{from:g,to:v}=m;return r.set(h,{keyFrom:d,keyTo:p,valueFrom:g,valueTo:v}),!0}}}),r},A=(e,t,n=-1)=>(0,c.mv)(e).resolveInner(t,n),E=e=>e.replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1"),x=(e,t,n=!0)=>{const r=t?e.sliceString(t.from,t.to):"";return n?E(r):r},C=(e,t)=>{var n,r,i,s;return b(e.name,t)===h.INVALID&&(b(null!==(r=null===(n=e.prevSibling)||void 0===n?void 0:n.name)&&void 0!==r?r:"",t)===h.PROPERTY_NAME||b(null!==(s=null===(i=e.prevSibling)||void 0===i?void 0:i.name)&&void 0!==s?s:"",t)===h.PROPERTY_COLON)},S=(e,t)=>p.includes(b(e.name,t))||C(e,t),O=(e,t)=>[...p,...m].includes(b(e.name,t))||C(e,t),F=(e,t)=>{var n,r,i,s,o,a;return b(e.name,t)===h.PROPERTY_NAME||b(e.name,t)===h.INVALID&&(b(null!==(r=null===(n=e.prevSibling)||void 0===n?void 0:n.name)&&void 0!==r?r:"",t)===h.PROPERTY||"{"===b(null!==(s=null===(i=e.prevSibling)||void 0===i?void 0:i.name)&&void 0!==s?s:"",t))||t===v&&b(null!==(a=null===(o=e.parent)||void 0===o?void 0:o.name)&&void 0!==a?a:"",t)===h.OBJECT},_=e=>{const t=[];let n=e.firstChild;for(;n;)n&&t.push(n),n=null==n?void 0:n.nextSibling;return t},T=(e,t,n)=>{var r;return null!==(r=_(e).find((e=>b(e.name,n)===t)))&&void 0!==r?r:null},B=(e,t)=>_(e).find((e=>S(e,t))),P=(e,t,n)=>((e,t)=>_(e).filter((e=>p.includes(b(e.name,t))||m.includes(b(e.name,t)))))(e,n).findIndex((e=>e.from===t.from&&e.to===t.to)),I=(e,t,n,r=1/0)=>{let i=e;for(;i&&r>0;){if(b(i.name,n)===t)return i;i=i.parent,r--}return null};var M=n(14830);const $=M.Pe.define(),N=M.sU.define({create(){},update(e,t){for(const e of t.effects)if(e.is($))return e.value;return e}}),L=(e,t)=>{e.dispatch({effects:$.of(t)})},R=e=>e.field(N),j=e=>[N.init((()=>e))],q={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",ForbiddenPropertyError:"Property name `{{property}}` at `{{pointer}}` is not allowed",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJsonPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minItems}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",SchemaWarning:"Failed retrieving a schema from '{{pointer}}' to key '{{key}}'",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Items in array must be unique. Value `{{value}}` in `{{pointer}}` is a duplicate of {{duplicatePointer}}.",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"},V=Object.prototype.toString;function z(e){const t=V.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase();return"file"===t?"object":t}const U="object",H="array";function W(e,t,n=e){var r;return function(e,t={}){return e.replace(/\{\{\w+\}\}/g,(e=>{const n=e.replace(/[{}]/g,""),r=t[n],i=z(r);return i===U||i===H?JSON.stringify(r):r}))}(null!==(r=q[e])&&void 0!==r?r:n,t)}function K(e,t){return{type:"error",name:e,code:(n=e,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),message:W(e,t),data:t};var n}function G(e){return K.bind(null,e)}function J(e,t=[]){for(let n=0;n<e.length;n+=1){const r=e[n];Array.isArray(r)?J(r,t):t.push(r)}return t}const Y={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,propertyBlacklist:["_id"],templateDefaultOptions:{addOptionalProps:!1,removeInvalidData:!1,extendDefaults:!0}};function Z(e,t,n){const r={...t};return Object.defineProperty(r,"getOneOfOrigin",{enumerable:!1,value:()=>({index:n,schema:e})}),r}function Q(e){return"error"===(null==e?void 0:e.type)}function X(e){return Q(e)||e instanceof Promise}const{DECLARATOR_ONEOF:ee}=Y;function te(e,t,n=e.rootSchema,r="#"){if(null!=t&&n[ee]){const i=[],s=n[ee],o=t[n[ee]];if(void 0===o)return e.errors.missingOneOfPropertyError({property:s,pointer:r,schema:n,value:t});for(let a=0;a<n.oneOf.length;a+=1){const l=e.resolveRef(n.oneOf[a]),u=e.step(s,l,t,r);if(Q(u))return u;let c=J(e.validate(o,u,r));if(c=c.filter(X),!(c.length>0))return Z(n,l,a);i.push(...c)}return e.errors.oneOfPropertyError({property:s,value:o,pointer:r,schema:n,errors:i})}const i=[],s=[];for(let o=0;o<n.oneOf.length;o+=1){const a=e.resolveRef(n.oneOf[o]);let l=J(e.validate(t,a,r));l=l.filter(X),l.length>0?s.push(...l):i.push({index:o,schema:a})}return 1===i.length?Z(n,i[0].schema,i[0].index):i.length>1?e.errors.multipleOneOfError({value:t,pointer:r,schema:n,matches:i}):e.errors.oneOfError({value:JSON.stringify(t),pointer:r,schema:n,oneOf:n.oneOf,errors:s})}function ne(e,t,n,r){if(null==n||null==t.properties)return-1;let i=0;const s=Object.keys(t.properties);for(let o=0;o<s.length;o+=1){const a=s[o];null!=n[a]&&e.isValid(n[a],t.properties[a],r)&&(i+=1)}return i}function re(e,t,n=e.rootSchema,r="#"){if(null!=t&&n[ee]){const i=[],s=n[ee],o=t[n[ee]];if(void 0===o)return e.errors.missingOneOfPropertyError({property:s,pointer:r,schema:n,value:t});for(let a=0;a<n.oneOf.length;a+=1){const l=e.resolveRef(n.oneOf[a]),u=e.step(s,l,t,r);if(Q(u))return u;let c=J(e.validate(o,u,r));if(c=c.filter(X),!(c.length>0))return Z(n,l,a);i.push(...c)}return e.errors.oneOfPropertyError({property:s,value:o,pointer:r,schema:n,errors:i})}const i=[];for(let s=0;s<n.oneOf.length;s+=1){const o=e.resolveRef(n.oneOf[s]);e.isValid(t,o,r)&&i.push({schema:o,index:s})}if(1===i.length)return Z(n,i[0].schema,i[0].index);if("object"===z(t)){let i,s=-1,o=0;for(let r=0;r<n.oneOf.length;r+=1){const a=e.resolveRef(n.oneOf[r]),l=ne(e,a,t);o<l&&(o=l,i=n.oneOf[r],s=r)}return void 0===i?e.errors.oneOfError({value:JSON.stringify(t),pointer:r,schema:n,oneOf:n.oneOf}):Z(n,i,s)}return i.length>1?e.errors.multipleOneOfError({matches:i,pointer:r,schema:n,value:t}):e.errors.oneOfError({value:JSON.stringify(t),pointer:r,schema:n,oneOf:n.oneOf})}var ie=n(52743),se=n.n(ie);const oe=(e,t)=>t,ae=(e,t)=>se()(e,t,{arrayMerge:oe}),le=(e,t)=>{const n=e.concat(t);return n.filter(((e,t)=>n.indexOf(e)===t))},ue=(e,t)=>se()(e,t,{arrayMerge:le});function ce(e,t){if(z(e)!==z(t))return e;const n=ue(e,t);return e.getOneOfOrigin?Object.defineProperty(n,"getOneOfOrigin",{enumerable:!1,value:e.getOneOfOrigin}):t.getOneOfOrigin&&Object.defineProperty(n,"getOneOfOrigin",{enumerable:!1,value:t.getOneOfOrigin}),n}function he(e,...t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),e.getOneOfOrigin&&Object.defineProperty(n,"getOneOfOrigin",{enumerable:!1,value:e.getOneOfOrigin}),n}var fe=Function.prototype.toString,de=Object.create,pe=Object.prototype.toString,me=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}(),ge="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new me};function ye(e){if(!e)return de(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:de(e);if(t&&~fe.call(t).indexOf("[native code]"))try{return new t}catch(e){}return de(e)}var ve="g"===/test/g.flags?function(e){return e.flags}:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function be(e){var t=pe.call(e);return t.substring(8,t.length-1)}var we="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||be(e)}:be,De=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Ae=Object.getOwnPropertyNames,Ee=Object.getOwnPropertySymbols,xe=Object.prototype,Ce=xe.hasOwnProperty,Se=xe.propertyIsEnumerable,Oe="function"==typeof Ee,Fe=Oe?function(e){return Ae(e).concat(Ee(e))}:Ae;function _e(e,t,n){for(var r=Fe(e),i=0,s=r.length,o=void 0,a=void 0;i<s;++i)if("callee"!==(o=r[i])&&"caller"!==o)if(a=ke(e,o)){a.get||a.set||(a.value=n.copier(a.value,n));try{De(t,o,a)}catch(e){t[o]=a.value}}else t[o]=n.copier(e[o],n);return t}function Te(e,t){return e.slice(0)}function Be(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach((function(e,r){n.set(r,t.copier(e,t))})),n}var Pe=Oe?function(e,t){var n=ye(t.prototype);for(var r in t.cache.set(e,n),e)Ce.call(e,r)&&(n[r]=t.copier(e[r],t));for(var i=Ee(e),s=0,o=i.length,a=void 0;s<o;++s)a=i[s],Se.call(e,a)&&(n[a]=t.copier(e[a],t));return n}:function(e,t){var n=ye(t.prototype);for(var r in t.cache.set(e,n),e)Ce.call(e,r)&&(n[r]=t.copier(e[r],t));return n};function Ie(e,t){return new t.Constructor(e.valueOf())}function Me(e,t){return e}function $e(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach((function(e){n.add(t.copier(e,t))})),n}var Ne=Array.isArray,Le=Object.assign,Re=Object.getPrototypeOf||function(e){return e.__proto__},je={array:function(e,t){var n=new t.Constructor;t.cache.set(e,n);for(var r=0,i=e.length;r<i;++r)n[r]=t.copier(e[r],t);return n},arrayBuffer:Te,blob:function(e,t){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(Te(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:Me,map:Be,object:Pe,regExp:function(e,t){var n=new t.Constructor(e.source,ve(e));return n.lastIndex=e.lastIndex,n},set:$e},qe=Le({},je,{array:function(e,t){var n=new t.Constructor;return t.cache.set(e,n),_e(e,n,t)},map:function(e,t){return _e(e,Be(e,t),t)},object:function(e,t){var n=ye(t.prototype);return t.cache.set(e,n),_e(e,n,t)},set:function(e,t){return _e(e,$e(e,t),t)}});function Ve(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:Ie,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:Ie,Object:e.object,Promise:Me,RegExp:e.regExp,Set:e.set,String:Ie,WeakMap:Me,WeakSet:Me,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(Le({},je,e)),n=t.Array,r=t.Object;function i(e,i){if(i.prototype=i.Constructor=void 0,!e||"object"!=typeof e)return e;if(i.cache.has(e))return i.cache.get(e);if(i.prototype=Re(e),i.Constructor=i.prototype&&i.prototype.constructor,!i.Constructor||i.Constructor===Object)return r(e,i);if(Ne(e))return n(e,i);var s=t[we(e)];return s?s(e,i):"function"==typeof e.then?e:r(e,i)}return function(e){return i(e,{Constructor:void 0,cache:ge(),copier:i,prototype:void 0})}}Ve(Le({},qe,{}));const ze=Ve({});function Ue(e,t,n){if(null!=t.if){if(!1===t.if)return t.else;if(t.if&&(t.then||t.else)){const r=e.validate(n,e.resolveRef(t.if));if(0===r.length&&t.then)return e.resolveRef(t.then);if(0!==r.length&&t.else)return e.resolveRef(t.else)}}}function He(e,t,n){var r;const i={...null!==(r=e.resolveRef(t))&&void 0!==r?r:{}};return Ue(e,i,n)||he(i,"if","then","else")}function We(e,t,n=e.rootSchema){let r=ze(n);for(let i=0;i<n.allOf.length;i+=1)r=ce(r,He(e,n.allOf[i],t));return delete r.allOf,r}function Ke(e,t){const{allOf:n}=t;if(!Array.isArray(n)||0===n.length)return;let r={};return n.forEach((t=>{r=ce(r,e.resolveRef(t))})),r}function Ge(e){return"object"===z(e)}function Je(e,t,n){const{dependencies:r}=t;if(!Ge(r)||!Ge(n))return;let i=!1,s={required:[]};return Object.keys(r).forEach((o=>{var a,l;if(null==n[o]&&!(null===(a=t.required)||void 0===a?void 0:a.includes(o))&&!(null===(l=s.required)||void 0===l?void 0:l.includes(o)))return;const u=r[o];return Array.isArray(u)?(i=!0,void s.required.push(...u)):Ge(u)?(i=!0,void(s=ce(s,e.resolveRef(u)))):void 0})),i?(s.required=(o=s.required).filter(((e,t)=>o.indexOf(e)===t)),s):void 0;var o}function Ye(e,t,n){if(!Array.isArray(t.anyOf)||0===t.anyOf.length)return;let r;return t.anyOf.forEach((t=>{t=e.resolveRef(t),e.isValid(n,t)&&(r=r?ce(r,t):t)})),r}function Ze(e,t,n=e.rootSchema,r="#"){const{anyOf:i}=n;if(!Array.isArray(i)||0===i.length)return n;const s=Ye(e,n,t);return null==s?e.errors.anyOfError({pointer:r,schema:n,value:t,anyOf:JSON.stringify(i)}):he(ce(n,s),"anyOf")}const Qe=["allOf","anyOf","oneOf","dependencies","if","then","else"],Xe=["allOf","anyOf","oneOf","dependencies","if"];function et(e,t,n,r){let i,s;if((t=e.resolveRef(t)).oneOf){const o=re(e,n,t,r);Q(o)?s=o:o&&(i=ce(null!=i?i:{},o))}if(Array.isArray(t.allOf)){const s=t.allOf.map((t=>{if(function(e){const t=Object.keys(e);return-1!==Xe.findIndex((e=>t.includes(e)))}(t)){let i=et(e,t,n,r);return i?(i=ce(t,i),he(i,...Qe)):void 0}return t}));s.length>0&&(i=ce(null!=i?i:{},Ke(e,{allOf:s})))}const o=Ye(e,t,n);o&&(i=ce(null!=i?i:{},o));const a=Je(e,t,n);a&&(i=ce(null!=i?i:{},a));const l=Ue(e,t,n);if(l&&(i=ce(null!=i?i:{},l)),null==i)return s;const u=et(e,i,n,r);return u&&(i=ce(i,u)),he(i,...Qe)}const tt=["allOf","anyOf","oneOf","dependencies","if","then","else"];function nt(e,t,n,r){let i=et(e,t,n,r);return i?(i=ce(t,i),he(i,...tt)):t}class rt{constructor(e,t){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=e,this.typeKeywords=ze(e.typeKeywords),this.validateKeyword=Object.assign({},e.validateKeyword),this.validateType=Object.assign({},e.validateType),this.validateFormat=Object.assign({},e.validateFormat),this.errors=Object.assign({},e.errors),this.setSchema(t)}get rootSchema(){return this.__rootSchema}set rootSchema(e){null!=e&&(this.__rootSchema=this.config.compileSchema(this,e))}addRemoteSchema(e,t){this.config.addRemoteSchema(this,e,t)}compileSchema(e){var t;return this.config.compileSchema(this,e,null!==(t=this.rootSchema)&&void 0!==t?t:e)}createSchemaOf(e){return this.config.createSchemaOf(e)}each(e,t,n,r){return this.config.each(this,e,t,n,r)}eachSchema(e,t=this.rootSchema){return this.config.eachSchema(t,e)}getChildSchemaSelection(e,t){return this.config.getChildSchemaSelection(this,e,t)}getSchema(e){return this.config.getSchema(this,e)}getTemplate(e,t,n=this.config.templateDefaultOptions){return this.config.getTemplate(this,e,t,n)}isValid(e,t,n){return this.config.isValid(this,e,t,n)}resolveAnyOf(e,t,n){return this.config.resolveAnyOf(this,e,t,n)}resolveAllOf(e,t){return this.config.resolveAllOf(this,e,t)}resolveRef(e){return this.config.resolveRef(e,this.rootSchema)}resolveOneOf(e,t,n){return this.config.resolveOneOf(this,e,t,n)}setSchema(e){this.rootSchema=e}step(e,t,n,r){return this.config.step(this,e,t,n,r)}validate(e,t,n){return this.config.validate(this,e,t,n)}}function it(e,t,n){n.id=n.id||t,e.remotes[t]=e.compileSchema(n)}var st=n(73335),ot=n.n(st);const at="[^?/{}*,()#]+",lt=`\nroot ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP)\nrecursion ::= (SEP query | pattern)*\n\nquery ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead?\nproperty ::= ${at}\nregex ::= "{" [^}]+ "}"\nSEP ::= "/"\nall ::= "**"\nany ::= "*"\n\ntypecheck ::= "?:" ("value" | "boolean" | "string" | "number" | "object" | "array")\nlookahead ::= "?" expression ((andExpr | orExpr) expression)*\nandExpr ::= S? "&&" S?\norExpr ::= S? "||" S?\n\nexpression ::= (exprProperty | ESC escaped ESC) ((isnot | is) (exprProperty | regex | ESC escaped ESC))*\nexprProperty ::= [a-zA-Z0-9-_ $]+\nescaped ::= [^"]+\nis ::= ":"\nisnot ::= ":!"\nESC ::= '"'\n\npattern ::= S? "(" (SEP query | pattern (orPattern? pattern)*)* ")" quantifier? S? lookahead?\nquantifier ::= "+" | "*" | [0-9]+\norPattern ::= S? "," S?\n\nS ::= [ ]*\n`,ut=new(n(44574).A.Parser)(lt),ct=e=>ut.getAST(e),ht=(e,t)=>`${e}/${t}`,ft=Object.prototype.toString,dt=/Object|Array/,pt=e=>dt.test(ft.call(e));function mt(e){return new RegExp(e.text.replace(/(^{|}$)/g,""))}function gt(e){return Array.isArray(e)?e.map((function(e,t){return`${t}`})):"[object Object]"===Object.prototype.toString.call(e)?Object.keys(e):[]}const yt={mem:[],get(e,t){const n=e[0][t];if(!yt.mem.includes(n))return pt(n)&&yt.mem.push(n),[n,t,e[0],ht(e[3],t)]},reset(){yt.mem.length=0}},vt={any(e,t){const n=t[0];return gt(n).map((e=>[n[e],e,n,ht(t[3],e)]))},all(e,t){const n=[t];var r,i;return r=t[0],i=(r,i)=>{const s=yt.get(t,i);s&&n.push(...vt.all(e,s))},Array.isArray(r)?r.forEach(i):"[object Object]"===Object.prototype.toString.call(r)&&Object.keys(r).forEach((function(e){i(r[e],e)})),n},regex(e,t){const n=mt(e),r=t[0];return gt(r).filter((e=>n.test(e))).map((e=>[r[e],e,r,ht(t[3],e)]))}},bt={escaped:(e,t)=>bt.property(e,t),property:(e,t)=>{const n=e.text;if(t[0]&&void 0!==t[0][n])return[t[0][n],n,t[0],ht(t[3],n)]},typecheck:(e,t)=>{const n=e.text.replace(/^\?:/,"");return"value"===n?pt(t[0])?void 0:t:(r=t[0],ft.call(r).match(/\s([^\]]+)\]/).pop().toLowerCase()===n?t:void 0);var r},lookahead:(e,t)=>{let n=!0,r=!1;return e.children.forEach((e=>{if("expression"===e.type){const i=void 0!==bt.expression(e,t);n=!0===r?n||i:n&&i}else r="orExpr"===e.type})),n?t:void 0},expression:(e,t)=>{const n=e.children[0].text,r=e.children[1],i=e.children[2],s=t[0];if(!1!==pt(s))return function(e,t,n){if(void 0===t)return void 0!==e;let r;const i=`${e}`;return r="regex"===n.type?mt(n).test(i):i===n.text,"isnot"===t.type&&(r=!1===r&&void 0!==e),r}(s[n],r,i)?t:void 0}};function wt(e,t,n){const r=[];let i=e;return t.children.forEach((t=>{if("orPattern"===t.type)return r.push(...i),void(i=e);i=Dt(i,t,n)})),r.push(...i),r}function Dt(e,t,n){let r;return r="query"===t.type?function(e,t,n){let r=e;return t.children.forEach((e=>{if(vt[e.type])r=function(e,t,n,r){const i=[];for(let s=0,o=t.length;s<o;s+=1)i.push(...e(n,t[s],n,r));return i}(vt[e.type],r,e,n);else{if(!bt[e.type])throw new Error(`Unknown filter ${e.type}`);r=function(e,t,n,r){const i=[];for(let s=0,o=t.length;s<o;s+=1){const o=e(n,t[s],r);o&&i.push(o)}return i}(bt[e.type],r,e,n)}})),r}(e,t,n):"pattern"===t.type?function(e,t,n){const r=[],i=t.children.find((e=>"quantifier"===e.type)),s=function(e){if(null==e)return 1;if("*"===e||"+"===e)return 1/0;const t=parseInt(e);return isNaN(t)?1:t}(i&&i.text);let o=e;i&&"*"===i.text&&r.push(...o);let a=0;for(;o.length>0&&a<s;)o=wt(o,t,n),r.push(...o),a+=1;return r}(e,t,n):function(e,t,n){let r=e;return t.children.forEach((e=>r=Dt(r,e,n))),r}(e,t,n),yt.reset(),yt.mem.push(e),r}const kt={value:e=>e.map((e=>e[0])),pointer:e=>e.map((e=>e[3])),all:e=>e,map:e=>{const t={};return e.forEach((e=>t[e[3]]=e[0])),t}};var At;function Et(e,t,n=At.VALUE){if(null==t)return[];""===(t=t.replace(/(\/$)/g,""))&&(t="#");const r=ct(t);if(null==r)throw new Error(`empty ast for '${t}'`);if(""!==r.rest)throw new Error(`Failed parsing queryString from: '${r.rest}'`);const i=function(e,t){return yt.reset(),yt.mem.push(e),Dt([[e,null,null,"#"]],t)}(e,r);return"function"==typeof n?i.map((e=>n(...e))):kt[n]?kt[n](i):i}!function(e){e.POINTER="pointer",e.VALUE="value",e.ALL="all",e.MAP="map"}(At||(At={})),Et.POINTER=At.POINTER,Et.VALUE=At.VALUE,Et.ALL=At.ALL,Et.MAP=At.MAP;const xt=["root","recursion"];function Ct(e,t=[]){return xt.includes(e.type)?(e.children.forEach((e=>Ct(e,t))),t):(t.push(e.text),t)}function St(e){return null==e||""===e?[]:Ct(ct(e))}const Ot=e=>JSON.parse(JSON.stringify(e)),Ft=Object.prototype.toString,_t=e=>Ft.call(e).match(/\s([^\]]+)\]/).pop().toLowerCase(),Tt=new RegExp(`^("[^"]+"|${at})$`),Bt=["string","number","boolean","null"],Pt=/^\[\d*\]$/,It=/^\[(\d+)\]$/,Mt=/^".+"$/,$t=/(^\[\d*\]$|^\d+$)/;function Nt(e){return parseInt(e.replace(/^(\[|\]$)/,""))}function Lt(e){return Mt.test(e)?e.replace(/(^"|"$)/g,""):e}function Rt(e,t,n,r){const i=e[0];if(/^\[\]$/.test(t)){i.push(n);const t=i.length-1;return[i[t],t,i,`${e[3]}/${t}}`]}if(null==r&&"object"===_t(i[t])&&"object"===_t(n))return Object.assign(i[t],n),[i[t],t,i,`${e[3]}/${t}}`];if(r===qt.INSERT_ITEMS||null==r&&It.test(t)){const r=Nt(t);return function(e,t,n){e.length<=t?e[t]=n:e.splice(t,0,n)}(i,r,n),[i[r],r,i,`${e[3]}/${r}}`]}if(r===qt.REPLACE_ITEMS||null==r){const r=Nt(t);return i[r]=n,[i[r],r,i,`${e[3]}/${r}}`]}throw new Error(`Unknown array index '${t}' with force-option '${r}'`)}var jt;function qt(e,t,n,r){if(null==t)return Ot(e);if(""===(t=t.replace(/(\/$)/g,"")))return Ot(n);const i=Ot(e);let s=[[i,null,null,"#"]];const o=St(t),a=o.pop(),l=Pt.test(a)&&!1===It.test(a);if(!1===Tt.test(a)||l)throw new Error(`Unsupported query '${t}' ending with non-property`);return o.forEach(((e,t)=>{if("__proto__"===e||"prototyped"===e||"constructor"===e)return;if(!1===Tt.test(e))return void(s=function(e,t){const n=[];return e.forEach((e=>n.push(...Et(e[0],t,At.ALL)))),n}(s,e));const n=t>=o.length-1?a:o[t+1],i=$t.test(n);s=function(e,t,n,r){return t=Lt(t),e.filter((e=>!(!Array.isArray(e[0])||!$t.test(t))||!1===Bt.includes(_t(e[0][t])))).map((e=>{const i=n?[]:{},s=e[0],o=_t(i),a=_t(s[t]);return Array.isArray(s)&&a!==o?Rt(e,t,i,r):(s[t]=s[t]||i,[s[t],t,s,`${e[3]}/${t}`])}))}(s,e,i,r)})),s.forEach((e=>{let t=n;"function"===_t(n)&&(t=n(e[3],a,e[0],`${e[3]}/${a}`));const i=e[0];if(Array.isArray(i))Rt(e,a,t,r);else{const e=Lt(a);if("__proto__"===e||"prototyped"===e||"constructor"===e)return;i[e]=t}})),i}!function(e){e.REPLACE_ITEMS="replace",e.INSERT_ITEMS="insert"}(jt||(jt={})),qt.REPLACE_ITEMS=jt.REPLACE_ITEMS,qt.INSERT_ITEMS=jt.INSERT_ITEMS;const Vt={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},zt=Object.keys(Vt).filter((e=>!1===Vt[e].type)),Ut=Object.prototype.hasOwnProperty;function Ht(e){if(!1===Ge(e))return;if(e.enum)return"enum";const t=e.type;if(Array.isArray(t)||Vt[t])return t;const n=zt.filter((t=>e[t]));if(1===n.length)return n[0];if(0!==n.length)throw new Error(`Mutiple typeIds [${n.join(", ")}] matched in ${JSON.stringify(e)}`);for(let t=0,n=Vt.object.keywords.length;t<n;t+=1){const n=Vt.object.keywords[t];if(Ut.call(e,n))return"object"}for(let t=0,n=Vt.array.keywords.length;t<n;t+=1){const n=Vt.array.keywords[t];if(Ut.call(e,n))return"array"}}function Wt(e,t){if(!0===this.callback(e,t))return;const n=function(e){const t=[],n=Ht(e);if(null==n)return t;let r;if(Array.isArray(n)){r={};for(let e=0,t=n.length;e<t;e+=1)Object.assign(r,Vt[n[e]])}else r=Vt[n];return null==r.definitions||r.definitions.forEach((n=>{Et(e,n,((e,n,r,i)=>{Ge(e)&&Ht(e)&&t.push({pointer:ot().join(ot().split(i),!1),def:e})}))})),t}(e);n.forEach((e=>this.nextTypeDefs(e.def,ot().join(t,e.pointer,!1))))}function Kt(e,t,n,r="definitions"){const i=t[r];Object.keys(i).forEach((t=>{(!1===i[t]||Ge(i[t]))&&e.nextTypeDefs(i[t],ot().join(n,r,t,!1))}))}function Gt(e,t,n="#"){const r={callback:t,nextTypeDefs:Wt};r.nextTypeDefs(e,n),null!=e.definitions&&(r.callback=(e,n)=>{t(e,n),null!=e.definitions&&Kt(r,e,n)},Kt(r,e,n)),null!=e.$defs&&(r.callback=(e,n)=>{t(e,n),null!=e.definitions&&Kt(r,e,n)},Kt(r,e,n,"$defs"))}const Jt=/(#|\/)+$/,Yt=/#$/,Zt=/^[^:]+:\/\/[^/]+\//,Qt=/\/[^/]*$/,Xt=/#.*$/;function en(e,t){return null==e&&null==t?"#":null==t?e.replace(Yt,""):null==e?t.replace(Yt,""):"#"===t[0]?`${e.replace(Xt,"")}${t.replace(Jt,"")}`:Zt.test(t)?t.replace(Yt,""):`${e.replace(Qt,"")}/${t.replace(Yt,"")}`}const tn=/(#|\/)+$/g,nn=["",null,"#"],rn=/(#|\/)+$/g,sn=e=>"object"===z(e);function on(e,t,n){if(sn(n)&&(n=n.__ref||n.$ref),null==n)return t;let r;const i=n.replace(rn,"");if(e.remotes[i])return r=e.remotes[i],r&&r.$ref?on(e,t,r.$ref):r;if(e.ids[n])return r=(0,st.get)(t,e.ids[n]),r&&r.$ref?on(e,t,r.$ref):r;const s=function(e){if(nn.includes(e))return[];if(-1===(e=e.replace(tn,"")).indexOf("#"))return[e.replace(tn,"")];if(0===e.indexOf("#"))return[e.replace(tn,"")];const t=e.split("#");return t[0]=t[0].replace(tn,""),t[1]=`#${t[1].replace(tn,"")}`,t}(n);if(0===s.length)return t;if(1===s.length){if(n=s[0],e.remotes[n])return r=e.remotes[n],on(e,t,r.$ref);if(e.ids[n])return r=(0,st.get)(t,e.ids[n]),r&&r.$ref?on(e,t,r.$ref):r}if(2===s.length){const r=s[0];if(n=s[1],e.remotes[r])return e.remotes[r].getRef?e.remotes[r].getRef(n):on(e,e.remotes[r],n);if(e.ids[r])return on(e,(0,st.get)(t,e.ids[r]),n)}return r=(0,st.get)(t,e.ids[n]||n),r&&r.$ref?on(e,t,r.$ref):r}const an="__compiled",ln="__ref",un=/(#|\/)+$/g;function cn(e,t,n,r=e.rootSchema,i="#"){r=e.resolveRef(r),n(r,t,i);const s=z(t);"object"===s?Object.keys(t).forEach((s=>{const o=e.step(s,r,t,i),a=t[s];e.each(a,n,o,`${i}/${s}`)})):"array"===s&&t.forEach(((s,o)=>{const a=e.step(o,r,t,i);e.each(s,n,a,`${i}/${o}`)}))}const hn={additionalItemsError:G("AdditionalItemsError"),additionalPropertiesError:G("AdditionalPropertiesError"),anyOfError:G("AnyOfError"),allOfError:G("AllOfError"),constError:G("ConstError"),containsError:G("ContainsError"),containsArrayError:G("ContainsArrayError"),containsAnyError:G("ContainsAnyError"),enumError:G("EnumError"),forbiddenPropertyError:G("ForbiddenPropertyError"),formatURLError:G("FormatURLError"),formatURIError:G("FormatURIError"),formatURIReferenceError:G("FormatURIReferenceError"),formatURITemplateError:G("FormatURITemplateError"),formatDateError:G("FormatDateError"),formatDateTimeError:G("FormatDateTimeError"),formatEmailError:G("FormatEmailError"),formatHostnameError:G("FormatHostnameError"),formatIPV4Error:G("FormatIPV4Error"),formatIPV4LeadingZeroError:G("FormatIPV4LeadingZeroError"),formatIPV6Error:G("FormatIPV6Error"),formatIPV6LeadingZeroError:G("FormatIPV6LeadingZeroError"),formatJsonPointerError:G("FormatJsonPointerError"),formatRegExError:G("FormatRegExError"),formatTimeError:G("FormatTimeError"),invalidSchemaError:G("InvalidSchemaError"),invalidDataError:G("InvalidDataError"),invalidTypeError:G("InvalidTypeError"),invalidPropertyNameError:G("InvalidPropertyNameError"),maximumError:G("MaximumError"),maxItemsError:G("MaxItemsError"),maxLengthError:G("MaxLengthError"),maxPropertiesError:G("MaxPropertiesError"),minimumError:G("MinimumError"),minItemsError:G("MinItemsError"),minItemsOneError:G("MinItemsOneError"),minLengthError:G("MinLengthError"),minLengthOneError:G("MinLengthOneError"),minPropertiesError:G("MinPropertiesError"),missingDependencyError:G("MissingDependencyError"),missingOneOfPropertyError:G("MissingOneOfPropertyError"),multipleOfError:G("MultipleOfError"),multipleOneOfError:G("MultipleOneOfError"),noAdditionalPropertiesError:G("NoAdditionalPropertiesError"),notError:G("NotError"),oneOfError:G("OneOfError"),oneOfPropertyError:G("OneOfPropertyError"),patternError:G("PatternError"),patternPropertiesError:G("PatternPropertiesError"),requiredPropertyError:G("RequiredPropertyError"),schemaWarning:G("SchemaWarning"),typeError:G("TypeError"),undefinedValueError:G("UndefinedValueError"),uniqueItemsError:G("UniqueItemsError"),unknownPropertyError:G("UnknownPropertyError"),valueNotEmptyError:G("ValueNotEmptyError")};var fn=n(47112),dn=n.n(fn),pn=n(85626);const mn=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),gn=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,yn=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,vn=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,bn=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,wn=/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Dn=[0,31,28,31,30,31,30,31,31,30,31,30,31],kn=/^(?:\/(?:[^~/]|~0|~1)*)*$/,An=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,En=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,xn=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Cn={date:(e,t,n,r)=>{if("string"!=typeof n||""===n)return;const i=n.match(bn);if(!i)return e.errors.formatDateTimeError({value:n,pointer:r,schema:t});const s=+i[1],o=+i[2],a=+i[3];return o>=1&&o<=12&&a>=1&&a<=(2!=o||s%4!=0||s%100==0&&s%400!=0?Dn[o]:29)?void 0:e.errors.formatDateError({value:n,pointer:r,schema:t})},"date-time":(e,t,n,r)=>{if("string"==typeof n&&""!==n)return""===n||mn.test(n)?"Invalid Date"===new Date(n).toString()?e.errors.formatDateTimeError({value:n,pointer:r,schema:t}):void 0:e.errors.formatDateTimeError({value:n,pointer:r,schema:t})},email:(e,t,n,r)=>{if("string"!=typeof n||""===n)return;if('"'===n[0])return e.errors.formatEmailError({value:n,pointer:r,schema:t});const[i,s,...o]=n.split("@");return!i||!s||0!==o.length||i.length>64||s.length>253||"."===i[0]||i.endsWith(".")||i.includes("..")?e.errors.formatEmailError({value:n,pointer:r,schema:t}):/^[a-z0-9.-]+$/i.test(s)&&/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(i)&&s.split(".").every((e=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(e)))?void 0:e.errors.formatEmailError({value:n,pointer:r,schema:t})},"idn-email":(e,t,n,r)=>{if("string"==typeof n&&""!==n)try{return void(0,pn.parse)(n)}catch(i){return e.errors.formatEmailError({value:n,pointer:r,schema:t})}},hostname:(e,t,n,r)=>{if("string"==typeof n&&""!==n&&!vn.test(n))return e.errors.formatHostnameError({value:n,pointer:r,schema:t})},ipv4:(e,t,n,r)=>{if("string"==typeof n&&""!==n){if(n&&"0"===n[0])return e.errors.formatIPV4LeadingZeroError({value:n,pointer:r,schema:t});if(!(n.length<=15&&gn.test(n)))return e.errors.formatIPV4Error({value:n,pointer:r,schema:t})}},ipv6:(e,t,n,r)=>{if("string"==typeof n&&""!==n){if(n&&"0"===n[0])return e.errors.formatIPV6LeadingZeroError({value:n,pointer:r,schema:t});if(!(n.length<=45&&yn.test(n)))return e.errors.formatIPV6Error({value:n,pointer:r,schema:t})}},"json-pointer":(e,t,n,r)=>{if("string"==typeof n&&""!==n&&!kn.test(n))return e.errors.formatJsonPointerError({value:n,pointer:r,schema:t})},"relative-json-pointer":(e,t,n,r)=>{if("string"==typeof n&&""!==n&&!An.test(n))return e.errors.formatJsonPointerError({value:n,pointer:r,schema:t})},regex:(e,t,n,r)=>{if("string"==typeof n&&!1===/\\Z$/.test(n)){try{return void new RegExp(n)}catch(e){}return e.errors.formatRegExError({value:n,pointer:r,schema:t})}if("object"!=typeof n&&"number"!=typeof n&&!Array.isArray(n))return e.errors.formatRegExError({value:n,pointer:r,schema:t})},time:(e,t,n,r)=>{if("string"==typeof n&&""!==n)return n.match(wn)?void 0:e.errors.formatDateTimeError({value:n,pointer:r,schema:t})},uri:(e,t,n,r)=>{if("string"==typeof n&&""!==n&&!dn().isUri(n))return e.errors.formatURIError({value:n,pointer:r,schema:t})},"uri-reference":(e,t,n,r)=>{if("string"==typeof n&&""!==n&&!En.test(n))return e.errors.formatURIReferenceError({value:n,pointer:r,schema:t})},"uri-template":(e,t,n,r)=>{if("string"==typeof n&&""!==n&&!xn.test(n))return e.errors.formatURITemplateError({value:n,pointer:r,schema:t})},url:(e,t,n,r)=>{if(""!==n&&!dn().isWebUri(n))return e.errors.formatURLError({value:n,pointer:r,schema:t})}},Sn=Cn,On={};function Fn(e,t=On){const{pointer:n="#",data:r,schema:i=e.rootSchema,withSchemaWarning:s=!1}=t,o=ot().split(n),a=_n(e,e.resolveRef(i),o,"#",r);if(s||"schema-warning"!==(null==a?void 0:a.code))return a}function _n(e,t,n,r,i=On){if(0===n.length)return e.resolveRef(t);const s=n.shift();return Q(t=e.step(s,t,i,r))?t:_n(e,t,n,`${r}/${s}`,i=i[s])}const Tn=Y.templateDefaultOptions;let Bn;function Pn(e,t){const{$ref:n}=e;return null==n||(null==Bn[t]||null==Bn[t][n]?0:Bn[t][n])<Y.GET_TEMPLATE_RECURSION_LIMIT}function In(e,t,n){const{$ref:r}=t;return null==r?t:(Bn[n]=Bn[n]||{},Bn[n][r]=Bn[n][r]||0,Bn[n][r]+=1,e.resolveRef(t))}function Mn(e,t,n,r,i){if("object"!==z(t))return Object.assign({pointer:r},t);if(!1===Pn(t,r)&&null==n)return!1;let s=ze(In(e,t,r));if(Array.isArray(t.anyOf)&&t.anyOf.length>0){if(Pn(t.anyOf[0],`${r}/anyOf/0`)){const n=In(e,t.anyOf[0],`${r}/anyOf/0`);s=ae(s,n),s.pointer=t.anyOf[0].$ref||s.pointer}delete s.anyOf}if(Array.isArray(t.allOf)){if(t.allOf.map(((e,t)=>Pn(e,`${r}/allOf/${t}`))).reduceRight(((e,t)=>e&&t),!0)){const o=[];let a=ze(n);for(let n=0;n<t.allOf.length;n+=1)o.push(He(e,t.allOf[n],a)),a=Nn(e,a,{type:t.type,...o[n]},`${r}/allOf/${n}`,i);const l=Ke(e,{allOf:o});l&&(s=ce(s,l))}}return s.pointer=s.pointer||t.$ref||r,s}const $n=e=>e&&"object"==typeof e;function Nn(e,t,n,r,i){var s;if(null==n)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(t)}`);if(null==r)throw new Error("Missing pointer");let o=Mn(e,n,t,r,i);if(!$n(o))return;if(r=o.pointer,null==o?void 0:o.const)return o.const;if(Array.isArray(o.oneOf))if(function(e){switch(z(e)){case"string":case"array":return 0===(null==e?void 0:e.length);case"null":case"undefined":return!0;case"object":return 0===Object.keys(e).length;default:return!1}}(t)){const e=o.oneOf[0].type||o.type||o.const&&typeof o.const||z(t);o={...o.oneOf[0],type:e}}else{const n=re(e,t,o);if(Q(n)){if(null!=t&&!0!==i.removeInvalidData)return t;o=o.oneOf[0],t=void 0}else n.type=null!==(s=n.type)&&void 0!==s?s:o.type,o=n}if(!$n(o)||null==o.type)return;if(t instanceof File)return t;const a=Array.isArray(o.type)?function(e,t,n){if(null==t){if(null!=n){const t=z(n);if(e.includes(t))return t}return e[0]}const r=z(t);return e.includes(r)?r:e[0]}(o.type,t,o.default):o.type,l=z(t);if(null==t||l===a||"number"===l&&"integer"===a||(t=function(e,t){if("string"===e)return JSON.stringify(t);if("string"!=typeof t)return null;try{if(typeof(t=JSON.parse(t))===e)return t}catch(e){}return null}(a,t)),null==Ln[a]){if(i.removeInvalidData)return;return t}return Ln[a](e,o,t,r,i)}const Ln={null:(e,t,n)=>Rn(t,n,null),string:(e,t,n)=>Rn(t,n,""),number:(e,t,n)=>Rn(t,n,0),integer:(e,t,n)=>Rn(t,n,0),boolean:(e,t,n)=>Rn(t,n,!1),object:(e,t,n,r,i)=>{var s;const o=void 0===t.default?{}:t.default,a={},l=!1===i.extendDefaults&&void 0!==t.default?[]:null!==(s=t.required)&&void 0!==s?s:[];t.properties&&Object.keys(t.properties).forEach((s=>{const u=null==n||null==n[s]?o[s]:n[s],c=l.includes(s);(null!=u||c||i.addOptionalProps)&&(a[s]=Nn(e,u,t.properties[s],`${r}/properties/${s}`,i))}));let u=Je(e,t,a);if(u){u=ce(t,u),delete u.dependencies;const s=Nn(e,n,u,`${r}/dependencies`,i);Object.assign(a,s)}n&&(!0!==i.removeInvalidData||!1!==t.additionalProperties&&"object"!==z(t.additionalProperties)?Object.keys(n).forEach((e=>null==a[e]&&(a[e]=n[e]))):"object"===z(t.additionalProperties)&&Object.keys(n).forEach((r=>{null==a[r]&&e.isValid(n[r],t.additionalProperties)&&(a[r]=n[r])})));const c=Ue(e,t,a);if(c){const t=Nn(e,a,{type:"object",...c},r,i);Object.assign(a,t)}return a},array:(e,t,n,r,i)=>{var s,o;if(null==t.items)return n||[];const a=void 0===t.default?[]:t.default,l=n||a,u=!1===i.extendDefaults&&void 0!==t.default?0:t.minItems||0;if(Array.isArray(t.items)){for(let n=0,c=Math.max(null!=u?u:0,null!==(o=null===(s=t.items)||void 0===s?void 0:s.length)&&void 0!==o?o:0);n<c;n+=1)l[n]=Nn(e,null==l[n]?a[n]:l[n],t.items[n],`${r}/items/${n}`,i);return l}if("object"!==z(t.items))return l;const c=Mn(e,t.items,n,r,i);if(!1===c)return l;if(r=c.pointer||r,c.oneOf&&0===l.length){const t=c.oneOf[0];for(let n=0;n<u;n+=1)l[n]=Nn(e,null==l[n]?a[n]:l[n],t,`${r}/oneOf/0`,i);return l}if(c.oneOf&&l.length>0){const t=Math.max(u,l.length);for(let n=0;n<t;n+=1){let t=null==l[n]?a[n]:l[n],s=re(e,t,c);null==s||Q(s)?null!=t&&!0!==i.removeInvalidData?l[n]=t:(t=void 0,s=c.oneOf[0],l[n]=Nn(e,t,s,`${r}/oneOf/${n}`,i)):l[n]=Nn(e,t,s,`${r}/oneOf/${n}`,i)}return l}if(c.type){for(let t=0,n=Math.max(u,l.length);t<n;t+=1)l[t]=Nn(e,null==l[t]?a[t]:l[t],c,`${r}/items`,i);return l}return l}};function Rn(e,t,n){return null!=t?t:e.const?e.const:void 0===e.default&&Array.isArray(e.enum)?e.enum[0]:void 0===e.default?n:e.default}const jn=(e,t,n=e.rootSchema,r)=>(Bn={},Nn(e,t,n,"#",r?{...Tn,...r}:Tn));function qn(e,t,n=e.rootSchema,r="#"){return 0===e.validate(t,n,r).length}function Vn(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}function zn(e){const t=`${e}`,n=t.indexOf(".");return-1===n?0:t.length-(n+1)}var Un=n(38792),Hn=n.n(Un);const Wn=Object.prototype.hasOwnProperty,Kn=(e,t)=>!(void 0===e[t]||!Wn.call(e,t)),Gn={additionalProperties:(e,t,n,r)=>{if(!0===t.additionalProperties||null==t.additionalProperties)return;if("object"===z(t.patternProperties)&&!1===t.additionalProperties)return;const i=[];let s=Object.keys(n).filter((e=>!1===Y.propertyBlacklist.includes(e)));const o=Object.keys(t.properties||{});if("object"===z(t.patternProperties)){const e=Object.keys(t.patternProperties).map((e=>new RegExp(e)));s=s.filter((t=>{for(let n=0;n<e.length;n+=1)if(e[n].test(t))return!1;return!0}))}for(let a=0,l=s.length;a<l;a+=1){const l=s[a];if(-1===o.indexOf(l)){const u=Ge(t.additionalProperties);if(u&&Array.isArray(t.additionalProperties.oneOf)){const u=e.resolveOneOf(n[l],t.additionalProperties,`${r}/${l}`);Q(u)?i.push(e.errors.additionalPropertiesError({pointer:r,schema:t.additionalProperties,value:n,property:s[a],properties:o,errors:u.data.errors})):i.push(...e.validate(n[l],u,r))}else u?i.push(...e.validate(n[l],t.additionalProperties,`${r}/${l}`)):i.push(e.errors.noAdditionalPropertiesError({pointer:r,schema:t,value:n,property:s[a],properties:o}))}}return i},allOf:(e,t,n,r)=>{const{allOf:i}=t;if(!Array.isArray(i)||0===i.length)return;const s=[];return t.allOf.forEach((t=>{s.push(...e.validate(n,t,r))})),s},anyOf:(e,t,n,r)=>{if(Array.isArray(t.anyOf)&&0!==t.anyOf.length){for(let r=0;r<t.anyOf.length;r+=1)if(e.isValid(n,t.anyOf[r]))return;return e.errors.anyOfError({pointer:r,schema:t,value:n,anyOf:t.anyOf})}},dependencies:(e,t,n,r)=>{if("object"!==z(t.dependencies))return;const i=[];return Object.keys(n).forEach((s=>{if(void 0===t.dependencies[s])return;if(!0===t.dependencies[s])return;if(!1===t.dependencies[s])return void i.push(e.errors.missingDependencyError({pointer:r,schema:t,value:n}));let o;const a=z(t.dependencies[s]);if("array"===a)o=t.dependencies[s].filter((e=>void 0===n[e])).map((i=>e.errors.missingDependencyError({missingProperty:i,pointer:r,schema:t,value:n})));else{if("object"!==a)throw new Error(`Invalid dependency definition for ${r}/${s}. Must be string[] or schema`);o=e.validate(n,t.dependencies[s],r)}i.push(...o)})),i.length>0?i:void 0},enum:(e,t,n,r)=>{const i=z(n);if("object"===i||"array"===i){const e=JSON.stringify(n);for(let n=0;n<t.enum.length;n+=1)if(JSON.stringify(t.enum[n])===e)return}else if(t.enum.includes(n))return;return e.errors.enumError({pointer:r,schema:t,value:n,values:t.enum})},format:(e,t,n,r)=>{if(e.validateFormat[t.format])return e.validateFormat[t.format](e,t,n,r)},items:(e,t,n,r)=>{if(!1===t.items){if(Array.isArray(n)&&0===n.length)return;return e.errors.invalidDataError({pointer:r,value:n,schema:t})}const i=[];for(let s=0;s<n.length;s+=1){const o=n[s],a=e.step(s,t,n,r);if(Q(a))return[a];const l=e.validate(o,a,`${r}/${s}`);i.push(...l)}return i},maximum:(e,t,n,r)=>{if(!isNaN(t.maximum))return t.maximum&&t.maximum<n?e.errors.maximumError({maximum:t.maximum,length:n,value:n,pointer:r,schema:t}):t.maximum&&!0===t.exclusiveMaximum&&t.maximum===n?e.errors.maximumError({maximum:t.maximum,length:n,pointer:r,schema:t,value:n}):void 0},maxItems:(e,t,n,r)=>{if(!isNaN(t.maxItems))return t.maxItems<n.length?e.errors.maxItemsError({maximum:t.maxItems,length:n.length,schema:t,value:n,pointer:r}):void 0},maxLength:(e,t,n,r)=>{if(isNaN(t.maxLength))return;const i=Vn(n).length;return t.maxLength<i?e.errors.maxLengthError({maxLength:t.maxLength,length:i,pointer:r,schema:t,value:n}):void 0},maxProperties:(e,t,n,r)=>{const i=Object.keys(n).length;if(!1===isNaN(t.maxProperties)&&t.maxProperties<i)return e.errors.maxPropertiesError({maxProperties:t.maxProperties,length:i,pointer:r,schema:t,value:n})},minLength:(e,t,n,r)=>{if(isNaN(t.minLength))return;const i=Vn(n).length;return t.minLength>i?1===t.minLength?e.errors.minLengthOneError({minLength:t.minLength,length:i,pointer:r,schema:t,value:n}):e.errors.minLengthError({minLength:t.minLength,length:i,pointer:r,schema:t,value:n}):void 0},minimum:(e,t,n,r)=>{if(!isNaN(t.minimum))return t.minimum>n||!0===t.exclusiveMinimum&&t.minimum===n?e.errors.minimumError({minimum:t.minimum,length:n,pointer:r,schema:t,value:n}):void 0},minItems:(e,t,n,r)=>{if(!isNaN(t.minItems))return t.minItems>n.length?1===t.minItems?e.errors.minItemsOneError({minItems:t.minItems,length:n.length,pointer:r,schema:t,value:n}):e.errors.minItemsError({minItems:t.minItems,length:n.length,pointer:r,schema:t,value:n}):void 0},minProperties:(e,t,n,r)=>{if(isNaN(t.minProperties))return;const i=Object.keys(n).length;return t.minProperties>i?e.errors.minPropertiesError({minProperties:t.minProperties,length:i,pointer:r,schema:t,value:n}):void 0},multipleOf:(e,t,n,r)=>{if(isNaN(t.multipleOf)||"number"!=typeof n)return;const i=zn(n),s=zn(t.multipleOf);if(i>s)return e.errors.multipleOfError({multipleOf:t.multipleOf,value:n,pointer:r,schema:t});const o=Math.pow(10,s);return Math.round(n*o)%Math.round(t.multipleOf*o)/o!=0?e.errors.multipleOfError({multipleOf:t.multipleOf,value:n,pointer:r,schema:t}):void 0},not:(e,t,n,r)=>{const i=[];return 0===e.validate(n,t.not,r).length&&i.push(e.errors.notError({value:n,not:t.not,pointer:r,schema:t})),i},oneOf:(e,t,n,r)=>{if(Array.isArray(t.oneOf)){const i=e.resolveOneOf(n,t,r);if(Q(i))return i}},pattern:(e,t,n,r)=>{if(!1===new RegExp(t.pattern,"u").test(n))return e.errors.patternError({pattern:t.pattern,description:t.patternExample||t.pattern,received:n,schema:t,value:n,pointer:r})},patternProperties:(e,t,n,r)=>{const i=t.properties||{},s=t.patternProperties;if("object"!==z(s))return;const o=[],a=Object.keys(n),l=Object.keys(s).map((e=>({regex:new RegExp(e),patternSchema:s[e]})));return a.forEach((a=>{let u=!1;for(let t=0,i=l.length;t<i;t+=1)if(l[t].regex.test(a)){u=!0;const i=e.validate(n[a],l[t].patternSchema,`${r}/${a}`);i&&i.length>0&&o.push(...i)}i[a]||!1===u&&!1===t.additionalProperties&&o.push(e.errors.patternPropertiesError({key:a,pointer:r,schema:t,value:n,patterns:Object.keys(s).join(",")}))})),o},properties:(e,t,n,r)=>{const i=[],s=Object.keys(t.properties||{});for(let o=0;o<s.length;o+=1){const a=s[o];if(Kn(n,a)){const s=e.step(a,t,n,r),o=e.validate(n[a],s,`${r}/${a}`);i.push(...o)}}return i},propertiesRequired:(e,t,n,r)=>{const i=[],s=Object.keys(t.properties||{});for(let o=0;o<s.length;o+=1){const a=s[o];if(void 0===n[a])i.push(e.errors.requiredPropertyError({key:a,pointer:r,schema:t,value:n}));else{const s=e.step(a,t,n,r),o=e.validate(n[a],s,`${r}/${a}`);i.push(...o)}}return i},required:(e,t,n,r)=>{if(!1!==Array.isArray(t.required))return t.required.map((i=>{if(!Kn(n,i))return e.errors.requiredPropertyError({key:i,pointer:r,schema:t,value:n})}))},requiredNotEmpty:(e,t,n,r)=>{if(!1!==Array.isArray(t.required))return t.required.map((i=>{if(null==n[i]||""===n[i])return e.errors.valueNotEmptyError({property:i,pointer:`${r}/${i}`,schema:t,value:n})}))},uniqueItems:(e,t,n,r)=>{if(!1===(Array.isArray(n)&&t.uniqueItems))return;const i=[],s=[];return n.forEach(((o,a)=>{for(let l=a+1;l<n.length;l+=1)Hn()(o,n[l])&&!i.includes(l)&&(s.push(e.errors.uniqueItemsError({pointer:`${r}/${l}`,duplicatePointer:`${r}/${a}`,arrayPointer:r,value:JSON.stringify(o),schema:t})),i.push(l))})),s}},Jn=Gn;function Yn(e,t){return null==e||null==e.$ref?e:e.getRoot?e.getRoot().getRef(e):t.getRef(e)}function Zn(e){if(void 0===e)return;const t={type:z(e)};return"object"===t.type&&Ge(e)&&(t.properties={},Object.keys(e).forEach((n=>t.properties[n]=Zn(e[n])))),"array"===t.type&&Array.isArray(e)&&(1===e.length?t.items=Zn(e[0]):t.items=e.map(Zn)),t}const Qn={array:(e,t,n,r,i)=>{const s=null==r?void 0:r[t],o=z(n.items);if("object"===o)return nt(e,n.items,s,`${i}/${t}`)||e.resolveRef(n.items);if("array"===o){if(!0===n.items[t])return Zn(s);if(!1===n.items[t])return e.errors.invalidDataError({key:t,value:s,pointer:i,schema:n});if(n.items[t])return e.resolveRef(n.items[t]);if(!1===n.additionalItems)return e.errors.additionalItemsError({key:t,value:s,pointer:i,schema:n});if(!0===n.additionalItems||void 0===n.additionalItems)return Zn(s);if("object"===z(n.additionalItems))return n.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(n,null,2)} for ${JSON.stringify(r,null,2)}`)}return!1!==n.additionalItems&&s?Zn(s):new Error(`Invalid array schema for ${t} at ${i}`)},object:(e,t,n,r,i)=>{var s;const o=null===(s=null==(n=nt(e,n,r,i))?void 0:n.properties)||void 0===s?void 0:s[t];if(void 0!==o){if(!1===o)return e.errors.forbiddenPropertyError({property:t,value:r,pointer:i,schema:n});if(!0===o)return Zn(null==r?void 0:r[t]);const s=e.resolveRef(o);if(Q(s))return s;if(s&&Array.isArray(s.oneOf))return e.resolveOneOf(r[t],s,`${i}/${t}`);if(s)return s}const{patternProperties:a}=n;if("object"===z(a)){let e;const n=Object.keys(a);for(let r=0,i=n.length;r<i;r+=1)if(e=new RegExp(n[r]),e.test(t))return a[n[r]]}const{additionalProperties:l}=n;return"object"===z(l)?n.additionalProperties:!r||void 0!==l&&!0!==l?e.errors.unknownPropertyError({property:t,value:r,pointer:`${i}`,schema:n}):Zn(r[t])}};function Xn(e,t,n,r,i="#"){var s;const o=z(r);let a=null!==(s=n.type)&&void 0!==s?s:o;if(Array.isArray(a)){if(!a.includes(o))return e.errors.typeError({value:r,pointer:i,expected:n.type,received:o,schema:n});a=o}const l=Qn[a];if(l){const s=l(e,`${t}`,n,r,i);return void 0===s?e.errors.schemaWarning({pointer:i,value:r,schema:n,key:t}):s}return new Error(`Unsupported schema type ${n.type} for key ${t}`)}function er(e,t,n=e.rootSchema){var r;if(n.oneOf)return n.oneOf.map((t=>e.resolveRef(t)));if(null===(r=n.items)||void 0===r?void 0:r.oneOf)return n.items.oneOf.map((t=>e.resolveRef(t)));const i=e.step(t,n,{},"#");return Q(i)?i:[i]}function tr(e,t,n=e.rootSchema,r="#"){if("boolean"===z(n=e.resolveRef(n)))return n?[]:[e.errors.invalidDataError({pointer:r,schema:n,value:t})];if(Q(n))return[n];if(void 0!==n.const)return Hn()(n.const,t)?[]:[e.errors.constError({pointer:r,schema:n,value:t,expected:n.const})];const i=function(e,t){const n=z(e);return"number"===n&&("integer"===t||Array.isArray(t)&&t.includes("integer"))?Number.isInteger(e)||isNaN(e)?"integer":"number":n}(t,n.type),s=n.type||i;return i===s||Array.isArray(s)&&s.includes(i)?null==e.validateType[i]?[e.errors.invalidTypeError({pointer:r,schema:n,value:t,receivedType:i})]:J(e.validateType[i](e,n,t,r)).filter(X):[e.errors.typeError({pointer:r,schema:n,value:t,received:i,expected:s})]}const nr={typeKeywords:{array:["allOf","anyOf","enum","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["enum","not","allOf","anyOf","oneOf"],object:["additionalProperties","dependencies","enum","format","minProperties","maxProperties","patternProperties","properties","required","not","oneOf","allOf","anyOf"],string:["allOf","anyOf","enum","format","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","format","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:Jn,validateType:{array:(e,t,n,r)=>e.typeKeywords.array.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),object:(e,t,n,r)=>e.typeKeywords.object.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),string:(e,t,n,r)=>e.typeKeywords.string.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),integer:(e,t,n,r)=>e.typeKeywords.number.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),number:(e,t,n,r)=>e.typeKeywords.number.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),boolean:(e,t,n,r)=>e.typeKeywords.boolean.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),null:(e,t,n,r)=>e.typeKeywords.null.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r)))},validateFormat:Sn,errors:hn,addRemoteSchema:it,compileSchema:function(e,t,n=t,r=!1){if(!t||void 0!==t[an])return t;const i={ids:{},remotes:e.remotes},s=JSON.stringify(t),o=JSON.parse(s);if(Object.defineProperty(o,an,{enumerable:!1,value:!0}),Object.defineProperty(o,"getRef",{enumerable:!1,value:on.bind(null,i,o)}),!1===r&&!1===s.includes("$ref"))return o;t!==n&&Object.defineProperty(o,"definitions",{enumerable:!1,value:Object.assign({},n.definitions,n.$defs,t.definitions,t.$defs)});const a={},l=()=>o;return Gt(o,((e,t)=>{var n;if(e.id){if(e.id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(t)){const r=t.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),i=(0,st.get)(o,r);e.id=null!==(n=i.id)&&void 0!==n?n:e.id}i.ids[e.id.replace(un,"")]=t}const r=(t=`#${t}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),s=t.replace(/\/[^/]+\/[^/]+$/,""),u=en(a[r]||a[s],e.id);a[t]=u,null==i.ids[u]&&(i.ids[u]=t),e.$ref&&!e[ln]&&(Object.defineProperty(e,ln,{enumerable:!1,value:en(u,e.$ref)}),Object.defineProperty(e,"getRoot",{enumerable:!1,value:l}))})),o},createSchemaOf:Zn,each:cn,eachSchema:Gt,getChildSchemaSelection:er,getSchema:Fn,getTemplate:jn,isValid:qn,resolveAllOf:We,resolveAnyOf:Ze,resolveOneOf:te,resolveRef:Yn,step:Xn,validate:tr,templateDefaultOptions:Y.templateDefaultOptions};class rr extends rt{constructor(e,t={}){super(ae(nr,t),e)}}const ir="__compiled",sr="__ref",or=/(#|\/)+$/g;const ar={...Jn,contains:(e,t,n,r)=>{if(!1===t.contains)return e.errors.containsArrayError({pointer:r,value:n,schema:t});if(!0===t.contains)return Array.isArray(n)&&0===n.length?e.errors.containsAnyError({pointer:r,value:n,schema:t}):void 0;if("object"===z(t.contains)){for(let r=0;r<n.length;r+=1)if(e.isValid(n[r],t.contains))return;return e.errors.containsError({pointer:r,schema:t,value:n})}},exclusiveMaximum:(e,t,n,r)=>{if(!isNaN(t.exclusiveMaximum))return t.exclusiveMaximum<=n?e.errors.maximumError({maximum:t.exclusiveMaximum,length:n,pointer:r,schema:t,value:n}):void 0},exclusiveMinimum:(e,t,n,r)=>{if(!isNaN(t.exclusiveMinimum))return t.exclusiveMinimum>=n?e.errors.minimumError({minimum:t.exclusiveMinimum,length:n,pointer:r,schema:t,value:n}):void 0},if:(e,t,n,r)=>{const i=Ue(e,t,n);if(i)return e.validate(n,i,r)},maximum:(e,t,n,r)=>{if(!isNaN(t.maximum))return t.maximum&&t.maximum<n?e.errors.maximumError({maximum:t.maximum,length:n,pointer:r,schema:t,value:n}):void 0},minimum:(e,t,n,r)=>{if(!isNaN(t.minimum))return t.minimum>n?e.errors.minimumError({minimum:t.minimum,length:n,pointer:r,schema:t,value:n}):void 0},patternProperties:(e,t,n,r)=>{const i=t.properties||{},s=t.patternProperties;if("object"!==z(s))return;const o=[],a=Object.keys(n),l=Object.keys(s).map((e=>({regex:new RegExp(e),patternSchema:s[e]})));return a.forEach((a=>{let u=!1;for(let i=0,c=l.length;i<c;i+=1)if(l[i].regex.test(a)){if(u=!0,!1===l[i].patternSchema)return void o.push(e.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(s).join(","),schema:t,value:n}));const c=e.validate(n[a],l[i].patternSchema,`${r}/${a}`);c&&c.length>0&&o.push(...c)}i[a]||!1===u&&!1===t.additionalProperties&&o.push(e.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(s).join(","),schema:t,value:n}))})),o},propertyNames:(e,t,n,r)=>{if(!1===t.propertyNames){if(0===Object.keys(n).length)return;return e.errors.invalidPropertyNameError({property:Object.keys(n),pointer:r,value:n,schema:t})}if(!0===t.propertyNames)return;if("object"!==z(t.propertyNames))return;const i=[],s=Object.keys(n),o={...t.propertyNames,type:"string"};return s.forEach((s=>{const a=e.validate(s,o,`${r}/${s}`);a.length>0&&i.push(e.errors.invalidPropertyNameError({property:s,pointer:r,validationError:a[0],value:n[s],schema:t}))})),i}},lr=ar;Y.templateDefaultOptions;const ur={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:lr,validateType:{array:(e,t,n,r)=>e.typeKeywords.array.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),object:(e,t,n,r)=>e.typeKeywords.object.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),string:(e,t,n,r)=>e.typeKeywords.string.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),integer:(e,t,n,r)=>e.typeKeywords.number.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),number:(e,t,n,r)=>e.typeKeywords.number.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),boolean:(e,t,n,r)=>e.typeKeywords.boolean.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r))),null:(e,t,n,r)=>e.typeKeywords.null.filter((e=>t&&null!=t[e])).map((i=>e.validateKeyword[i](e,t,n,r)))},validateFormat:Sn,errors:hn,addRemoteSchema:it,compileSchema:function(e,t,n=t,r=!1){if(!0===t||!1===t||void 0===t)return t;if(void 0!==t[ir])return t;const i={ids:{},remotes:e.remotes},s=JSON.stringify(t),o=JSON.parse(s);if(Object.defineProperty(o,ir,{enumerable:!1,value:!0}),Object.defineProperty(o,"getRef",{enumerable:!1,value:on.bind(null,i,o)}),!1===r&&!1===s.includes("$ref"))return o;o!==n&&Object.defineProperty(o,"$defs",{enumerable:!0,value:Object.assign({},n.definitions,n.$defs,o.definitions,o.$defs)});const a={},l=()=>o;return Gt(o,((e,t)=>{var n;if(e.$id){if(e.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(t)){const r=t.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),i=(0,st.get)(o,r);e.$id=null!==(n=i.$id)&&void 0!==n?n:e.$id}i.ids[e.$id.replace(or,"")]=t}const r=(t=`#${t}`.replace(/##+/,"#")).replace(/\/[^/]+$/,""),s=t.replace(/\/[^/]+\/[^/]+$/,""),u=en(a[r]||a[s],e.$id);a[t]=u,null==i.ids[u]&&(i.ids[u]=t),e.$ref&&!e[sr]&&(Object.defineProperty(e,sr,{enumerable:!1,value:en(u,e.$ref)}),Object.defineProperty(e,"getRoot",{enumerable:!1,value:l}))})),o},createSchemaOf:Zn,each:cn,eachSchema:Gt,getChildSchemaSelection:er,getSchema:Fn,getTemplate:jn,isValid:qn,resolveAllOf:We,resolveAnyOf:Ze,resolveOneOf:te,resolveRef:Yn,step:Xn,validate:tr,templateDefaultOptions:Y.templateDefaultOptions};class cr extends rt{constructor(e,t={}){super(ae(ur,t),e)}}class hr{constructor(){this.completions=new Map,this.reservedKeys=new Set}reserve(e){this.reservedKeys.add(e)}add(e){this.reservedKeys.has(e.label)||this.completions.set(e.label,e)}}class fr{constructor(e){var t;this.opts=e,this.schema=null,this.mode=y,this.mode=null!==(t=e.mode)&&void 0!==t?t:y}doComplete(e){var t,n;if(this.schema=R(e.state),!this.schema)return[];const r={from:e.pos,to:e.pos,options:[],filter:!1},i=e.state.doc.sliceString(0);let s=A(e.state,e.pos);const o=e.state.sliceDoc(s.from,e.pos).replace(/^("|')/,"");if(!S(s,this.mode)&&!F(s,this.mode)&&!e.explicit)return r;const a=x(e.state.doc,s),l=x(e.state.doc,s,!1);if(s&&(S(s,this.mode)||F(s,this.mode)))r.from=s.from,r.to=s.to;else{const n=e.matchBefore(/[A-Za-z0-9._]*/),o=e.pos-a.length;e.pos,i[o-1],i[o],r.from=s.name===h.INVALID?null!==(t=null==n?void 0:n.from)&&void 0!==t?t:e.pos:o,r.to=e.pos}const u=new hr;let c=!0;const f=I(s,h.PROPERTY_NAME,this.mode);if(f&&(s=f),F(s,this.mode)){const e=s.parent;if(e){const t=B(e,this.mode);c=!t||t.name===h.INVALID&&t.from-t.to==0||!!t.parent&&_(t.parent).length<=1,B(e,this.mode),s=null!==(n=I(e,h.OBJECT,this.mode))&&void 0!==n?n:null}}if(A(e.state,e.pos),s&&[h.OBJECT,h.JSON_TEXT].includes(b(s.name,this.mode))&&(F(A(e.state,e.pos),this.mode)||f)){if(s.from===e.pos)return r;this.getPropertyCompletions(this.schema,e,s,u,c,l)}else{const t={};this.getValueCompletions(this.schema,e,t,u)}return r.options=Array.from(u.completions.values()).filter((e=>E(e.label).startsWith(o))),u.completions,u.reservedKeys,r}applySnippetCompletion(e){return(0,u.Gw)("string"!=typeof e.apply?e.label:e.apply,e)}getPropertyCompletions(e,t,n,r,i,s){const o=((e,t,n)=>_(e).filter((e=>b(e.name,n)===t)))(n,h.PROPERTY,this.mode);o.forEach((e=>{const n=x(t.state.doc,T(e,h.PROPERTY_NAME,this.mode));r.reserve(E(n))})),this.getSchemas(e,t).forEach((e=>{if("object"!=typeof e)return;const t=e.properties;t&&Object.entries(t).forEach((([e,t])=>{var n,o;if("object"==typeof t){const a=null!==(n=t.description)&&void 0!==n?n:"",l=null!==(o=t.type)&&void 0!==o?o:"",u=Array.isArray(l)?l.toString():l,c={label:e,apply:this.getInsertTextForProperty(e,i,s,t),type:"property",detail:u,info:a};r.add(this.applySnippetCompletion(c))}}));const n=e.propertyNames;if("object"==typeof n&&(n.enum&&n.enum.forEach((e=>{const t=null==e?void 0:e.toString();if(t){const e={label:t,apply:this.getInsertTextForProperty(t,i,s),type:"property"};r.add(this.applySnippetCompletion(e))}})),n.const)){const e=n.const.toString(),t={label:e,apply:this.getInsertTextForProperty(e,i,s),type:"property"};r.add(this.applySnippetCompletion(t))}}))}getInsertTextForProperty(e,t,n,r){r=r?this.expandSchemaProperty(r,this.schema):r;let i,s=this.getInsertTextForPropertyName(e,n);if(!t)return s;s+=": ";let o=0;if("object"==typeof r)if(void 0!==r.default)i||(i=this.getInsertTextForGuessedValue(r.default,"")),o++;else if(r.enum&&(i||1!==r.enum.length||(i=this.getInsertTextForGuessedValue(r.enum[0],"")),o+=r.enum.length),void 0!==r.const&&(i||(i=this.getInsertTextForGuessedValue(r.const,"")),o++),Array.isArray(r.examples)&&r.examples.length&&(i||(i=this.getInsertTextForGuessedValue(r.examples[0],"")),o+=r.examples.length),void 0===i&&0===o){let e=Array.isArray(r.type)?r.type[0]:r.type;switch(e||(r.properties?e="object":r.items&&(e="array")),e){case"boolean":default:i="#{}";break;case"string":i=this.getInsertTextForString("");break;case"object":switch(this.mode){case g:i="{#{}}";break;case v:i="#{}";break;default:i="{#{}}"}break;case"array":i="[#{}]";break;case"number":case"integer":i="#{0}";break;case"null":i="#{null}"}}return(!i||o>1)&&(i="#{}"),s+i}getInsertTextForPropertyName(e,t){switch(this.mode){case g:case v:return t.startsWith('"')?`"${e}"`:t.startsWith("'")?`'${e}'`:e;default:return`"${e}"`}}getInsertTextForString(e,t="#"){switch(this.mode){case g:return`'${t}{${e}}'`;case v:return`${t}{${e}}`;default:return`"${t}{${e}}"`}}getInsertTextForGuessedValue(e,t=""){switch(typeof e){case"object":return null===e?"${null}"+t:this.getInsertTextForValue(e,t);case"string":{let n=JSON.stringify(e);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),this.getInsertTextForString(n,"$")+t}case"number":case"boolean":return"${"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForValue(e,t){const n=JSON.stringify(e,null,"\t");return"{}"===n?"{#{}}"+t:"[]"===n?"[#{}]"+t:this.getInsertTextForPlainText(n+t)}getValueCompletions(e,t,n,r){let i,s=(0,c.mv)(t.state).resolveInner(t.pos,-1),o=null;if(s&&S(s,this.mode)&&(o=s,s=s.parent),s){if(b(s.name,this.mode)===h.PROPERTY){const e=T(s,h.PROPERTY_NAME,this.mode);e&&(i=x(t.state.doc,e),s=s.parent)}if(s&&(void 0!==i||b(s.name,this.mode)===h.ARRAY)){const a=this.getSchemas(e,t);for(const e of a){if("object"!=typeof e)return;if(b(s.name,this.mode)===h.ARRAY&&e.items){let t=r;if(e.uniqueItems&&(t=Object.assign(Object.assign({},t),{add(e){t.completions.has(e.label)||r.add(e)},reserve(e){r.reserve(e)}})),Array.isArray(e.items)){let r=0;if(o){const e=P(s,o,this.mode);e>=0&&(r=e)}const i=e.items[r];i&&this.addSchemaValueCompletions(i,n,t)}else this.addSchemaValueCompletions(e.items,n,t)}if(void 0!==i){let t=!1;if(e.properties){const s=e.properties[i];s&&(t=!0,this.addSchemaValueCompletions(s,n,r))}if(e.patternProperties&&!t)for(const s of Object.keys(e.patternProperties)){const o=this.extendedRegExp(s);if(null==o?void 0:o.test(i)){t=!0;const i=e.patternProperties[s];i&&this.addSchemaValueCompletions(i,n,r)}}if(e.additionalProperties&&!t){const t=e.additionalProperties;this.addSchemaValueCompletions(t,n,r)}}n.boolean&&(this.addBooleanValueCompletion(!0,r),this.addBooleanValueCompletion(!1,r)),n.null&&this.addNullValueCompletion(r)}}}else this.addSchemaValueCompletions(e,n,r)}addSchemaValueCompletions(e,t,n){"object"==typeof e&&(this.addEnumValueCompletions(e,n),this.addDefaultValueCompletions(e,n),this.collectTypes(e,t),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n))))}addDefaultValueCompletions(e,t,n=0){let r=!1;if(void 0!==e.default){let i=e.type,s=e.default;for(let e=n;e>0;e--)s=[s],i="array";const o=Object.assign(Object.assign({type:null==i?void 0:i.toString()},this.getAppliedValue(s)),{detail:"Default value"});t.add(o),r=!0}Array.isArray(e.examples)&&e.examples.forEach((i=>{let s=e.type,o=i;for(let e=n;e>0;e--)o=[o],s="array";t.add(Object.assign({type:null==s?void 0:s.toString()},this.getAppliedValue(o))),r=!0})),!r&&"object"==typeof e.items&&!Array.isArray(e.items)&&n<5&&this.addDefaultValueCompletions(e.items,t,n+1)}addEnumValueCompletions(e,t){var n,r;if(void 0!==e.const&&t.add(Object.assign(Object.assign({type:null===(n=e.type)||void 0===n?void 0:n.toString()},this.getAppliedValue(e.const)),{info:e.description})),Array.isArray(e.enum))for(let n=0,i=e.enum.length;n<i;n++){const i=e.enum[n];t.add(Object.assign(Object.assign({type:null===(r=e.type)||void 0===r?void 0:r.toString()},this.getAppliedValue(i)),{info:e.description}))}}addBooleanValueCompletion(e,t){t.add({type:"boolean",label:e?"true":"false"})}addNullValueCompletion(e){e.add({type:"null",label:"null"})}collectTypes(e,t){if(Array.isArray(e.enum)||void 0!==e.const)return;const n=e.type;Array.isArray(n)?n.forEach((e=>t[e]=!0)):n&&(t[n]=!0)}getSchemas(e,t){var n;const r=new cr(this.schema);let i=D(t.state,t.pos,-1,this.mode),s=r.getSchema({pointer:i});return Q(s)&&(s=null===(n=s.data)||void 0===n?void 0:n.schema),s&&"UnknownPropertyError"!==s.name&&!s.enum&&"undefined"!==s.type||(i=i.replace(/\/[^/]*$/,"/"),s=r.getSchema({pointer:i})),JSON.stringify(i),i&&"/"!==i?s?Array.isArray(s.allOf)?[s,...s.allOf.map((t=>this.expandSchemaProperty(t,e)))]:Array.isArray(s.oneOf)?[s,...s.oneOf.map((t=>this.expandSchemaProperty(t,e)))]:Array.isArray(s.anyOf)?[s,...s.anyOf.map((t=>this.expandSchemaProperty(t,e)))]:[s]:[]:[e]}expandSchemaProperty(e,t){if("object"==typeof e&&e.$ref){const n=this.getReferenceSchema(t,e.$ref);if("object"==typeof n){const t=Object.assign(Object.assign({},e),n);return Reflect.deleteProperty(t,"$ref"),t}}return e}getReferenceSchema(e,t){const n=t.split("/");let r=e;return n.forEach((t=>{t&&("#"!==t?"object"==typeof r&&(r=r[t]):r=e)})),r}getAppliedValue(e){const t=E(JSON.stringify(e));switch(this.mode){case g:return{label:t,apply:(n=JSON.stringify(e),n.replace(/^"(.*)"$/,"'$1'"))};case v:return{label:t,apply:t};default:return{label:t,apply:JSON.stringify(e)}}var n}getValueFromLabel(e){return JSON.parse(e)}extendedRegExp(e){let t="";e.startsWith("(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch(n){try{return new RegExp(e,t)}catch(e){return}}}}function dr(e={}){const t=new fr(e);return function(e){return t.doComplete(e)}}const pr=(e,t)=>{const n=e.length>2;let r=e.map(((n,r)=>{const i="`"+(t?t(n):n)+"`";return r===e.length-1?"or "+i:i}));return n?r.join(", "):r.join(" ")};function mr(e){let t=null;try{t=JSON.parse(e.doc.toString())}catch(e){}return{data:t,pointers:k(e,y)}}function gr(e,t,n=[]){const r=document.createElement(e);return Object.entries(t).forEach((([e,t])=>{"text"!==e?"inner"!==e?r.setAttribute(e,t):r.innerHTML=t:r.innerText=t})),n.forEach((e=>r.appendChild(e))),r}const yr={};function vr(e,t){"string"!=typeof t&&(t=vr.defaultChars);const n=function(e){let t=yr[e];if(t)return t;t=yr[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let t="";for(let r=0,i=e.length;r<i;r+=3){const s=parseInt(e.slice(r+1,r+3),16);if(s<128)t+=n[s];else{if(192==(224&s)&&r+3<i){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=s<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&s)&&r+6<i){const n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&i)){const e=s<<12&61440|n<<6&4032|63&i;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&s)&&r+9<i){const n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),o=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&i)&&128==(192&o)){let e=s<<18&1835008|n<<12&258048|i<<6&4032|63&o;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t}))}vr.defaultChars=";/?:@&=+$,#",vr.componentChars="";const br=vr,wr={};function Dr(e,t,n){"string"!=typeof t&&(n=t,t=Dr.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=wr[e];if(t)return t;t=wr[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let i="";for(let t=0,s=e.length;t<s;t++){const o=e.charCodeAt(t);if(n&&37===o&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))i+=e.slice(t,t+3),t+=2;else if(o<128)i+=r[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&t+1<s){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[t])}return i}Dr.defaultChars=";/?:@&=+$,-_.!~*'()#",Dr.componentChars="-_.!~*'()";const kr=Dr;function Ar(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Er(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const xr=/^([a-z0-9.+-]+:)/i,Cr=/:[0-9]*$/,Sr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Or=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Fr=["'"].concat(Or),_r=["%","/","?",";","#"].concat(Fr),Tr=["/","?","#"],Br=/^[+a-z0-9A-Z_-]{0,63}$/,Pr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ir={javascript:!0,"javascript:":!0},Mr={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};Er.prototype.parse=function(e,t){let n,r,i,s=e;if(s=s.trim(),!t&&1===e.split("#").length){const e=Sr.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=xr.exec(s);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,s=s.substr(o.length)),(t||o||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===s.substr(0,2),!i||o&&Ir[o]||(s=s.substr(2),this.slashes=!0)),!Ir[o]&&(i||o&&!Mr[o])){let e,t,n=-1;for(let e=0;e<Tr.length;e++)r=s.indexOf(Tr[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?s.lastIndexOf("@"):s.lastIndexOf("@",n),-1!==t&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),n=-1;for(let e=0;e<_r.length;e++)r=s.indexOf(_r[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=s.length),":"===s[n-1]&&n--;const i=s.slice(0,n);s=s.slice(n),this.parseHost(i),this.hostname=this.hostname||"";const o="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!o){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Br)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(Br)){const r=e.slice(0,t),i=e.slice(t+1),o=n.match(Pr);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(s=i.join(".")+s),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=s.indexOf("#");-1!==a&&(this.hash=s.substr(a),s=s.slice(0,a));const l=s.indexOf("?");return-1!==l&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),Mr[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Er.prototype.parseHost=function(e){let t=Cr.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const $r=function(e,t){if(e&&e instanceof Er)return e;const n=new Er;return n.parse(e,t),n},Nr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\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-\u2E4F\u2E52-\u2E5D\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]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Lr=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Rr=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jr=/[\0-\x1F\x7F-\x9F]/,qr=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Vr=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,zr=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),Ur=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var Hr;const Wr=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Kr=null!==(Hr=String.fromCodePoint)&&void 0!==Hr?Hr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var Gr,Jr,Yr,Zr,Qr;function Xr(e){return e>=Gr.ZERO&&e<=Gr.NINE}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Gr||(Gr={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Jr||(Jr={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Yr||(Yr={})),(Qr=Zr||(Zr={}))[Qr.Legacy=0]="Legacy",Qr[Qr.Strict=1]="Strict",Qr[Qr.Attribute=2]="Attribute";class ei{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Yr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Zr.Strict}startEntity(e){this.decodeMode=e,this.state=Yr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Yr.EntityStart:return e.charCodeAt(t)===Gr.NUM?(this.state=Yr.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Yr.NamedEntity,this.stateNamedEntity(e,t));case Yr.NumericStart:return this.stateNumericStart(e,t);case Yr.NumericDecimal:return this.stateNumericDecimal(e,t);case Yr.NumericHex:return this.stateNumericHex(e,t);case Yr.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Gr.LOWER_X?(this.state=Yr.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Yr.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!(Xr(i)||(r=i,r>=Gr.UPPER_A&&r<=Gr.UPPER_F||r>=Gr.LOWER_A&&r<=Gr.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Xr(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Gr.SEMI)this.consumed+=1;else if(this.decodeMode===Zr.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Wr.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Gr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&Jr.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=ni(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===Zr.Attribute&&(0===i||((s=o)===Gr.EQUALS||function(e){return e>=Gr.UPPER_A&&e<=Gr.UPPER_Z||e>=Gr.LOWER_A&&e<=Gr.LOWER_Z||Xr(e)}(s)))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&Jr.VALUE_LENGTH)>>14,0!==i){if(o===Gr.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Zr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var s;return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&Jr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~Jr.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Yr.NamedEntity:return 0===this.result||this.decodeMode===Zr.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Yr.NumericDecimal:return this.emitNumericEntity(0,2);case Yr.NumericHex:return this.emitNumericEntity(0,3);case Yr.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yr.EntityStart:return 0}}}function ti(e){let t="";const n=new ei(e,(e=>t+=Kr(e)));return function(e,r){let i=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(i,s),n.startEntity(r);const o=n.write(e,s+1);if(o<0){i=s+n.end();break}i=s+o,s=0===o?i+1:i}const o=t+e.slice(i);return t="",o}}function ni(e,t,n,r){const i=(t&Jr.BRANCH_LENGTH)>>7,s=t&Jr.JUMP_TABLE;if(0===i)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=i?-1:e[n+t]-1}let o=n,a=o+i-1;for(;o<=a;){const t=o+a>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+i];a=t-1}}return-1}const ri=ti(zr);function ii(e,t=Zr.Legacy){return ri(e,t)}function si(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}ti(Ur),new Map(si([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(si([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(si([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(si([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));const oi=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function ai(e,t){return function(n){let r,i=0,s="";for(;r=e.exec(n);)i!==r.index&&(s+=n.substring(i,r.index)),s+=t.get(r[0].charCodeAt(0)),i=r.index+1;return s+n.substring(i)}}var li,ui;function ci(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}String.prototype.codePointAt,ai(/[&<>'"]/g,oi),ai(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ai(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(li||(li={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(ui||(ui={}));const hi=Object.prototype.hasOwnProperty;function fi(e,t){return hi.call(e,t)}function di(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function pi(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function mi(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function gi(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const yi=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,vi=new RegExp(yi.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),bi=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function wi(e){return e.indexOf("\\")<0?e:e.replace(yi,"$1")}function Di(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(vi,(function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&bi.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return mi(n)?gi(n):e}const n=ii(e);return n!==e?n:e}(e,n)}))}const ki=/[&<>"]/,Ai=/[&<>"]/g,Ei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function xi(e){return Ei[e]}function Ci(e){return ki.test(e)?e.replace(Ai,xi):e}const Si=/[.?*+^$[\]\\(){}|-]/g;function Oi(e){return e.replace(Si,"\\$&")}function Fi(e){switch(e){case 9:case 32:return!0}return!1}function _i(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ti(e){return Nr.test(e)||Lr.test(e)}function Bi(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Pi(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Ii={mdurl:r,ucmicro:i};function Mi(e,t,n){let r,i,s,o;const a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(s=e.src.charCodeAt(e.pos),93===s&&(r--,0===r)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),91===s)if(o===e.pos-1)r++;else if(n)return e.pos=l,-1}let u=-1;return i&&(u=e.pos),e.pos=l,u}function $i(e,t,n){let r,i=t;const s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<n;){if(r=e.charCodeAt(i),10===r)return s;if(60===r)return s;if(62===r)return s.pos=i+1,s.str=Di(e.slice(t+1,i)),s.ok=!0,s;92===r&&i+1<n?i+=2:i++}return s}let o=0;for(;i<n&&(r=e.charCodeAt(i),32!==r)&&!(r<32||127===r);)if(92===r&&i+1<n){if(32===e.charCodeAt(i+1))break;i+=2}else{if(40===r&&(o++,o>32))return s;if(41===r){if(0===o)break;o--}i++}return t===i||0!==o||(s.str=Di(e.slice(t,i)),s.pos=i,s.ok=!0),s}function Ni(e,t,n,r){let i,s=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(s>=n)return o;let r=e.charCodeAt(s);if(34!==r&&39!==r&&40!==r)return o;t++,s++,40===r&&(r=41),o.marker=r}for(;s<n;){if(i=e.charCodeAt(s),i===o.marker)return o.pos=s+1,o.str+=Di(e.slice(t,s)),o.ok=!0,o;if(40===i&&41===o.marker)return o;92===i&&s+1<n&&s++,s++}return o.can_continue=!0,o.str+=Di(e.slice(t,s)),o}const Li={};function Ri(){this.rules=di({},Li)}Li.code_inline=function(e,t,n,r,i){const s=e[t];return"<code"+i.renderAttrs(s)+">"+Ci(s.content)+"</code>"},Li.code_block=function(e,t,n,r,i){const s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+Ci(e[t].content)+"</code></pre>\n"},Li.fence=function(e,t,n,r,i){const s=e[t],o=s.info?Di(s.info).trim():"";let a,l="",u="";if(o){const e=o.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(a=n.highlight&&n.highlight(s.content,l,u)||Ci(s.content),0===a.indexOf("<pre"))return a+"\n";if(o){const e=s.attrIndex("class"),t=s.attrs?s.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${a}</code></pre>\n`}return`<pre><code${i.renderAttrs(s)}>${a}</code></pre>\n`},Li.image=function(e,t,n,r,i){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,n,r),i.renderToken(e,t,n)},Li.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Li.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Li.text=function(e,t){return Ci(e[t].content)},Li.html_block=function(e,t){return e[t].content},Li.html_inline=function(e,t){return e[t].content},Ri.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Ci(e.attrs[t][0])+'="'+Ci(e.attrs[t][1])+'"';return r},Ri.prototype.renderToken=function(e,t,n){const r=e[t];let i="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===r.nesting?"</":"<")+r.tag,i+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(i+=" /");let s=!1;if(r.block&&(s=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(s=!1)}return i+=s?">\n":">",i},Ri.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let s=0,o=e.length;s<o;s++){const o=e[s].type;void 0!==i[o]?r+=i[o](e,s,t,n,this):r+=this.renderToken(e,s,t)}return r},Ri.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,s=e.length;i<s;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},Ri.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let s=0,o=e.length;s<o;s++){const o=e[s].type;"inline"===o?r+=this.renderInline(e[s].children,t,n):void 0!==i[o]?r+=i[o](e,s,t,n,this):r+=this.renderToken(e,s,t,n)}return r};const ji=Ri;function qi(){this.__rules__=[],this.__cache__=null}qi.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},qi.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},qi.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},qi.prototype.before=function(e,t,n,r){const i=this.__find__(e),s=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},qi.prototype.after=function(e,t,n,r){const i=this.__find__(e),s=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},qi.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},qi.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},qi.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},qi.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},qi.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const Vi=qi;function zi(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}zi.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},zi.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},zi.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},zi.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},zi.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const Ui=zi;function Hi(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Hi.prototype.Token=Ui;const Wi=Hi,Ki=/\r\n?|\n/g,Gi=/\0/g;function Ji(e){return/^<\/a\s*>/i.test(e)}const Yi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Zi=/\((c|tm|r)\)/i,Qi=/\((c|tm|r)\)/gi,Xi={c:"©",r:"®",tm:"™"};function es(e,t){return Xi[t.toLowerCase()]}function ts(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(Qi,es)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function ns(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Yi.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const rs=/['"]/,is=/['"]/g;function ss(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function os(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const s=e[i],o=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,"text"!==s.type)continue;let a=s.content,l=0,u=a.length;e:for(;l<u;){is.lastIndex=l;const c=is.exec(a);if(!c)break;let h=!0,f=!0;l=c.index+1;const d="'"===c[0];let p=32;if(c.index-1>=0)p=a.charCodeAt(c.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<u)m=a.charCodeAt(l);else for(n=i+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const g=Bi(p)||Ti(String.fromCharCode(p)),y=Bi(m)||Ti(String.fromCharCode(m)),v=_i(p),b=_i(m);if(b?h=!1:y&&(v||g||(h=!1)),v?f=!1:g&&(b||y||(f=!1)),34===m&&'"'===c[0]&&p>=48&&p<=57&&(f=h=!1),h&&f&&(h=g,f=y),h||f){if(f)for(n=r.length-1;n>=0;n--){let h=r[n];if(r[n].level<o)break;if(h.single===d&&r[n].level===o){let o,f;h=r[n],d?(o=t.md.options.quotes[2],f=t.md.options.quotes[3]):(o=t.md.options.quotes[0],f=t.md.options.quotes[1]),s.content=ss(s.content,c.index,f),e[h.token].content=ss(e[h.token].content,h.pos,o),l+=f.length-1,h.token===i&&(l+=o.length-1),a=s.content,u=a.length,r.length=n;continue e}}h?r.push({token:i,pos:c.index,single:d,level:o}):f&&d&&(s.content=ss(s.content,c.index,"’"))}else d&&(s.content=ss(s.content,c.index,"’"))}}}const as=[["normalize",function(e){let t;t=e.src.replace(Ki,"\n"),t=t.replace(Gi,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;var n;if(e.md.options.linkify)for(let r=0,i=t.length;r<i;r++){if("inline"!==t[r].type||!e.md.linkify.pretest(t[r].content))continue;let i=t[r].children,s=0;for(let o=i.length-1;o>=0;o--){const a=i[o];if("link_close"!==a.type){if("html_inline"===a.type&&(n=a.content,/^<a[>\s]/i.test(n)&&s>0&&s--,Ji(a.content)&&s++),!(s>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const n=a.content;let s=e.md.linkify.match(n);const l=[];let u=a.level,c=0;s.length>0&&0===s[0].index&&o>0&&"text_special"===i[o-1].type&&(s=s.slice(1));for(let t=0;t<s.length;t++){const r=s[t].url,i=e.md.normalizeLink(r);if(!e.md.validateLink(i))continue;let o=s[t].text;o=s[t].schema?"mailto:"!==s[t].schema||/^mailto:/i.test(o)?e.md.normalizeLinkText(o):e.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");const a=s[t].index;if(a>c){const t=new e.Token("text","",0);t.content=n.slice(c,a),t.level=u,l.push(t)}const h=new e.Token("link_open","a",1);h.attrs=[["href",i]],h.level=u++,h.markup="linkify",h.info="auto",l.push(h);const f=new e.Token("text","",0);f.content=o,f.level=u,l.push(f);const d=new e.Token("link_close","a",-1);d.level=--u,d.markup="linkify",d.info="auto",l.push(d),c=s[t].lastIndex}if(c<n.length){const t=new e.Token("text","",0);t.content=n.slice(c),t.level=u,l.push(t)}t[r].children=i=pi(i,o,l)}}else for(o--;i[o].level!==a.level&&"link_open"!==i[o].type;)o--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Zi.test(e.tokens[t].content)&&ts(e.tokens[t].children),Yi.test(e.tokens[t].content)&&ns(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&rs.test(e.tokens[t].content)&&os(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,i=r.length;for(let e=0;e<i;e++){if("inline"!==r[e].type)continue;const i=r[e].children,s=i.length;for(t=0;t<s;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=n=0;t<s;t++)"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}]];function ls(){this.ruler=new Vi;for(let e=0;e<as.length;e++)this.ruler.push(as[e][0],as[e][1])}ls.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},ls.prototype.State=Wi;const us=ls;function cs(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let e=0,t=0,n=0,r=0,s=i.length,o=!1;t<s;t++){const a=i.charCodeAt(t);if(!o){if(Fi(a)){n++,9===a?r+=4-r%4:r++;continue}o=!0}10!==a&&t!==s-1||(10!==a&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}cs.prototype.push=function(e,t,n){const r=new Ui(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},cs.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},cs.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},cs.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&Fi(this.src.charCodeAt(e));e++);return e},cs.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Fi(this.src.charCodeAt(--e)))return e+1;return e},cs.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},cs.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},cs.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let s=0,o=e;o<t;o++,s++){let e=0;const a=this.bMarks[o];let l,u=a;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];u<l&&e<n;){const t=this.src.charCodeAt(u);if(Fi(t))9===t?e+=4-(e+this.bsCount[o])%4:e++;else{if(!(u-a<this.tShift[o]))break;e++}u++}i[s]=e>n?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return i.join("")},cs.prototype.Token=Ui;const hs=cs;function fs(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ds(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),s=!1,o=0,a="";for(;r<n;)124===i&&(s?(a+=e.substring(o,r-1),o=r):(t.push(a+e.substring(o,r)),a="",o=r+1)),s=92===i,r++,i=e.charCodeAt(r);return t.push(a+e.substring(o)),t}function ps(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);return 42!==i&&45!==i&&43!==i||r<n&&!Fi(e.src.charCodeAt(r))?-1:r}function ms(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let s=e.src.charCodeAt(i++);if(s<48||s>57)return-1;for(;;){if(i>=r)return-1;if(s=e.src.charCodeAt(i++),!(s>=48&&s<=57)){if(41===s||46===s)break;return-1}if(i-n>=10)return-1}return i<r&&(s=e.src.charCodeAt(i),!Fi(s))?-1:i}const gs="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",ys="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",vs=new RegExp("^(?:"+gs+"|"+ys+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),bs=new RegExp("^(?:"+gs+"|"+ys+")"),ws=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(bs.source+"\\s*$"),/^$/,!1]],Ds=[["table",function(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent)return!1;if(e.sCount[i]-e.blkIndent>=4)return!1;let s=e.bMarks[i]+e.tShift[i];if(s>=e.eMarks[i])return!1;const o=e.src.charCodeAt(s++);if(124!==o&&45!==o&&58!==o)return!1;if(s>=e.eMarks[i])return!1;const a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a&&!Fi(a))return!1;if(45===o&&Fi(a))return!1;for(;s<e.eMarks[i];){const t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!Fi(t))return!1;s++}let l=fs(e,t+1),u=l.split("|");const c=[];for(let e=0;e<u.length;e++){const t=u[e].trim();if(!t){if(0===e||e===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?c.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?c.push("left"):c.push("")}if(l=fs(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;u=ds(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const h=u.length;if(0===h||h!==c.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const d=e.md.block.ruler.getRules("blockquote"),p=[t,0];e.push("table_open","table",1).map=p,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<u.length;t++){const n=e.push("th_open","th",1);c[t]&&(n.attrs=[["style","text-align:"+c[t]]]);const r=e.push("inline","",0);r.content=u[t].trim(),r.children=[],e.push("th_close","th",-1)}let m;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,s=d.length;t<s;t++)if(d[t](e,i,n,!0)){r=!0;break}if(r)break;if(l=fs(e,i).trim(),!l)break;if(e.sCount[i]-e.blkIndent>=4)break;if(u=ds(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),g+=h-u.length,g>65536)break;i===t+2&&(e.push("tbody_open","tbody",1).map=m=[t+2,0]),e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t<h;t++){const n=e.push("td_open","td",1);c[t]&&(n.attrs=[["style","text-align:"+c[t]]]);const r=e.push("inline","",0);r.content=u[t]?u[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return m&&(e.push("tbody_close","tbody",-1),m[1]=i),e.push("table_close","table",-1),p[1]=i,e.parentType=f,e.line=i,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,i=r}e.line=i;const s=e.push("code_block","code",0);return s.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>s)return!1;const o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;let a=i;i=e.skipChars(i,o);let l=i-a;if(l<3)return!1;const u=e.src.slice(a,i),c=e.src.slice(i,s);if(96===o&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let h=t,f=!1;for(;!(h++,h>=n||(i=a=e.bMarks[h]+e.tShift[h],s=e.eMarks[h],i<s&&e.sCount[h]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[h]-e.blkIndent>=4||(i=e.skipChars(i,o),i-a<l||(i=e.skipSpaces(i),i<s)))){f=!0;break}l=e.sCount[t],e.line=h+(f?1:0);const d=e.push("fence","code",0);return d.info=c,d.content=e.getLines(t+1,h,l,!0),d.markup=u,d.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const a=[],l=[],u=[],c=[],h=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let d,p=!1;for(d=t;d<n;d++){const t=e.sCount[d]<e.blkIndent;if(i=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],i>=s)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[d]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[d]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let o=r;for(a.push(e.bMarks[d]),e.bMarks[d]=i;i<s;){const t=e.src.charCodeAt(i);if(!Fi(t))break;9===t?o+=4-(o+e.bsCount[d]+(n?1:0))%4:o++,i++}p=i>=s,l.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(t?1:0),u.push(e.sCount[d]),e.sCount[d]=o-r,c.push(e.tShift[d]),e.tShift[d]=i-e.bMarks[d];continue}if(p)break;let r=!1;for(let t=0,i=h.length;t<i;t++)if(h[t](e,d,n,!0)){r=!0;break}if(r){e.lineMax=d,0!==e.blkIndent&&(a.push(e.bMarks[d]),l.push(e.bsCount[d]),c.push(e.tShift[d]),u.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}a.push(e.bMarks[d]),l.push(e.bsCount[d]),c.push(e.tShift[d]),u.push(e.sCount[d]),e.sCount[d]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const y=[t,0];g.map=y,e.md.block.tokenize(e,t,d),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=o,e.parentType=f,y[1]=e.line;for(let n=0;n<c.length;n++)e.bMarks[n+t]=a[n],e.tShift[n+t]=c[n],e.sCount[n+t]=u[n],e.bsCount[n+t]=l[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(s++);if(42!==o&&45!==o&&95!==o)return!1;let a=1;for(;s<i;){const t=e.src.charCodeAt(s++);if(t!==o&&!Fi(t))return!1;t===o&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(o)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let i,s,o,a,l=t,u=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let c,h,f,d=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(d=!0),(f=ms(e,l))>=0){if(c=!0,o=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(o,f-1)),d&&1!==h)return!1}else{if(!((f=ps(e,l))>=0))return!1;c=!1}if(d&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;const p=e.src.charCodeAt(f-1),m=e.tokens.length;c?(a=e.push("ordered_list_open","ol",1),1!==h&&(a.attrs=[["start",h]])):a=e.push("bullet_list_open","ul",1);const g=[l,0];a.map=g,a.markup=String.fromCharCode(p);let y=!1;const v=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){s=f,i=e.eMarks[l];const t=e.sCount[l]+f-(e.bMarks[l]+e.tShift[l]);let r=t;for(;s<i;){const t=e.src.charCodeAt(s);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}s++}const h=s;let d;d=h>=i?1:r-t,d>4&&(d=1);const m=t+d;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(p);const g=[l,0];a.map=g,c&&(a.info=e.src.slice(o,f-1));const b=e.tight,w=e.tShift[l],D=e.sCount[l],k=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=h-e.bMarks[l],e.sCount[l]=r,h>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!y||(u=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[l]=w,e.sCount[l]=D,e.tight=b,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(p),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let A=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,l,n,!0)){A=!0;break}if(A)break;if(c){if(f=ms(e,l),f<0)break;o=e.bMarks[l]+e.tShift[l]}else if(f=ps(e,l),f<0)break;if(p!==e.src.charCodeAt(f-1))break}return a=c?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(p),g[1]=l,e.line=l,e.parentType=b,u&&function(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function a(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let s=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){s=!0;break}if(e.parentType=i,s)return null}const i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(i,s+1)}let l=e.src.slice(i,s+1);s=l.length;let u=-1;for(i=1;i<s;i++){const e=l.charCodeAt(i);if(91===e)return!1;if(93===e){u=i;break}if(10===e){const e=a(o);null!==e&&(l+=e,s=l.length,o++)}else if(92===e&&(i++,i<s&&10===l.charCodeAt(i))){const e=a(o);null!==e&&(l+=e,s=l.length,o++)}}if(u<0||58!==l.charCodeAt(u+1))return!1;for(i=u+2;i<s;i++){const e=l.charCodeAt(i);if(10===e){const e=a(o);null!==e&&(l+=e,s=l.length,o++)}else if(!Fi(e))break}const c=e.md.helpers.parseLinkDestination(l,i,s);if(!c.ok)return!1;const h=e.md.normalizeLink(c.str);if(!e.md.validateLink(h))return!1;i=c.pos;const f=i,d=o,p=i;for(;i<s;i++){const e=l.charCodeAt(i);if(10===e){const e=a(o);null!==e&&(l+=e,s=l.length,o++)}else if(!Fi(e))break}let m,g=e.md.helpers.parseLinkTitle(l,i,s);for(;g.can_continue;){const t=a(o);if(null===t)break;l+=t,i=s,s=l.length,o++,g=e.md.helpers.parseLinkTitle(l,i,s,g)}for(i<s&&p!==i&&g.ok?(m=g.str,i=g.pos):(m="",i=f,o=d);i<s&&Fi(l.charCodeAt(i));)i++;if(i<s&&10!==l.charCodeAt(i)&&m)for(m="",i=f,o=d;i<s&&Fi(l.charCodeAt(i));)i++;if(i<s&&10!==l.charCodeAt(i))return!1;const y=Pi(l.slice(1,u));return!!y&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[y]&&(e.env.references[y]={title:m,href:h}),e.line=o),!0)}],["html_block",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let o=e.src.slice(i,s),a=0;for(;a<ws.length&&!ws[a][0].test(o);a++);if(a===ws.length)return!1;if(r)return ws[a][2];let l=t+1;if(!ws[a][1].test(o))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],o=e.src.slice(i,s),ws[a][1].test(o)){0!==o.length&&l++;break}e.line=l;const u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(35!==o||i>=s)return!1;let a=1;for(o=e.src.charCodeAt(++i);35===o&&i<s&&a<=6;)a++,o=e.src.charCodeAt(++i);if(a>6||i<s&&!Fi(o))return!1;if(r)return!0;s=e.skipSpacesBack(s,i);const l=e.skipCharsBack(s,35,i);l>i&&Fi(e.src.charCodeAt(l-1))&&(s=l),e.line=t+1;const u=e.push("heading_open","h"+String(a),1);u.markup="########".slice(0,a),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=e.src.slice(i,s).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let s,o=0,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let t=e.bMarks[a]+e.tShift[a];const n=e.eMarks[a];if(t<n&&(s=e.src.charCodeAt(t),(45===s||61===s)&&(t=e.skipChars(t,s),t=e.skipSpaces(t),t>=n))){o=61===s?1:2;break}}if(e.sCount[a]<0)continue;let t=!1;for(let i=0,s=r.length;i<s;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}if(!o)return!1;const l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const u=e.push("heading_open","h"+String(o),1);u.markup=String.fromCharCode(s),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=l,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(o),-1).markup=String.fromCharCode(s),e.parentType=i,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}const o=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];const a=e.push("inline","",0);return a.content=o,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function ks(){this.ruler=new Vi;for(let e=0;e<Ds.length;e++)this.ruler.push(Ds[e][0],Ds[e][1],{alt:(Ds[e][2]||[]).slice()})}ks.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,s=e.md.options.maxNesting;let o=t,a=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n))&&!(e.sCount[o]<e.blkIndent);){if(e.level>=s){e.line=n;break}const t=e.line;let l=!1;for(let s=0;s<i;s++)if(l=r[s](e,o,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),o=e.line,o<n&&e.isEmpty(o)&&(a=!0,o++,e.line=o)}},ks.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},ks.prototype.State=hs;const As=ks;function Es(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Es.prototype.pushPending=function(){const e=new Ui("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Es.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Ui(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Es.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===r;)s++;const o=s-e,a=s<n?this.src.charCodeAt(s):32,l=Bi(i)||Ti(String.fromCharCode(i)),u=Bi(a)||Ti(String.fromCharCode(a)),c=_i(i),h=_i(a),f=!h&&(!u||c||l),d=!c&&(!l||h||u);return{can_open:f&&(t||!d||l),can_close:d&&(t||!f||u),length:o}},Es.prototype.Token=Ui;const xs=Es;function Cs(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}const Ss=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Os=[];for(let e=0;e<256;e++)Os.push(0);function Fs(e,t){let n;const r=[],i=t.length;for(let s=0;s<i;s++){const i=t[s];if(126!==i.marker)continue;if(-1===i.end)continue;const o=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&r.push(o.token-1)}for(;r.length;){const t=r.pop();let i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Os[e.charCodeAt(0)]=1}));const _s={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const i=e.scanDelims(e.pos,!0);let s=i.length;const o=String.fromCharCode(r);if(s<2)return!1;let a;s%2&&(a=e.push("text","",0),a.content=o,s--);for(let t=0;t<s;t+=2)a=e.push("text","",0),a.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Fs(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Fs(e,t[r].delimiters)}};function Ts(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?o+o:o,a.content="";const l=e.tokens[i.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const Bs={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const i=e.scanDelims(e.pos,42===r);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ts(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ts(e,t[r].delimiters)}},Ps=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Is=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,Ms=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,$s=/^&([a-z][a-z0-9]{1,31});/i;function Ns(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const s=[];for(let o=0;o<n;o++){const n=e[o];if(s.push(0),e[r].marker===n.marker&&i===n.token-1||(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const a=t[n.marker][(n.open?3:0)+n.length%3];let l=r-s[r]-1,u=l;for(;l>a;l-=s[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?s[l-1]+1:0;s[o]=o-l+r,s[l]=r,n.open=!1,t.end=o,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}const Ls=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Cs(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Ss);if(!r)return!1;const i=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!s)return!1;let o=s.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",a]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&Fi(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),Fi(i));)n++;return e.pos=n,!0}let s=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(s+=e.src[n+1],n++)}const o="\\"+s;if(!t){const t=e.push("text_special","",0);i<256&&0!==Os[i]?t.content=s:t.content=o,t.markup=o,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const i=e.posMax;for(;n<i&&96===e.src.charCodeAt(n);)n++;const s=e.src.slice(r,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=s),e.pos+=o,!0;let a,l=n;for(;-1!==(a=e.src.indexOf("`",l));){for(l=a+1;l<i&&96===e.src.charCodeAt(l);)l++;const r=l-a;if(r===o){if(!t){const t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=a}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}],["strikethrough",_s.tokenize],["emphasis",Bs.tokenize],["link",function(e,t){let n,r,i,s,o="",a="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const c=e.pos,h=e.posMax,f=e.pos+1,d=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(d<0)return!1;let p=d+1;if(p<h&&40===e.src.charCodeAt(p)){for(u=!1,p++;p<h&&(n=e.src.charCodeAt(p),Fi(n)||10===n);p++);if(p>=h)return!1;if(l=p,i=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?p=i.pos:o="",l=p;p<h&&(n=e.src.charCodeAt(p),Fi(n)||10===n);p++);if(i=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<h&&l!==p&&i.ok)for(a=i.str,p=i.pos;p<h&&(n=e.src.charCodeAt(p),Fi(n)||10===n);p++);}(p>=h||41!==e.src.charCodeAt(p))&&(u=!0),p++}if(u){if(void 0===e.env.references)return!1;if(p<h&&91===e.src.charCodeAt(p)?(l=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?r=e.src.slice(l,p++):p=d+1):p=d+1,r||(r=e.src.slice(f,d)),s=e.env.references[Pi(r)],!s)return e.pos=c,!1;o=s.href,a=s.title}if(!t){e.pos=f,e.posMax=d;const t=[["href",o]];e.push("link_open","a",1).attrs=t,a&&t.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=h,!0}],["image",function(e,t){let n,r,i,s,o,a,l,u,c="";const h=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const d=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(s=p+1,s<f&&40===e.src.charCodeAt(s)){for(s++;s<f&&(n=e.src.charCodeAt(s),Fi(n)||10===n);s++);if(s>=f)return!1;for(u=s,a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),a.ok&&(c=e.md.normalizeLink(a.str),e.md.validateLink(c)?s=a.pos:c=""),u=s;s<f&&(n=e.src.charCodeAt(s),Fi(n)||10===n);s++);if(a=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<f&&u!==s&&a.ok)for(l=a.str,s=a.pos;s<f&&(n=e.src.charCodeAt(s),Fi(n)||10===n);s++);else l="";if(s>=f||41!==e.src.charCodeAt(s))return e.pos=h,!1;s++}else{if(void 0===e.env.references)return!1;if(s<f&&91===e.src.charCodeAt(s)?(u=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?i=e.src.slice(u,s++):s=p+1):s=p+1,i||(i=e.src.slice(d,p)),o=e.env.references[Pi(i)],!o)return e.pos=h,!1;c=o.href,l=o.title}if(!t){r=e.src.slice(d,p);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=s,e.posMax=f,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const s=e.src.slice(r+1,n);if(Is.test(s)){const n=e.md.normalizeLink(s);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=s.length+2,!0}if(Ps.test(s)){const n=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=s.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){const t=32|e;return t>=97&&t<=122}(i))return!1;const s=e.src.slice(r).match(vs);if(!s)return!1;if(!t){const t=e.push("html_inline","",0);t.content=s[0],o=t.content,/^<a[>\s]/i.test(o)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var o;return e.pos+=s[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(Ms);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=mi(t)?gi(t):gi(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match($s);if(r){const n=ii(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],Rs=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ns(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Ns(t[e].delimiters)}],["strikethrough",_s.postProcess],["emphasis",Bs.postProcess],["fragments_join",function(e){let t,n,r=0;const i=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<s&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function js(){this.ruler=new Vi;for(let e=0;e<Ls.length;e++)this.ruler.push(Ls[e][0],Ls[e][1]);this.ruler2=new Vi;for(let e=0;e<Rs.length;e++)this.ruler2.push(Rs[e][0],Rs[e][1])}js.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t])return void(e.pos=s[t]);let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,s[t]=e.pos},js.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const s=e.pos;let o=!1;if(e.level<i)for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(o){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},js.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const s=this.ruler2.getRules(""),o=s.length;for(let e=0;e<o;e++)s[e](i)},js.prototype.State=xs;const qs=js;function Vs(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function zs(e){return Object.prototype.toString.call(e)}function Us(e){return"[object Function]"===zs(e)}function Hs(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ws={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},Ks={"http:":{validate:function(e,t,n){const r=e.slice(t);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(e,t,n){const r=e.slice(t);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)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);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}}},Gs="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]",Js="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ys(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=Rr.source,t.src_Cc=jr.source,t.src_Z=Vr.source,t.src_P=Nr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.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]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(Gs),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];function s(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===zs(n))return"[object RegExp]"!==zs(n.validate)?Us(n.validate)?r.validate=n.validate:s(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Us(n.normalize)?r.normalize=n.normalize:n.normalize?s(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===zs(e)}(n)?s(t,n):i.push(t)})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const o=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Hs).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Zs(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Qs(e,t){const n=new Zs(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Xs(e,t){if(!(this instanceof Xs))return new Xs(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||Ws.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=Vs({},Ws,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Vs({},Ks,e),this.__compiled__={},this.__tlds__=Js,this.__tlds_replaced__=!1,this.re={},Ys(this)}Xs.prototype.add=function(e,t){return this.__schemas__[e]=t,Ys(this),this},Xs.prototype.set=function(e){return this.__opts__=Vs(this.__opts__,e),this},Xs.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,s,o,a,l,u;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(s=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=o))),this.__index__>=0},Xs.prototype.pretest=function(e){return this.re.pretest.test(e)},Xs.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Xs.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Qs(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Qs(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Xs.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Qs(this,0)):null},Xs.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),Ys(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ys(this),this)},Xs.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Xs.prototype.onCompile=function(){};const eo=Xs,to=2147483647,no=36,ro=/^xn--/,io=/[^\0-\x7F]/,so=/[\x2E\u3002\uFF0E\uFF61]/g,oo={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ao=Math.floor,lo=String.fromCharCode;function uo(e){throw new RangeError(oo[e])}function co(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(so,".")).split("."),t).join(".");return r+i}function ho(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const fo=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},po=function(e,t,n){let r=0;for(e=n?ao(e/700):e>>1,e+=ao(e/t);e>455;r+=no)e=ao(e/35);return ao(r+36*e/(e+38))},mo=function(e){const t=[],n=e.length;let r=0,i=128,s=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&uo("not-basic"),t.push(e.charCodeAt(n));for(let l=o>0?o+1:0;l<n;){const o=r;for(let t=1,i=no;;i+=no){l>=n&&uo("invalid-input");const o=(a=e.charCodeAt(l++))>=48&&a<58?a-48+26:a>=65&&a<91?a-65:a>=97&&a<123?a-97:no;o>=no&&uo("invalid-input"),o>ao((to-r)/t)&&uo("overflow"),r+=o*t;const u=i<=s?1:i>=s+26?26:i-s;if(o<u)break;const c=no-u;t>ao(to/c)&&uo("overflow"),t*=c}const u=t.length+1;s=po(r-o,u,0==o),ao(r/u)>to-i&&uo("overflow"),i+=ao(r/u),r%=u,t.splice(r++,0,i)}var a;return String.fromCodePoint(...t)},go=function(e){const t=[],n=(e=ho(e)).length;let r=128,i=0,s=72;for(const n of e)n<128&&t.push(lo(n));const o=t.length;let a=o;for(o&&t.push("-");a<n;){let n=to;for(const t of e)t>=r&&t<n&&(n=t);const l=a+1;n-r>ao((to-i)/l)&&uo("overflow"),i+=(n-r)*l,r=n;for(const n of e)if(n<r&&++i>to&&uo("overflow"),n===r){let e=i;for(let n=no;;n+=no){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const i=e-r,o=no-r;t.push(lo(fo(r+i%o,0))),e=ao(i/o)}t.push(lo(fo(e,0))),s=po(i,l,a===o),i=0,++a}++i,++r}return t.join("")},yo={version:"2.3.1",ucs2:{decode:ho,encode:e=>String.fromCodePoint(...e)},decode:mo,encode:go,toASCII:function(e){return co(e,(function(e){return io.test(e)?"xn--"+go(e):e}))},toUnicode:function(e){return co(e,(function(e){return ro.test(e)?mo(e.slice(4).toLowerCase()):e}))}},vo=yo,bo={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},wo=/^(vbscript|javascript|file|data):/,Do=/^data:image\/(gif|png|jpeg|webp);/;function ko(e){const t=e.trim().toLowerCase();return!wo.test(t)||Do.test(t)}const Ao=["http:","https:","mailto:"];function Eo(e){const t=$r(e,!0);if(t.hostname&&(!t.protocol||Ao.indexOf(t.protocol)>=0))try{t.hostname=vo.toASCII(t.hostname)}catch(e){}return kr(Ar(t))}function xo(e){const t=$r(e,!0);if(t.hostname&&(!t.protocol||Ao.indexOf(t.protocol)>=0))try{t.hostname=vo.toUnicode(t.hostname)}catch(e){}return br(Ar(t),br.defaultChars+"%")}function Co(e,t){if(!(this instanceof Co))return new Co(e,t);t||ci(e)||(t=e||{},e="default"),this.inline=new qs,this.block=new As,this.core=new us,this.renderer=new ji,this.linkify=new eo,this.validateLink=ko,this.normalizeLink=Eo,this.normalizeLinkText=xo,this.utils=s,this.helpers=di({},o),this.options={},this.configure(e),t&&this.set(t)}Co.prototype.set=function(e){return di(this.options,e),this},Co.prototype.configure=function(e){const t=this;if(ci(e)){const t=e;if(!(e=bo[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)})),this},Co.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Co.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Co.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Co.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Co.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Co.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Co.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const So=Co;function Oo(e){return So().renderInline(e)}const Fo=Symbol.for("yaml.alias"),_o=Symbol.for("yaml.document"),To=Symbol.for("yaml.map"),Bo=Symbol.for("yaml.pair"),Po=Symbol.for("yaml.scalar"),Io=Symbol.for("yaml.seq"),Mo=Symbol.for("yaml.node.type"),$o=e=>!!e&&"object"==typeof e&&e[Mo]===Fo,No=e=>!!e&&"object"==typeof e&&e[Mo]===_o,Lo=e=>!!e&&"object"==typeof e&&e[Mo]===To,Ro=e=>!!e&&"object"==typeof e&&e[Mo]===Bo,jo=e=>!!e&&"object"==typeof e&&e[Mo]===Po,qo=e=>!!e&&"object"==typeof e&&e[Mo]===Io;function Vo(e){if(e&&"object"==typeof e)switch(e[Mo]){case To:case Io:return!0}return!1}function zo(e){if(e&&"object"==typeof e)switch(e[Mo]){case Fo:case To:case Po:case Io:return!0}return!1}const Uo=e=>(jo(e)||Vo(e))&&!!e.anchor,Ho=Symbol("break visit"),Wo=Symbol("skip children"),Ko=Symbol("remove node");function Go(e,t){const n=Qo(t);No(e)?Jo(null,e.contents,n,Object.freeze([e]))===Ko&&(e.contents=null):Jo(null,e,n,Object.freeze([]))}function Jo(e,t,n,r){const i=Xo(e,t,n,r);if(zo(i)||Ro(i))return ea(e,r,i),Jo(e,i,n,r);if("symbol"!=typeof i)if(Vo(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=Jo(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===Ho)return Ho;i===Ko&&(t.items.splice(e,1),e-=1)}}}else if(Ro(t)){r=Object.freeze(r.concat(t));const e=Jo("key",t.key,n,r);if(e===Ho)return Ho;e===Ko&&(t.key=null);const i=Jo("value",t.value,n,r);if(i===Ho)return Ho;i===Ko&&(t.value=null)}return i}async function Yo(e,t){const n=Qo(t);No(e)?await Zo(null,e.contents,n,Object.freeze([e]))===Ko&&(e.contents=null):await Zo(null,e,n,Object.freeze([]))}async function Zo(e,t,n,r){const i=await Xo(e,t,n,r);if(zo(i)||Ro(i))return ea(e,r,i),Zo(e,i,n,r);if("symbol"!=typeof i)if(Vo(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=await Zo(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===Ho)return Ho;i===Ko&&(t.items.splice(e,1),e-=1)}}}else if(Ro(t)){r=Object.freeze(r.concat(t));const e=await Zo("key",t.key,n,r);if(e===Ho)return Ho;e===Ko&&(t.key=null);const i=await Zo("value",t.value,n,r);if(i===Ho)return Ho;i===Ko&&(t.value=null)}return i}function Qo(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Xo(e,t,n,r){return"function"==typeof n?n(e,t,r):Lo(t)?n.Map?.(e,t,r):qo(t)?n.Seq?.(e,t,r):Ro(t)?n.Pair?.(e,t,r):jo(t)?n.Scalar?.(e,t,r):$o(t)?n.Alias?.(e,t,r):void 0}function ea(e,t,n){const r=t[t.length-1];if(Vo(r))r.items[e]=n;else if(Ro(r))"key"===e?r.key=n:r.value=n;else{if(!No(r)){const e=$o(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n}}Go.BREAK=Ho,Go.SKIP=Wo,Go.REMOVE=Ko,Yo.BREAK=Ho,Yo.SKIP=Wo,Yo.REMOVE=Ko;const ta={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class na{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},na.defaultYaml,e),this.tags=Object.assign({},na.defaultTags,t)}clone(){const e=new na(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new na(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:na.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},na.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:na.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},na.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>ta[e]));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&zo(e.contents)){const t={};Go(e.contents,((e,n)=>{zo(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[i,s]of n)"!!"===i&&"tag:yaml.org,2002:"===s||e&&!r.some((e=>e.startsWith(s)))||t.push(`%TAG ${i} ${s}`);return t.join("\n")}}function ra(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function ia(e){const t=new Set;return Go(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function sa(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function oa(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){const n=r[t],i=oa(e,r,String(t),n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(const t of Array.from(r.keys())){const n=r.get(t),i=oa(e,r,t,n);void 0===i?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(const t of Array.from(r)){const n=oa(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(const[t,n]of Object.entries(r)){const i=oa(e,r,t,n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function aa(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>aa(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!Uo(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}na.defaultYaml={explicit:!1,version:"1.2"},na.defaultTags={"!!":"tag:yaml.org,2002:"};class la{constructor(e){Object.defineProperty(this,Mo,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!No(e))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=aa(this,"",s);if("function"==typeof r)for(const{count:e,res:t}of s.anchors.values())r(t,e);return"function"==typeof i?oa(i,{"":o},"",o):o}}class ua extends la{constructor(e){super(Fo),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Go(e,{Node:(e,n)=>{if(n===this)return Go.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:i}=t,s=this.resolve(r);if(!s){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let o=n.get(s);if(o||(aa(s,null,t),o=n.get(s)),!o||void 0===o.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=ca(r,s,n)),o.count*o.aliasCount>i))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(ra(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function ca(e,t,n){if($o(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Vo(t)){let r=0;for(const i of t.items){const t=ca(e,i,n);t>r&&(r=t)}return r}if(Ro(t)){const r=ca(e,t.key,n),i=ca(e,t.value,n);return Math.max(r,i)}return 1}const ha=e=>!e||"function"!=typeof e&&"object"!=typeof e;class fa extends la{constructor(e){super(Po),this.value=e}toJSON(e,t){return t?.keep?this.value:aa(this.value,e,t)}toString(){return String(this.value)}}fa.BLOCK_FOLDED="BLOCK_FOLDED",fa.BLOCK_LITERAL="BLOCK_LITERAL",fa.PLAIN="PLAIN",fa.QUOTE_DOUBLE="QUOTE_DOUBLE",fa.QUOTE_SINGLE="QUOTE_SINGLE";const da="tag:yaml.org,2002:";function pa(e,t,n){if(No(e)&&(e=e.contents),zo(e))return e;if(Ro(e)){const t=n.schema[To].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:o,sourceObjects:a}=n;let l;if(r&&e&&"object"==typeof e){if(l=a.get(e),l)return l.anchor||(l.anchor=i(e)),new ua(l.anchor);l={anchor:null,node:null},a.set(e,l)}t?.startsWith("!!")&&(t=da+t.slice(2));let u=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,o.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new fa(e);return l&&(l.node=t),t}u=e instanceof Map?o[To]:Symbol.iterator in Object(e)?o[Io]:o[To]}s&&(s(u),delete n.onTagObj);const c=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new fa(e);return t?c.tag=t:u.default||(c.tag=u.tag),l&&(l.node=c),c}function ma(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return pa(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const ga=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class ya extends la{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>zo(t)||Ro(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(ga(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(Vo(i))i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,ma(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(Vo(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&jo(i)?i.value:i:Vo(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!Ro(t))return!1;const n=t.value;return null==n||e&&jo(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!Vo(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(Vo(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,ma(this.schema,r,t))}}}}ya.maxFlowStringSingleLineLength=60;const va=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ba(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const wa=(e,t,n)=>e.endsWith("\n")?ba(n,t):n.includes("\n")?"\n"+ba(n,t):(e.endsWith(" ")?"":" ")+n,Da="flow",ka="block",Aa="quoted";function Ea(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return e;const l=Math.max(1+s,1+i-t.length);if(e.length<=l)return e;const u=[],c={};let h,f,d=i-t.length;"number"==typeof r&&(r>i-Math.max(2,s)?u.push(0):d=i-r);let p=!1,m=-1,g=-1,y=-1;n===ka&&(m=xa(e,m,t.length),-1!==m&&(d=m+l));for(let r;r=e[m+=1];){if(n===Aa&&"\\"===r){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}y=m}if("\n"===r)n===ka&&(m=xa(e,m,t.length)),d=m+t.length+l,h=void 0;else{if(" "===r&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(h=m)}if(m>=d)if(h)u.push(h),d=h+l,h=void 0;else if(n===Aa){for(;" "===f||"\t"===f;)f=r,r=e[m+=1],p=!0;const t=m>y+1?m-2:g-1;if(c[t])return e;u.push(t),c[t]=!0,d=t+l,h=void 0}else p=!0}f=r}if(p&&a&&a(),0===u.length)return e;o&&o();let v=e.slice(0,u[0]);for(let r=0;r<u.length;++r){const i=u[r],s=u[r+1]||e.length;0===i?v=`\n${t}${e.slice(0,s)}`:(n===Aa&&c[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,s)}`)}return v}function xa(e,t,n){let r=t,i=t+1,s=e[i];for(;" "===s||"\t"===s;)if(t<i+n)s=e[++t];else{do{s=e[++t]}while(s&&"\n"!==s);r=t,i=t+1,s=e[i]}return r}const Ca=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Sa=e=>/^(%|---|\.\.\.)/m.test(e);function Oa(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(Sa(e)?" ":"");let o="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<i)e+=1;else{for(o+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)o+="\n",e+=2;o+=s," "===n[e+2]&&(o+="\\"),e+=1,a=e+1}break;default:e+=1}return o=a?o+n.slice(a):n,r?o:Ea(o,s,Aa,Ca(t,!1))}function Fa(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Oa(e,t);const n=t.indent||(Sa(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:Ea(r,n,Da,Ca(t,!1))}function _a(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=Oa;else{const t=e.includes('"'),i=e.includes("'");r=t&&!i?Fa:i&&!t?Oa:n?Fa:Oa}return r(e,t)}let Ta;try{Ta=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{Ta=/\n+(?!\n|$)/g}function Ba({comment:e,type:t,value:n},r,i,s){const{blockQuote:o,commentString:a,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return _a(n,r);const u=r.indent||(r.forceBlockIndent||Sa(n)?" ":""),c="literal"===o||"folded"!==o&&t!==fa.BLOCK_FOLDED&&(t===fa.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,l,u.length));if(!n)return c?"|\n":">\n";let h,f;for(f=n.length;f>0;--f){const e=n[f-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let d=n.substring(f);const p=d.indexOf("\n");-1===p?h="-":n===d||p!==d.length-1?(h="+",s&&s()):h="",d&&(n=n.slice(0,-d.length),"\n"===d[d.length-1]&&(d=d.slice(0,-1)),d=d.replace(Ta,`$&${u}`));let m,g=!1,y=-1;for(m=0;m<n.length;++m){const e=n[m];if(" "===e)g=!0;else{if("\n"!==e)break;y=m}}let v=n.substring(0,y<m?y+1:m);v&&(n=n.substring(v.length),v=v.replace(/\n+/g,`$&${u}`));let b=(c?"|":">")+(g?u?"2":"1":"")+h;return e&&(b+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i&&i()),c?`${b}\n${u}${v}${n=n.replace(/\n+/g,`$&${u}`)}${d}`:`${b}\n${u}${Ea(`${v}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`)}${d}`,u,ka,Ca(r,!0))}`}function Pa(e,t,n,r){const{implicitKey:i,inFlow:s}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==fa.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=fa.QUOTE_DOUBLE);const l=e=>{switch(e){case fa.BLOCK_FOLDED:case fa.BLOCK_LITERAL:return i||s?_a(o.value,t):Ba(o,t,n,r);case fa.QUOTE_DOUBLE:return Oa(o.value,t);case fa.QUOTE_SINGLE:return Fa(o.value,t);case fa.PLAIN:return function(e,t,n,r){const{type:i,value:s}=e,{actualString:o,implicitKey:a,indent:l,indentStep:u,inFlow:c}=t;if(a&&s.includes("\n")||c&&/[[\]{},]/.test(s))return _a(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||c||!s.includes("\n")?_a(s,t):Ba(e,t,n,r);if(!a&&!c&&i!==fa.PLAIN&&s.includes("\n"))return Ba(e,t,n,r);if(Sa(s)){if(""===l)return t.forceBlockIndent=!0,Ba(e,t,n,r);if(a&&l===u)return _a(s,t)}const h=s.replace(/\n+/g,`$&\n${l}`);if(o){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(h),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return _a(s,t)}return a?h:Ea(h,l,Da,Ca(t,!1))}(o,t,n,r);default:return null}};let u=l(a);if(null===u){const{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(u=l(r),null===u)throw new Error(`Unsupported default string type ${r}`)}return u}function Ia(e,t){const n=Object.assign({blockQuote:!0,commentString:va,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Ma(e,t,n,r){if(Ro(e))return e.toString(t,n,r);if($o(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const s=zo(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,r;if(jo(t)){r=t.value;const i=e.filter((e=>e.identify?.(r)));n=i.find((e=>e.format===t.format))??i.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,s));const o=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(jo(e)||Vo(e))&&e.anchor;s&&ra(s)&&(n.add(s),i.push(`&${s}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}(s,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const a="function"==typeof i.stringify?i.stringify(s,t,n,r):jo(s)?Pa(s,t,n,r):s.toString(t,n,r);return o?jo(s)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o}\n${t.indent}${a}`:a}function $a(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}function Na(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&La(n))if(r=$o(r)?r.resolve(e.doc):r,qo(r))for(const n of r.items)Ra(e,t,n);else if(Array.isArray(r))for(const n of r)Ra(e,t,n);else Ra(e,t,r);else{const i=aa(n,"",e);if(t instanceof Map)t.set(i,aa(r,i,e));else if(t instanceof Set)t.add(i);else{const s=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(zo(e)&&n?.doc){const t=Ia(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),$a(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),o=aa(r,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}const La=e=>"<<"===e||jo(e)&&"<<"===e.value&&(!e.type||e.type===fa.PLAIN);function Ra(e,t,n){const r=e&&$o(n)?n.resolve(e.doc):n;if(!Lo(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function ja(e,t,n){const r=pa(e,void 0,n),i=pa(t,void 0,n);return new qa(r,i)}class qa{constructor(e,t=null){Object.defineProperty(this,Mo,{value:Bo}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return zo(t)&&(t=t.clone(e)),zo(n)&&(n=n.clone(e)),new qa(t,n)}toJSON(e,t){return Na(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){const{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:u,indentSeq:c,simpleKeys:h}}=n;let f=zo(e)&&e.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(Vo(e))throw new Error("With simple keys, collection cannot be used as a key value")}let d=!h&&(!e||f&&null==t&&!n.inFlow||Vo(e)||(jo(e)?e.type===fa.BLOCK_FOLDED||e.type===fa.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(h||!s),indent:a+l});let p,m,g,y=!1,v=!1,b=Ma(e,n,(()=>y=!0),(()=>v=!0));if(!d&&!n.inFlow&&b.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(s||null==t)return y&&r&&r(),""===b?"?":d?`? ${b}`:b}else if(s&&!h||null==t&&d)return b=`? ${b}`,f&&!y?b+=wa(b,n.indent,u(f)):v&&i&&i(),b;y&&(f=null),d?(f&&(b+=wa(b,n.indent,u(f))),b=`? ${b}\n${a}:`):(b=`${b}:`,f&&(b+=wa(b,n.indent,u(f)))),zo(t)?(p=!!t.spaceBefore,m=t.commentBefore,g=t.comment):(p=!1,m=null,g=null,t&&"object"==typeof t&&(t=o.createNode(t))),n.implicitKey=!1,d||f||!jo(t)||(n.indentAtStart=b.length+1),v=!1,c||!(l.length>=2)||n.inFlow||d||!qo(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let w=!1;const D=Ma(t,n,(()=>w=!0),(()=>v=!0));let k=" ";if(f||p||m)k=p?"\n":"",m&&(k+=`\n${ba(u(m),n.indent)}`),""!==D||n.inFlow?k+=`\n${n.indent}`:"\n"===k&&(k="\n\n");else if(!d&&Vo(t)){const e=D[0],r=D.indexOf("\n"),i=-1!==r,s=n.inFlow??t.flow??0===t.items.length;if(i||!s){let t=!1;if(i&&("&"===e||"!"===e)){let n=D.indexOf(" ");"&"===e&&-1!==n&&n<r&&"!"===D[n+1]&&(n=D.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(k=`\n${n.indent}`)}}else""!==D&&"\n"!==D[0]||(k="");return b+=k+D,n.inFlow?w&&r&&r():g&&!w?b+=wa(b,n.indent,u(g)):v&&i&&i(),b}(this,e,t,n):JSON.stringify(this)}}function Va(e,t,n){return(t.inFlow??e.flow?Ua:za)(e,t,n)}function za({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){const{indent:l,options:{commentString:u}}=n,c=Object.assign({},n,{indent:s,type:null});let h=!1;const f=[];for(let e=0;e<t.length;++e){const i=t[e];let o=null;if(zo(i))!h&&i.spaceBefore&&f.push(""),Ha(n,f,i.commentBefore,h),i.comment&&(o=i.comment);else if(Ro(i)){const e=zo(i.key)?i.key:null;e&&(!h&&e.spaceBefore&&f.push(""),Ha(n,f,e.commentBefore,h))}h=!1;let a=Ma(i,c,(()=>o=null),(()=>h=!0));o&&(a+=wa(a,s,u(o))),h&&o&&(h=!1),f.push(r+a)}let d;if(0===f.length)d=i.start+i.end;else{d=f[0];for(let e=1;e<f.length;++e){const t=f[e];d+=t?`\n${l}${t}`:"\n"}}return e?(d+="\n"+ba(u(e),l),a&&a()):h&&o&&o(),d}function Ua({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=t;r+=s;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let u=!1,c=0;const h=[];for(let n=0;n<e.length;++n){const i=e[n];let s=null;if(zo(i))i.spaceBefore&&h.push(""),Ha(t,h,i.commentBefore,!1),i.comment&&(s=i.comment);else if(Ro(i)){const e=zo(i.key)?i.key:null;e&&(e.spaceBefore&&h.push(""),Ha(t,h,e.commentBefore,!1),e.comment&&(u=!0));const n=zo(i.value)?i.value:null;n?(n.comment&&(s=n.comment),n.commentBefore&&(u=!0)):null==i.value&&e?.comment&&(s=e.comment)}s&&(u=!0);let o=Ma(i,l,(()=>s=null));n<e.length-1&&(o+=","),s&&(o+=wa(o,r,a(s))),!u&&(h.length>c||o.includes("\n"))&&(u=!0),h.push(o),c=h.length}const{start:f,end:d}=n;if(0===h.length)return f+d;if(!u){const e=h.reduce(((e,t)=>e+t.length+2),2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(u){let e=f;for(const t of h)e+=t?`\n${s}${i}${t}`:"\n";return`${e}\n${i}${d}`}return`${f}${o}${h.join(" ")}${o}${d}`}function Ha({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const i=ba(t(r),e);n.push(i.trimStart())}}function Wa(e,t){const n=jo(t)?t.value:t;for(const r of e)if(Ro(r)){if(r.key===t||r.key===n)return r;if(jo(r.key)&&r.key.value===n)return r}}class Ka extends ya{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(To,e),this.items=[]}static from(e,t,n){const{keepUndefined:r,replacer:i}=n,s=new this(e),o=(e,o)=>{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||r)&&s.items.push(ja(e,o,n))};if(t instanceof Map)for(const[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s}add(e,t){let n;n=Ro(e)?e:e&&"object"==typeof e&&"key"in e?new qa(e.key,e.value):new qa(e,e?.value);const r=Wa(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);jo(r.value)&&ha(n.value)?r.value.value=n.value:r.value=n.value}else if(i){const e=this.items.findIndex((e=>i(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=Wa(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=Wa(this.items,e),r=n?.value;return(!t&&jo(r)?r.value:r)??void 0}has(e){return!!Wa(this.items,e)}set(e,t){this.add(new qa(e,t),!0)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)Na(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!Ro(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Va(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Ga={collection:"map",default:!0,nodeClass:Ka,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(Lo(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>Ka.from(e,t,n)};class Ja extends ya{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Io,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=Ya(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=Ya(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&jo(r)?r.value:r}has(e){const t=Ya(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=Ya(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];jo(r)&&ha(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];t?.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(aa(e,String(r++),t));return n}toString(e,t,n){return e?Va(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof r){const n=t instanceof Set?s:String(e++);s=r.call(t,n,s)}i.items.push(pa(s,void 0,n))}}return i}}function Ya(e){let t=jo(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const Za={collection:"seq",default:!0,nodeClass:Ja,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(qo(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>Ja.from(e,t,n)},Qa={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>Pa(e,t=Object.assign({actualString:!0},t),n,r)},Xa={identify:e=>null==e,createNode:()=>new fa(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new fa(null),stringify:({source:e},t)=>"string"==typeof e&&Xa.test.test(e)?e:t.options.nullStr},el={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new fa("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&el.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function tl({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let n=t-(s.length-e-1);for(;n-- >0;)s+="0"}return s}const nl={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tl},rl={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():tl(e)}},il={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new fa(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:tl},sl=e=>"bigint"==typeof e||Number.isInteger(e),ol=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function al(e,t,n){const{value:r}=e;return sl(r)&&r>=0?n+r.toString(t):tl(e)}const ll={identify:e=>sl(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>ol(e,2,8,n),stringify:e=>al(e,8,"0o")},ul={identify:sl,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>ol(e,0,10,n),stringify:tl},cl={identify:e=>sl(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>ol(e,2,16,n),stringify:e=>al(e,16,"0x")},hl=[Ga,Za,Qa,Xa,el,ll,ul,cl,nl,rl,il];function fl(e){return"bigint"==typeof e||Number.isInteger(e)}const dl=({value:e})=>JSON.stringify(e),pl=[Ga,Za].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:dl},{identify:e=>null==e,createNode:()=>new fa(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:dl},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:dl},{identify:fl,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>fl(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:dl}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),ml={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,s){const o=n;let a;if("function"==typeof Buffer)a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);a=btoa(e)}}if(t||(t=fa.BLOCK_LITERAL),t!==fa.QUOTE_DOUBLE){const e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(a.length/e),i=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=a.substr(r,e);a=i.join(t===fa.BLOCK_LITERAL?"\n":" ")}return Pa({comment:e,type:t,value:a},r,i,s)}};function gl(e,t){if(qo(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Ro(r)){if(Lo(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new qa(new fa(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=Ro(r)?r:new qa(r)}}else t("Expected a sequence for this tag");return e}function yl(e,t,n){const{replacer:r}=n,i=new Ja(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof r&&(e=r.call(t,String(s++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);o=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);o=t[0],a=e[o]}else o=e;i.items.push(ja(o,a,n))}return i}const vl={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:gl,createNode:yl};class bl extends Ja{constructor(){super(),this.add=Ka.prototype.add.bind(this),this.delete=Ka.prototype.delete.bind(this),this.get=Ka.prototype.get.bind(this),this.has=Ka.prototype.has.bind(this),this.set=Ka.prototype.set.bind(this),this.tag=bl.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let r,i;if(Ro(e)?(r=aa(e.key,"",t),i=aa(e.value,r,t)):r=aa(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){const r=yl(e,t,n),i=new this;return i.items=r.items,i}}bl.tag="tag:yaml.org,2002:omap";const wl={collection:"seq",identify:e=>e instanceof Map,nodeClass:bl,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=gl(e,t),r=[];for(const{key:e}of n.items)jo(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new bl,n)},createNode:(e,t,n)=>bl.from(e,t,n)};function Dl({value:e,source:t},n){return t&&(e?kl:Al).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const kl={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new fa(!0),stringify:Dl},Al={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new fa(!1),stringify:Dl},El={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:tl},xl={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():tl(e)}},Cl={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new fa(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:tl},Sl=e=>"bigint"==typeof e||Number.isInteger(e);function Ol(e,t,n,{intAsBigInt:r}){const i=e[0];if("-"!==i&&"+"!==i||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===i?BigInt(-1)*t:t}const s=parseInt(e,n);return"-"===i?-1*s:s}function Fl(e,t,n){const{value:r}=e;if(Sl(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return tl(e)}const _l={identify:Sl,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Ol(e,2,2,n),stringify:e=>Fl(e,2,"0b")},Tl={identify:Sl,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Ol(e,1,8,n),stringify:e=>Fl(e,8,"0")},Bl={identify:Sl,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Ol(e,0,10,n),stringify:tl},Pl={identify:Sl,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Ol(e,2,16,n),stringify:e=>Fl(e,16,"0x")};class Il extends Ka{constructor(e){super(e),this.tag=Il.tag}add(e){let t;t=Ro(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new qa(e.key,null):new qa(e,null),Wa(this.items,t.key)||this.items.push(t)}get(e,t){const n=Wa(this.items,e);return!t&&Ro(n)?jo(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=Wa(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new qa(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(ja(e,null,n));return i}}Il.tag="tag:yaml.org,2002:set";const Ml={collection:"map",identify:e=>e instanceof Set,nodeClass:Il,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Il.from(e,t,n),resolve(e,t){if(Lo(e)){if(e.hasAllNullValues(!0))return Object.assign(new Il,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function $l(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*s:s}function Nl(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return tl(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const Ll={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>$l(e,n),stringify:Nl},Rl={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>$l(e,!1),stringify:Nl},jl={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(jl.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,i,s||0,o||0,a||0,l);const c=t[8];if(c&&"Z"!==c){let e=$l(c,!1);Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},ql=[Ga,Za,Qa,Xa,kl,Al,_l,Tl,Bl,Pl,El,xl,Cl,ml,wl,vl,Ml,Ll,Rl,jl],Vl=new Map([["core",hl],["failsafe",[Ga,Za,Qa]],["json",pl],["yaml11",ql],["yaml-1.1",ql]]),zl={binary:ml,bool:el,float:il,floatExp:rl,floatNaN:nl,floatTime:Rl,int:ul,intHex:cl,intOct:ll,intTime:Ll,map:Ga,null:Xa,omap:wl,pairs:vl,seq:Za,set:Ml,timestamp:jl},Ul={"tag:yaml.org,2002:binary":ml,"tag:yaml.org,2002:omap":wl,"tag:yaml.org,2002:pairs":vl,"tag:yaml.org,2002:set":Ml,"tag:yaml.org,2002:timestamp":jl};function Hl(e,t){let n=Vl.get(t);if(!n){if(!Array.isArray(e)){const e=Array.from(Vl.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}n=[]}if(Array.isArray(e))for(const t of e)n=n.concat(t);else"function"==typeof e&&(n=e(n.slice()));return n.map((e=>{if("string"!=typeof e)return e;const t=zl[e];if(t)return t;const n=Object.keys(zl).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}const Wl=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Kl{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:s,toStringDefaults:o}){this.compat=Array.isArray(e)?Hl(e,"compat"):e?Hl(null,e):null,this.merge=!!n,this.name="string"==typeof i&&i||"core",this.knownTags=r?Ul:{},this.tags=Hl(t,this.name),this.toStringOptions=o??null,Object.defineProperty(this,To,{value:Ga}),Object.defineProperty(this,Po,{value:Qa}),Object.defineProperty(this,Io,{value:Za}),this.sortMapEntries="function"==typeof s?s:!0===s?Wl:null}clone(){const e=Object.create(Kl.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class Gl{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Mo,{value:_o});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new na({version:s}),this.setSchema(s,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(Gl.prototype,{[Mo]:{value:_o}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=zo(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Jl(this.contents)&&this.contents.add(e)}addIn(e,t){Jl(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=ia(this);e.anchor=!t||n.has(t)?sa(t||"a",n):t}return new ua(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:o,keepUndefined:a,onTagObj:l,tag:u}=n??{},{onAnchor:c,setAnchors:h,sourceObjects:f}=function(e,t){const n=[],r=new Map;let i=null;return{onAnchor:r=>{n.push(r),i||(i=ia(e));const s=sa(t,i);return i.add(s),s},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!jo(t.node)&&!Vo(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,s||"a"),d=pa(e,u,{aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:f});return o&&Vo(d)&&(d.flow=!0),h(),d}createPair(e,t,n={}){const r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new qa(r,i)}delete(e){return!!Jl(this.contents)&&this.contents.delete(e)}deleteIn(e){return ga(e)?null!=this.contents&&(this.contents=null,!0):!!Jl(this.contents)&&this.contents.deleteIn(e)}get(e,t){return Vo(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ga(e)?!t&&jo(this.contents)?this.contents.value:this.contents:Vo(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!Vo(this.contents)&&this.contents.has(e)}hasIn(e){return ga(e)?void 0!==this.contents:!!Vo(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=ma(this.schema,[e],t):Jl(this.contents)&&this.contents.set(e,t)}setIn(e,t){ga(e)?this.contents=t:null==this.contents?this.contents=ma(this.schema,Array.from(e),t):Jl(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new na({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new na({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new Kl(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=aa(this.contents,t??"",o);if("function"==typeof i)for(const{count:e,res:t}of o.anchors.values())i(t,e);return"function"==typeof s?oa(s,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let r=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=Ia(e,t),{commentString:s}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=s(e.commentBefore);n.unshift(ba(t,""))}let o=!1,a=null;if(e.contents){if(zo(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const t=s(e.contents.commentBefore);n.push(ba(t,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}const t=a?void 0:()=>o=!0;let l=Ma(e.contents,i,(()=>a=null),t);a&&(l+=wa(l,"",s(a))),"|"!==l[0]&&">"!==l[0]||"---"!==n[n.length-1]?n.push(l):n[n.length-1]=`--- ${l}`}else n.push(Ma(e.contents,i));if(e.directives?.docEnd)if(e.comment){const t=s(e.comment);t.includes("\n")?(n.push("..."),n.push(ba(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&(o&&!a||""===n[n.length-1]||n.push(""),n.push(ba(s(t),"")))}return n.join("\n")+"\n"}(this,e)}}function Jl(e){if(Vo(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Yl extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Zl extends Yl{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Ql extends Yl{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Xl=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const e=Math.min(s-39,o.length-79);o="…"+o.substring(e),s-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-s)));const a=" ".repeat(s)+"^".repeat(e);n.message+=`:\n\n${o}\n${a}\n`}};function eu(e,{flow:t,indicator:n,next:r,offset:i,onError:s,startOnNewline:o}){let a=!1,l=o,u=o,c="",h="",f=!1,d=!1,p=!1,m=null,g=null,y=null,v=null,b=null;for(const r of e)switch(p&&("space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),r.type){case"space":!t&&l&&"doc-start"!==n&&"\t"===r.source[0]&&s(r,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||s(r,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=r.source.substring(1)||" ";c?c+=h+e:c=e,h="",l=!1;break}case"newline":l?c?c+=r.source:a=!0:h+=r.source,l=!0,f=!0,(m||g)&&(d=!0),u=!0;break;case"anchor":m&&s(r,"MULTIPLE_ANCHORS","A node can have at most one anchor"),r.source.endsWith(":")&&s(r.offset+r.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=r,null===b&&(b=r.offset),l=!1,u=!1,p=!0;break;case"tag":g&&s(r,"MULTIPLE_TAGS","A node can have at most one tag"),g=r,null===b&&(b=r.offset),l=!1,u=!1,p=!0;break;case n:(m||g)&&s(r,"BAD_PROP_ORDER",`Anchors and tags must be after the ${r.source} indicator`),v&&s(r,"UNEXPECTED_TOKEN",`Unexpected ${r.source} in ${t??"collection"}`),v=r,l=!1,u=!1;break;case"comma":if(t){y&&s(r,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),y=r,l=!1,u=!1;break}default:s(r,"UNEXPECTED_TOKEN",`Unexpected ${r.type} token`),l=!1,u=!1}const w=e[e.length-1],D=w?w.offset+w.source.length:i;return p&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:v,spaceBefore:a,comment:c,hasNewline:f,hasNewlineAfterProp:d,anchor:m,tag:g,end:D,start:b??D}}function tu(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(tu(t.key)||tu(t.value))return!0}return!1;default:return!0}}function nu(e,t,n){if("flow-collection"===t?.type){const r=t.end[0];r.indent!==e||"]"!==r.source&&"}"!==r.source||!tu(t)||n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function ru(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const i="function"==typeof r?r:(t,n)=>t===n||jo(t)&&jo(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge);return t.some((e=>i(e.key,n)))}const iu="All mapping items must start at the same column";function su(e,t,n,r){let i="";if(e){let s=!1,o="";for(const a of e){const{source:e,type:l}=a;switch(l){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";i?i+=o+t:i=t,o="";break}case"newline":i&&(o+=e),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}const ou="Block collections are not allowed within flow collections",au=e=>e&&("block-map"===e.type||"block-seq"===e.type);function lu(e,t,n,r,i,s){const o="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=new(s?.nodeClass??Ka)(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,l=null;for(const s of r.items){const{start:u,key:c,sep:h,value:f}=s,d=eu(u,{indicator:"explicit-key-ind",next:c??h?.[0],offset:a,onError:i,startOnNewline:!0}),p=!d.found;if(p){if(c&&("block-seq"===c.type?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(a,"BAD_INDENT",iu)),!d.anchor&&!d.tag&&!h){l=d.end,d.comment&&(o.comment?o.comment+="\n"+d.comment:o.comment=d.comment);continue}(d.hasNewlineAfterProp||tu(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==r.indent&&i(a,"BAD_INDENT",iu);const m=d.end,g=c?e(n,c,d,i):t(n,m,u,null,d,i);n.schema.compat&&nu(r.indent,c,i),ru(n,o.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");const y=eu(h??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,startOnNewline:!c||"block-scalar"===c.type});if(a=y.end,y.found){p&&("block-map"!==f?.type||y.hasNewline||i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&d.start<y.found.offset-1024&&i(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const l=f?e(n,f,y,i):t(n,a,h,null,y,i);n.schema.compat&&nu(r.indent,f,i),a=l.range[2];const u=new qa(g,l);n.options.keepSourceTokens&&(u.srcToken=s),o.items.push(u)}else{p&&i(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);const e=new qa(g);n.options.keepSourceTokens&&(e.srcToken=s),o.items.push(e)}}return l&&l<a&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,a,l??a],o}(e,t,n,r,s):"block-seq"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=new(s?.nodeClass??Ja)(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,l=null;for(const{start:s,value:u}of r.items){const c=eu(s,{indicator:"seq-item-ind",next:u,offset:a,onError:i,startOnNewline:!0});if(!c.found){if(!(c.anchor||c.tag||u)){l=c.end,c.comment&&(o.comment=c.comment);continue}u&&"block-seq"===u.type?i(c.end,"BAD_INDENT","All sequence items must start at the same column"):i(a,"MISSING_CHAR","Sequence item without - indicator")}const h=u?e(n,u,c,i):t(n,c.end,s,null,c,i);n.schema.compat&&nu(r.indent,u,i),a=h.range[2],o.items.push(h)}return o.range=[r.offset,a,l??a],o}(e,t,n,r,s):function({composeNode:e,composeEmptyNode:t},n,r,i,s){const o="{"===r.start.source,a=o?"flow map":"flow sequence",l=new(s?.nodeClass??(o?Ka:Ja))(n.schema);l.flow=!0;const u=n.atRoot;u&&(n.atRoot=!1);let c=r.offset+r.start.source.length;for(let s=0;s<r.items.length;++s){const u=r.items[s],{start:h,key:f,sep:d,value:p}=u,m=eu(h,{flow:a,indicator:"explicit-key-ind",next:f??d?.[0],offset:c,onError:i,startOnNewline:!1});if(!m.found){if(!(m.anchor||m.tag||d||p)){0===s&&m.comma?i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):s<r.items.length-1&&i(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),c=m.end;continue}!o&&n.options.strict&&tu(f)&&i(f,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===s)m.comma&&i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(m.comma||i(m.start,"MISSING_CHAR",`Missing , between ${a} items`),m.comment){let e="";e:for(const t of h)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=l.items[l.items.length-1];Ro(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,m.comment=m.comment.substring(e.length+1)}}if(o||d||m.found){const r=m.end,s=f?e(n,f,m,i):t(n,r,h,null,m,i);au(f)&&i(s.range,"BLOCK_IN_FLOW",ou);const g=eu(d??[],{flow:a,indicator:"map-value-ind",next:p,offset:s.range[2],onError:i,startOnNewline:!1});if(g.found){if(!o&&!m.found&&n.options.strict){if(d)for(const e of d){if(e===g.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<g.found.offset-1024&&i(g.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else p&&("source"in p&&p.source&&":"===p.source[0]?i(p,"MISSING_CHAR",`Missing space after : in ${a}`):i(g.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const y=p?e(n,p,g,i):g.found?t(n,g.end,d,null,g,i):null;y?au(p)&&i(y.range,"BLOCK_IN_FLOW",ou):g.comment&&(s.comment?s.comment+="\n"+g.comment:s.comment=g.comment);const v=new qa(s,y);if(n.options.keepSourceTokens&&(v.srcToken=u),o){const e=l;ru(n,e.items,s)&&i(r,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(v)}else{const e=new Ka(n.schema);e.flow=!0,e.items.push(v),l.items.push(e)}c=y?y.range[2]:g.end}else{const r=p?e(n,p,m,i):t(n,m.end,d,null,m,i);l.items.push(r),c=r.range[2],au(p)&&i(r.range,"BLOCK_IN_FLOW",ou)}}const h=o?"}":"]",[f,...d]=r.end;let p=c;if(f&&f.source===h)p=f.offset+f.source.length;else{const e=a[0].toUpperCase()+a.substring(1);i(c,u?"MISSING_CHAR":"BAD_INDENT",u?`${e} must end with a ${h}`:`${e} in block collection must be sufficiently indented and end with a ${h}`),f&&1!==f.source.length&&d.unshift(f)}if(d.length>0){const e=su(d,p,n.options.strict,i);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[r.offset,p,e.offset]}else l.range=[r.offset,p,p];return l}(e,t,n,r,s),a=o.constructor;return"!"===i||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function uu(e,t,n){const r=e.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],s=i[0];let o=0,a="",l=-1;for(let t=1;t<i.length;++t){const n=i[t];if(a||"-"!==n&&"+"!==n){const r=Number(n);!o&&r?o=r:-1===l&&(l=e+t)}else a=n}-1!==l&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let u=!1,c="",h=i.length;for(let e=1;e<t.length;++e){const i=t[e];switch(i.type){case"space":u=!0;case"newline":h+=i.source.length;break;case"comment":n&&!u&&r(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=i.source.length,c=i.source.substring(1);break;case"error":r(i,"UNEXPECTED_TOKEN",i.message),h+=i.source.length;break;default:{r(i,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${i.type}`);const e=i.source;e&&"string"==typeof e&&(h+=e.length)}}}return{mode:s,indent:o,chomp:a,comment:c,length:h}}(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=">"===i.mode?fa.BLOCK_FOLDED:fa.BLOCK_LITERAL,o=e.source?function(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}(e.source):[];let a=o.length;for(let e=o.length-1;e>=0;--e){const t=o[e][1];if(""!==t&&"\r"!==t)break;a=e}if(0===a){const t="+"===i.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let n=r+i.length;return e.source&&(n+=e.source.length),{value:t,type:s,comment:i.comment,range:[r,n,n]}}let l=e.indent+i.indent,u=e.offset+i.length,c=0;for(let e=0;e<a;++e){const[t,r]=o[e];if(""!==r&&"\r"!==r){if(t.length<l){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+t.length,"MISSING_CHAR",e)}0===i.indent&&(l=t.length),c=e;break}0===i.indent&&t.length>l&&(l=t.length),u+=t.length+r.length+1}for(let e=o.length-1;e>=a;--e)o[e][0].length>l&&(a=e+1);let h="",f="",d=!1;for(let e=0;e<c;++e)h+=o[e][0].slice(l)+"\n";for(let e=c;e<a;++e){let[t,r]=o[e];u+=t.length+r.length+1;const a="\r"===r[r.length-1];if(a&&(r=r.slice(0,-1)),r&&t.length<l){const e="Block scalar lines must not be less indented than their "+(i.indent?"explicit indentation indicator":"first line");n(u-r.length-(a?2:1),"BAD_INDENT",e),t=""}s===fa.BLOCK_LITERAL?(h+=f+t.slice(l)+r,f="\n"):t.length>l||"\t"===r[0]?(" "===f?f="\n":d||"\n"!==f||(f="\n\n"),h+=f+t.slice(l)+r,f="\n",d=!0):""===r?"\n"===f?h+="\n":f="\n":(h+=f+r,f=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;e<o.length;++e)h+="\n"+o[e][0].slice(l);"\n"!==h[h.length-1]&&(h+="\n");break;default:h+="\n"}const p=r+i.length+e.source.length;return{value:h,type:s,comment:i.comment,range:[r,p,p]}}function cu(e,t,n){const{offset:r,type:i,source:s,end:o}=e;let a,l;const u=(e,t,i)=>n(r+e,t,i);switch(i){case"scalar":a=fa.PLAIN,l=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),hu(e)}(s,u);break;case"single-quoted-scalar":a=fa.QUOTE_SINGLE,l=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),hu(e.slice(1,-1)).replace(/''/g,"'")}(s,u);break;case"double-quoted-scalar":a=fa.QUOTE_DOUBLE,l=function(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if("\r"!==i||"\n"!==e[r+1])if("\n"===i){const{fold:t,offset:i}=fu(e,r);n+=t,r=i}else if("\\"===i){let i=e[++r];const s=du[i];if(s)n+=s;else if("\n"===i)for(i=e[r+1];" "===i||"\t"===i;)i=e[1+ ++r];else if("\r"===i&&"\n"===e[r+1])for(i=e[1+ ++r];" "===i||"\t"===i;)i=e[1+ ++r];else if("x"===i||"u"===i||"U"===i){const s={x:2,u:4,U:8}[i];n+=pu(e,r+1,s,t),r+=s}else{const i=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),n+=i}}else if(" "===i||"\t"===i){const t=r;let s=e[r+1];for(;" "===s||"\t"===s;)s=e[1+ ++r];"\n"===s||"\r"===s&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):i)}else n+=i}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(s,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const c=r+s.length,h=su(o,c,t,n);return{value:l,type:a,comment:h.comment,range:[r,c,h.offset]}}function hu(e){let t,n;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(e){t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],s=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)""===r[1]?"\n"===s?i+=s:s="\n":(i+=s+r[1],s=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(e),i+s+(r?.[1]??"")}function fu(e,t){let n="",r=e[t+1];for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(n+="\n"),r=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const du={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function pu(e,t,n,r){const i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(s)){const i=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(s)}function mu(e,t,n,r){const{value:i,type:s,comment:o,range:a}="block-scalar"===t.type?uu(t,e.options.strict,r):cu(t,e.options.strict,r),l=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null,u=n&&l?function(e,t,n,r,i){if("!"===n)return e[Po];const s=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;s.push(t)}for(const e of s)if(e.test?.test(t))return e;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[Po])}(e.schema,i,l,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,i){const s=t.tags.find((e=>e.default&&e.test?.test(n)))||t[Po];if(t.compat){const o=t.compat.find((e=>e.default&&e.test?.test(n)))??t[Po];s.tag!==o.tag&&i(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(s.tag)} or ${e.tagString(o.tag)}`,!0)}return s}(e,i,t,r):e.schema[Po];let c;try{const s=u.resolve(i,(e=>r(n??t,"TAG_RESOLVE_FAILED",e)),e.options);c=jo(s)?s:new fa(s)}catch(e){const s=e instanceof Error?e.message:String(e);r(n??t,"TAG_RESOLVE_FAILED",s),c=new fa(i)}return c.range=a,c.source=i,s&&(c.type=s),l&&(c.tag=l),u.format&&(c.format=u.format),o&&(c.comment=o),c}function gu(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}const yu={composeNode:vu,composeEmptyNode:bu};function vu(e,t,n,r){const{spaceBefore:i,comment:s,anchor:o,tag:a}=n;let l,u=!0;switch(t.type){case"alias":l=function({options:e},{offset:t,source:n,end:r},i){const s=new ua(n.substring(1));""===s.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,a=su(r,o,e.strict,i);return s.range=[t,o,a.offset],a.comment&&(s.comment=a.comment),s}(e,t,r),(o||a)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=mu(e,t,a,r),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=function(e,t,n,r,i){const s=r?t.directives.tagName(r.source,(e=>i(r,"TAG_RESOLVE_FAILED",e))):null,o="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!r||!s||"!"===s||s===Ka.tagName&&"map"===o||s===Ja.tagName&&"seq"===o||!o)return lu(e,t,n,i,s);let a=t.schema.tags.find((e=>e.tag===s&&e.collection===o));if(!a){const l=t.schema.knownTags[s];if(!l||l.collection!==o)return l?.collection?i(r,"BAD_COLLECTION_TYPE",`${l.tag} used for ${o} collection, but expects ${l.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),lu(e,t,n,i,s);t.schema.tags.push(Object.assign({},l,{default:!1})),a=l}const l=lu(e,t,n,i,s,a),u=a.resolve?.(l,(e=>i(r,"TAG_RESOLVE_FAILED",e)),t.options)??l,c=zo(u)?u:new fa(u);return c.range=l.range,c.tag=s,a?.format&&(c.format=a.format),c}(yu,e,t,a,r),o&&(l.anchor=o.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),l=bu(e,t.offset,void 0,null,n,r),u=!1}return o&&""===l.anchor&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(l.spaceBefore=!0),s&&("scalar"===t.type&&""===t.source?l.comment=s:l.commentBefore=s),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function bu(e,t,n,r,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},u){const c=mu(e,{type:"scalar",offset:gu(t,n,r),indent:-1,source:""},a,u);return o&&(c.anchor=o.source.substring(1),""===c.anchor&&u(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),s&&(c.comment=s,c.range[2]=l),c}function wu(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function Du(e){let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(s.substring(1)||" "),n=!0,r=!1;break;case"%":"#"!==e[i+1]?.[0]&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class ku{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{const i=wu(e);r?this.warnings.push(new Ql(i,t,n)):this.errors.push(new Zl(i,t,n))},this.directives=new na({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Du(this.prelude);if(n){const i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(Vo(i)&&!i.flow&&i.items.length>0){let e=i.items[0];Ro(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Du(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const i=wu(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:i,end:s},o){const a=Object.assign({_directives:t},e),l=new Gl(void 0,a),u={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=eu(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,startOnNewline:!0});c.found&&(l.directives.docStart=!0,!i||"block-map"!==i.type&&"block-seq"!==i.type||c.hasNewline||o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?vu(u,i,c,o):bu(u,c.end,r,null,c,o);const h=l.contents.range[2],f=su(s,h,!1,o);return f.comment&&(l.comment=f.comment),l.range=[n,h,f.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Zl(wu(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new Zl(wu(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=su(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Zl(wu(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),n=new Gl(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}function Au(e,t=!0,n){if(e){const r=(e,t,r)=>{const i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(!n)throw new Zl([i,i+1],t,r);n(i,t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return cu(e,t,r);case"block-scalar":return uu(e,t,r)}}return null}function Eu(e,t){const{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:s=-1,type:o="PLAIN"}=t,a=Pa({type:o,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(a[0]){case"|":case">":{const e=a.indexOf("\n"),t=a.substring(0,e),n=a.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:s,indent:r,source:t}];return Cu(i,l)||i.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:s,indent:r,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:a,end:l};default:return{type:"scalar",offset:s,indent:r,source:a,end:l}}}function xu(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:s=!1,type:o}=n,a="indent"in e?e.indent:null;if(r&&"number"==typeof a&&(a+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}const l=Pa({type:o,value:t},{implicitKey:i||null===a,indent:null!==a&&a>0?" ".repeat(a):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){const n=t.indexOf("\n"),r=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){const t=e.props[0];if("block-scalar-header"!==t.type)throw new Error("Invalid block scalar header");t.source=r,e.source=i}else{const{offset:t}=e,n="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:t,indent:n,source:r}];Cu(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:n,source:"\n"});for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:s,source:i})}}(e,l);break;case'"':Su(e,l,"double-quoted-scalar");break;case"'":Su(e,l,"single-quoted-scalar");break;default:Su(e,l,"scalar")}}function Cu(e,t){if(t)for(const n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function Su(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{const r=e.props.slice(1);let i=t.length;"block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length);for(const e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{const r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{const r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter((e=>"space"===e.type||"comment"===e.type||"newline"===e.type)):[];for(const t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}const Ou=e=>"type"in e?Fu(e):_u(e);function Fu(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Fu(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=_u(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=_u(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=_u(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function _u({start:e,key:t,sep:n,value:r}){let i="";for(const t of e)i+=t.source;if(t&&(i+=Fu(t)),n)for(const e of n)i+=e.source;return r&&(i+=Fu(r)),i}const Tu=Symbol("break visit"),Bu=Symbol("skip children"),Pu=Symbol("remove item");function Iu(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),Mu(Object.freeze([]),e,t)}function Mu(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let t=0;t<s.items.length;++t){const r=Mu(Object.freeze(e.concat([[i,t]])),s.items[t],n);if("number"==typeof r)t=r-1;else{if(r===Tu)return Tu;r===Pu&&(s.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===i&&(r=r(t,e))}}return"function"==typeof r?r(t,e):r}Iu.BREAK=Tu,Iu.SKIP=Bu,Iu.REMOVE=Pu,Iu.itemAtPath=(e,t)=>{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},Iu.parentCollection=(e,t)=>{const n=Iu.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};const $u="\ufeff",Nu="",Lu="",Ru="",ju=e=>!!e&&"items"in e,qu=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function Vu(e){switch(e){case $u:return"<BOM>";case Nu:return"<DOC>";case Lu:return"<FLOW_END>";case Ru:return"<SCALAR>";default:return JSON.stringify(e)}}function zu(e){switch(e){case $u:return"byte-order-mark";case Nu:return"doc-mode";case Lu:return"flow-error-end";case Ru:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Uu(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const Hu="0123456789ABCDEFabcdef".split(""),Wu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Ku=",[]{}".split(""),Gu=" ,[]{}\n\r\t".split(""),Ju=e=>!e||Gu.includes(e);class Yu{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&Uu(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if(e[0]===$u&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length;const n=e.indexOf("#");if(-1!==n){const r=e[n-1];" "!==r&&"\t"!==r||(t=n-1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Nu,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if("---"===e&&Uu(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if("..."===e&&Uu(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Uu(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&Uu(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ju),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&Uu(r[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==r[0]&&"}"!==r[0]))return this.flowLevel=0,yield Lu,yield*this.parseLineStart();let i=0;for(;","===r[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),r[i]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ju),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||Uu(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>Uu(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const i=e;for(;" "===r||"\t"===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>i))break;t=e}return yield Ru,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(Uu(t)||e&&","===t)break;n=r}else if(Uu(t)){let i=this.buffer[r+1];if("\r"===t&&("\n"===i?(r+=1,t="\n",i=this.buffer[r+1]):n=r),"#"===i||e&&Ku.includes(i))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&Ku.includes(t))break;n=r}return t||this.atEnd?(yield Ru,yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Ju))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(Uu(t)||e&&Ku.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!Uu(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Wu.includes(t))t=this.buffer[++e];else{if("%"!==t||!Hu.includes(this.buffer[e+1])||!Hu.includes(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Zu{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}function Qu(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Xu(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function ec(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function tc(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function nc(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function rc(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||Qu(t.start,"explicit-key-ind")||Qu(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,ec(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class ic{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Yu,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=zu(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&rc(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!Qu(n.start,"explicit-key-ind"));n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===Xu(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==Xu(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=nc(tc(this.peek(2)));let n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent&&t.sep&&"seq-item-ind"!==this.type;let r=[];if(n&&t.sep&&!t.value){const n=[];for(let r=0;r<t.sep.length;++r){const i=t.sep[r];switch(i.type){case"newline":n.push(r);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(r=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||Qu(t.start,"explicit-key-ind")?n||t.value?(r.push(this.sourceToken),e.items.push({start:r})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}):t.start.push(this.sourceToken),void(this.onKeyLine=!0);case"map-value-ind":if(Qu(t.start,"explicit-key-ind"))if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Qu(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(ec(t.key)&&!Qu(t.sep,"newline")){const e=nc(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(Qu(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=nc(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):Qu(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);return void(n||t.value?(e.items.push({start:r,key:i,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(i):(Object.assign(t,{key:i,sep:[]}),this.onKeyLine=!0))}default:{const i=this.startBlockValue(e);if(i)return n&&"block-seq"!==i.type&&Qu(t.start,"explicit-key-ind")&&e.items.push({start:r}),void this.stack.push(i)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||Qu(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=nc(tc(t));rc(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=nc(tc(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t}]}}case"map-value-ind":{this.onKeyLine=!0;const t=nc(tc(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function sc(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new Zu||null,prettyErrors:t}}function oc(e,t={}){const{lineCounter:n,prettyErrors:r}=sc(t),i=new ic(n?.addNewLine),s=new ku(t),o=Array.from(s.compose(i.parse(e)));if(r&&n)for(const t of o)t.errors.forEach(Xl(e,n)),t.warnings.forEach(Xl(e,n));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function ac(e,t={}){const{lineCounter:n,prettyErrors:r}=sc(t),i=new ic(n?.addNewLine),s=new ku(t);let o=null;for(const t of s.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new Zl(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return r&&n&&(o.errors.forEach(Xl(e,n)),o.warnings.forEach(Xl(e,n))),o}function lc(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const i=ac(e,n);if(!i)return null;if(i.warnings.forEach((e=>$a(i.options.logLevel,e))),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function uc(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return new Gl(e,r,n).toString(n)}const cc=l;function hc(e){let t=null;try{t=cc.parse(e.doc.toString())}catch(e){}return{data:t,pointers:k(e,v)}}var fc=n(88696);function dc(e){let t=null;try{t=fc.parse(e.doc.toString())}catch(e){}return{data:t,pointers:k(e,g)}}const pc=e=>e.startState.field(N)!==e.state.field(N);function mc(e){const t=new yc(e);return e=>t.doValidation(e)}const gc=["NoAdditionalPropertiesError","RequiredPropertyError","InvalidPropertyNameError","ForbiddenPropertyError","UndefinedValueError"];class yc{constructor(e){var t,n,r,i;this.options=e,this.schema=null,this.mode=y,this.parser=mr,this.rewriteError=e=>{var t,n,r,i,s;const o=null==e?void 0:e.data,a=null==o?void 0:o.errors;return"one-of-error"===e.code&&(null==a?void 0:a.length)?`Expected one of ${pr(a,(e=>e.data.expected))}`:"type-error"===e.code?`Expected \`${(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.expected)&&Array.isArray(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.expected)?pr(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.expected):null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.expected}\` but received \`${null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.received}\``:e.message.replaceAll("in `#` ","").replaceAll("/",".").replaceAll("#.","")},this.mode=null!==(n=null===(t=this.options)||void 0===t?void 0:t.mode)&&void 0!==n?n:y,this.parser=null!==(i=null===(r=this.options)||void 0===r?void 0:r.jsonParser)&&void 0!==i?i:(()=>{switch(this.mode){case y:return mr;case g:return dc;case v:return hc}})()}get schemaTitle(){var e,t,n;return null!==(n=null===(t=null===(e=this.schema)||void 0===e?void 0:e.getSchema())||void 0===t?void 0:t.title)&&void 0!==n?n:"json-schema"}doValidation(e){const t=R(e.state);if(!t)return[];if(this.schema=new rr(t),!this.schema)return[];const n=e.state.doc.toString();if(!n||n.trim().length<3)return[];const r=this.parser(e.state);let i=[];try{i=this.schema.validate(r.data)}catch(e){}return i.length?i.reduce(((e,t)=>{var n;const i=(e=>{var t,n,r;return(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.pointer)&&"#"!==(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.pointer)?e.data.pointer.slice(1):(null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.property)?`/${e.data.property}`:""})(t),s=r.pointers.get(i);if((null!==(n="MaxPropertiesError"===t.name)&&void 0!==n?n:"MinPropertiesError"===t.name)&&(()=>{const n=this.rewriteError(t);e.push({from:0,to:0,message:n,severity:"error",source:this.schemaTitle,renderMessage:()=>{const e=gr("div",{});return e.innerHTML=n,e}})})(),s){const n=gc.includes(t.name),r=this.rewriteError(t),i=n?s.keyFrom:s.valueFrom,o=n?s.keyTo:s.valueTo;void 0!==o&&void 0!==i&&e.push({from:i,to:o,message:r,renderMessage:()=>{const e=gr("div",{});return e.innerHTML=Oo(r),e},severity:"error",source:this.schemaTitle})}return e}),[]):[]}}function vc(e){const t=new wc(e);return async function(e,n,r){return t.doHover(e,n,r)}}function bc(e,t,n){return`${t}: ${pr(e[t].map((e=>{var t;return null!==(t=e.type)&&void 0!==t?t:n.resolveRef(e).type})))}`}class wc{constructor(e){var t,n;this.opts=e,this.schema=null,this.mode=y,this.opts=Object.assign({parser:JSON.parse},this.opts),this.mode=null!==(n=null===(t=this.opts)||void 0===t?void 0:t.mode)&&void 0!==n?n:y}getDataForCursor(e,t,n){const r=R(e.state);if(!r)return null;this.schema=new rr(r);const i=D(e.state,t,n,this.mode);let s;try{s=this.opts.parser(e.state.doc.toString())}catch(e){}if(!i)return null;let o=this.schema.getSchema({pointer:i,data:s,withSchemaWarning:!0});return Q(o)&&(o=(null==o?void 0:o.data.schema.$ref)?this.schema.resolveRef(o):null==o?void 0:o.data.schema),{schema:o,pointer:i}}formatMessage(e){const{message:t,typeInfo:n}=e;return gr("div",{class:"cm6-json-schema-hover"},t?[gr("div",{class:"cm6-json-schema-hover--description",text:t}),gr("div",{class:"cm6-json-schema-hover--code-wrapper"},[gr("div",{class:"cm6-json-schema-hover--code",inner:Oo(n)})])]:[gr("div",{class:"cm6-json-schema-hover--code-wrapper"},[gr("code",{class:"cm6-json-schema-hover--code",inner:Oo(n)})])])}getHoverTexts(e,t){let n="",r=null;const{schema:i}=e;return i.oneOf&&(n=bc(i,"oneOf",t)),i.anyOf&&(n=bc(i,"anyOf",t)),i.allOf&&(n=bc(i,"allOf",t)),i.type&&(n=Array.isArray(i.type)?pr(i.type):i.type),i.enum&&(n=`\`enum\`: ${pr(i.enum)}`),i.format&&(n+=`\`format\`: ${i.format}`),i.pattern&&(n+=`\`pattern\`: ${i.pattern}`),i.description&&(r=i.description),{message:r,typeInfo:n}}async doHover(e,t,n){var r,i,s,o;const a=t,l=t;try{const u=this.getDataForCursor(e,t,n);if(!(null==u?void 0:u.schema))return null;const c=(null!==(i=null===(r=this.opts)||void 0===r?void 0:r.getHoverTexts)&&void 0!==i?i:this.getHoverTexts)(u,this.schema),h=(null!==(o=null===(s=this.opts)||void 0===s?void 0:s.formatHover)&&void 0!==o?o:this.formatMessage)(c);return{pos:a,end:l,arrow:!0,above:!0,create:e=>({dom:h})}}catch(e){return null}}}var Dc=n(79066);class kc{constructor(e,t,n,r,i,s,o,a,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new kc(e,[],t,n,n,0,[],0,r?new Ac(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:i}=this.p,s=i.dynamicPrecedence(r);if(s&&(this.score+=s),0==n)return this.pushState(i.getGoto(this.state,r,!0),this.reducePos),r<i.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),void this.reduceContext(r,this.reducePos);let o=this.stack.length-3*(n-1)-(262144&e?6:0),a=o?this.stack[o-2]:this.p.ranges[0].from,l=this.reducePos-a;l>=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=l));let u=o?this.stack[o-1]:0,c=this.bufferBase+this.buffer.length-u;if(r<i.minRepeatTerm||131072&e){let e=i.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,a,e,c+4,!0)}if(262144&e)this.state=this.stack[o];else{let e=this.stack[o-3];this.state=i.getGoto(e,r,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(r,a)}storeNode(e,t,n,r=4,i=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,r=this.buffer.length;if(0==r&&e.parent&&(r=e.bufferBase-e.parent.bufferBase,e=e.parent),r>0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(i&&this.pos!=n){let i=this.buffer.length;if(i>0&&0!=this.buffer[i-4])for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,r>4&&(r-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{let i=e,{parser:s}=this.p;(r>this.pos||t<=s.maxNode)&&(this.pos=r,s.stateFlag(i,1)||(this.reducePos=r)),this.pushState(i,n),this.shiftContext(t,n),t<=s.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new kc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Ec(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if(!(65536&n))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r,i=0;i<t.length;i+=2)(r=t[i+1])!=this.state&&this.p.parser.hasAction(r,e)&&n.push(t[i],r);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some(((e,t)=>1&t&&e==r))||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[e],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(65536&t))return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,i=this.stack.length-3*n;if(i<0||e.getGoto(this.stack[i],r,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,i)=>{if(!t.includes(r))return t.push(r),e.allActions(r,(t=>{if(393216&t);else if(65536&t){let n=(t>>19)-i;if(n>1){let r=65535&t,i=this.stack.length-3*n;if(i>=0&&e.getGoto(this.stack[i],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,i+1);if(null!=e)return e}}))};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Ac(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ac{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class Ec{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}class xc{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new xc(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new xc(this.stack,this.pos,this.index)}}function Cc(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,i=0;r<e.length;){let s=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){s=65535;break}t>=92&&t--,t>=34&&t--;let i=t-32;if(i>=46&&(i-=46,n=!0),s+=i,n)break;s*=46}n?n[i++]=s:n=new t(s)}return n}class Sc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Oc=new Sc;class Fc{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Oc,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,i=this.pos+e;for(;i<n.from;){if(!r)return null;let e=this.ranges[--r];i-=n.from-e.to,n=e}for(;t<0?i>n.to:i>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];i+=e.from-n.to,n=e}return i}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,n,r=this.chunkOff+e;if(r>=0&&r<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(r);else{let r=this.resolveOffset(e,1);if(null==r)return-1;if(t=r,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,r=this.range;for(;r.to<=t;)r=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>r.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Oc,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class _c{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;!function(e,t,n,r,i,s){let o=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;a&e[o];){let n=e[o+1];for(let r=o+3;r<n;r+=2)if((e[r+1]&a)>0){let n=e[r];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||Bc(n,t.token.value,i,s))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[o+2];if(!(t.next<0&&c>u&&65535==e[n+3*c-3])){for(;u<c;){let i=u+c>>1,s=n+i+(i<<1),a=e[s],l=e[s+1]||65536;if(r<a)c=i;else{if(!(r>=l)){o=e[s+2],t.advance();continue e}u=i+1}}break}o=e[n+3*c-1]}}(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}function Tc(e,t,n){for(let r,i=t;65535!=(r=e[i]);i++)if(r==n)return i-t;return-1}function Bc(e,t,n,r){let i=Tc(n,r,t);return i<0||Tc(n,r,e)<i}_c.prototype.contextual=_c.prototype.fallback=_c.prototype.extend=!1,_c.prototype.fallback=_c.prototype.extend=!1;const Pc="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let Ic=null;function Mc(e,t,n){let r=e.cursor(Dc.Qj.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class $c{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Mc(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Mc(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let i=n.children[r],s=this.start[t]+n.positions[r];if(s>e)return this.nextStart=s,null;if(i instanceof Dc.PH){if(s==e){if(s<this.safeFrom)return null;let e=s+i.length;if(e<=this.safeTo){let t=i.prop(Dc.uY.lookAhead);if(!t||e+t<this.fragment.to)return i}}this.index[t]++,s+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+i.length}}}class Nc{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new Sc))}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:i}=r,s=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let r=0;r<i.length;r++){if(!(1<<r&s))continue;let l=i[r],u=this.tokens[r];if((!n||l.fallback)&&((l.contextual||u.start!=e.pos||u.mask!=s||u.context!=o)&&(this.updateCachedToken(u,l,e),u.mask=s,u.context=o),u.lookAhead>u.end+25&&(a=Math.max(u.lookAhead,a)),0!=u.value)){let r=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(n=u,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new Sc,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Sc,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let i=t.specializers[r](this.stream.read(e.start,e.end),n);if(i>=0&&n.p.parser.dialect.allows(i>>1)){1&i?e.extended=i>>1:e.value=i>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:i}=e,{parser:s}=e.p,{data:o}=s;for(let e=0;e<2;e++)for(let a=s.stateSlot(i,e?2:1);;a+=3){if(65535==o[a]){if(1!=o[a+1]){0==r&&2==o[a+1]&&(r=this.putAction(Vc(o,a+2),t,n,r));break}a=Vc(o,a+2)}o[a]==t&&(r=this.putAction(Vc(o,a+1),t,n,r))}return r}}class Lc{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Fc(t,r),this.tokens=new Nc(e,this.stream),this.topTerm=e.top[1];let{from:i}=r[0];this.stacks=[kc.start(this,e.top[0],i)],this.fragments=n.length&&this.stream.end-i>4*e.bufferLength?new $c(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,i=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<n.length;s++){let o=n[s];for(;;){if(this.tokens.mainToken=null,o.pos>r)i.push(o);else{if(this.advanceStack(o,i,n))continue;{e||(e=[],t=[]),e.push(o);let n=this.tokens.getMainToken(o);t.push(n.value,n.end)}}break}}if(!i.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return Pc&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw Pc&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,i);if(n)return Pc&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(i.length>e)for(i.sort(((e,t)=>t.score-e.score));i.length>e;)i.pop();i.some((e=>e.reducePos>r))&&this.recovering--}else if(i.length>1){e:for(let e=0;e<i.length-1;e++){let t=i[e];for(let n=e+1;n<i.length;n++){let r=i[n];if(t.sameState(r)||t.buffer.length>500&&r.buffer.length>500){if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){i.splice(e--,1);continue e}i.splice(n--,1)}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let e=1;e<i.length;e++)i[e].pos<this.minStackPos&&(this.minStackPos=i[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let r=e.pos,{parser:i}=this,s=Pc?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let o=this.fragments.nodeAt(r);o;){let r=this.parser.nodeSet.types[o.type.id]==o.type?i.getGoto(e.state,o.type.id):-1;if(r>-1&&o.length&&(!t||(o.prop(Dc.uY.contextHash)||0)==n))return e.useNode(o,r),Pc&&console.log(s+this.stackID(e)+` (via reuse of ${i.getName(o.type.id)})`),!0;if(!(o instanceof Dc.PH)||0==o.children.length||o.positions[0]>0)break;let a=o.children[0];if(!(a instanceof Dc.PH&&0==o.positions[0]))break;o=a}}let o=i.stateSlot(e.state,4);if(o>0)return e.reduce(o),Pc&&console.log(s+this.stackID(e)+` (via always-reduce ${i.getName(65535&o)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let o=0;o<a.length;){let l=a[o++],u=a[o++],c=a[o++],h=o==a.length||!n,f=h?e:e.split(),d=this.tokens.mainToken;if(f.apply(l,u,d?d.start:f.pos,c),Pc&&console.log(s+this.stackID(f)+` (via ${65536&l?`reduce of ${i.getName(65535&l)}`:"shift"} for ${i.getName(u)} @ ${r}${f==e?"":", split"})`),h)return!0;f.pos>r?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Rc(e,t),!0}}runRecovery(e,t,n){let r=null,i=!1;for(let s=0;s<e.length;s++){let o=e[s],a=t[s<<1],l=t[1+(s<<1)],u=Pc?this.stackID(o)+" -> ":"";if(o.deadEnd){if(i)continue;if(i=!0,o.restart(),Pc&&console.log(u+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))continue}let c=o.split(),h=u;for(let e=0;c.forceReduce()&&e<10&&(Pc&&console.log(h+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)Pc&&(h=this.stackID(c)+" -> ");for(let e of o.recoverByInsert(a))Pc&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),Pc&&console.log(u+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),Rc(o,n)):(!r||r.score<o.score)&&(r=o)}return r}stackToTree(e){return e.close(),Dc.PH.build({buffer:xc.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Ic||(Ic=new WeakMap)).get(e);return t||Ic.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Rc(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}t.push(e)}class jc{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}class qc extends Dc.iX{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push("");let n=Object.keys(e.topRules).map((t=>e.topRules[t][1])),r=[];for(let e=0;e<t.length;e++)r.push([]);function i(e,t,n){r[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=Dc.uY[e]);for(let n=1;n<t.length;){let r=t[n++];if(r>=0)i(r,e,t[n++]);else{let s=t[n+-r];for(let o=-r;o>0;o--)i(t[n++],e,s);n++}}}this.nodeSet=new Dc.fI(t.map(((t,i)=>Dc.Z6.define({name:i>=this.minRepeatTerm?void 0:t,id:i,props:r[i],top:n.indexOf(i)>-1,error:0==i,skipped:e.skippedNodes&&e.skippedNodes.indexOf(i)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Dc.cF;let s=Cc(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(zc),this.states=Cc(e.states,Uint32Array),this.data=Cc(e.stateData),this.goto=Cc(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new _c(s,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new Lc(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let i=r[t+1];;){let t=r[i++],s=1&t,o=r[i++];if(s&&n)return o;for(let n=i+(t>>1);i<n;i++)if(r[i]==e)return o;if(s)return-1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let i,s=this.stateSlot(e,r?2:1);;s+=3){if(65535==(i=n[s])){if(1!=n[s+1]){if(2==n[s+1])return Vc(n,s+2);break}i=n[s=Vc(n,s+2)]}if(i==t||0==i)return Vc(n,s+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==r;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Vc(this.data,n+2)}r=t(Vc(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=Vc(this.data,n+2)}if(!(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(qc.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,r)=>{let i=e.specializers.find((e=>e.from==n.external));if(!i)return n;let s=Object.assign(Object.assign({},n),{external:i.to});return t.specializers[r]=zc(s),s}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n,i=this.dialects[t[e]];65535!=(n=this.data[i++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[n]=1;return new jc(e,n,r)}static deserialize(e){return new qc(e)}}function Vc(e,t){return e[t]|e[t+1]<<16}function zc(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}var Uc=n(49913);const Hc=(0,Uc.pn)({String:Uc._A.string,Number:Uc._A.number,"True False":Uc._A.bool,PropertyName:Uc._A.propertyName,Null:Uc._A.null,",":Uc._A.separator,"[ ]":Uc._A.squareBracket,"{ }":Uc._A.brace}),Wc=qc.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[Hc],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),Kc=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(t){if(!(t instanceof SyntaxError))throw t;const n=function(e,t){let n;return(n=e.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=e.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0}(t,e.state.doc);return[{from:n,message:t.message,severity:"error",to:n}]}return[]},Gc=c.bj.define({name:"json",parser:Wc.configure({props:[c.Oh.add({Object:(0,c.mz)({except:/^\s*\}/}),Array:(0,c.mz)({except:/^\s*\]/})}),c.b_.add({"Object Array":c.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});var Jc=n(83173),Yc=n(29853);function Zc(e){return[new c.Yy(Gc),(0,Yc.bu)(Kc()),(0,Yc.bu)(mc(),{needsRefresh:pc}),Gc.data.of({autocomplete:dr()}),(0,Jc.Ux)(vc()),j(e)]}},98104:(e,t,n)=>{"use strict";n.d(t,{G:()=>o});const r="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,s,o){let a=[],l=/^@(\w+)\b/.exec(e[0]),u=l&&"keyframes"==l[1];if(l&&null==t)return s.push(e[0]+";");for(let n in t){let o=t[n];if(/&/.test(n))i(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),o,s);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),o,a,u)}else null!=o&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+o+";")}(a.length||u)&&s.push((!n||l||o?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=s[r]||1;return s[r]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let r=e[i],s=n&&n.nonce;r?s&&r.setNonce(s):r=new l(e,s),r.mount(Array.isArray(t)?t:[t],e)}}let a=new Map;class l{constructor(e,t){let n=e.ownerDocument||e,r=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=a.get(n);if(t)return e[i]=t;this.sheet=new r.CSSStyleSheet,a.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[i]=this}mount(e,t){let n=this.sheet,r=0,i=0;for(let t=0;t<e.length;t++){let s=e[t],o=this.modules.indexOf(s);if(o<i&&o>-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,s),n)for(let e=0;e<s.rules.length;e++)n.insertRule(s.rules[e],r++)}else{for(;i<o;)r+=this.modules[i++].rules.length;r+=s.rules.length,i++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}}}]);