@ktnpm_devops/react-component 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/README.md +38 -2
  2. package/dist/constants.d.ts +9 -3
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/data/HeatmapMatrix/HeatmapMatrix.d.ts.map +1 -1
  5. package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts +42 -0
  6. package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts.map +1 -1
  7. package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts +9 -0
  8. package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts.map +1 -0
  9. package/dist/data/HeatmapMatrix/getColumnRuns.d.ts +11 -0
  10. package/dist/data/HeatmapMatrix/getColumnRuns.d.ts.map +1 -0
  11. package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts +2 -0
  12. package/dist/data/HeatmapMatrix/getColumnRuns.test.d.ts.map +1 -0
  13. package/dist/data/HeatmapMatrix/index.d.ts +1 -1
  14. package/dist/data/HeatmapMatrix/index.d.ts.map +1 -1
  15. package/dist/geo/GeoMapCard/GeoMapCard.d.ts +1 -1
  16. package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -1
  17. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +28 -2
  18. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -1
  19. package/dist/geo/GeoMapCard/MapStatusBars.d.ts +11 -0
  20. package/dist/geo/GeoMapCard/MapStatusBars.d.ts.map +1 -0
  21. package/dist/geo/GeoMapCard/ViewportReporter.d.ts +15 -0
  22. package/dist/geo/GeoMapCard/ViewportReporter.d.ts.map +1 -0
  23. package/dist/geo/GeoMapCard/describePoints.d.ts +7 -0
  24. package/dist/geo/GeoMapCard/describePoints.d.ts.map +1 -0
  25. package/dist/geo/GeoMapCard/normalizeViewport.d.ts +13 -0
  26. package/dist/geo/GeoMapCard/normalizeViewport.d.ts.map +1 -0
  27. package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts +2 -0
  28. package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts.map +1 -0
  29. package/dist/geo/GeoMapCard/resolveTiles.d.ts +9 -0
  30. package/dist/geo/GeoMapCard/resolveTiles.d.ts.map +1 -0
  31. package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts +9 -0
  32. package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts.map +1 -0
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index10.cjs +1 -1
  36. package/dist/index10.js +1 -1
  37. package/dist/index100.cjs +39 -15
  38. package/dist/index100.cjs.map +1 -1
  39. package/dist/index100.js +38 -14
  40. package/dist/index100.js.map +1 -1
  41. package/dist/index101.cjs +9 -7
  42. package/dist/index101.cjs.map +1 -1
  43. package/dist/index101.js +8 -6
  44. package/dist/index101.js.map +1 -1
  45. package/dist/index102.cjs +10 -6
  46. package/dist/index102.cjs.map +1 -1
  47. package/dist/index102.js +9 -5
  48. package/dist/index102.js.map +1 -1
  49. package/dist/index103.cjs +20 -70
  50. package/dist/index103.cjs.map +1 -1
  51. package/dist/index103.js +19 -69
  52. package/dist/index103.js.map +1 -1
  53. package/dist/index104.cjs +14 -25
  54. package/dist/index104.cjs.map +1 -1
  55. package/dist/index104.js +13 -24
  56. package/dist/index104.js.map +1 -1
  57. package/dist/index105.cjs +10 -21
  58. package/dist/index105.cjs.map +1 -1
  59. package/dist/index105.js +9 -20
  60. package/dist/index105.js.map +1 -1
  61. package/dist/index106.cjs +70 -134
  62. package/dist/index106.cjs.map +1 -1
  63. package/dist/index106.js +69 -133
  64. package/dist/index106.js.map +1 -1
  65. package/dist/index107.cjs +8 -38
  66. package/dist/index107.cjs.map +1 -1
  67. package/dist/index107.js +9 -39
  68. package/dist/index107.js.map +1 -1
  69. package/dist/index108.cjs +48 -31
  70. package/dist/index108.cjs.map +1 -1
  71. package/dist/index108.js +47 -30
  72. package/dist/index108.js.map +1 -1
  73. package/dist/index109.cjs +18 -40
  74. package/dist/index109.cjs.map +1 -1
  75. package/dist/index109.js +17 -39
  76. package/dist/index109.js.map +1 -1
  77. package/dist/index11.cjs +1 -1
  78. package/dist/index11.js +1 -1
  79. package/dist/index110.cjs +31 -52
  80. package/dist/index110.cjs.map +1 -1
  81. package/dist/index110.js +31 -52
  82. package/dist/index110.js.map +1 -1
  83. package/dist/index111.cjs +49 -19
  84. package/dist/index111.cjs.map +1 -1
  85. package/dist/index111.js +49 -19
  86. package/dist/index111.js.map +1 -1
  87. package/dist/index112.cjs +35 -2
  88. package/dist/index112.cjs.map +1 -1
  89. package/dist/index112.js +36 -3
  90. package/dist/index112.js.map +1 -1
  91. package/dist/index113.cjs +10 -19
  92. package/dist/index113.cjs.map +1 -1
  93. package/dist/index113.js +11 -20
  94. package/dist/index113.js.map +1 -1
  95. package/dist/index114.cjs +18 -36
  96. package/dist/index114.cjs.map +1 -1
  97. package/dist/index114.js +18 -36
  98. package/dist/index114.js.map +1 -1
  99. package/dist/index115.cjs +39 -39
  100. package/dist/index115.cjs.map +1 -1
  101. package/dist/index115.js +38 -38
  102. package/dist/index115.js.map +1 -1
  103. package/dist/index116.cjs +69 -92
  104. package/dist/index116.cjs.map +1 -1
  105. package/dist/index116.js +68 -91
  106. package/dist/index116.js.map +1 -1
  107. package/dist/index117.cjs +52 -34
  108. package/dist/index117.cjs.map +1 -1
  109. package/dist/index117.js +52 -34
  110. package/dist/index117.js.map +1 -1
  111. package/dist/index118.cjs +16 -116
  112. package/dist/index118.cjs.map +1 -1
  113. package/dist/index118.js +15 -115
  114. package/dist/index118.js.map +1 -1
  115. package/dist/index119.cjs +16 -37
  116. package/dist/index119.cjs.map +1 -1
  117. package/dist/index119.js +16 -37
  118. package/dist/index119.js.map +1 -1
  119. package/dist/index12.cjs +1 -1
  120. package/dist/index12.js +1 -1
  121. package/dist/index120.cjs +17 -84
  122. package/dist/index120.cjs.map +1 -1
  123. package/dist/index120.js +16 -83
  124. package/dist/index120.js.map +1 -1
  125. package/dist/index121.cjs +2 -20
  126. package/dist/index121.cjs.map +1 -1
  127. package/dist/index121.js +3 -21
  128. package/dist/index121.js.map +1 -1
  129. package/dist/index122.cjs +19 -1164
  130. package/dist/index122.cjs.map +1 -1
  131. package/dist/index122.js +17 -1163
  132. package/dist/index122.js.map +1 -1
  133. package/dist/index123.cjs +6 -1575
  134. package/dist/index123.cjs.map +1 -1
  135. package/dist/index123.js +5 -1575
  136. package/dist/index123.js.map +1 -1
  137. package/dist/index124.cjs +21 -0
  138. package/dist/index124.cjs.map +1 -0
  139. package/dist/index124.js +21 -0
  140. package/dist/index124.js.map +1 -0
  141. package/dist/index125.cjs +87 -0
  142. package/dist/index125.cjs.map +1 -0
  143. package/dist/index125.js +87 -0
  144. package/dist/index125.js.map +1 -0
  145. package/dist/index126.cjs +24 -0
  146. package/dist/index126.cjs.map +1 -0
  147. package/dist/index126.js +24 -0
  148. package/dist/index126.js.map +1 -0
  149. package/dist/index127.cjs +36 -0
  150. package/dist/index127.cjs.map +1 -0
  151. package/dist/index127.js +36 -0
  152. package/dist/index127.js.map +1 -0
  153. package/dist/index128.cjs +1166 -0
  154. package/dist/index128.cjs.map +1 -0
  155. package/dist/index128.js +1167 -0
  156. package/dist/index128.js.map +1 -0
  157. package/dist/index129.cjs +1578 -0
  158. package/dist/index129.cjs.map +1 -0
  159. package/dist/index129.js +1579 -0
  160. package/dist/index129.js.map +1 -0
  161. package/dist/index13.cjs +1 -1
  162. package/dist/index13.js +1 -1
  163. package/dist/index130.cjs +37 -0
  164. package/dist/index130.cjs.map +1 -0
  165. package/dist/index130.js +37 -0
  166. package/dist/index130.js.map +1 -0
  167. package/dist/index14.cjs +1 -1
  168. package/dist/index14.js +1 -1
  169. package/dist/index15.cjs +1 -1
  170. package/dist/index15.js +1 -1
  171. package/dist/index16.cjs +2 -2
  172. package/dist/index16.js +2 -2
  173. package/dist/index17.cjs +1 -1
  174. package/dist/index17.js +1 -1
  175. package/dist/index18.cjs +1 -1
  176. package/dist/index18.js +1 -1
  177. package/dist/index19.cjs +1 -1
  178. package/dist/index19.js +1 -1
  179. package/dist/index20.cjs +1 -1
  180. package/dist/index20.js +1 -1
  181. package/dist/index21.cjs +1 -1
  182. package/dist/index21.js +1 -1
  183. package/dist/index22.cjs +2 -2
  184. package/dist/index22.js +2 -2
  185. package/dist/index23.cjs +2 -2
  186. package/dist/index23.js +2 -2
  187. package/dist/index24.cjs +2 -2
  188. package/dist/index24.js +2 -2
  189. package/dist/index25.cjs +1 -1
  190. package/dist/index25.js +1 -1
  191. package/dist/index26.cjs +1 -1
  192. package/dist/index26.js +1 -1
  193. package/dist/index27.cjs +1 -1
  194. package/dist/index27.js +1 -1
  195. package/dist/index28.cjs +1 -1
  196. package/dist/index28.js +1 -1
  197. package/dist/index29.cjs +2 -2
  198. package/dist/index29.js +2 -2
  199. package/dist/index30.cjs +37 -35
  200. package/dist/index30.cjs.map +1 -1
  201. package/dist/index30.js +35 -33
  202. package/dist/index30.js.map +1 -1
  203. package/dist/index31.cjs +4 -4
  204. package/dist/index31.js +4 -4
  205. package/dist/index32.cjs +78 -53
  206. package/dist/index32.cjs.map +1 -1
  207. package/dist/index32.js +79 -54
  208. package/dist/index32.js.map +1 -1
  209. package/dist/index33.cjs +1 -1
  210. package/dist/index33.js +1 -1
  211. package/dist/index34.cjs +2 -2
  212. package/dist/index34.js +2 -2
  213. package/dist/index35.cjs +2 -2
  214. package/dist/index35.js +2 -2
  215. package/dist/index36.cjs +2 -2
  216. package/dist/index36.js +2 -2
  217. package/dist/index37.cjs +1 -1
  218. package/dist/index37.js +1 -1
  219. package/dist/index38.cjs +2 -2
  220. package/dist/index38.js +2 -2
  221. package/dist/index39.cjs +1 -1
  222. package/dist/index39.js +1 -1
  223. package/dist/index40.cjs +2 -2
  224. package/dist/index40.js +2 -2
  225. package/dist/index41.cjs +2 -2
  226. package/dist/index41.js +2 -2
  227. package/dist/index42.cjs +2 -2
  228. package/dist/index42.js +2 -2
  229. package/dist/index43.cjs +1 -1
  230. package/dist/index43.js +1 -1
  231. package/dist/index44.cjs +2 -2
  232. package/dist/index44.js +2 -2
  233. package/dist/index45.cjs +4 -4
  234. package/dist/index45.js +4 -4
  235. package/dist/index46.cjs +1 -1
  236. package/dist/index46.js +1 -1
  237. package/dist/index47.cjs +1 -1
  238. package/dist/index47.js +1 -1
  239. package/dist/index48.cjs +1 -1
  240. package/dist/index48.js +1 -1
  241. package/dist/index49.cjs +2 -2
  242. package/dist/index49.js +2 -2
  243. package/dist/index50.cjs +2 -2
  244. package/dist/index50.js +2 -2
  245. package/dist/index51.cjs +1 -1
  246. package/dist/index51.js +1 -1
  247. package/dist/index52.cjs +3 -3
  248. package/dist/index52.js +3 -3
  249. package/dist/index53.cjs +1 -1
  250. package/dist/index53.js +1 -1
  251. package/dist/index54.cjs +1 -1
  252. package/dist/index54.js +1 -1
  253. package/dist/index55.cjs +3 -3
  254. package/dist/index55.js +3 -3
  255. package/dist/index56.cjs +1 -1
  256. package/dist/index56.js +1 -1
  257. package/dist/index57.cjs +1 -1
  258. package/dist/index57.js +1 -1
  259. package/dist/index58.cjs +2 -2
  260. package/dist/index58.js +2 -2
  261. package/dist/index60.cjs +7 -4
  262. package/dist/index60.cjs.map +1 -1
  263. package/dist/index60.js +7 -4
  264. package/dist/index60.js.map +1 -1
  265. package/dist/index61.cjs +20 -5
  266. package/dist/index61.cjs.map +1 -1
  267. package/dist/index61.js +21 -6
  268. package/dist/index61.js.map +1 -1
  269. package/dist/index62.cjs +18 -17
  270. package/dist/index62.cjs.map +1 -1
  271. package/dist/index62.js +17 -16
  272. package/dist/index62.js.map +1 -1
  273. package/dist/index63.cjs +4 -1
  274. package/dist/index63.cjs.map +1 -1
  275. package/dist/index63.js +4 -1
  276. package/dist/index63.js.map +1 -1
  277. package/dist/index64.cjs +142 -6
  278. package/dist/index64.cjs.map +1 -1
  279. package/dist/index64.js +141 -5
  280. package/dist/index64.js.map +1 -1
  281. package/dist/index65.cjs +22 -141
  282. package/dist/index65.cjs.map +1 -1
  283. package/dist/index65.js +20 -139
  284. package/dist/index65.js.map +1 -1
  285. package/dist/index66.cjs +19 -16
  286. package/dist/index66.cjs.map +1 -1
  287. package/dist/index66.js +19 -16
  288. package/dist/index66.js.map +1 -1
  289. package/dist/index67.cjs +16 -46
  290. package/dist/index67.cjs.map +1 -1
  291. package/dist/index67.js +16 -46
  292. package/dist/index67.js.map +1 -1
  293. package/dist/index68.cjs +37 -52
  294. package/dist/index68.cjs.map +1 -1
  295. package/dist/index68.js +37 -52
  296. package/dist/index68.js.map +1 -1
  297. package/dist/index69.cjs +28 -28
  298. package/dist/index69.js +28 -28
  299. package/dist/index70.cjs +20 -2
  300. package/dist/index70.cjs.map +1 -1
  301. package/dist/index70.js +21 -3
  302. package/dist/index70.js.map +1 -1
  303. package/dist/index71.cjs +4 -13
  304. package/dist/index71.cjs.map +1 -1
  305. package/dist/index71.js +4 -13
  306. package/dist/index71.js.map +1 -1
  307. package/dist/index72.cjs +116 -40
  308. package/dist/index72.cjs.map +1 -1
  309. package/dist/index72.js +115 -39
  310. package/dist/index72.js.map +1 -1
  311. package/dist/index73.cjs +33 -24
  312. package/dist/index73.cjs.map +1 -1
  313. package/dist/index73.js +34 -25
  314. package/dist/index73.js.map +1 -1
  315. package/dist/index74.cjs +52 -13
  316. package/dist/index74.cjs.map +1 -1
  317. package/dist/index74.js +53 -14
  318. package/dist/index74.js.map +1 -1
  319. package/dist/index75.cjs +39 -15
  320. package/dist/index75.cjs.map +1 -1
  321. package/dist/index75.js +38 -14
  322. package/dist/index75.js.map +1 -1
  323. package/dist/index76.cjs +92 -21
  324. package/dist/index76.cjs.map +1 -1
  325. package/dist/index76.js +91 -20
  326. package/dist/index76.js.map +1 -1
  327. package/dist/index77.cjs +34 -4
  328. package/dist/index77.cjs.map +1 -1
  329. package/dist/index77.js +35 -5
  330. package/dist/index77.js.map +1 -1
  331. package/dist/index78.cjs +22 -42
  332. package/dist/index78.cjs.map +1 -1
  333. package/dist/index78.js +21 -41
  334. package/dist/index78.js.map +1 -1
  335. package/dist/index79.cjs +69 -33
  336. package/dist/index79.cjs.map +1 -1
  337. package/dist/index79.js +68 -32
  338. package/dist/index79.js.map +1 -1
  339. package/dist/index80.cjs +7 -21
  340. package/dist/index80.cjs.map +1 -1
  341. package/dist/index80.js +6 -20
  342. package/dist/index80.js.map +1 -1
  343. package/dist/index81.cjs +39 -22
  344. package/dist/index81.cjs.map +1 -1
  345. package/dist/index81.js +38 -21
  346. package/dist/index81.js.map +1 -1
  347. package/dist/index82.cjs +127 -63
  348. package/dist/index82.cjs.map +1 -1
  349. package/dist/index82.js +127 -63
  350. package/dist/index82.js.map +1 -1
  351. package/dist/index83.cjs +45 -7
  352. package/dist/index83.cjs.map +1 -1
  353. package/dist/index83.js +44 -6
  354. package/dist/index83.js.map +1 -1
  355. package/dist/index84.cjs +2 -35
  356. package/dist/index84.cjs.map +1 -1
  357. package/dist/index84.js +3 -36
  358. package/dist/index84.js.map +1 -1
  359. package/dist/index85.cjs +39 -35
  360. package/dist/index85.cjs.map +1 -1
  361. package/dist/index85.js +38 -34
  362. package/dist/index85.js.map +1 -1
  363. package/dist/index86.cjs +33 -43
  364. package/dist/index86.cjs.map +1 -1
  365. package/dist/index86.js +32 -42
  366. package/dist/index86.js.map +1 -1
  367. package/dist/index87.cjs +6 -24
  368. package/dist/index87.cjs.map +1 -1
  369. package/dist/index87.js +5 -23
  370. package/dist/index87.js.map +1 -1
  371. package/dist/index88.cjs +22 -20
  372. package/dist/index88.cjs.map +1 -1
  373. package/dist/index88.js +21 -19
  374. package/dist/index88.js.map +1 -1
  375. package/dist/index89.cjs +25 -14
  376. package/dist/index89.cjs.map +1 -1
  377. package/dist/index89.js +24 -13
  378. package/dist/index89.js.map +1 -1
  379. package/dist/index90.cjs +42 -51
  380. package/dist/index90.cjs.map +1 -1
  381. package/dist/index90.js +42 -51
  382. package/dist/index90.js.map +1 -1
  383. package/dist/index91.cjs +21 -18
  384. package/dist/index91.cjs.map +1 -1
  385. package/dist/index91.js +22 -19
  386. package/dist/index91.js.map +1 -1
  387. package/dist/index92.cjs +22 -13
  388. package/dist/index92.cjs.map +1 -1
  389. package/dist/index92.js +22 -13
  390. package/dist/index92.js.map +1 -1
  391. package/dist/index93.cjs +2 -50
  392. package/dist/index93.cjs.map +1 -1
  393. package/dist/index93.js +3 -51
  394. package/dist/index93.js.map +1 -1
  395. package/dist/index94.cjs +13 -22
  396. package/dist/index94.cjs.map +1 -1
  397. package/dist/index94.js +14 -23
  398. package/dist/index94.js.map +1 -1
  399. package/dist/index95.cjs +3 -15
  400. package/dist/index95.cjs.map +1 -1
  401. package/dist/index95.js +3 -15
  402. package/dist/index95.js.map +1 -1
  403. package/dist/index96.cjs +19 -13
  404. package/dist/index96.cjs.map +1 -1
  405. package/dist/index96.js +19 -13
  406. package/dist/index96.js.map +1 -1
  407. package/dist/index97.cjs +35 -27
  408. package/dist/index97.cjs.map +1 -1
  409. package/dist/index97.js +34 -26
  410. package/dist/index97.js.map +1 -1
  411. package/dist/index98.cjs +43 -21
  412. package/dist/index98.cjs.map +1 -1
  413. package/dist/index98.js +42 -20
  414. package/dist/index98.js.map +1 -1
  415. package/dist/index99.cjs +24 -21
  416. package/dist/index99.cjs.map +1 -1
  417. package/dist/index99.js +23 -20
  418. package/dist/index99.js.map +1 -1
  419. package/dist/style.css +64 -5
  420. package/dist/types/geo.types.d.ts +14 -0
  421. package/dist/types/geo.types.d.ts.map +1 -1
  422. package/dist/types/index.d.ts +1 -1
  423. package/dist/types/index.d.ts.map +1 -1
  424. package/package.json +1 -1
package/dist/index122.cjs CHANGED
@@ -1,1166 +1,21 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- var _a;
6
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
- function M() {
8
- return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
9
- }
10
- exports.defaults = M();
11
- function G(u3) {
12
- exports.defaults = u3;
13
- }
14
- var _ = { exec: () => null };
15
- function k(u3, e = "") {
16
- let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r, i) => {
17
- let s = typeof i == "string" ? i : i.source;
18
- return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
19
- }, getRegex: () => new RegExp(t, e) };
20
- return n;
21
- }
22
- var be = (() => {
23
- try {
24
- return !!new RegExp("(?<=1)(?<!1)");
25
- } catch {
26
- return false;
27
- }
28
- })(), m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}>`) }, Re = /^(?:[ \t]*(?:\n|$))+/, Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Q = / {0,3}(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie = k(se).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ye = k(se).replace(/bull/g, Q).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Q).getRegex(), v = "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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = k(j).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(), K = { blockquote: Le, code: Oe, def: Se, fences: Te, heading: we, hr: C, html: _e, lheading: ie, list: $e, newline: Re, paragraph: oe, table: _, text: Pe }, ne = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Me = { ...K, lheading: ye, table: ne, paragraph: k(j).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ne).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, ze = { ...K, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(j).replace("hr", C).replace("heading", ` *#{1,6} *[^
29
- ]`).replace("lheading", ie).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ee = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, H = /[\s\p{P}\p{S}]/u, W = /[^\s\p{P}\p{S}]/u, Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, H).getRegex(), le = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, De = /(?:[^\s\p{P}\p{S}]|~)/u, qe = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ue = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ve = k(ue, "u").replace(/punct/g, z).getRegex(), He = k(ue, "u").replace(/punct/g, le).getRegex(), pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = k(pe, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Ge = k(pe, "gu").replace(/notPunctSpace/g, De).replace(/punctSpace/g, Be).replace(/punct/g, le).getRegex(), Ne = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Qe = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), je = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Fe = k(je, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, z).getRegex(), Ue = k(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), Ke = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[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])?)+(?![-_])/).getRegex(), We = k(U).replace("(?:-->|$)", "-->").getRegex(), Xe = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", We).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex(), he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex(), Ve = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex(), re = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: _, anyPunctuation: Ue, autolink: Ke, blockSkip: qe, br: ae, code: Ie, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: ve, emStrongRDelimAst: Ze, emStrongRDelimUnd: Ne, escape: Ee, link: Je, nolink: he, punctuation: Ce, reflink: ce, reflinkSearch: Ve, tag: Xe, text: Ae, url: _ }, Ye = { ...X, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: He, delLDelim: Qe, delRDelim: Fe, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", re).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", re).getRegex() }, et = { ...N, br: k(ae).replace("{2,}", "*").getRegex(), text: k(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, B = { normal: K, gfm: Me, pedantic: ze }, E = { normal: X, gfm: N, breaks: et, pedantic: Ye };
30
- var tt = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ke = (u3) => tt[u3];
31
- function T(u3, e) {
32
- if (e) {
33
- if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ke);
34
- } else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ke);
35
- return u3;
36
- }
37
- function J(u3) {
38
- try {
39
- u3 = encodeURI(u3).replace(m.percentDecode, "%");
40
- } catch {
41
- return null;
42
- }
43
- return u3;
44
- }
45
- function V(u3, e) {
46
- var _a2;
47
- let t = u3.replace(m.findPipe, (i, s, a) => {
48
- let o = false, l = s;
49
- for (; --l >= 0 && a[l] === "\\"; ) o = !o;
50
- return o ? "|" : " |";
51
- }), n = t.split(m.splitPipe), r = 0;
52
- if (n[0].trim() || n.shift(), n.length > 0 && !((_a2 = n.at(-1)) == null ? void 0 : _a2.trim()) && n.pop(), e) if (n.length > e) n.splice(e);
53
- else for (; n.length < e; ) n.push("");
54
- for (; r < n.length; r++) n[r] = n[r].trim().replace(m.slashPipe, "|");
55
- return n;
56
- }
57
- function I(u3, e, t) {
58
- let n = u3.length;
59
- if (n === 0) return "";
60
- let r = 0;
61
- for (; r < n; ) {
62
- let i = u3.charAt(n - r - 1);
63
- if (i === e && true) r++;
64
- else break;
65
- }
66
- return u3.slice(0, n - r);
67
- }
68
- function de(u3, e) {
69
- if (u3.indexOf(e[1]) === -1) return -1;
70
- let t = 0;
71
- for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
72
- else if (u3[n] === e[0]) t++;
73
- else if (u3[n] === e[1] && (t--, t < 0)) return n;
74
- return t > 0 ? -2 : -1;
75
- }
76
- function ge(u3, e = 0) {
77
- let t = e, n = "";
78
- for (let r of u3) if (r === " ") {
79
- let i = 4 - t % 4;
80
- n += " ".repeat(i), t += i;
81
- } else n += r, t++;
82
- return n;
83
- }
84
- function fe(u3, e, t, n, r) {
85
- let i = e.href, s = e.title || null, a = u3[1].replace(r.other.outputLinkReplace, "$1");
86
- n.state.inLink = true;
87
- let o = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s, text: a, tokens: n.inlineTokens(a) };
88
- return n.state.inLink = false, o;
89
- }
90
- function nt(u3, e, t) {
91
- let n = u3.match(t.other.indentCodeCompensation);
92
- if (n === null) return e;
93
- let r = n[1];
94
- return e.split(`
95
- `).map((i) => {
96
- let s = i.match(t.other.beginningSpace);
97
- if (s === null) return i;
98
- let [a] = s;
99
- return a.length >= r.length ? i.slice(r.length) : i;
100
- }).join(`
101
- `);
102
- }
103
- var w = class {
104
- constructor(e) {
105
- __publicField(this, "options");
106
- __publicField(this, "rules");
107
- __publicField(this, "lexer");
108
- this.options = e || exports.defaults;
109
- }
110
- space(e) {
111
- let t = this.rules.block.newline.exec(e);
112
- if (t && t[0].length > 0) return { type: "space", raw: t[0] };
113
- }
114
- code(e) {
115
- let t = this.rules.block.code.exec(e);
116
- if (t) {
117
- let n = t[0].replace(this.rules.other.codeRemoveIndent, "");
118
- return { type: "code", raw: t[0], codeBlockStyle: "indented", text: this.options.pedantic ? n : I(n, `
119
- `) };
120
- }
121
- }
122
- fences(e) {
123
- let t = this.rules.block.fences.exec(e);
124
- if (t) {
125
- let n = t[0], r = nt(n, t[3] || "", this.rules);
126
- return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
127
- }
128
- }
129
- heading(e) {
130
- let t = this.rules.block.heading.exec(e);
131
- if (t) {
132
- let n = t[2].trim();
133
- if (this.rules.other.endingHash.test(n)) {
134
- let r = I(n, "#");
135
- (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
136
- }
137
- return { type: "heading", raw: t[0], depth: t[1].length, text: n, tokens: this.lexer.inline(n) };
138
- }
139
- }
140
- hr(e) {
141
- let t = this.rules.block.hr.exec(e);
142
- if (t) return { type: "hr", raw: I(t[0], `
143
- `) };
144
- }
145
- blockquote(e) {
146
- let t = this.rules.block.blockquote.exec(e);
147
- if (t) {
148
- let n = I(t[0], `
149
- `).split(`
150
- `), r = "", i = "", s = [];
151
- for (; n.length > 0; ) {
152
- let a = false, o = [], l;
153
- for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) o.push(n[l]), a = true;
154
- else if (!a) o.push(n[l]);
155
- else break;
156
- n = n.slice(l);
157
- let p = o.join(`
158
- `), c = p.replace(this.rules.other.blockquoteSetextReplace, `
159
- $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
160
- r = r ? `${r}
161
- ${p}` : p, i = i ? `${i}
162
- ${c}` : c;
163
- let d = this.lexer.state.top;
164
- if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = d, n.length === 0) break;
165
- let h = s.at(-1);
166
- if ((h == null ? void 0 : h.type) === "code") break;
167
- if ((h == null ? void 0 : h.type) === "blockquote") {
168
- let R = h, f = R.raw + `
169
- ` + n.join(`
170
- `), S = this.blockquote(f);
171
- s[s.length - 1] = S, r = r.substring(0, r.length - R.raw.length) + S.raw, i = i.substring(0, i.length - R.text.length) + S.text;
172
- break;
173
- } else if ((h == null ? void 0 : h.type) === "list") {
174
- let R = h, f = R.raw + `
175
- ` + n.join(`
176
- `), S = this.list(f);
177
- s[s.length - 1] = S, r = r.substring(0, r.length - h.raw.length) + S.raw, i = i.substring(0, i.length - R.raw.length) + S.raw, n = f.substring(s.at(-1).raw.length).split(`
178
- `);
179
- continue;
180
- }
181
- }
182
- return { type: "blockquote", raw: r, tokens: s, text: i };
183
- }
184
- }
185
- list(e) {
186
- var _a2, _b;
187
- let t = this.rules.block.list.exec(e);
188
- if (t) {
189
- let n = t[1].trim(), r = n.length > 1, i = { type: "list", raw: "", ordered: r, start: r ? +n.slice(0, -1) : "", loose: false, items: [] };
190
- n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
191
- let s = this.rules.other.listItemRegex(n), a = false;
192
- for (; e; ) {
193
- let l = false, p = "", c = "";
194
- if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
195
- p = t[0], e = e.substring(p.length);
196
- let d = ge(t[2].split(`
197
- `, 1)[0], t[1].length), h = e.split(`
198
- `, 1)[0], R = !d.trim(), f = 0;
199
- if (this.options.pedantic ? (f = 2, c = d.trimStart()) : R ? f = t[1].length + 1 : (f = d.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = d.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
200
- `, e = e.substring(h.length + 1), l = true), !l) {
201
- let S = this.rules.other.nextBulletRegex(f), Y = this.rules.other.hrRegex(f), ee = this.rules.other.fencesBeginRegex(f), te = this.rules.other.headingBeginRegex(f), me = this.rules.other.htmlBeginRegex(f), xe = this.rules.other.blockquoteBeginRegex(f);
202
- for (; e; ) {
203
- let Z = e.split(`
204
- `, 1)[0], A;
205
- if (h = Z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), ee.test(h) || te.test(h) || me.test(h) || xe.test(h) || S.test(h) || Y.test(h)) break;
206
- if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) c += `
207
- ` + A.slice(f);
208
- else {
209
- if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(d) || te.test(d) || Y.test(d)) break;
210
- c += `
211
- ` + h;
212
- }
213
- R = !h.trim(), p += Z + `
214
- `, e = e.substring(Z.length + 1), d = A.slice(f);
215
- }
216
- }
217
- i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (a = true)), i.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(c), loose: false, text: c, tokens: [] }), i.raw += p;
218
- }
219
- let o = i.items.at(-1);
220
- if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
221
- else return;
222
- i.raw = i.raw.trimEnd();
223
- for (let l of i.items) {
224
- if (this.lexer.state.top = false, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
225
- if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), ((_a2 = l.tokens[0]) == null ? void 0 : _a2.type) === "text" || ((_b = l.tokens[0]) == null ? void 0 : _b.type) === "paragraph") {
226
- l.tokens[0].raw = l.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), l.tokens[0].text = l.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
227
- for (let c = this.lexer.inlineQueue.length - 1; c >= 0; c--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)) {
228
- this.lexer.inlineQueue[c].src = this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask, "");
229
- break;
230
- }
231
- }
232
- let p = this.rules.other.listTaskCheckbox.exec(l.raw);
233
- if (p) {
234
- let c = { type: "checkbox", raw: p[0] + " ", checked: p[0] !== "[ ]" };
235
- l.checked = c.checked, i.loose ? l.tokens[0] && ["paragraph", "text"].includes(l.tokens[0].type) && "tokens" in l.tokens[0] && l.tokens[0].tokens ? (l.tokens[0].raw = c.raw + l.tokens[0].raw, l.tokens[0].text = c.raw + l.tokens[0].text, l.tokens[0].tokens.unshift(c)) : l.tokens.unshift({ type: "paragraph", raw: c.raw, text: c.raw, tokens: [c] }) : l.tokens.unshift(c);
236
- }
237
- }
238
- if (!i.loose) {
239
- let p = l.tokens.filter((d) => d.type === "space"), c = p.length > 0 && p.some((d) => this.rules.other.anyLine.test(d.raw));
240
- i.loose = c;
241
- }
242
- }
243
- if (i.loose) for (let l of i.items) {
244
- l.loose = true;
245
- for (let p of l.tokens) p.type === "text" && (p.type = "paragraph");
246
- }
247
- return i;
248
- }
249
- }
250
- html(e) {
251
- let t = this.rules.block.html.exec(e);
252
- if (t) return { type: "html", block: true, raw: t[0], pre: t[1] === "pre" || t[1] === "script" || t[1] === "style", text: t[0] };
253
- }
254
- def(e) {
255
- let t = this.rules.block.def.exec(e);
256
- if (t) {
257
- let n = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), r = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", i = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
258
- return { type: "def", tag: n, raw: t[0], href: r, title: i };
259
- }
260
- }
261
- table(e) {
262
- var _a2;
263
- let t = this.rules.block.table.exec(e);
264
- if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
265
- let n = V(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = ((_a2 = t[3]) == null ? void 0 : _a2.trim()) ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
266
- `) : [], s = { type: "table", raw: t[0], header: [], align: [], rows: [] };
267
- if (n.length === r.length) {
268
- for (let a of r) this.rules.other.tableAlignRight.test(a) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(a) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(a) ? s.align.push("left") : s.align.push(null);
269
- for (let a = 0; a < n.length; a++) s.header.push({ text: n[a], tokens: this.lexer.inline(n[a]), header: true, align: s.align[a] });
270
- for (let a of i) s.rows.push(V(a, s.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s.align[l] })));
271
- return s;
272
- }
273
- }
274
- lheading(e) {
275
- let t = this.rules.block.lheading.exec(e);
276
- if (t) {
277
- let n = t[1].trim();
278
- return { type: "heading", raw: t[0], depth: t[2].charAt(0) === "=" ? 1 : 2, text: n, tokens: this.lexer.inline(n) };
279
- }
280
- }
281
- paragraph(e) {
282
- let t = this.rules.block.paragraph.exec(e);
283
- if (t) {
284
- let n = t[1].charAt(t[1].length - 1) === `
285
- ` ? t[1].slice(0, -1) : t[1];
286
- return { type: "paragraph", raw: t[0], text: n, tokens: this.lexer.inline(n) };
287
- }
288
- }
289
- text(e) {
290
- let t = this.rules.block.text.exec(e);
291
- if (t) return { type: "text", raw: t[0], text: t[0], tokens: this.lexer.inline(t[0]) };
292
- }
293
- escape(e) {
294
- let t = this.rules.inline.escape.exec(e);
295
- if (t) return { type: "escape", raw: t[0], text: t[1] };
296
- }
297
- tag(e) {
298
- let t = this.rules.inline.tag.exec(e);
299
- if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = true : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = false), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = true : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = false), { type: "html", raw: t[0], inLink: this.lexer.state.inLink, inRawBlock: this.lexer.state.inRawBlock, block: false, text: t[0] };
300
- }
301
- link(e) {
302
- let t = this.rules.inline.link.exec(e);
303
- if (t) {
304
- let n = t[2].trim();
305
- if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
306
- if (!this.rules.other.endAngleBracket.test(n)) return;
307
- let s = I(n.slice(0, -1), "\\");
308
- if ((n.length - s.length) % 2 === 0) return;
309
- } else {
310
- let s = de(t[2], "()");
311
- if (s === -2) return;
312
- if (s > -1) {
313
- let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
314
- t[2] = t[2].substring(0, s), t[0] = t[0].substring(0, o).trim(), t[3] = "";
315
- }
316
- }
317
- let r = t[2], i = "";
318
- if (this.options.pedantic) {
319
- let s = this.rules.other.pedanticHrefTitle.exec(r);
320
- s && (r = s[1], i = s[3]);
321
- } else i = t[3] ? t[3].slice(1, -1) : "";
322
- return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), fe(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
323
- }
324
- }
325
- reflink(e, t) {
326
- let n;
327
- if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
328
- let r = (n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " "), i = t[r.toLowerCase()];
329
- if (!i) {
330
- let s = n[0].charAt(0);
331
- return { type: "text", raw: s, text: s };
332
- }
333
- return fe(n, i, n[0], this.lexer, this.rules);
334
- }
335
- }
336
- emStrong(e, t, n = "") {
337
- let r = this.rules.inline.emStrongLDelim.exec(e);
338
- if (!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
339
- if (!(r[1] || r[3] || "") || !n || this.rules.inline.punctuation.exec(n)) {
340
- let s = [...r[0]].length - 1, a, o, l = s, p = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
341
- for (c.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = c.exec(t)) !== null; ) {
342
- if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
343
- if (o = [...a].length, r[3] || r[4]) {
344
- l += o;
345
- continue;
346
- } else if ((r[5] || r[6]) && s % 3 && !((s + o) % 3)) {
347
- p += o;
348
- continue;
349
- }
350
- if (l -= o, l > 0) continue;
351
- o = Math.min(o, o + l + p);
352
- let d = [...r[0]][0].length, h = e.slice(0, s + r.index + d + o);
353
- if (Math.min(s, o) % 2) {
354
- let f = h.slice(1, -1);
355
- return { type: "em", raw: h, text: f, tokens: this.lexer.inlineTokens(f) };
356
- }
357
- let R = h.slice(2, -2);
358
- return { type: "strong", raw: h, text: R, tokens: this.lexer.inlineTokens(R) };
359
- }
360
- }
361
- }
362
- codespan(e) {
363
- let t = this.rules.inline.code.exec(e);
364
- if (t) {
365
- let n = t[2].replace(this.rules.other.newLineCharGlobal, " "), r = this.rules.other.nonSpaceChar.test(n), i = this.rules.other.startingSpaceChar.test(n) && this.rules.other.endingSpaceChar.test(n);
366
- return r && i && (n = n.substring(1, n.length - 1)), { type: "codespan", raw: t[0], text: n };
367
- }
368
- }
369
- br(e) {
370
- let t = this.rules.inline.br.exec(e);
371
- if (t) return { type: "br", raw: t[0] };
372
- }
373
- del(e, t, n = "") {
374
- let r = this.rules.inline.delLDelim.exec(e);
375
- if (!r) return;
376
- if (!(r[1] || "") || !n || this.rules.inline.punctuation.exec(n)) {
377
- let s = [...r[0]].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
378
- for (p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) !== null; ) {
379
- if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [...a].length, o !== s)) continue;
380
- if (r[3] || r[4]) {
381
- l += o;
382
- continue;
383
- }
384
- if (l -= o, l > 0) continue;
385
- o = Math.min(o, o + l);
386
- let c = [...r[0]][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
387
- return { type: "del", raw: d, text: h, tokens: this.lexer.inlineTokens(h) };
388
- }
389
- }
390
- }
391
- autolink(e) {
392
- let t = this.rules.inline.autolink.exec(e);
393
- if (t) {
394
- let n, r;
395
- return t[2] === "@" ? (n = t[1], r = "mailto:" + n) : (n = t[1], r = n), { type: "link", raw: t[0], text: n, href: r, tokens: [{ type: "text", raw: n, text: n }] };
396
- }
397
- }
398
- url(e) {
399
- var _a2;
400
- let t;
401
- if (t = this.rules.inline.url.exec(e)) {
402
- let n, r;
403
- if (t[2] === "@") n = t[0], r = "mailto:" + n;
404
- else {
405
- let i;
406
- do
407
- i = t[0], t[0] = ((_a2 = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : _a2[0]) ?? "";
408
- while (i !== t[0]);
409
- n = t[0], t[1] === "www." ? r = "http://" + t[0] : r = t[0];
410
- }
411
- return { type: "link", raw: t[0], text: n, href: r, tokens: [{ type: "text", raw: n, text: n }] };
412
- }
413
- }
414
- inlineText(e) {
415
- let t = this.rules.inline.text.exec(e);
416
- if (t) {
417
- let n = this.lexer.state.inRawBlock;
418
- return { type: "text", raw: t[0], text: t[0], escaped: n };
419
- }
420
- }
421
- };
422
- var x = class u {
423
- constructor(e) {
424
- __publicField(this, "tokens");
425
- __publicField(this, "options");
426
- __publicField(this, "state");
427
- __publicField(this, "inlineQueue");
428
- __publicField(this, "tokenizer");
429
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || exports.defaults, this.options.tokenizer = this.options.tokenizer || new w(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
430
- let t = { other: m, block: B.normal, inline: E.normal };
431
- this.options.pedantic ? (t.block = B.pedantic, t.inline = E.pedantic) : this.options.gfm && (t.block = B.gfm, this.options.breaks ? t.inline = E.breaks : t.inline = E.gfm), this.tokenizer.rules = t;
432
- }
433
- static get rules() {
434
- return { block: B, inline: E };
435
- }
436
- static lex(e, t) {
437
- return new u(t).lex(e);
438
- }
439
- static lexInline(e, t) {
440
- return new u(t).inlineTokens(e);
441
- }
442
- lex(e) {
443
- e = e.replace(m.carriageReturn, `
444
- `), this.blockTokens(e, this.tokens);
445
- for (let t = 0; t < this.inlineQueue.length; t++) {
446
- let n = this.inlineQueue[t];
447
- this.inlineTokens(n.src, n.tokens);
448
- }
449
- return this.inlineQueue = [], this.tokens;
450
- }
451
- blockTokens(e, t = [], n = false) {
452
- var _a2, _b, _c;
453
- for (this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e; ) {
454
- let r;
455
- if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.block) == null ? void 0 : _b.some((s) => (r = s.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), true) : false)) continue;
456
- if (r = this.tokenizer.space(e)) {
457
- e = e.substring(r.raw.length);
458
- let s = t.at(-1);
459
- r.raw.length === 1 && s !== void 0 ? s.raw += `
460
- ` : t.push(r);
461
- continue;
462
- }
463
- if (r = this.tokenizer.code(e)) {
464
- e = e.substring(r.raw.length);
465
- let s = t.at(-1);
466
- (s == null ? void 0 : s.type) === "paragraph" || (s == null ? void 0 : s.type) === "text" ? (s.raw += (s.raw.endsWith(`
467
- `) ? "" : `
468
- `) + r.raw, s.text += `
469
- ` + r.text, this.inlineQueue.at(-1).src = s.text) : t.push(r);
470
- continue;
471
- }
472
- if (r = this.tokenizer.fences(e)) {
473
- e = e.substring(r.raw.length), t.push(r);
474
- continue;
475
- }
476
- if (r = this.tokenizer.heading(e)) {
477
- e = e.substring(r.raw.length), t.push(r);
478
- continue;
479
- }
480
- if (r = this.tokenizer.hr(e)) {
481
- e = e.substring(r.raw.length), t.push(r);
482
- continue;
483
- }
484
- if (r = this.tokenizer.blockquote(e)) {
485
- e = e.substring(r.raw.length), t.push(r);
486
- continue;
487
- }
488
- if (r = this.tokenizer.list(e)) {
489
- e = e.substring(r.raw.length), t.push(r);
490
- continue;
491
- }
492
- if (r = this.tokenizer.html(e)) {
493
- e = e.substring(r.raw.length), t.push(r);
494
- continue;
495
- }
496
- if (r = this.tokenizer.def(e)) {
497
- e = e.substring(r.raw.length);
498
- let s = t.at(-1);
499
- (s == null ? void 0 : s.type) === "paragraph" || (s == null ? void 0 : s.type) === "text" ? (s.raw += (s.raw.endsWith(`
500
- `) ? "" : `
501
- `) + r.raw, s.text += `
502
- ` + r.raw, this.inlineQueue.at(-1).src = s.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = { href: r.href, title: r.title }, t.push(r));
503
- continue;
504
- }
505
- if (r = this.tokenizer.table(e)) {
506
- e = e.substring(r.raw.length), t.push(r);
507
- continue;
508
- }
509
- if (r = this.tokenizer.lheading(e)) {
510
- e = e.substring(r.raw.length), t.push(r);
511
- continue;
512
- }
513
- let i = e;
514
- if ((_c = this.options.extensions) == null ? void 0 : _c.startBlock) {
515
- let s = 1 / 0, a = e.slice(1), o;
516
- this.options.extensions.startBlock.forEach((l) => {
517
- o = l.call({ lexer: this }, a), typeof o == "number" && o >= 0 && (s = Math.min(s, o));
518
- }), s < 1 / 0 && s >= 0 && (i = e.substring(0, s + 1));
519
- }
520
- if (this.state.top && (r = this.tokenizer.paragraph(i))) {
521
- let s = t.at(-1);
522
- n && (s == null ? void 0 : s.type) === "paragraph" ? (s.raw += (s.raw.endsWith(`
523
- `) ? "" : `
524
- `) + r.raw, s.text += `
525
- ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
526
- continue;
527
- }
528
- if (r = this.tokenizer.text(e)) {
529
- e = e.substring(r.raw.length);
530
- let s = t.at(-1);
531
- (s == null ? void 0 : s.type) === "text" ? (s.raw += (s.raw.endsWith(`
532
- `) ? "" : `
533
- `) + r.raw, s.text += `
534
- ` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r);
535
- continue;
536
- }
537
- if (e) {
538
- let s = "Infinite loop on byte: " + e.charCodeAt(0);
539
- if (this.options.silent) {
540
- console.error(s);
541
- break;
542
- } else throw new Error(s);
543
- }
544
- }
545
- return this.state.top = true, t;
546
- }
547
- inline(e, t = []) {
548
- return this.inlineQueue.push({ src: e, tokens: t }), t;
549
- }
550
- inlineTokens(e, t = []) {
551
- var _a2, _b, _c, _d, _e2;
552
- this.tokenizer.lexer = this;
553
- let n = e, r = null;
554
- if (this.tokens.links) {
555
- let o = Object.keys(this.tokens.links);
556
- if (o.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) !== null; ) o.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
557
- }
558
- for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) !== null; ) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
559
- let i;
560
- for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null; ) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
561
- n = ((_b = (_a2 = this.options.hooks) == null ? void 0 : _a2.emStrongMask) == null ? void 0 : _b.call({ lexer: this }, n)) ?? n;
562
- let s = false, a = "";
563
- for (; e; ) {
564
- s || (a = ""), s = false;
565
- let o;
566
- if ((_d = (_c = this.options.extensions) == null ? void 0 : _c.inline) == null ? void 0 : _d.some((p) => (o = p.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
567
- if (o = this.tokenizer.escape(e)) {
568
- e = e.substring(o.raw.length), t.push(o);
569
- continue;
570
- }
571
- if (o = this.tokenizer.tag(e)) {
572
- e = e.substring(o.raw.length), t.push(o);
573
- continue;
574
- }
575
- if (o = this.tokenizer.link(e)) {
576
- e = e.substring(o.raw.length), t.push(o);
577
- continue;
578
- }
579
- if (o = this.tokenizer.reflink(e, this.tokens.links)) {
580
- e = e.substring(o.raw.length);
581
- let p = t.at(-1);
582
- o.type === "text" && (p == null ? void 0 : p.type) === "text" ? (p.raw += o.raw, p.text += o.text) : t.push(o);
583
- continue;
584
- }
585
- if (o = this.tokenizer.emStrong(e, n, a)) {
586
- e = e.substring(o.raw.length), t.push(o);
587
- continue;
588
- }
589
- if (o = this.tokenizer.codespan(e)) {
590
- e = e.substring(o.raw.length), t.push(o);
591
- continue;
592
- }
593
- if (o = this.tokenizer.br(e)) {
594
- e = e.substring(o.raw.length), t.push(o);
595
- continue;
596
- }
597
- if (o = this.tokenizer.del(e, n, a)) {
598
- e = e.substring(o.raw.length), t.push(o);
599
- continue;
600
- }
601
- if (o = this.tokenizer.autolink(e)) {
602
- e = e.substring(o.raw.length), t.push(o);
603
- continue;
604
- }
605
- if (!this.state.inLink && (o = this.tokenizer.url(e))) {
606
- e = e.substring(o.raw.length), t.push(o);
607
- continue;
608
- }
609
- let l = e;
610
- if ((_e2 = this.options.extensions) == null ? void 0 : _e2.startInline) {
611
- let p = 1 / 0, c = e.slice(1), d;
612
- this.options.extensions.startInline.forEach((h) => {
613
- d = h.call({ lexer: this }, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
614
- }), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
615
- }
616
- if (o = this.tokenizer.inlineText(l)) {
617
- e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a = o.raw.slice(-1)), s = true;
618
- let p = t.at(-1);
619
- (p == null ? void 0 : p.type) === "text" ? (p.raw += o.raw, p.text += o.text) : t.push(o);
620
- continue;
621
- }
622
- if (e) {
623
- let p = "Infinite loop on byte: " + e.charCodeAt(0);
624
- if (this.options.silent) {
625
- console.error(p);
626
- break;
627
- } else throw new Error(p);
628
- }
629
- }
630
- return t;
631
- }
632
- };
633
- var y = class {
634
- constructor(e) {
635
- __publicField(this, "options");
636
- __publicField(this, "parser");
637
- this.options = e || exports.defaults;
638
- }
639
- space(e) {
640
- return "";
641
- }
642
- code({ text: e, lang: t, escaped: n }) {
643
- var _a2;
644
- let r = (_a2 = (t || "").match(m.notSpaceStart)) == null ? void 0 : _a2[0], i = e.replace(m.endingNewline, "") + `
645
- `;
646
- return r ? '<pre><code class="language-' + T(r) + '">' + (n ? i : T(i, true)) + `</code></pre>
647
- ` : "<pre><code>" + (n ? i : T(i, true)) + `</code></pre>
648
- `;
649
- }
650
- blockquote({ tokens: e }) {
651
- return `<blockquote>
652
- ${this.parser.parse(e)}</blockquote>
653
- `;
654
- }
655
- html({ text: e }) {
656
- return e;
657
- }
658
- def(e) {
659
- return "";
660
- }
661
- heading({ tokens: e, depth: t }) {
662
- return `<h${t}>${this.parser.parseInline(e)}</h${t}>
663
- `;
664
- }
665
- hr(e) {
666
- return `<hr>
667
- `;
668
- }
669
- list(e) {
670
- let t = e.ordered, n = e.start, r = "";
671
- for (let a = 0; a < e.items.length; a++) {
672
- let o = e.items[a];
673
- r += this.listitem(o);
674
- }
675
- let i = t ? "ol" : "ul", s = t && n !== 1 ? ' start="' + n + '"' : "";
676
- return "<" + i + s + `>
677
- ` + r + "</" + i + `>
678
- `;
679
- }
680
- listitem(e) {
681
- return `<li>${this.parser.parse(e.tokens)}</li>
682
- `;
683
- }
684
- checkbox({ checked: e }) {
685
- return "<input " + (e ? 'checked="" ' : "") + 'disabled="" type="checkbox"> ';
686
- }
687
- paragraph({ tokens: e }) {
688
- return `<p>${this.parser.parseInline(e)}</p>
689
- `;
690
- }
691
- table(e) {
692
- let t = "", n = "";
693
- for (let i = 0; i < e.header.length; i++) n += this.tablecell(e.header[i]);
694
- t += this.tablerow({ text: n });
695
- let r = "";
696
- for (let i = 0; i < e.rows.length; i++) {
697
- let s = e.rows[i];
698
- n = "";
699
- for (let a = 0; a < s.length; a++) n += this.tablecell(s[a]);
700
- r += this.tablerow({ text: n });
701
- }
702
- return r && (r = `<tbody>${r}</tbody>`), `<table>
703
- <thead>
704
- ` + t + `</thead>
705
- ` + r + `</table>
706
- `;
707
- }
708
- tablerow({ text: e }) {
709
- return `<tr>
710
- ${e}</tr>
711
- `;
712
- }
713
- tablecell(e) {
714
- let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
715
- return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
716
- `;
717
- }
718
- strong({ tokens: e }) {
719
- return `<strong>${this.parser.parseInline(e)}</strong>`;
720
- }
721
- em({ tokens: e }) {
722
- return `<em>${this.parser.parseInline(e)}</em>`;
723
- }
724
- codespan({ text: e }) {
725
- return `<code>${T(e, true)}</code>`;
726
- }
727
- br(e) {
728
- return "<br>";
729
- }
730
- del({ tokens: e }) {
731
- return `<del>${this.parser.parseInline(e)}</del>`;
732
- }
733
- link({ href: e, title: t, tokens: n }) {
734
- let r = this.parser.parseInline(n), i = J(e);
735
- if (i === null) return r;
736
- e = i;
737
- let s = '<a href="' + e + '"';
738
- return t && (s += ' title="' + T(t) + '"'), s += ">" + r + "</a>", s;
739
- }
740
- image({ href: e, title: t, text: n, tokens: r }) {
741
- r && (n = this.parser.parseInline(r, this.parser.textRenderer));
742
- let i = J(e);
743
- if (i === null) return T(n);
744
- e = i;
745
- let s = `<img src="${e}" alt="${T(n)}"`;
746
- return t && (s += ` title="${T(t)}"`), s += ">", s;
747
- }
748
- text(e) {
749
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : T(e.text);
750
- }
751
- };
752
- var $ = class {
753
- strong({ text: e }) {
754
- return e;
755
- }
756
- em({ text: e }) {
757
- return e;
758
- }
759
- codespan({ text: e }) {
760
- return e;
761
- }
762
- del({ text: e }) {
763
- return e;
764
- }
765
- html({ text: e }) {
766
- return e;
767
- }
768
- text({ text: e }) {
769
- return e;
770
- }
771
- link({ text: e }) {
772
- return "" + e;
773
- }
774
- image({ text: e }) {
775
- return "" + e;
776
- }
777
- br() {
778
- return "";
779
- }
780
- checkbox({ raw: e }) {
781
- return e;
782
- }
783
- };
784
- var b = class u2 {
785
- constructor(e) {
786
- __publicField(this, "options");
787
- __publicField(this, "renderer");
788
- __publicField(this, "textRenderer");
789
- this.options = e || exports.defaults, this.options.renderer = this.options.renderer || new y(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
790
- }
791
- static parse(e, t) {
792
- return new u2(t).parse(e);
793
- }
794
- static parseInline(e, t) {
795
- return new u2(t).parseInline(e);
796
- }
797
- parse(e) {
798
- var _a2, _b;
799
- this.renderer.parser = this;
800
- let t = "";
801
- for (let n = 0; n < e.length; n++) {
802
- let r = e[n];
803
- if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.renderers) == null ? void 0 : _b[r.type]) {
804
- let s = r, a = this.options.extensions.renderers[s.type].call({ parser: this }, s);
805
- if (a !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(s.type)) {
806
- t += a || "";
807
- continue;
808
- }
809
- }
810
- let i = r;
811
- switch (i.type) {
812
- case "space": {
813
- t += this.renderer.space(i);
814
- break;
815
- }
816
- case "hr": {
817
- t += this.renderer.hr(i);
818
- break;
819
- }
820
- case "heading": {
821
- t += this.renderer.heading(i);
822
- break;
823
- }
824
- case "code": {
825
- t += this.renderer.code(i);
826
- break;
827
- }
828
- case "table": {
829
- t += this.renderer.table(i);
830
- break;
831
- }
832
- case "blockquote": {
833
- t += this.renderer.blockquote(i);
834
- break;
835
- }
836
- case "list": {
837
- t += this.renderer.list(i);
838
- break;
839
- }
840
- case "checkbox": {
841
- t += this.renderer.checkbox(i);
842
- break;
843
- }
844
- case "html": {
845
- t += this.renderer.html(i);
846
- break;
847
- }
848
- case "def": {
849
- t += this.renderer.def(i);
850
- break;
851
- }
852
- case "paragraph": {
853
- t += this.renderer.paragraph(i);
854
- break;
855
- }
856
- case "text": {
857
- t += this.renderer.text(i);
858
- break;
859
- }
860
- default: {
861
- let s = 'Token with "' + i.type + '" type was not found.';
862
- if (this.options.silent) return console.error(s), "";
863
- throw new Error(s);
864
- }
865
- }
866
- }
867
- return t;
868
- }
869
- parseInline(e, t = this.renderer) {
870
- var _a2, _b;
871
- this.renderer.parser = this;
872
- let n = "";
873
- for (let r = 0; r < e.length; r++) {
874
- let i = e[r];
875
- if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.renderers) == null ? void 0 : _b[i.type]) {
876
- let a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
877
- if (a !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i.type)) {
878
- n += a || "";
879
- continue;
880
- }
881
- }
882
- let s = i;
883
- switch (s.type) {
884
- case "escape": {
885
- n += t.text(s);
886
- break;
887
- }
888
- case "html": {
889
- n += t.html(s);
890
- break;
891
- }
892
- case "link": {
893
- n += t.link(s);
894
- break;
895
- }
896
- case "image": {
897
- n += t.image(s);
898
- break;
899
- }
900
- case "checkbox": {
901
- n += t.checkbox(s);
902
- break;
903
- }
904
- case "strong": {
905
- n += t.strong(s);
906
- break;
907
- }
908
- case "em": {
909
- n += t.em(s);
910
- break;
911
- }
912
- case "codespan": {
913
- n += t.codespan(s);
914
- break;
915
- }
916
- case "br": {
917
- n += t.br(s);
918
- break;
919
- }
920
- case "del": {
921
- n += t.del(s);
922
- break;
923
- }
924
- case "text": {
925
- n += t.text(s);
926
- break;
927
- }
928
- default: {
929
- let a = 'Token with "' + s.type + '" type was not found.';
930
- if (this.options.silent) return console.error(a), "";
931
- throw new Error(a);
932
- }
933
- }
934
- }
935
- return n;
936
- }
937
- };
938
- var P = (_a = class {
939
- constructor(e) {
940
- __publicField(this, "options");
941
- __publicField(this, "block");
942
- this.options = e || exports.defaults;
943
- }
944
- preprocess(e) {
945
- return e;
946
- }
947
- postprocess(e) {
948
- return e;
949
- }
950
- processAllTokens(e) {
951
- return e;
952
- }
953
- emStrongMask(e) {
954
- return e;
955
- }
956
- provideLexer(e = this.block) {
957
- return e ? x.lex : x.lexInline;
958
- }
959
- provideParser(e = this.block) {
960
- return e ? b.parse : b.parseInline;
961
- }
962
- }, __publicField(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
963
- var D = class {
964
- constructor(...e) {
965
- __publicField(this, "defaults", M());
966
- __publicField(this, "options", this.setOptions);
967
- __publicField(this, "parse", this.parseMarkdown(true));
968
- __publicField(this, "parseInline", this.parseMarkdown(false));
969
- __publicField(this, "Parser", b);
970
- __publicField(this, "Renderer", y);
971
- __publicField(this, "TextRenderer", $);
972
- __publicField(this, "Lexer", x);
973
- __publicField(this, "Tokenizer", w);
974
- __publicField(this, "Hooks", P);
975
- this.use(...e);
976
- }
977
- walkTokens(e, t) {
978
- var _a2, _b;
979
- let n = [];
980
- for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
981
- case "table": {
982
- let i = r;
983
- for (let s of i.header) n = n.concat(this.walkTokens(s.tokens, t));
984
- for (let s of i.rows) for (let a of s) n = n.concat(this.walkTokens(a.tokens, t));
985
- break;
986
- }
987
- case "list": {
988
- let i = r;
989
- n = n.concat(this.walkTokens(i.items, t));
990
- break;
991
- }
992
- default: {
993
- let i = r;
994
- ((_b = (_a2 = this.defaults.extensions) == null ? void 0 : _a2.childTokens) == null ? void 0 : _b[i.type]) ? this.defaults.extensions.childTokens[i.type].forEach((s) => {
995
- let a = i[s].flat(1 / 0);
996
- n = n.concat(this.walkTokens(a, t));
997
- }) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
998
- }
999
- }
1000
- return n;
1001
- }
1002
- use(...e) {
1003
- let t = this.defaults.extensions || { renderers: {}, childTokens: {} };
1004
- return e.forEach((n) => {
1005
- let r = { ...n };
1006
- if (r.async = this.defaults.async || r.async || false, n.extensions && (n.extensions.forEach((i) => {
1007
- if (!i.name) throw new Error("extension name required");
1008
- if ("renderer" in i) {
1009
- let s = t.renderers[i.name];
1010
- s ? t.renderers[i.name] = function(...a) {
1011
- let o = i.renderer.apply(this, a);
1012
- return o === false && (o = s.apply(this, a)), o;
1013
- } : t.renderers[i.name] = i.renderer;
1014
- }
1015
- if ("tokenizer" in i) {
1016
- if (!i.level || i.level !== "block" && i.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
1017
- let s = t[i.level];
1018
- s ? s.unshift(i.tokenizer) : t[i.level] = [i.tokenizer], i.start && (i.level === "block" ? t.startBlock ? t.startBlock.push(i.start) : t.startBlock = [i.start] : i.level === "inline" && (t.startInline ? t.startInline.push(i.start) : t.startInline = [i.start]));
1019
- }
1020
- "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
1021
- }), r.extensions = t), n.renderer) {
1022
- let i = this.defaults.renderer || new y(this.defaults);
1023
- for (let s in n.renderer) {
1024
- if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
1025
- if (["options", "parser"].includes(s)) continue;
1026
- let a = s, o = n.renderer[a], l = i[a];
1027
- i[a] = (...p) => {
1028
- let c = o.apply(i, p);
1029
- return c === false && (c = l.apply(i, p)), c || "";
1030
- };
1031
- }
1032
- r.renderer = i;
1033
- }
1034
- if (n.tokenizer) {
1035
- let i = this.defaults.tokenizer || new w(this.defaults);
1036
- for (let s in n.tokenizer) {
1037
- if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
1038
- if (["options", "rules", "lexer"].includes(s)) continue;
1039
- let a = s, o = n.tokenizer[a], l = i[a];
1040
- i[a] = (...p) => {
1041
- let c = o.apply(i, p);
1042
- return c === false && (c = l.apply(i, p)), c;
1043
- };
1044
- }
1045
- r.tokenizer = i;
1046
- }
1047
- if (n.hooks) {
1048
- let i = this.defaults.hooks || new P();
1049
- for (let s in n.hooks) {
1050
- if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
1051
- if (["options", "block"].includes(s)) continue;
1052
- let a = s, o = n.hooks[a], l = i[a];
1053
- P.passThroughHooks.has(s) ? i[a] = (p) => {
1054
- if (this.defaults.async && P.passThroughHooksRespectAsync.has(s)) return (async () => {
1055
- let d = await o.call(i, p);
1056
- return l.call(i, d);
1057
- })();
1058
- let c = o.call(i, p);
1059
- return l.call(i, c);
1060
- } : i[a] = (...p) => {
1061
- if (this.defaults.async) return (async () => {
1062
- let d = await o.apply(i, p);
1063
- return d === false && (d = await l.apply(i, p)), d;
1064
- })();
1065
- let c = o.apply(i, p);
1066
- return c === false && (c = l.apply(i, p)), c;
1067
- };
1068
- }
1069
- r.hooks = i;
1070
- }
1071
- if (n.walkTokens) {
1072
- let i = this.defaults.walkTokens, s = n.walkTokens;
1073
- r.walkTokens = function(a) {
1074
- let o = [];
1075
- return o.push(s.call(this, a)), i && (o = o.concat(i.call(this, a))), o;
1076
- };
1077
- }
1078
- this.defaults = { ...this.defaults, ...r };
1079
- }), this;
1080
- }
1081
- setOptions(e) {
1082
- return this.defaults = { ...this.defaults, ...e }, this;
1083
- }
1084
- lexer(e, t) {
1085
- return x.lex(e, t ?? this.defaults);
1086
- }
1087
- parser(e, t) {
1088
- return b.parse(e, t ?? this.defaults);
1089
- }
1090
- parseMarkdown(e) {
1091
- return (n, r) => {
1092
- let i = { ...r }, s = { ...this.defaults, ...i }, a = this.onError(!!s.silent, !!s.async);
1093
- if (this.defaults.async === true && i.async === false) return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1094
- if (typeof n > "u" || n === null) return a(new Error("marked(): input parameter is undefined or null"));
1095
- if (typeof n != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
1096
- if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async) return (async () => {
1097
- let o = s.hooks ? await s.hooks.preprocess(n) : n, p = await (s.hooks ? await s.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(p) : p;
1098
- s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
1099
- let h = await (s.hooks ? await s.hooks.provideParser(e) : e ? b.parse : b.parseInline)(c, s);
1100
- return s.hooks ? await s.hooks.postprocess(h) : h;
1101
- })().catch(a);
1102
- try {
1103
- s.hooks && (n = s.hooks.preprocess(n));
1104
- let l = (s.hooks ? s.hooks.provideLexer(e) : e ? x.lex : x.lexInline)(n, s);
1105
- s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
1106
- let c = (s.hooks ? s.hooks.provideParser(e) : e ? b.parse : b.parseInline)(l, s);
1107
- return s.hooks && (c = s.hooks.postprocess(c)), c;
1108
- } catch (o) {
1109
- return a(o);
1110
- }
1111
- };
1112
- }
1113
- onError(e, t) {
1114
- return (n) => {
1115
- if (n.message += `
1116
- Please report this to https://github.com/markedjs/marked.`, e) {
1117
- let r = "<p>An error occurred:</p><pre>" + T(n.message + "", true) + "</pre>";
1118
- return t ? Promise.resolve(r) : r;
1119
- }
1120
- if (t) return Promise.reject(n);
1121
- throw n;
1122
- };
1123
- }
1124
- };
1125
- var L = new D();
1126
- function g(u3, e) {
1127
- return L.parse(u3, e);
1128
- }
1129
- g.options = g.setOptions = function(u3) {
1130
- return L.setOptions(u3), g.defaults = L.defaults, G(g.defaults), g;
1131
- };
1132
- g.getDefaults = M;
1133
- g.defaults = exports.defaults;
1134
- g.use = function(...u3) {
1135
- return L.use(...u3), g.defaults = L.defaults, G(g.defaults), g;
1136
- };
1137
- g.walkTokens = function(u3, e) {
1138
- return L.walkTokens(u3, e);
1139
- };
1140
- g.parseInline = L.parseInline;
1141
- g.Parser = b;
1142
- g.parser = b.parse;
1143
- g.Renderer = y;
1144
- g.TextRenderer = $;
1145
- g.Lexer = x;
1146
- g.lexer = x.lex;
1147
- g.Tokenizer = w;
1148
- g.Hooks = P;
1149
- g.parse = g;
1150
- g.options;
1151
- g.setOptions;
1152
- g.use;
1153
- g.walkTokens;
1154
- g.parseInline;
1155
- b.parse;
1156
- x.lex;
1157
- exports.Hooks = P;
1158
- exports.Lexer = x;
1159
- exports.Marked = D;
1160
- exports.Parser = b;
1161
- exports.Renderer = y;
1162
- exports.TextRenderer = $;
1163
- exports.Tokenizer = w;
1164
- exports.getDefaults = M;
1165
- exports.marked = g;
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const region = "krc-region-4A3qS";
4
+ const toast = "krc-toast-VuzaK";
5
+ const toastIn = "krc-toast-in-TA6-r";
6
+ const success = "krc-success-oDnTy";
7
+ const error = "krc-error-dSTQn";
8
+ const styles = {
9
+ region,
10
+ toast,
11
+ toastIn,
12
+ success,
13
+ error
14
+ };
15
+ exports.default = styles;
16
+ exports.error = error;
17
+ exports.region = region;
18
+ exports.success = success;
19
+ exports.toast = toast;
20
+ exports.toastIn = toastIn;
1166
21
  //# sourceMappingURL=index122.cjs.map