duoyun-ui 0.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 (392) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/docs/.gitignore +4 -0
  4. package/docs/104.bundle.js +19 -0
  5. package/docs/283.bundle.js +47 -0
  6. package/docs/354.bundle.js +1133 -0
  7. package/docs/354.bundle.js.LICENSE.txt +13 -0
  8. package/docs/587.bundle.js +26 -0
  9. package/docs/810.bundle.js +1 -0
  10. package/docs/gem-book.json +84 -0
  11. package/docs/index.html +1 -0
  12. package/docs/main.bundle.js +1 -0
  13. package/docs/robots.txt +2 -0
  14. package/docs/service-worker.js +1 -0
  15. package/docs/workbox-62d1f9d5.js +1 -0
  16. package/elements/action-text.d.ts +12 -0
  17. package/elements/action-text.d.ts.map +1 -0
  18. package/elements/action-text.js +63 -0
  19. package/elements/action-text.js.map +1 -0
  20. package/elements/area-chart.d.ts +35 -0
  21. package/elements/area-chart.d.ts.map +1 -0
  22. package/elements/area-chart.js +408 -0
  23. package/elements/area-chart.js.map +1 -0
  24. package/elements/avatar.d.ts +42 -0
  25. package/elements/avatar.d.ts.map +1 -0
  26. package/elements/avatar.js +190 -0
  27. package/elements/avatar.js.map +1 -0
  28. package/elements/banner.d.ts +21 -0
  29. package/elements/banner.d.ts.map +1 -0
  30. package/elements/banner.js +136 -0
  31. package/elements/banner.js.map +1 -0
  32. package/elements/bar-chart.d.ts +23 -0
  33. package/elements/bar-chart.d.ts.map +1 -0
  34. package/elements/bar-chart.js +170 -0
  35. package/elements/bar-chart.js.map +1 -0
  36. package/elements/base/chart.d.ts +74 -0
  37. package/elements/base/chart.d.ts.map +1 -0
  38. package/elements/base/chart.js +299 -0
  39. package/elements/base/chart.js.map +1 -0
  40. package/elements/base/loadable.d.ts +16 -0
  41. package/elements/base/loadable.d.ts.map +1 -0
  42. package/elements/base/loadable.js +77 -0
  43. package/elements/base/loadable.js.map +1 -0
  44. package/elements/base/resize.d.ts +15 -0
  45. package/elements/base/resize.d.ts.map +1 -0
  46. package/elements/base/resize.js +31 -0
  47. package/elements/base/resize.js.map +1 -0
  48. package/elements/base/scroll.d.ts +11 -0
  49. package/elements/base/scroll.d.ts.map +1 -0
  50. package/elements/base/scroll.js +90 -0
  51. package/elements/base/scroll.js.map +1 -0
  52. package/elements/base/visible.d.ts +12 -0
  53. package/elements/base/visible.d.ts.map +1 -0
  54. package/elements/base/visible.js +37 -0
  55. package/elements/base/visible.js.map +1 -0
  56. package/elements/breadcrumbs.d.ts +20 -0
  57. package/elements/breadcrumbs.d.ts.map +1 -0
  58. package/elements/breadcrumbs.js +88 -0
  59. package/elements/breadcrumbs.js.map +1 -0
  60. package/elements/button.d.ts +30 -0
  61. package/elements/button.d.ts.map +1 -0
  62. package/elements/button.js +225 -0
  63. package/elements/button.js.map +1 -0
  64. package/elements/card.d.ts +26 -0
  65. package/elements/card.d.ts.map +1 -0
  66. package/elements/card.js +163 -0
  67. package/elements/card.js.map +1 -0
  68. package/elements/cascader-pick.d.ts +22 -0
  69. package/elements/cascader-pick.d.ts.map +1 -0
  70. package/elements/cascader-pick.js +172 -0
  71. package/elements/cascader-pick.js.map +1 -0
  72. package/elements/cascader.d.ts +29 -0
  73. package/elements/cascader.d.ts.map +1 -0
  74. package/elements/cascader.js +247 -0
  75. package/elements/cascader.js.map +1 -0
  76. package/elements/chart-tooltip.d.ts +29 -0
  77. package/elements/chart-tooltip.d.ts.map +1 -0
  78. package/elements/chart-tooltip.js +150 -0
  79. package/elements/chart-tooltip.js.map +1 -0
  80. package/elements/chart-zoom.d.ts +20 -0
  81. package/elements/chart-zoom.d.ts.map +1 -0
  82. package/elements/chart-zoom.js +207 -0
  83. package/elements/chart-zoom.js.map +1 -0
  84. package/elements/checkbox.d.ts +20 -0
  85. package/elements/checkbox.d.ts.map +1 -0
  86. package/elements/checkbox.js +108 -0
  87. package/elements/checkbox.js.map +1 -0
  88. package/elements/coach-mark.d.ts +39 -0
  89. package/elements/coach-mark.d.ts.map +1 -0
  90. package/elements/coach-mark.js +212 -0
  91. package/elements/coach-mark.js.map +1 -0
  92. package/elements/code-block.d.ts +14 -0
  93. package/elements/code-block.d.ts.map +1 -0
  94. package/elements/code-block.js +427 -0
  95. package/elements/code-block.js.map +1 -0
  96. package/elements/collapse.d.ts +22 -0
  97. package/elements/collapse.d.ts.map +1 -0
  98. package/elements/collapse.js +111 -0
  99. package/elements/collapse.js.map +1 -0
  100. package/elements/color-panel.d.ts +30 -0
  101. package/elements/color-panel.d.ts.map +1 -0
  102. package/elements/color-panel.js +383 -0
  103. package/elements/color-panel.js.map +1 -0
  104. package/elements/color-pick.d.ts +14 -0
  105. package/elements/color-pick.d.ts.map +1 -0
  106. package/elements/color-pick.js +81 -0
  107. package/elements/color-pick.js.map +1 -0
  108. package/elements/compartment.d.ts +9 -0
  109. package/elements/compartment.d.ts.map +1 -0
  110. package/elements/compartment.js +32 -0
  111. package/elements/compartment.js.map +1 -0
  112. package/elements/copy.d.ts +20 -0
  113. package/elements/copy.d.ts.map +1 -0
  114. package/elements/copy.js +160 -0
  115. package/elements/copy.js.map +1 -0
  116. package/elements/date-panel.d.ts +29 -0
  117. package/elements/date-panel.d.ts.map +1 -0
  118. package/elements/date-panel.js +220 -0
  119. package/elements/date-panel.js.map +1 -0
  120. package/elements/date-pick.d.ts +23 -0
  121. package/elements/date-pick.d.ts.map +1 -0
  122. package/elements/date-pick.js +107 -0
  123. package/elements/date-pick.js.map +1 -0
  124. package/elements/date-range-panel.d.ts +28 -0
  125. package/elements/date-range-panel.d.ts.map +1 -0
  126. package/elements/date-range-panel.js +154 -0
  127. package/elements/date-range-panel.js.map +1 -0
  128. package/elements/date-range-pick.d.ts +26 -0
  129. package/elements/date-range-pick.d.ts.map +1 -0
  130. package/elements/date-range-pick.js +159 -0
  131. package/elements/date-range-pick.js.map +1 -0
  132. package/elements/divider.d.ts +15 -0
  133. package/elements/divider.d.ts.map +1 -0
  134. package/elements/divider.js +95 -0
  135. package/elements/divider.js.map +1 -0
  136. package/elements/donut-chart.d.ts +19 -0
  137. package/elements/donut-chart.d.ts.map +1 -0
  138. package/elements/donut-chart.js +140 -0
  139. package/elements/donut-chart.js.map +1 -0
  140. package/elements/drawer.d.ts +9 -0
  141. package/elements/drawer.d.ts.map +1 -0
  142. package/elements/drawer.js +45 -0
  143. package/elements/drawer.js.map +1 -0
  144. package/elements/drop-area.d.ts +18 -0
  145. package/elements/drop-area.d.ts.map +1 -0
  146. package/elements/drop-area.js +155 -0
  147. package/elements/drop-area.js.map +1 -0
  148. package/elements/empty.d.ts +8 -0
  149. package/elements/empty.d.ts.map +1 -0
  150. package/elements/empty.js +33 -0
  151. package/elements/empty.js.map +1 -0
  152. package/elements/file-pick.d.ts +28 -0
  153. package/elements/file-pick.d.ts.map +1 -0
  154. package/elements/file-pick.js +226 -0
  155. package/elements/file-pick.js.map +1 -0
  156. package/elements/form.d.ts +76 -0
  157. package/elements/form.d.ts.map +1 -0
  158. package/elements/form.js +372 -0
  159. package/elements/form.js.map +1 -0
  160. package/elements/heading.d.ts +13 -0
  161. package/elements/heading.d.ts.map +1 -0
  162. package/elements/heading.js +88 -0
  163. package/elements/heading.js.map +1 -0
  164. package/elements/help-text.d.ts +11 -0
  165. package/elements/help-text.d.ts.map +1 -0
  166. package/elements/help-text.js +53 -0
  167. package/elements/help-text.js.map +1 -0
  168. package/elements/icons.d.ts +10 -0
  169. package/elements/icons.d.ts.map +1 -0
  170. package/elements/icons.js +71 -0
  171. package/elements/icons.js.map +1 -0
  172. package/elements/image-preview.d.ts +26 -0
  173. package/elements/image-preview.d.ts.map +1 -0
  174. package/elements/image-preview.js +172 -0
  175. package/elements/image-preview.js.map +1 -0
  176. package/elements/input-capture.d.ts +17 -0
  177. package/elements/input-capture.d.ts.map +1 -0
  178. package/elements/input-capture.js +111 -0
  179. package/elements/input-capture.js.map +1 -0
  180. package/elements/input.d.ts +51 -0
  181. package/elements/input.d.ts.map +1 -0
  182. package/elements/input.js +372 -0
  183. package/elements/input.js.map +1 -0
  184. package/elements/keyboard-access.d.ts +26 -0
  185. package/elements/keyboard-access.d.ts.map +1 -0
  186. package/elements/keyboard-access.js +217 -0
  187. package/elements/keyboard-access.js.map +1 -0
  188. package/elements/legend.d.ts +21 -0
  189. package/elements/legend.d.ts.map +1 -0
  190. package/elements/legend.js +118 -0
  191. package/elements/legend.js.map +1 -0
  192. package/elements/line-chart.d.ts +9 -0
  193. package/elements/line-chart.d.ts.map +1 -0
  194. package/elements/line-chart.js +116 -0
  195. package/elements/line-chart.js.map +1 -0
  196. package/elements/link.d.ts +14 -0
  197. package/elements/link.d.ts.map +1 -0
  198. package/elements/link.js +46 -0
  199. package/elements/link.js.map +1 -0
  200. package/elements/list.d.ts +30 -0
  201. package/elements/list.d.ts.map +1 -0
  202. package/elements/list.js +114 -0
  203. package/elements/list.js.map +1 -0
  204. package/elements/loading.d.ts +9 -0
  205. package/elements/loading.d.ts.map +1 -0
  206. package/elements/loading.js +44 -0
  207. package/elements/loading.js.map +1 -0
  208. package/elements/map.d.ts +68 -0
  209. package/elements/map.d.ts.map +1 -0
  210. package/elements/map.js +323 -0
  211. package/elements/map.js.map +1 -0
  212. package/elements/menu.d.ts +58 -0
  213. package/elements/menu.d.ts.map +1 -0
  214. package/elements/menu.js +256 -0
  215. package/elements/menu.js.map +1 -0
  216. package/elements/meter.d.ts +20 -0
  217. package/elements/meter.d.ts.map +1 -0
  218. package/elements/meter.js +130 -0
  219. package/elements/meter.js.map +1 -0
  220. package/elements/modal.d.ts +46 -0
  221. package/elements/modal.d.ts.map +1 -0
  222. package/elements/modal.js +296 -0
  223. package/elements/modal.js.map +1 -0
  224. package/elements/more.d.ts +28 -0
  225. package/elements/more.d.ts.map +1 -0
  226. package/elements/more.js +118 -0
  227. package/elements/more.js.map +1 -0
  228. package/elements/options.d.ts +34 -0
  229. package/elements/options.d.ts.map +1 -0
  230. package/elements/options.js +174 -0
  231. package/elements/options.js.map +1 -0
  232. package/elements/page-loadbar.d.ts +20 -0
  233. package/elements/page-loadbar.d.ts.map +1 -0
  234. package/elements/page-loadbar.js +85 -0
  235. package/elements/page-loadbar.js.map +1 -0
  236. package/elements/pagination.d.ts +23 -0
  237. package/elements/pagination.d.ts.map +1 -0
  238. package/elements/pagination.js +221 -0
  239. package/elements/pagination.js.map +1 -0
  240. package/elements/paragraph.d.ts +8 -0
  241. package/elements/paragraph.d.ts.map +1 -0
  242. package/elements/paragraph.js +60 -0
  243. package/elements/paragraph.js.map +1 -0
  244. package/elements/pick.d.ts +34 -0
  245. package/elements/pick.d.ts.map +1 -0
  246. package/elements/pick.js +168 -0
  247. package/elements/pick.js.map +1 -0
  248. package/elements/placeholder.d.ts +23 -0
  249. package/elements/placeholder.d.ts.map +1 -0
  250. package/elements/placeholder.js +93 -0
  251. package/elements/placeholder.js.map +1 -0
  252. package/elements/popover.d.ts +54 -0
  253. package/elements/popover.d.ts.map +1 -0
  254. package/elements/popover.js +316 -0
  255. package/elements/popover.js.map +1 -0
  256. package/elements/progress.d.ts +12 -0
  257. package/elements/progress.d.ts.map +1 -0
  258. package/elements/progress.js +45 -0
  259. package/elements/progress.js.map +1 -0
  260. package/elements/radio.d.ts +34 -0
  261. package/elements/radio.d.ts.map +1 -0
  262. package/elements/radio.js +152 -0
  263. package/elements/radio.js.map +1 -0
  264. package/elements/rating.d.ts +15 -0
  265. package/elements/rating.d.ts.map +1 -0
  266. package/elements/rating.js +122 -0
  267. package/elements/rating.js.map +1 -0
  268. package/elements/scatter-chart.d.ts +13 -0
  269. package/elements/scatter-chart.d.ts.map +1 -0
  270. package/elements/scatter-chart.js +151 -0
  271. package/elements/scatter-chart.js.map +1 -0
  272. package/elements/select.d.ts +63 -0
  273. package/elements/select.d.ts.map +1 -0
  274. package/elements/select.js +416 -0
  275. package/elements/select.js.map +1 -0
  276. package/elements/shortcut-record.d.ts +19 -0
  277. package/elements/shortcut-record.d.ts.map +1 -0
  278. package/elements/shortcut-record.js +127 -0
  279. package/elements/shortcut-record.js.map +1 -0
  280. package/elements/side-navigation.d.ts +31 -0
  281. package/elements/side-navigation.d.ts.map +1 -0
  282. package/elements/side-navigation.js +137 -0
  283. package/elements/side-navigation.js.map +1 -0
  284. package/elements/slider.d.ts +27 -0
  285. package/elements/slider.d.ts.map +1 -0
  286. package/elements/slider.js +219 -0
  287. package/elements/slider.js.map +1 -0
  288. package/elements/space.d.ts +10 -0
  289. package/elements/space.d.ts.map +1 -0
  290. package/elements/space.js +35 -0
  291. package/elements/space.js.map +1 -0
  292. package/elements/statistic.d.ts +24 -0
  293. package/elements/statistic.d.ts.map +1 -0
  294. package/elements/statistic.js +116 -0
  295. package/elements/statistic.js.map +1 -0
  296. package/elements/status-light.d.ts +14 -0
  297. package/elements/status-light.d.ts.map +1 -0
  298. package/elements/status-light.js +75 -0
  299. package/elements/status-light.js.map +1 -0
  300. package/elements/switch.d.ts +18 -0
  301. package/elements/switch.d.ts.map +1 -0
  302. package/elements/switch.js +117 -0
  303. package/elements/switch.js.map +1 -0
  304. package/elements/table.d.ts +36 -0
  305. package/elements/table.d.ts.map +1 -0
  306. package/elements/table.js +268 -0
  307. package/elements/table.js.map +1 -0
  308. package/elements/tabs.d.ts +29 -0
  309. package/elements/tabs.d.ts.map +1 -0
  310. package/elements/tabs.js +130 -0
  311. package/elements/tabs.js.map +1 -0
  312. package/elements/tag.d.ts +20 -0
  313. package/elements/tag.d.ts.map +1 -0
  314. package/elements/tag.js +120 -0
  315. package/elements/tag.js.map +1 -0
  316. package/elements/timeline.d.ts +19 -0
  317. package/elements/timeline.d.ts.map +1 -0
  318. package/elements/timeline.js +92 -0
  319. package/elements/timeline.js.map +1 -0
  320. package/elements/toast.d.ts +26 -0
  321. package/elements/toast.d.ts.map +1 -0
  322. package/elements/toast.js +149 -0
  323. package/elements/toast.js.map +1 -0
  324. package/elements/tooltip.d.ts +12 -0
  325. package/elements/tooltip.d.ts.map +1 -0
  326. package/elements/tooltip.js +27 -0
  327. package/elements/tooltip.js.map +1 -0
  328. package/elements/tree.d.ts +48 -0
  329. package/elements/tree.d.ts.map +1 -0
  330. package/elements/tree.js +231 -0
  331. package/elements/tree.js.map +1 -0
  332. package/elements/wait.d.ts +19 -0
  333. package/elements/wait.d.ts.map +1 -0
  334. package/elements/wait.js +97 -0
  335. package/elements/wait.js.map +1 -0
  336. package/lib/animations.d.ts +4 -0
  337. package/lib/animations.d.ts.map +1 -0
  338. package/lib/animations.js +8 -0
  339. package/lib/animations.js.map +1 -0
  340. package/lib/cache.d.ts +12 -0
  341. package/lib/cache.d.ts.map +1 -0
  342. package/lib/cache.js +56 -0
  343. package/lib/cache.js.map +1 -0
  344. package/lib/color.d.ts +37 -0
  345. package/lib/color.d.ts.map +1 -0
  346. package/lib/color.js +101 -0
  347. package/lib/color.js.map +1 -0
  348. package/lib/hotkeys.d.ts +31 -0
  349. package/lib/hotkeys.d.ts.map +1 -0
  350. package/lib/hotkeys.js +207 -0
  351. package/lib/hotkeys.js.map +1 -0
  352. package/lib/icons.d.ts +90 -0
  353. package/lib/icons.d.ts.map +1 -0
  354. package/lib/icons.js +81 -0
  355. package/lib/icons.js.map +1 -0
  356. package/lib/image.d.ts +29 -0
  357. package/lib/image.d.ts.map +1 -0
  358. package/lib/image.js +140 -0
  359. package/lib/image.js.map +1 -0
  360. package/lib/locale.d.ts +37 -0
  361. package/lib/locale.d.ts.map +1 -0
  362. package/lib/locale.js +14 -0
  363. package/lib/locale.js.map +1 -0
  364. package/lib/number.d.ts +80 -0
  365. package/lib/number.d.ts.map +1 -0
  366. package/lib/number.js +144 -0
  367. package/lib/number.js.map +1 -0
  368. package/lib/theme.d.ts +67 -0
  369. package/lib/theme.d.ts.map +1 -0
  370. package/lib/theme.js +56 -0
  371. package/lib/theme.js.map +1 -0
  372. package/lib/time.d.ts +58 -0
  373. package/lib/time.d.ts.map +1 -0
  374. package/lib/time.js +225 -0
  375. package/lib/time.js.map +1 -0
  376. package/lib/types.d.ts +8 -0
  377. package/lib/types.d.ts.map +1 -0
  378. package/lib/types.js +17 -0
  379. package/lib/types.js.map +1 -0
  380. package/lib/utils.d.ts +37 -0
  381. package/lib/utils.d.ts.map +1 -0
  382. package/lib/utils.js +249 -0
  383. package/lib/utils.js.map +1 -0
  384. package/locales/en.d.ts +34 -0
  385. package/locales/en.d.ts.map +1 -0
  386. package/locales/en.js +33 -0
  387. package/locales/en.js.map +1 -0
  388. package/locales/zh.d.ts +4 -0
  389. package/locales/zh.d.ts.map +1 -0
  390. package/locales/zh.js +34 -0
  391. package/locales/zh.js.map +1 -0
  392. package/package.json +39 -0
@@ -0,0 +1,1133 @@
1
+ /*! For license information please see 354.bundle.js.LICENSE.txt */
2
+ (self.webpackChunk_duoyun_fe_duoyun_ui=self.webpackChunk_duoyun_fe_duoyun_ui||[]).push([[354],{104:()=>{},57:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r={exports:{}};function i(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}r.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:i,changeDefaults:function(e){r.exports.defaults=e}};var o=/[&<>"']/,s=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(e){return u[e]};var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(e){return e.replace(h,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;var g=/[^\w:]/g,f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var m={},D=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,v=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(e,t){m[" "+e]||(D.test(e)?m[" "+e]=e+"/":m[" "+e]=y(e,"/",!0));var n=-1===(e=m[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(k,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(v,"$1")+t:e+t}function y(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i<r;){var o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}var w=function(e,t){if(t){if(o.test(e))return e.replace(s,c)}else if(a.test(e))return e.replace(l,c);return e},x=d,C=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(p,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n},E=function(e,t,n){if(e){var r;try{r=decodeURIComponent(d(n)).replace(g,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!f.test(n)&&(n=b(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},A={exec:function(){}},F=function(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},$=function(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},B=y,_=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&--r<0)return i;return-1},S=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},R=function(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},P=r.exports.defaults,j=B,O=$,L=w,T=_;function z(e,t,n){var r=t.href,i=t.title?L(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:o}:{type:"image",raw:n,href:r,title:i,text:L(o)}}var M=function(){function e(e){this.options=e||P}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:j(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=j(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:O(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r<i;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=O(n.cells[r],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,s,a,l,u,c,h=t[0],d=t[2],p=d.length>1,g={type:"list",raw:h,ordered:p,start:p?+d.slice(0,-1):"",loose:!1,items:[]},f=t[0].match(this.rules.block.item),m=!1,D=f.length;i=this.rules.block.listItemStart.exec(f[0]);for(var k=0;k<D;k++){if(h=n=f[k],this.options.pedantic||(c=n.match(new RegExp("\\n\\s*\\n {0,"+(i[0].length-1)+"}\\S")))&&(s=n.length-c.index+f.slice(k+1).join("\n").length,g.raw=g.raw.substring(0,g.raw.length-s),h=n=n.substring(0,c.index),D=k+1),k!==D-1){if(o=this.rules.block.listItemStart.exec(f[k+1]),this.options.pedantic?o[1].length>i[1].length:o[1].length>=i[0].length||o[1].length>3){f.splice(k,2,f[k]+(!this.options.pedantic&&o[1].length<i[0].length&&!f[k].match(/\n$/)?"":"\n")+f[k+1]),k--,D--;continue}(!this.options.pedantic||this.options.smartLists?o[2][o[2].length-1]!==d[d.length-1]:p===(1===o[2].length))&&(s=f.slice(k+1).join("\n").length,g.raw=g.raw.substring(0,g.raw.length-s),k=D-1),i=o}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+r+"}","gm"),"")),n=j(n,"\n"),k!==D-1&&(h+="\n"),a=m||/\n\n(?!\s*$)/.test(h),k!==D-1&&(m="\n\n"===h.slice(-2),a||(a=m)),a&&(g.loose=!0),this.options.gfm&&(u=void 0,(l=/^\[[ xX]\] /.test(n))&&(u=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:h,task:l,checked:u,loose:a,text:n})}return g}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):L(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:O(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i=n.align.length;for(r=0;r<i;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(i=n.cells.length,r=0;r<i;r++)n.cells[r]=O(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:L(t[1])}},t.tag=function(e,t,n){var r=this.rules.inline.tag.exec(e);if(r)return!t&&/^<a /i.test(r[0])?t=!0:t&&/^<\/a>/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):L(r[0]):r[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=j(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var i=T(t[2],"()");if(i>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var s=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);l&&(s=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(n)?s.slice(1):s.slice(1,-1)),z(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return z(n,r,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\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\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\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\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\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-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\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\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\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\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\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]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\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]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,s,a=r[0].length-1,l=a,u=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(s=o.length,r[3]||r[4])l+=s;else if(!((r[5]||r[6])&&a%3)||(a+s)%3){if(!((l-=s)>0))return s=Math.min(s,s+l+u),Math.min(a,s)%2?{type:"em",raw:e.slice(0,a+r.index+s+1),text:e.slice(1,a+r.index+s)}:{type:"strong",raw:e.slice(0,a+r.index+s+1),text:e.slice(2,a+r.index+s-1)}}else u+=s}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=L(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=L(this.options.mangle?t(i[1]):i[1])):n=L(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=L(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=L(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,i=this.rules.inline.text.exec(e);if(i)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):L(i[0]):i[0]:L(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},e}(),N=A,I=C,H=F,q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {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|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:N,table:N,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};q.def=I(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,q.item=I(q.item,"gm").replace(/bull/g,q.bullet).getRegex(),q.listItemStart=I(/^( *)(bull) */).replace("bull",q.bullet).getRegex(),q.list=I(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",q._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,q.html=I(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.paragraph=I(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.blockquote=I(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal=H({},q),q.gfm=H({},q.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),q.gfm.nptable=I(q.gfm.nptable).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.gfm.table=I(q.gfm.table).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q._tag).getRegex(),q.pedantic=H({},q.normal,{html:I("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q._comment).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:N,paragraph:I(q.normal._paragraph).replace("hr",q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:N,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:N,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};U.punctuation=I(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,U.escapedEmSt=/\\\*|\\_/g,U._comment=I(q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),U.emStrong.lDelim=I(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimAst=I(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimUnd=I(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._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])?)+(?![-_])/,U.autolink=I(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=I(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=I(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=I(U.reflink).replace("label",U._label).getRegex(),U.reflinkSearch=I(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=H({},U),U.pedantic=H({},U.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:I(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:I(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=H({},U.normal,{escape:I(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),U.gfm.url=I(U.gfm.url,"i").replace("email",U.gfm._extended_email).getRegex(),U.breaks=H({},U.gfm,{br:I(U.br).replace("{2,}","*").getRegex(),text:I(U.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var W={block:q,inline:U},V=M,G=r.exports.defaults,Z=W.block,K=W.inline,J=R;function X(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Q(e){var t,n,r="",i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||G,this.options.tokenizer=this.options.tokenizer||new V,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:Z.normal,inline:K.normal};this.options.pedantic?(t.block=Z.pedantic,t.inline=K.pedantic):this.options.gfm&&(t.block=Z.gfm,this.options.breaks?t.inline=K.breaks:t.inline=K.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,r,i,o=t.prototype;return o.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},o.blockTokens=function(e,t,n){var r,i,o,s,a,l,u=this;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call(u,e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),(s=t[t.length-1])&&"paragraph"===s.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text):t.push(r);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),o=r.items.length,i=0;i<o;i++)r.items[i].tokens=this.blockTokens(r.items[i].text,[],!1);t.push(r)}else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.def(e)))e=e.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(a=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),r=void 0;u.options.extensions.startBlock.forEach((function(e){"number"==typeof(r=e.call(this,n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}(),n&&(r=this.tokenizer.paragraph(a)))s=t[t.length-1],l&&"paragraph"===s.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text):t.push(r),l=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(s=t[t.length-1])&&"text"===s.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text):t.push(r);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}return t},o.inline=function(e){var t,n,r,i,o,s,a=e.length;for(t=0;t<a;t++)switch((s=e[t]).type){case"paragraph":case"text":case"heading":s.tokens=[],this.inlineTokens(s.text,s.tokens);break;case"table":for(s.tokens={header:[],cells:[]},i=s.header.length,n=0;n<i;n++)s.tokens.header[n]=[],this.inlineTokens(s.header[n],s.tokens.header[n]);for(i=s.cells.length,n=0;n<i;n++)for(o=s.cells[n],s.tokens.cells[n]=[],r=0;r<o.length;r++)s.tokens.cells[n][r]=[],this.inlineTokens(o[r],s.tokens.cells[n][r]);break;case"blockquote":this.inline(s.tokens);break;case"list":for(i=s.items.length,n=0;n<i;n++)this.inline(s.items[n].tokens)}return e},o.inlineTokens=function(e,t,n,r){var i,o,s,a=this;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===r&&(r=!1);var l,u,c,h=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(h));)d.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(h=h.slice(0,l.index)+"["+J("a",l[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(h));)h=h.slice(0,l.index)+"["+J("a",l[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(h));)h=h.slice(0,l.index)+"++"+h.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(u||(c=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call(a,e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e,n,r))e=e.substring(i.raw.length),n=i.inLink,r=i.inRawBlock,(o=t[t.length-1])&&"text"===i.type&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),"link"===i.type&&(i.tokens=this.inlineTokens(i.text,[],!0,r)),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),o=t[t.length-1],"link"===i.type?(i.tokens=this.inlineTokens(i.text,[],!0,r),t.push(i)):o&&"text"===i.type&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,h,c))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),i.tokens=this.inlineTokens(i.text,[],n,r),t.push(i);else if(i=this.tokenizer.autolink(e,Q))e=e.substring(i.raw.length),t.push(i);else if(n||!(i=this.tokenizer.url(e,Q))){if(s=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;a.options.extensions.startInline.forEach((function(e){"number"==typeof(r=e.call(this,n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(s,r,X))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(c=i.raw.slice(-1)),u=!0,(o=t[t.length-1])&&"text"===o.type?(o.raw+=i.raw,o.text+=i.text):t.push(i);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(i.raw.length),t.push(i);return t},n=t,i=[{key:"rules",get:function(){return{block:Z,inline:K}}}],(r=null)&&e(n.prototype,r),i&&e(n,i),t}(),ee=r.exports.defaults,te=E,ne=w,re=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+ne(r,!0)+'">'+(n?e:ne(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ne(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+ne(e)+'"';return t&&(r+=' title="'+t+'"'),r+">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},t.text=function(e){return e},e}(),ie=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),oe=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),se=re,ae=ie,le=oe,ue=r.exports.defaults,ce=x,he=Y,de=function(){function e(e){this.options=e||ue,this.options.renderer=this.options.renderer||new se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ae,this.slugger=new le}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,s,a,l,u,c,h,d,p,g,f,m,D,k,v,b,y="",w=e.length;for(n=0;n<w;n++)if(h=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[h.type])||!1===(b=this.options.extensions.renderers[h.type].call(this,h))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type))switch(h.type){case"space":continue;case"hr":y+=this.renderer.hr();continue;case"heading":y+=this.renderer.heading(this.parseInline(h.tokens),h.depth,ce(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":y+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(u="",l="",o=h.header.length,r=0;r<o;r++)l+=this.renderer.tablecell(this.parseInline(h.tokens.header[r]),{header:!0,align:h.align[r]});for(u+=this.renderer.tablerow(l),c="",o=h.cells.length,r=0;r<o;r++){for(l="",s=(a=h.tokens.cells[r]).length,i=0;i<s;i++)l+=this.renderer.tablecell(this.parseInline(a[i]),{header:!1,align:h.align[i]});c+=this.renderer.tablerow(l)}y+=this.renderer.table(u,c);continue;case"blockquote":c=this.parse(h.tokens),y+=this.renderer.blockquote(c);continue;case"list":for(d=h.ordered,p=h.start,g=h.loose,o=h.items.length,c="",r=0;r<o;r++)D=(m=h.items[r]).checked,k=m.task,f="",m.task&&(v=this.renderer.checkbox(D),g?m.tokens.length>0&&"text"===m.tokens[0].type?(m.tokens[0].text=v+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=v+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:v}):f+=v),f+=this.parse(m.tokens,g),c+=this.renderer.listitem(f,k,D);y+=this.renderer.list(c,d,p);continue;case"html":y+=this.renderer.html(h.text);continue;case"paragraph":y+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(c=h.tokens?this.parseInline(h.tokens):h.text;n+1<w&&"text"===e[n+1].type;)c+="\n"+((h=e[++n]).tokens?this.parseInline(h.tokens):h.text);y+=t?this.renderer.paragraph(c):c;continue;default:var x='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(x);throw new Error(x)}else y+=b||"";return y},t.parseInline=function(e,t){t=t||this.renderer;var n,r,i,o="",s=e.length;for(n=0;n<s;n++)if(r=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type])||!1===(i=this.options.extensions.renderers[r.type].call(this,r))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))switch(r.type){case"escape":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;case"text":o+=t.text(r.text);break;default:var a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}else o+=i||"";return o},e}(),pe=M,ge=re,fe=ie,me=oe,De=F,ke=S,ve=w,be=r.exports.getDefaults,ye=r.exports.changeDefaults,we=r.exports.defaults;function xe(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=De({},xe.defaults,t||{}),ke(t),n){var r,i=t.highlight;try{r=he.lex(e,t)}catch(e){return n(e)}var o=function(e){var o;if(!e)try{t.walkTokens&&xe.walkTokens(r,t.walkTokens),o=de.parse(r,t)}catch(t){e=t}return t.highlight=i,e?n(e):n(null,o)};if(!i||i.length<3)return o();if(delete t.highlight,!r.length)return o();var s=0;return xe.walkTokens(r,(function(e){"code"===e.type&&(s++,setTimeout((function(){i(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--s&&o()}))}),0))})),void(0===s&&o())}try{var a=he.lex(e,t);return t.walkTokens&&xe.walkTokens(a,t.walkTokens),de.parse(a,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ve(e.message+"",!0)+"</pre>";throw e}}return xe.options=xe.setOptions=function(e){return De(xe.defaults,e),ye(xe.defaults),xe},xe.getDefaults=be,xe.defaults=we,xe.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o=De.apply(void 0,[{}].concat(n)),s=xe.defaults.extensions||{renderers:{},childTokens:{}};n.forEach((function(t){if(t.extensions&&(i=!0,t.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=s.renderers?s.renderers[e.name]:null;s.renderers[e.name]=t?function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=e.renderer.apply(this,r);return!1===o&&(o=t.apply(this,r)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");s[e.level]?s[e.level].unshift(e.tokenizer):s[e.level]=[e.tokenizer],e.start&&("block"===e.level?s.startBlock?s.startBlock.push(e.start):s.startBlock=[e.start]:"inline"===e.level&&(s.startInline?s.startInline.push(e.start):s.startInline=[e.start]))}e.childTokens&&(s.childTokens[e.name]=e.childTokens)}))),t.renderer&&function(){var e=xe.defaults.renderer||new ge,n=function(n){var r=e[n];e[n]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=t.renderer[n].apply(e,o);return!1===a&&(a=r.apply(e,o)),a}};for(var r in t.renderer)n(r);o.renderer=e}(),t.tokenizer&&function(){var e=xe.defaults.tokenizer||new pe,n=function(n){var r=e[n];e[n]=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];var a=t.tokenizer[n].apply(e,o);return!1===a&&(a=r.apply(e,o)),a}};for(var r in t.tokenizer)n(r);o.tokenizer=e}(),t.walkTokens){var n=xe.defaults.walkTokens;o.walkTokens=function(r){t.walkTokens.call(e,r),n&&n(r)}}i&&(o.extensions=s),xe.setOptions(o)}))},xe.walkTokens=function(e,t){for(var r,i=function(){var e=r.value;switch(t(e),e.type){case"table":for(var i,o=n(e.tokens.header);!(i=o()).done;){var s=i.value;xe.walkTokens(s,t)}for(var a,l=n(e.tokens.cells);!(a=l()).done;)for(var u,c=n(a.value);!(u=c()).done;){var h=u.value;xe.walkTokens(h,t)}break;case"list":xe.walkTokens(e.items,t);break;default:xe.defaults.extensions&&xe.defaults.extensions.childTokens&&xe.defaults.extensions.childTokens[e.type]?xe.defaults.extensions.childTokens[e.type].forEach((function(n){xe.walkTokens(e[n],t)})):e.tokens&&xe.walkTokens(e.tokens,t)}},o=n(e);!(r=o()).done;)i()},xe.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=De({},xe.defaults,t||{}),ke(t);try{var n=he.lexInline(e,t);return t.walkTokens&&xe.walkTokens(n,t.walkTokens),de.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ve(e.message+"",!0)+"</pre>";throw e}},xe.Parser=de,xe.parser=de.parse,xe.Renderer=ge,xe.TextRenderer=fe,xe.Lexer=he,xe.lexer=he.lex,xe.Tokenizer=pe,xe.Slugger=me,xe.parse=xe,xe}()},901:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{GemElement:()=>kt,GemError:()=>C,LinkedList:()=>c,PropProxyMap:()=>h,QueryString:()=>d,SVGTemplateResult:()=>ve,SheetToken:()=>f,StoreListenerMap:()=>B,TemplateResult:()=>ke,absoluteLocation:()=>u,addMicrotask:()=>o,addMicrotaskToStack:()=>l,adoptedStyle:()=>Mt,attribute:()=>Bt,basePathStore:()=>K,boolattribute:()=>_t,camelToKebabCase:()=>y,classMap:()=>F,cleanObject:()=>x,connect:()=>P,connectStore:()=>Nt,createCSSSheet:()=>m,createStore:()=>_,createStoreSet:()=>S,css:()=>g,customElement:()=>Ht,defineAttribute:()=>bt,defineCSSState:()=>Ct,defineProperty:()=>wt,defineRef:()=>xt,directive:()=>Y,disconnect:()=>j,emitter:()=>Lt,globalemitter:()=>Tt,guard:()=>Ge,history:()=>O,html:()=>Le,ifDefined:()=>Ke,isArrayChange:()=>E,kebabToCamelCase:()=>w,nativeDefineElement:()=>Et,numattribute:()=>St,part:()=>Ot,partMap:()=>$,property:()=>Rt,randomStr:()=>D,raw:()=>p,refobject:()=>Ft,render:()=>Oe,repeat:()=>We,rootElement:()=>It,slot:()=>jt,state:()=>Pt,styleMap:()=>A,styled:()=>b,svg:()=>Te,titleStore:()=>J,updateStore:()=>R,version:()=>qt});const i=new Set;function o(e){"function"==typeof e&&(i.size||globalThis.queueMicrotask((()=>{i.forEach((e=>e())),i.clear()})),i.delete(e),i.add(e))}const s=[];function a(){for(let e=s.length-1;e>=0;e--)s[e]();s.length=0}function l(e){s.length||o(a),s.push(e)}function u(e="",t=""){const{pathname:n,search:r,hash:i}=new URL(t,location.origin+e);return n+r+i}class c extends(globalThis.EventTarget||Object){constructor(){super(...arguments),this.pool=new Map}add(e){const t={value:e};this.firstItem||(this.dispatchEvent(new CustomEvent("start")),this.firstItem=t),this.lastItem&&(this.lastItem.next=t,t.prev=this.lastItem),this.lastItem=t;const n=this.pool.get(e);n&&(n.prev?n.prev.next=n.next:this.firstItem=n.next,n.next&&(n.next.prev=n.prev)),this.pool.set(e,t)}get(){const e=this.firstItem;if(e)return this.pool.delete(e.value),this.firstItem=e.next,this.firstItem||(this.lastItem=void 0,this.dispatchEvent(new CustomEvent("end"))),e.value}}class h extends WeakMap{get(e){let t=super.get(e);return t||(t={},this.set(e,t)),t}}class d extends URLSearchParams{constructor(e){if(e instanceof d)return e;super(e)}concat(e){let t;t="string"==typeof e?Object.fromEntries(new URLSearchParams(e).entries()):e,Object.keys(t).forEach((e=>{this.append(e,t[e])}))}toString(){const e=super.toString();return e?`?${e}`:""}toJSON(){return this.toString()}}function p(e,...t){return e.reduce(((e,n,r)=>{var i;return e+(null!==(i=t[r-1])&&void 0!==i?i:"")+n}))}function g(e,...t){return p(e,...t)}const f=Symbol("sheet token");function m(e,t=""){const n=new CSSStyleSheet,r={};n.media.mediaText=t;let i="";return"string"==typeof e?i=e:Object.keys(e).forEach((t=>{r[t]=`${t}-${D()}`,i+=e[t].styledContent.replace(/&/g,r[t])})),n.replaceSync(i),r[f]=n,r}function D(e=5,t="0123456789abcdefghijklmnopqrstuvwxyz"){const n=t.length;let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*n)];return r}const k=new RegExp("&.*{((.|\n)*)}","g");function v(e,t){const n=[];let r=`& {${e.replace(k,(e=>(n.push(e),"")))}}`+n.join("");return r=r.replace(/&/g,"class"===t?".&":"#&"),{styledContent:r,type:t}}const b={class:(e,...t)=>v(p(e,...t),"class"),id:(e,...t)=>v(p(e,...t),"id"),keyframes:(e,...t)=>({styledContent:`@keyframes & {${p(e,...t)}}`,type:"keyframes"})};function y(e){return e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))}function w(e){return e.replace(/-(.)/g,((e,t)=>t.toUpperCase()))}function x(e){return Object.keys(e).forEach((t=>{delete e[t]})),e}class C extends Error{constructor(e){super(e),this.message=`gem: ${this.message}`}}function E(e,t){const n=e.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return!0;return!1}function A(e){let t="";for(const n in e)t+=`${y(n)}:${e[n]};`;return t}function F(e){let t=" ";for(const n in e)e[n]&&(t+=`${n} `);return t}const $=F,B=new WeakMap;function _(e){if(B.has(e))throw new C("argument error");return B.set(e,new Set),e}function S(e){return Object.keys(e).forEach((t=>{_(e[t])})),e}function R(e,t){Object.assign(e,t);const n=B.get(e);null==n||n.forEach((e=>{o(e)}))}function P(e,t){const n=B.get(e);null==n||n.add(t)}function j(e,t){const n=B.get(e);null==n||n.delete(t)}const O=window.history,L=window.location,T=O.pushState.bind(O),z=O.replaceState.bind(O);let M=0;const N=()=>`${performance.now()}-${++M}`,I=_({$hasCloseHandle:!1,$hasOpenHandle:!1,$hasShouldCloseHandle:!1,$key:""}),H=new Map;function q({$key:e,$hasCloseHandle:t,$hasOpenHandle:n,$hasShouldCloseHandle:r}={}){if(I.$key!==e){if(e)throw new C("`$key` is not allowed");if(t)throw new C("`$hasCloseHandle` is not allowed");if(n)throw new C("`$hasOpenHandle` is not allowed");if(r)throw new C("`$hasShouldCloseHandle` is not allowed")}}function U(e){return O.basePath?O.basePath+e:e}function W(e){return e===O.basePath?"/":e.replace(new RegExp(`^${O.basePath}/`),"/")}function V(e){const t=H.get(I.$key)||{},n=e.path?u(t.path,e.path):W(L.pathname),r=new d(e.query||(e.path?"":L.search)),i=e.path&&e.path!==t.path||e.query&&String(e.query)!==String(t.query),o=e.title||"",s=e.close||e.data||e.open||e.shouldClose,a=e.hash||(!i&&s?decodeURIComponent(L.hash):"");return Object.assign(Object.assign({},e),{title:o,path:n,query:r,hash:a})}function G(e,t){q(t.data);const n=V(t),{title:r,path:i,query:o,hash:s,close:a,open:l,shouldClose:u,data:c}=n,h=Object.assign({$hasCloseHandle:!!a,$hasOpenHandle:!!l,$hasShouldCloseHandle:!!u,$key:N()},c);H.set(h.$key,n),R(x(I),h);const p=U(i)+new d(o)+s,g=decodeURIComponent(L.hash);("push"===e?T:z)(h,r,p),g!==s&&window.dispatchEvent(new CustomEvent("hashchange"))}function Z(e,t,n,r){q(t);const i=Object.assign({$key:N()},t||{}),{pathname:o,search:s,hash:a}=new URL(r,L.origin+L.pathname),l=V({path:o,query:new d(s),hash:a,title:n,data:t});H.set(i.$key,l),R(x(I),i);const u=U(o)+l.query+a,c=L.hash;("push"===e?T:z)(i,n,u),c!==a&&window.dispatchEvent(new CustomEvent("hashchange"))}const K=_({basePath:""});if(window.addEventListener("hashchange",(({isTrusted:e})=>{e&&O.replace({hash:decodeURIComponent(L.hash)})})),Object.defineProperties(O,{basePath:{get:()=>K.basePath,set(e){R(K,{basePath:e}),Object.assign(H.get(I.$key),{path:W(L.pathname)})}},getParams:{value:function(){return H.get(I.$key)}},updateParams:{value:function(e){Object.assign(H.get(I.$key),e),R(I,{})}},store:{value:I},push:{value:function(e){O.pushState(e,"")}},pushIgnoreCloseHandle:{value:function(e){var t,n;I.$hasCloseHandle?(null===(n=null===(t=H.get(I.$key))||void 0===t?void 0:t.close)||void 0===n||n.call(t),O.replace(e)):O.push(e)}},replace:{value:function(e){G("replace",e)}}}),O.pushState=function(e,t,n){n?Z("push",e,t,n):G("push",e)},O.replaceState=function(e,t,n){Z("replace",e,t,n)},O.state)if(O.state.$hasCloseHandle){R(I,O.state);const e=V({title:document.title});H.set(I.$key,e),O.back()}else{const e=V({title:document.title,hash:L.hash});R(I,Object.assign({$key:N()},O.state||{})),H.set(I.$key,e)}else{const{pathname:e,search:t,hash:n}=L;O.replace({path:e,query:t,hash:n})}const J=_({title:""});P(J,(()=>{const e=H.get(I.$key);e&&(e.title=J.title)})),P(I,(()=>{const{title:e}=O.getParams();e!==J.title&&R(J,{title:e})}));let X=!1;window.addEventListener("popstate",(e=>{var t,n;const r=e.state;if(!(null==r?void 0:r.$key))return;if(X)return void(X=!1);if(!H.has(r.$key)){const{pathname:e,search:t,hash:n}=L;H.set(r.$key,{path:e,query:new d(t),hash:n,title:document.title,data:r})}const i=I;if(r.$key>i.$key&&r.$hasOpenHandle)null===(n=null===(t=H.get(r.$key))||void 0===t?void 0:t.open)||void 0===n||n.call(t);else if(i.$hasCloseHandle){const e=H.get(i.$key),t=null==e?void 0:e.close,n=null==e?void 0:e.shouldClose;if(n&&!n())return X=!0,void O.forward();t?t():r.$hasCloseHandle&&(X=!0,O.back())}R(x(I),r)}));const Q=new WeakMap,Y=e=>(...t)=>{const n=e(...t);return Q.set(n,!0),n},ee=e=>"function"==typeof e&&Q.has(e),te="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,ne=(e,t,n=null,r=null)=>{for(;t!==n;){const n=t.nextSibling;e.insertBefore(t,r),t=n}},re=(e,t,n=null)=>{for(;t!==n;){const n=t.nextSibling;e.removeChild(t),t=n}},ie={},oe={},se=`{{lit-${String(Math.random()).slice(2)}}}`,ae=`\x3c!--${se}--\x3e`,le=new RegExp(`${se}|${ae}`),ue="$lit$";class ce{constructor(e,t){this.parts=[],this.element=t;const n=[],r=[],i=document.createTreeWalker(t.content,133,null,!1);let o=0,s=-1,a=0;const{strings:l,values:{length:u}}=e;for(;a<u;){const e=i.nextNode();if(null!==e){if(s++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:n}=t;let r=0;for(let e=0;e<n;e++)he(t[e].name,ue)&&r++;for(;r-- >0;){const t=l[a],n=ge.exec(t)[2],r=n.toLowerCase()+ue,i=e.getAttribute(r);e.removeAttribute(r);const o=i.split(le);this.parts.push({type:"attribute",index:s,name:n,strings:o}),a+=o.length-1}}"TEMPLATE"===e.tagName&&(r.push(e),i.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(se)>=0){const r=e.parentNode,i=t.split(le),o=i.length-1;for(let t=0;t<o;t++){let n,o=i[t];if(""===o)n=pe();else{const e=ge.exec(o);null!==e&&he(e[2],ue)&&(o=o.slice(0,e.index)+e[1]+e[2].slice(0,-ue.length)+e[3]),n=document.createTextNode(o)}r.insertBefore(n,e),this.parts.push({type:"node",index:++s})}""===i[o]?(r.insertBefore(pe(),e),n.push(e)):e.data=i[o],a+=o}}else if(8===e.nodeType)if(e.data===se){const t=e.parentNode;null!==e.previousSibling&&s!==o||(s++,t.insertBefore(pe(),e)),o=s,this.parts.push({type:"node",index:s}),null===e.nextSibling?e.data="":(n.push(e),s--),a++}else{let t=-1;for(;-1!==(t=e.data.indexOf(se,t+1));)this.parts.push({type:"node",index:-1}),a++}}else i.currentNode=r.pop()}for(const e of n)e.parentNode.removeChild(e)}}const he=(e,t)=>{const n=e.length-t.length;return n>=0&&e.slice(n)===t},de=e=>-1!==e.index,pe=()=>document.createComment(""),ge=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;class fe{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=te?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],n=this.template.parts,r=document.createTreeWalker(e,133,null,!1);let i,o=0,s=0,a=r.nextNode();for(;o<n.length;)if(i=n[o],de(i)){for(;s<i.index;)s++,"TEMPLATE"===a.nodeName&&(t.push(a),r.currentNode=a.content),null===(a=r.nextNode())&&(r.currentNode=t.pop(),a=r.nextNode());if("node"===i.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(a.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(a,i.name,i.strings,this.options));o++}else this.__parts.push(void 0),o++;return te&&(document.adoptNode(e),customElements.upgrade(e)),e}}const me=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),De=` ${se} `;class ke{constructor(e,t,n,r){this.strings=e,this.values=t,this.type=n,this.processor=r}getHTML(){const e=this.strings.length-1;let t="",n=!1;for(let r=0;r<e;r++){const e=this.strings[r],i=e.lastIndexOf("\x3c!--");n=(i>-1||n)&&-1===e.indexOf("--\x3e",i+1);const o=ge.exec(e);t+=null===o?e+(n?De:ae):e.substr(0,o.index)+o[1]+o[2]+ue+o[3]+se}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==me&&(t=me.createHTML(t)),e.innerHTML=t,e}}class ve extends ke{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const e=super.getTemplateElement(),t=e.content,n=t.firstChild;return t.removeChild(n),ne(t,n.firstChild),e}}const be=e=>null===e||!("object"==typeof e||"function"==typeof e),ye=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class we{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;e<n.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new xe(this)}_getValue(){const e=this.strings,t=e.length-1,n=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=n[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!ye(e))return e}let r="";for(let i=0;i<t;i++){r+=e[i];const t=n[i];if(void 0!==t){const e=t.value;if(be(e)||!ye(e))r+="string"==typeof e?e:String(e);else for(const t of e)r+="string"==typeof t?t:String(t)}}return r+=e[t],r}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class xe{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===ie||be(e)&&e===this.value||(this.value=e,ee(e)||(this.committer.dirty=!0))}commit(){for(;ee(this.value);){const e=this.value;this.value=ie,e(this)}this.value!==ie&&this.committer.commit()}}class Ce{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(pe()),this.endNode=e.appendChild(pe())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=pe()),e.__insert(this.endNode=pe())}insertAfterPart(e){e.__insert(this.startNode=pe()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;ee(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=ie,e(this)}const e=this.__pendingValue;e!==ie&&(be(e)?e!==this.value&&this.__commitText(e):e instanceof ke?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):ye(e)?this.__commitIterable(e):e===oe?(this.value=oe,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof fe&&this.value.template===t)this.value.update(e.values);else{const n=new fe(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let n,r=0;for(const i of e)n=t[r],void 0===n&&(n=new Ce(this.options),t.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(t[r-1])),n.setValue(i),n.commit(),r++;r<t.length&&(t.length=r,this.clear(n&&n.endNode))}clear(e=this.startNode){re(this.startNode.parentNode,e.nextSibling,this.endNode)}}class Ee{constructor(e,t,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=n}setValue(e){this.__pendingValue=e}commit(){for(;ee(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=ie,e(this)}if(this.__pendingValue===ie)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=ie}}class Ae extends we{constructor(e,t,n){super(e,t,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new Fe(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class Fe extends xe{}let $e=!1;(()=>{try{const e={get capture(){return $e=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class Be{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;ee(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=ie,e(this)}if(this.__pendingValue===ie)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=_e(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=ie}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const _e=e=>e&&($e?{capture:e.capture,passive:e.passive,once:e.once}:e.capture),Se=new class{handleAttributeExpressions(e,t,n,r){const i=t[0];return"."===i?new Ae(e,t.slice(1),n).parts:"@"===i?[new Be(e,t.slice(1),r.eventContext)]:"?"===i?[new Ee(e,t.slice(1),n)]:new we(e,t,n).parts}handleTextExpression(e){return new Ce(e)}};function Re(e){let t=Pe.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},Pe.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(se);return n=t.keyString.get(r),void 0===n&&(n=new ce(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const Pe=new Map,je=new WeakMap,Oe=(e,t,n)=>{let r=je.get(t);void 0===r&&(re(t,t.firstChild),je.set(t,r=new Ce(Object.assign({templateFactory:Re},n))),r.appendInto(t)),r.setValue(e),r.commit()};"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const Le=(e,...t)=>new ke(e,t,"html",Se),Te=(e,...t)=>new ve(e,t,"svg",Se),ze=(e,t)=>{const n=e.startNode.parentNode,r=void 0===t?e.endNode:t.startNode,i=n.insertBefore(pe(),r);n.insertBefore(pe(),r);const o=new Ce(e.options);return o.insertAfterNode(i),o},Me=(e,t)=>(e.setValue(t),e.commit(),e),Ne=(e,t,n)=>{const r=e.startNode.parentNode,i=n?n.startNode:e.endNode,o=t.endNode.nextSibling;o!==i&&ne(r,t.startNode,o,i)},Ie=e=>{re(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},He=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},qe=new WeakMap,Ue=new WeakMap,We=Y(((e,t,n)=>{let r;return void 0===n?n=t:void 0!==t&&(r=t),t=>{if(!(t instanceof Ce))throw new Error("repeat can only be used in text bindings");const i=qe.get(t)||[],o=Ue.get(t)||[],s=[],a=[],l=[];let u,c,h=0;for(const t of e)l[h]=r?r(t,h):h,a[h]=n(t,h),h++;let d=0,p=i.length-1,g=0,f=a.length-1;for(;d<=p&&g<=f;)if(null===i[d])d++;else if(null===i[p])p--;else if(o[d]===l[g])s[g]=Me(i[d],a[g]),d++,g++;else if(o[p]===l[f])s[f]=Me(i[p],a[f]),p--,f--;else if(o[d]===l[f])s[f]=Me(i[d],a[f]),Ne(t,i[d],s[f+1]),d++,f--;else if(o[p]===l[g])s[g]=Me(i[p],a[g]),Ne(t,i[p],i[d]),p--,g++;else if(void 0===u&&(u=He(l,g,f),c=He(o,d,p)),u.has(o[d]))if(u.has(o[p])){const e=c.get(l[g]),n=void 0!==e?i[e]:null;if(null===n){const e=ze(t,i[d]);Me(e,a[g]),s[g]=e}else s[g]=Me(n,a[g]),Ne(t,n,i[d]),i[e]=null;g++}else Ie(i[p]),p--;else Ie(i[d]),d++;for(;g<=f;){const e=ze(t,s[f+1]);Me(e,a[g]),s[g++]=e}for(;d<=p;){const e=i[d++];null!==e&&Ie(e)}qe.set(t,s),Ue.set(t,l)}})),Ve=new WeakMap,Ge=Y(((e,t)=>n=>{const r=Ve.get(n);if(Array.isArray(e)){if(Array.isArray(r)&&r.length===e.length&&e.every(((e,t)=>e===r[t])))return}else if(r===e&&(void 0!==e||Ve.has(n)))return;n.setValue(t()),Ve.set(n,Array.isArray(e)?Array.from(e):e)})),Ze=new WeakMap,Ke=Y((e=>t=>{const n=Ze.get(t);if(void 0===e&&t instanceof xe){if(void 0!==n||!Ze.has(t)){const e=t.committer.name;t.committer.element.removeAttribute(e)}}else e!==n&&t.setValue(e);Ze.set(t,e)}));var Je,Xe,Qe,Ye,et,tt,nt,rt,it,ot,st,at,lt,ut,ct=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},ht=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};function dt(){}function pt(e){"function"==typeof e&&e()}const gt=new c,ft=()=>{window.requestAnimationFrame((function e(t){if(performance.now()>t+16)return void ft();const n=gt.get();n&&(n(),e(t))}))};gt.addEventListener("start",ft);const mt=Symbol("init"),Dt=Symbol("update");class kt extends HTMLElement{constructor(e){super(),Je.set(this,void 0),Xe.set(this,void 0),Qe.set(this,void 0),Ye.set(this,void 0),et.set(this,void 0),tt.set(this,void 0),this.setState=e=>{if(!this.state)throw new C("`state` not initialized");Object.assign(this.state,e),o(ct(this,at,"f"))},nt.set(this,(()=>{var e;null===(e=ct(this,et,"f"))||void 0===e||e.forEach((e=>{const{callback:t,getDep:n,values:r,preCallback:i}=e,o=null==n?void 0:n();n&&!E(r,o)||(pt(i),e.preCallback=t(o,r),e.values=o)}))})),this.effect=(e,t)=>{ct(this,et,"f")||ht(this,et,[],"f");const n=null==t?void 0:t(),r={callback:e,getDep:t,values:n,initialized:!!this.isConnected};this.isConnected&&(r.preCallback=e(n)),ct(this,et,"f").push(r)},rt.set(this,(()=>{var e;null===(e=ct(this,et,"f"))||void 0===e||e.forEach((e=>{const{callback:t,getDep:n,initialized:r}=e;r||(e.preCallback=t(null==n?void 0:n()),e.initialized=!0)}))})),it.set(this,(()=>this.render?this.render():ct(this,Je,"f")===this?void 0:Le`<slot></slot>`)),ot.set(this,(()=>!this.shouldUpdate||this.shouldUpdate())),st.set(this,(()=>{if(this.isConnected&&ct(this,ot,"f").call(this)){const e=ct(this,it,"f").call(this);void 0!==e&&Oe(e,ct(this,Je,"f")),o(ct(this,lt,"f")),o(ct(this,nt,"f"))}})),at.set(this,(()=>{ct(this,Ye,"f")?gt.add(ct(this,st,"f")):ct(this,st,"f").call(this)})),this.update=()=>{o(ct(this,at,"f"))},lt.set(this,(()=>{var e;null===(e=this.updated)||void 0===e||e.call(this)})),ut.set(this,(()=>{var e,t,n;if(ct(this,Qe,"f"))return void ht(this,Qe,!1,"f");null===(e=this.willMount)||void 0===e||e.call(this);const{observedStores:r,rootElement:i}=this.constructor;null==r||r.forEach((e=>{P(e,ct(this,at,"f"))}));const o=ct(this,it,"f").call(this);if(void 0!==o&&Oe(o,ct(this,Je,"f")),ht(this,tt,null===(t=this.mounted)||void 0===t?void 0:t.call(this),"f"),ct(this,rt,"f").call(this),i&&(null===(n=this.getRootNode().host)||void 0===n?void 0:n.tagName)!==i.toUpperCase())throw new C("not allow current root type")})),o((()=>this[mt]=!1)),this[mt]=!0,this[Dt]=()=>{this.isConnected&&o(ct(this,at,"f"))},ht(this,Ye,null==e?void 0:e.isAsync,"f"),ht(this,Je,(null==e?void 0:e.isLight)?this:this.attachShadow({mode:"open"}),"f");const{adoptedStyleSheets:t}=new.target;if(t){const e=t.map((e=>e[f]||e));if(!this.shadowRoot)throw new C("Please mount to ShadowDOM or Document");this.shadowRoot.adoptedStyleSheets=e}}get internals(){if(!ct(this,Xe,"f")){const e=()=>{const{classList:e}=this;return{has:t=>e.contains(t),add:t=>e.add(t),delete:t=>e.remove(t)}};this.attachInternals||(this.attachInternals=()=>({states:e()})),ht(this,Xe,this.attachInternals(),"f"),ct(this,Xe,"f").states||(ct(this,Xe,"f").states=e())}return ct(this,Xe,"f")}attributeChangedCallback(){this.isConnected&&o(ct(this,at,"f"))}closestElement(e){const t="function"==typeof e,n="string"==typeof e&&e.toUpperCase(),r=i=>{const o=i.parentElement||i.getRootNode().host;if(!o)return null;if(t){if(o.constructor===e)return o}else if(o.tagName===n)return o;return r(o)};return r(this)}connectedCallback(){ct(this,Ye,"f")?gt.add(ct(this,ut,"f")):ct(this,ut,"f").call(this)}disconnectedCallback(){var e,t;if(this.isConnected)return void ht(this,Qe,!0,"f");const{observedStores:n}=this.constructor;null==n||n.forEach((e=>{j(e,ct(this,at,"f"))})),pt(ct(this,tt,"f")),null===(e=this.unmounted)||void 0===e||e.call(this),null===(t=ct(this,et,"f"))||void 0===t||t.forEach((e=>{pt(e.preCallback)}))}}Je=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,Ye=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,st=new WeakMap,at=new WeakMap,lt=new WeakMap,ut=new WeakMap;const vt=new h;function bt(e,t,n){const{booleanAttributes:r,numberAttributes:i}=e.constructor;Object.defineProperty(e,t,{configurable:!0,get(){if(!(mt in this))return;const e=this.getAttribute(n);return(null==r?void 0:r.has(n))?null!==e:(null==i?void 0:i.has(n))?Number(e):e||""},set(e){const i=this,o=vt.get(this),s=o[t],a=i.getAttribute(n);if(this[mt]&&null!==a&&!s)return;o[t]=!0;const l=null==r?void 0:r.has(n);null==e?i.removeAttribute(n):l?i.toggleAttribute(n,!!e):a!==String(e)&&i.setAttribute(n,String(e))}})}const yt=Symbol("event handle");function wt(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,get(){const e=vt.get(this)[t];return e||!n?e:(this[t]=dt,this[t])},set(e){const i=this,o=vt.get(i);e!==o[t]&&(n?(o[t]=(null==e?void 0:e[yt])?e:(t,o)=>{const s=new CustomEvent(n,Object.assign(Object.assign(Object.assign({},o),r),{detail:t}));i.dispatchEvent(s),e(t,o)},o[t][yt]=!0):(o[t]=e,this[Dt]()))}})}function xt(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){const e=vt.get(this);let r=e[t];if(!r){const i=this,o=i.shadowRoot||i;r={get ref(){return n},get element(){const e=[...o.querySelectorAll("gem-reflect")].map((e=>e.target));for(const t of[o,...e]){const e=t.querySelector(`[ref=${n}]`);if(e)return e}}},e[t]=r}return r}})}function Ct(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){var e;const{states:t}=this.internals;return null===(e=t.has)||void 0===e?void 0:e.call(t,n)},set(e){const{states:t}=this.internals;e?t.add(n):t.delete(n)}})}const Et=customElements.define.bind(customElements);function At(e,t,n,r=!1){const i=e.constructor,o=i[t];i.hasOwnProperty(t)||Object.defineProperty(i,t,{value:r?new Set(o):o?Array.from(o):[]}),i[t][r?"add":"push"](n)}function Ft(e,t){const n=`${y(t)}-${D()}`;At(e,"defineRefs",n),xt(e,t,n)}function $t(e,t,n){At(e,"observedAttributes",n),bt(e,t,n)}function Bt(e,t){$t(e,t,y(t))}function _t(e,t){const n=y(t);At(e,"booleanAttributes",n,!0),$t(e,t,n)}function St(e,t){const n=y(t);At(e,"numberAttributes",n,!0),$t(e,t,n)}function Rt(e,t){At(e,"observedPropertys",t),wt(e,t)}function Pt(e,t){const n=y(t);At(e,"defineCSSStates",n),Ct(e,t,`--${n}`)}function jt(e,t){const n=y(e[t]||t);e[t]=n,At(e instanceof kt?e:e.prototype,"defineSlots",n)}function Ot(e,t){const n=y(e[t]||t);e[t]=n,At(e instanceof kt?e:e.prototype,"defineParts",n)}function Lt(e,t){zt(e,t)}function Tt(e,t){zt(e,t,{bubbles:!0,composed:!0})}function zt(e,t,n){const r=y(t);At(e,"defineEvents",r),wt(e,t,r,n)}function Mt(e){return function(t){At(t.prototype,"adoptedStyleSheets",e)}}function Nt(e){return function(t){At(t.prototype,"observedStores",e)}}function It(e){return function(t){t.rootElement=e}}function Ht(e){return function(t){Et(e,t)}}customElements.define=(e,t,n)=>{if(t.prototype instanceof kt){const{observedAttributes:e,observedPropertys:n,defineEvents:r,defineCSSStates:i,defineRefs:o}=t;null==e||e.forEach((e=>bt(t.prototype,w(e),e))),null==n||n.forEach((e=>wt(t.prototype,e))),null==r||r.forEach((e=>wt(t.prototype,w(e),e))),null==i||i.forEach((e=>Ct(t.prototype,w(e),`--${e}`))),null==o||o.forEach((e=>xt(t.prototype,w(e),e)))}Et(e,t,n)};const qt="1.3.2";window.__GEM_DEVTOOLS__HOOK__&&Object.assign(window.__GEM_DEVTOOLS__HOOK__,Object.assign({},r));var Ut,Wt=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let Vt=Ut=class extends kt{constructor(){super(),new MutationObserver((()=>this.update())).observe(this,{childList:!0,characterData:!0,subtree:!0})}static setTitle(e){R(J,{title:e})}static updateTitle(e="",t=""){const{title:n}=J;n&&n!==Ut.defaultTitle?(Ut.title=n,document.title=Ut.title+t):e?(Ut.title=e,document.title=Ut.title+t):(Ut.title=Ut.defaultTitle,document.title=Ut.title)}render(){return Ut.updateTitle(this.textContent||"",this.suffix),this.hidden?Le``:Le`${Ut.title}`}};Vt.title=document.title,Vt.defaultTitle=document.title,Vt.defaultSuffix=` - ${document.title}`,Wt([Bt],Vt.prototype,"suffix",void 0),Vt=Ut=Wt([Nt(J),Ht("gem-title")],Vt),P(J,Vt.updateTitle);var Gt,Zt,Kt,Jt,Xt,Qt,Yt=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},en=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},tn=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class nn extends RegExp{constructor(e){const t={};let n=0;super(`^${e.replace(/:([^/$]+)/g,((e,r)=>(t[r]=n++,"([^/]+)"))).replace("*",".*")}$`,"i"),this.namePosition=t}}function rn(e){return new nn(e)}function on(e,t){return!!t.match(rn(e))||!!`${t}/`.match(rn(e))}function sn(e,t){let n=e.pattern;const r=null==t?void 0:t.params;return r&&Object.keys(r).forEach((e=>{n=n.replace(new RegExp(`:${e}`,"g"),r[e])})),n}let an=class extends kt{constructor({isLight:e,routes:t}={}){super({isLight:e}),Gt.set(this,void 0),Zt.set(this,void 0),Kt.set(this,void 0),Jt.set(this,void 0),Xt.set(this,(()=>{var e;const t=null===(e=this.currentRoute)||void 0===e?void 0:e.title;t&&R(J,{title:t})})),Qt.set(this,(()=>(this.currentRoute=null,Le``))),en(this,Jt,e,"f"),this.routes=t;const{path:n,query:r}=O.getParams();en(this,Gt,n+r,"f")}getParams(){if(this.currentRoute)return function(e,t){const n=rn(e),r=t.match(n);if(r){const e={};return Object.keys(n.namePosition).forEach((t=>{e[t]=r[n.namePosition[t]+1]})),e}}(this.currentRoute.pattern,O.getParams().path)}shouldUpdate(){if(this.inert)return!1;const{path:e,query:t}=O.getParams(),n=e+t;return(n!==tn(this,Gt,"f")||this.key!==tn(this,Zt,"f"))&&(en(this,Gt,n,"f"),en(this,Zt,this.key,"f"),!0)}render(){if(!this.routes)return tn(this,Qt,"f").call(this);const{path:e}=O.getParams();this.currentRoute=null;let t,n=null;t=this.routes instanceof Array?this.routes:Object.values(this.routes);for(const r of t){const{pattern:t}=r;if("*"===t)n=r;else if(on(t,e)){this.currentRoute=r;break}}if(this.currentRoute||(this.currentRoute=n),!this.currentRoute)return tn(this,Qt,"f").call(this);const{redirect:r,content:i}=this.currentRoute;return r?(en(this,Kt,!0,"f"),void O.replace({path:r})):(en(this,Kt,!1,"f"),Le`
3
+ ${tn(this,Jt,"f")?"":Le`
4
+ <style>
5
+ :host,
6
+ :not(:defined) {
7
+ display: contents;
8
+ }
9
+ </style>
10
+ `}
11
+ ${i}
12
+ `)}mounted(){en(this,Zt,this.key,"f"),l(tn(this,Xt,"f"))}updated(){tn(this,Xt,"f").call(this),tn(this,Kt,"f")||this.change(this.currentRoute)}};Gt=new WeakMap,Zt=new WeakMap,Kt=new WeakMap,Jt=new WeakMap,Xt=new WeakMap,Qt=new WeakMap,Yt([Rt],an.prototype,"routes",void 0),Yt([Rt],an.prototype,"key",void 0),Yt([Lt],an.prototype,"change",void 0),an=Yt([Nt(O.store),Ht("gem-route")],an);let ln=class extends an{constructor(e={}){super(Object.assign(Object.assign({},e),{isLight:!0}))}};ln=Yt([Ht("gem-light-route")],ln);var un=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let cn=class extends kt{constructor(){super({isLight:!0}),this.target=document.head,this.hidden=!0,this.effect((()=>{const e=[...this.childNodes];return this.target.append(...e),()=>{e.forEach((e=>e.remove()))}}),(()=>[this.target]))}};un([Rt],cn.prototype,"target",void 0),cn=un([Ht("gem-reflect")],cn);const hn={PRINT:"print",get isPrint(){return window.matchMedia(this.PRINT).matches},HOVER:"(hover: hover)",get isHover(){return window.matchMedia(this.HOVER).matches},PHONE:"(min-width: 319px) and (max-width: 480px)",get isPhone(){return window.matchMedia(this.PHONE).matches},LAPTOP:"(min-width: 1023px) and (max-width: 1280px) and (orientation: landscape)",get isLaptop(){return window.matchMedia(this.LAPTOP).matches},DESKTOP:"(min-width: 1279px) and (orientation: landscape)",get isDesktop(){return window.matchMedia(this.DESKTOP).matches},PHONE_LANDSCAPE:"(min-width: 479px) and (max-width: 767px) and (orientation: landscape)",get isPhoneLandscape(){return window.matchMedia(this.PHONE_LANDSCAPE).matches},TABLET:"(min-width: 768px) and (max-width: 1024px)",get isTablet(){return window.matchMedia(this.TABLET).matches},SMALL_PHONE:"(min-width: 319px) and (max-width: 480px) and (max-height: 640px)",get isSmallPhone(){return window.matchMedia(this.SMALL_PHONE).matches},WATCH:"(max-width: 319px)",get isWatch(){return window.matchMedia(this.WATCH).matches},SHORT:"(min-width: 479px) and (max-height: 320px)",get isShort(){return window.matchMedia(this.SHORT).matches},PWA:"(display-mode: standalone)",get isPWA(){return window.matchMedia(this.PWA).matches},MOTION_REDUCE:"(prefers-reduced-motion: reduce)",get isMotionReduce(){return window.matchMedia(this.MOTION_REDUCE).matches},DATA_REDUCE:"(prefers-reduced-data: reduce)",get isDataReduce(){return window.matchMedia(this.DATA_REDUCE).matches}};var dn=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let pn=class extends kt{constructor(){super(),this.clickHandle=e=>{return t=this,n=void 0,i=function*(){var t;const n=this.getPathInfo();if(!n)return;if(this.isExternal(n))switch(this.target){case"_self":return void(window.location.href=n);case"_parent":return void(window.parent.location.href=n);case"_top":return void(window.top.location.href=n);default:return void window.open(n)}const{path:r,query:i,hash:o}=O.getParams();if(r+i+o!==n)if(e.stopPropagation(),yield null===(t=this.prepare)||void 0===t?void 0:t.call(this),this.route)O.pushIgnoreCloseHandle(Object.assign(Object.assign({},function(e,t){const n=sn(e,t);return Object.assign({path:n},t)}(this.route,this.options)),{title:this.route.title||this.docTitle}));else if(this.href){const{pathname:e,search:t,hash:r}=new URL(n,location.origin);O.pushIgnoreCloseHandle({path:e,query:t,hash:decodeURIComponent(r),title:this.docTitle})}else O.pushIgnoreCloseHandle({path:this.path,query:this.query,hash:this.hash,title:this.docTitle})},new((r=void 0)||(r=Promise))((function(e,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,a)}l((i=i.apply(t,n||[])).next())}));var t,n,r,i},this.preventDefault=e=>{e.preventDefault()},this.addEventListener("click",this.clickHandle)}getPathInfo(){var e,t;if(this.route){const n=(null===(e=this.options)||void 0===e?void 0:e.query)||"",r=(null===(t=this.options)||void 0===t?void 0:t.hash)||"";return sn(this.route,this.options)+n+r}{const e=this.href||this.path+this.query+this.hash,{path:t,query:n}=O.getParams();return e.startsWith("#")?`${t}${n}${e}`:e.startsWith("?")?`${t}${e}`:e.startsWith(".")?u(t,e):e}}isExternal(e){return!e.startsWith("/")}render(e=this.getPathInfo()){return Le`
13
+ <style>
14
+ :host {
15
+ /* link default style */
16
+ cursor: pointer;
17
+ color: blue;
18
+ text-decoration: underline;
19
+ }
20
+ a {
21
+ all: unset;
22
+ display: contents;
23
+ }
24
+ a:visited {
25
+ color: unset;
26
+ }
27
+ </style>
28
+ <a
29
+ part=${this.link}
30
+ @click=${this.preventDefault}
31
+ href=${Ke("off"===this.hint?void 0:this.isExternal(e)?e:new URL(O.basePath+e,location.origin).toString())}
32
+ >
33
+ <slot></slot>
34
+ </a>
35
+ `}};dn([Bt],pn.prototype,"href",void 0),dn([Bt],pn.prototype,"target",void 0),dn([Bt],pn.prototype,"path",void 0),dn([Bt],pn.prototype,"query",void 0),dn([Bt],pn.prototype,"hash",void 0),dn([Bt],pn.prototype,"docTitle",void 0),dn([Bt],pn.prototype,"hint",void 0),dn([Rt],pn.prototype,"route",void 0),dn([Rt],pn.prototype,"options",void 0),dn([Rt],pn.prototype,"prepare",void 0),dn([Ot],pn.prototype,"link",void 0),pn=dn([Ht("gem-link"),Nt(K)],pn);let gn=class extends pn{render(){const{path:e,query:t,hash:n}=O.getParams(),r=this.pattern&&on(this.pattern,e),i=this.getPathInfo();return this.active=!(!r&&e+t+n!==i),super.render(i)}};dn([Bt],gn.prototype,"pattern",void 0),dn([Pt],gn.prototype,"active",void 0),gn=dn([Ht("gem-active-link"),Nt(O.store)],gn);var fn=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let mn=class extends kt{constructor(){super(...arguments),this.root=document}getContent(){const e=this.root.querySelector(this.selector);return e instanceof HTMLTemplateElement?e.content.cloneNode(!0):e instanceof SVGSVGElement?e.cloneNode(!0):null}render(){return Le`
36
+ <style>
37
+ :host {
38
+ position: relative;
39
+ }
40
+ :host(:not([hidden])) {
41
+ display: inline-flex;
42
+ }
43
+ svg {
44
+ width: 100%;
45
+ height: 100%;
46
+ }
47
+ </style>
48
+ ${this.getContent()}
49
+ <slot></slot>
50
+ `}};fn([Bt],mn.prototype,"selector",void 0),fn([Rt],mn.prototype,"root",void 0),mn=fn([Ht("gem-use")],mn);const Dn=new WeakMap;function kn(e){return Dn.get(e)}const vn=new WeakMap;function bn(e){const t=document.createElement("div");document.body.append(t);const n=getComputedStyle(t),r=e=>{var r;t.setAttribute("style",`color: ${e}`);const i=null===(r=n.color.match(/rgba?\((\d+,\s\d+,\s\d+)(,\s\d+)?\)/))||void 0===r?void 0:r[1];if(!i)throw new Error(`Not support color: ${e}`);return i},i={textColorRGB:r(e.textColor),primaryColorRGB:r(e.primaryColor)};return t.remove(),{...e,...i}}const yn=function(e){const t=D(),n=document.createElement("style"),r=_(e),i={},o={};vn.set(i,o),Dn.set(i,r),Object.keys(r).forEach((e=>{o[e]=`--${y(e)}-${t}`,i[e]=`var(${o[e]})`}));const s=()=>function(e,t){const n=Dn.get(t),r=vn.get(t),i=Object.keys(n).reduce(((e,t)=>n[t]?e+`${r[t]}:${n[t]};`:e),"");e.textContent=`:root, :host {${i}}`}(n,i);return P(r,s),s(),(document.head||document.documentElement).append(n),i}(bn({font:"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif",sidebarWidth:"230px",mainWidth:"780px",headerHeight:"55px",backgroundColor:"white",borderColor:"#eaeaea",textColor:"rgb(40, 44, 52)",primaryColor:"rgb(38, 192, 227)",inlineCodeBackground:"#ffe56433",blockCodeBackground:"#2e3440"}));function wn(e){e&&function(e,t){R(kn(e),t)}(yn,bn({...kn(yn),...e}))}function xn(e){return e.replace(/^\w/,(e=>e.toUpperCase()))}function Cn(e){return e.map((e=>"dir"===e.type?e.children?Cn(e.children):[]:e)).flat()}function En(e,t){return`${t?`/${t}`:""}${e}`}function An(e,t){const{origin:n}=location,{path:r,query:i,hash:o}=O.getParams(),s=En(t||r,e);return t?`${n}${s}`:`${n}${s}${i}${o}`}function Fn(e){const{origin:t}=new URL(e,location.origin);return t===location.origin}function $n(e,t){const n=encodeURI(e.replace(/\.md$/i,""));return t?n:n.split("/").map((e=>function(e){const[,t,n]=e.match(/^(\d*-)?(.*)/)||[];return{rank:t,title:n}}(e).title)).join("/")}function Bn(e,t){const n=e.split("/");return r=n.pop()||"",/^(index|readme)\.md$/i.test(r)?$n(n.join("/")+"/",t):$n(e,t);var r}const _n=document.createElement("div");var Sn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};const Rn=/\$\d(?:<[^>]*>)?/,Pn=/\$(\d)(<([^>]*)>)?/g;class jn{constructor(e){if(this.cachePrefix="gem@i18n",!e.resources[e.fallbackLanguage])throw new C("i18n: fallbackLanguage invalid");this.store=_(this),Object.assign(this,e);let t=this.currentLanguage||this.urlParamsLang||this.cacheLang;const n=document.querySelector("[type*=gem-i18n]");if(n)try{const e=JSON.parse(n.textContent||"");t=e.currentLanguage,this.resources[e.currentLanguage]=e.currentLanguagePack}catch(e){}t?(this.lang=t,this.setLanguage(t)):this.resetLanguage()}get cacheCurrentKey(){return`${this.cachePrefix}:current`}get urlParamsLang(){const{hostname:e,pathname:t,search:n}=location,r=e.split(".");switch(this.urlParamsType){case"ccTLD":return r.pop();case"gTLD":return r.shift();case"path":return t.split("/")[1];default:return this.urlParamsName&&new URLSearchParams(n).get(this.urlParamsName)}}get cacheLang(){return this.cache&&localStorage.getItem(this.cacheCurrentKey)||""}set lang(e){var t;this.currentLanguage=e,document.documentElement.lang=e,null===(t=this.onChange)||void 0===t||t.call(this,e)}get(e,...t){const n=this.resources[this.currentLanguage],r=this.resources[this.fallbackLanguage],i=n[e]||r[e],o=(null==i?void 0:i.message)||i||`[${e}]`;if(!t.length)return o;const s=o.split(Rn),a=[];let l;for(;l=Pn.exec(o);){const e=l[3],n=t[Number(l[1])-1];a.push("string"==typeof n?n:n(e))}return Le(s,...a)}detectLanguage(){const e=Object.keys(this.resources),t=navigator.languages.map((e=>e.replace(/-(.*)/,(e=>e.toUpperCase()))));for(const n of t){const t=e.find((e=>e===n||n.startsWith(`${e}-`)));if(t)return t}return this.fallbackLanguage}setLanguage(e){return Sn(this,void 0,void 0,(function*(){let t;const n=this.resources[e];if(!n)return console.warn(`i18n: not found \`${e}\``),this.resetLanguage();if("string"==typeof n){const{href:e,origin:r,pathname:i}=new URL(n,location.href),o=`${this.cachePrefix}:${e}`,s=localStorage.getItem(o),a=()=>Sn(this,void 0,void 0,(function*(){const e=yield(yield fetch(n)).json();if(this.cache){for(let e=0;e<localStorage.length;e++){const t=localStorage.key(e);t.startsWith(`${this.cachePrefix}:${r}${i}?`)&&localStorage.removeItem(t)}localStorage.setItem(o,JSON.stringify(e))}return e}));if(s)try{t=JSON.parse(s)}catch(e){t=yield a()}else t=yield a()}else t=n;return this.resources[e]=t,e!==this.currentLanguage&&(this.lang=e),this.cache&&e!==this.fallbackLanguage&&localStorage.setItem(this.cacheCurrentKey,e),R(this.store,{}),e}))}resetLanguage(){return this.lang=this.fallbackLanguage,this.cache&&localStorage.removeItem(this.cacheCurrentKey),this.setLanguage(this.detectLanguage())}toJSON(){return{currentLanguage:this.currentLanguage,currentLanguagePack:this.resources[this.currentLanguage]}}}const On=new jn({fallbackLanguage:"en",resources:{en:{editOnGithub:"Edit this page on GitHub",footer:"Generated by $1<gem-book>",lastUpdated:"Last Updated",loading:"Loading..."},zh:{editOnGithub:"在 Github 编辑此页",footer:"通过 $1<gem-book> 生成",lastUpdated:"上次更新",loading:"加载..."}}});var Ln=n(57),Tn=n.n(Ln),zn=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let Mn=class extends kt{constructor(){super(),this.effect((()=>{this.shadowRoot&&(this.shadowRoot.innerHTML=`\n <style>\n :host {\n display: contents;\n }\n ${this.contentcss}\n </style>\n ${this.content}\n `)}),(()=>[this.content,this.contentcss]))}render(){}};var Nn;zn([Bt],Mn.prototype,"content",void 0),zn([Bt],Mn.prototype,"contentcss",void 0),Mn=zn([Ht("gem-unsafe")],Mn);const In=document.createElement("div");Oe(Le`
51
+ <svg id="i18n" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24">
52
+ <path d="M0 0h24v24H0z" fill="none"></path>
53
+ <path
54
+ d=" M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z "
55
+ fill="currentColor"
56
+ ></path>
57
+ </svg>
58
+ <svg
59
+ id="arrow"
60
+ aria-hidden="true"
61
+ width="6"
62
+ height="10"
63
+ viewBox="0 0 6 10"
64
+ fill="none"
65
+ xmlns="http://www.w3.org/2000/svg"
66
+ >
67
+ <path d="M1.4 8.56L4.67 5M1.4 1.23L4.66 4.7" stroke="currentColor" stroke-linecap="square"></path>
68
+ </svg>
69
+ <svg id="link" aria-hidden="true" viewBox="0 0 100 100" width="15" height="15">
70
+ <path
71
+ fill="currentColor"
72
+ d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"
73
+ ></path>
74
+ <polygon
75
+ fill="currentColor"
76
+ points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"
77
+ ></polygon>
78
+ </svg>
79
+ <svg
80
+ id="compose"
81
+ aria-hidden="true"
82
+ viewBox="0 0 32 32"
83
+ width="32"
84
+ height="32"
85
+ fill="none"
86
+ stroke="currentcolor"
87
+ stroke-linecap="round"
88
+ stroke-linejoin="round"
89
+ stroke-width="2"
90
+ class="icon"
91
+ >
92
+ <path
93
+ data-v-49573232=""
94
+ d="M27 15 L27 30 2 30 2 5 17 5 M30 6 L26 2 9 19 7 25 13 23 Z M22 6 L26 10 Z M9 19 L13 23 Z"
95
+ ></path>
96
+ </svg>
97
+ `,In);const Hn=p`
98
+ <svg aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="16" height="16">
99
+ <path
100
+ fill-rule="evenodd"
101
+ d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"
102
+ ></path>
103
+ </svg>
104
+ `,qn=null===(Nn=In.querySelector("#link"))||void 0===Nn?void 0:Nn.cloneNode(!0);qn.removeAttribute("id");const Un=qn.outerHTML;var Wn=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};const Vn={javascript:"clike",actionscript:"javascript",apex:["clike","sql"],arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",nginx:"clike",objectivec:"c",opencl:"c",parser:"markup",php:"markup-templating",phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qml:"javascript",qore:"clike",racket:"scheme",jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",swift:"clike","t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templating","vbnet"],tap:"yaml",tt2:["clike","markup-templating"],textile:"markup",twig:"markup",typescript:"javascript",vala:"clike",vbnet:"basic",velocity:"markup",wiki:"markup",xeora:"markup","xml-doc":"markup",xquery:"markup"},Gn={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",g4:"antlr4",adoc:"asciidoc",shell:"bash",shortcode:"bbcode",rbnf:"bnf",oscript:"bsl",cs:"csharp",dotnet:"csharp",coffee:"coffeescript",conc:"concurnas",jinja2:"django","dns-zone":"dns-zone-file",dockerfile:"docker",eta:"ejs",xlsx:"excel-formula",xls:"excel-formula",gamemakerlanguage:"gml",hs:"haskell",gitignore:"ignore",hgignore:"ignore",npmignore:"ignore",webmanifest:"json",kt:"kotlin",kts:"kotlin",tex:"latex",context:"latex",ly:"lilypond",emacs:"lisp",elisp:"lisp","emacs-lisp":"lisp",md:"markdown",moon:"moonscript",n4jsd:"n4js",nani:"naniscript",objc:"objectivec",objectpascal:"pascal",px:"pcaxis",pcode:"peoplecode",pq:"powerquery",mscript:"powerquery",pbfasm:"purebasic",purs:"purescript",py:"python",rkt:"racket",rpy:"renpy",robot:"robotframework",rb:"ruby","sh-session":"shell-session",shellsession:"shell-session",smlnj:"sml",sol:"solidity",sln:"solution-file",rq:"sparql",t4:"t4-cs",trig:"turtle",ts:"typescript",tsconfig:"typoscript",uscript:"unrealscript",uc:"unrealscript",vb:"visual-basic",vba:"visual-basic",xeoracube:"xeora",yml:"yaml"};let Zn=class extends kt{getRanges(e){return e.split(/,\s*/).map((e=>{const[t,n=t]=e.split("-");return[parseInt(t)||1,parseInt(n)||0]}))}getParts(e){const t=e.split(/\n|\r\n/);return(this.range?this.getRanges(this.range).map((([e,n])=>{let r="";for(let i=e-1;i<(n||t.length);i++)r+=t[i]+"\n";return r})):[e]).join("\n...\n\n")}render(){const e=this.codelang;return Le`
105
+ ${this.highlight?this.getRanges(this.highlight).map((([e,t])=>Le`<span
106
+ class="highlight"
107
+ style="top: ${1.5*(e-1)+1}em; height: ${1.5*(t-e+1)}em"
108
+ ></span>`)):""}
109
+ <i class="code-lang-name">${e}</i>
110
+ <code ref=${this.codeRef.ref}>${this.getParts(this.textContent||"")}</code>
111
+ <style>
112
+ :host {
113
+ position: relative;
114
+ display: block;
115
+ color: #f8f8f2;
116
+ font-size: 0.875em;
117
+ }
118
+ .highlight {
119
+ display: block;
120
+ position: absolute;
121
+ pointer-events: none;
122
+ background: #fff2;
123
+ width: 100%;
124
+ }
125
+ .code-lang-name {
126
+ position: absolute;
127
+ top: 0.3em;
128
+ right: 0.7em;
129
+ font-size: 0.714em;
130
+ color: #cacaca;
131
+ user-select: none;
132
+ }
133
+ .code-lang-name::selection {
134
+ background: transparent;
135
+ }
136
+ ::selection {
137
+ background: #3c526d;
138
+ }
139
+ code {
140
+ display: block;
141
+ padding: ${1}em;
142
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
143
+ line-height: ${1.5};
144
+ text-align: left;
145
+ white-space: pre;
146
+ tab-size: 2;
147
+ hyphens: none;
148
+ overflow: auto;
149
+ overflow-clip-box: content-box;
150
+ box-shadow: none;
151
+ border: none;
152
+ background: transparent;
153
+ scrollbar-width: thin;
154
+ }
155
+ code::-webkit-scrollbar {
156
+ height: 0.5em;
157
+ }
158
+ code::-webkit-scrollbar-thumb {
159
+ background: #fff3;
160
+ border-radius: inherit;
161
+ }
162
+
163
+ .token.comment,
164
+ .token.prolog,
165
+ .token.doctype,
166
+ .token.cdata {
167
+ color: #636f88;
168
+ }
169
+
170
+ .token.punctuation {
171
+ color: #81a1c1;
172
+ }
173
+
174
+ .namespace {
175
+ opacity: 0.7;
176
+ }
177
+
178
+ .token.property,
179
+ .token.tag,
180
+ .token.constant,
181
+ .token.symbol,
182
+ .token.deleted {
183
+ color: #81a1c1;
184
+ }
185
+
186
+ .token.number {
187
+ color: #b48ead;
188
+ }
189
+
190
+ .token.boolean {
191
+ color: #81a1c1;
192
+ }
193
+
194
+ .token.selector,
195
+ .token.attr-name,
196
+ .token.string,
197
+ .token.char,
198
+ .token.builtin,
199
+ .token.inserted {
200
+ color: #a3be8c;
201
+ }
202
+
203
+ .token.operator,
204
+ .token.entity,
205
+ .token.url,
206
+ .language-css .token.string,
207
+ .style .token.string,
208
+ .token.variable {
209
+ color: #81a1c1;
210
+ }
211
+
212
+ .token.atrule,
213
+ .token.attr-value,
214
+ .token.function,
215
+ .token.class-name {
216
+ color: #88c0d0;
217
+ }
218
+
219
+ .token.keyword {
220
+ color: #81a1c1;
221
+ }
222
+
223
+ .token.regex,
224
+ .token.important {
225
+ color: #ebcb8b;
226
+ }
227
+
228
+ .token.important,
229
+ .token.bold {
230
+ font-weight: bold;
231
+ }
232
+
233
+ .token.italic {
234
+ font-style: italic;
235
+ }
236
+
237
+ .token.entity {
238
+ cursor: help;
239
+ }
240
+ @media print {
241
+ code {
242
+ border-left: 0.5rem solid rgba(${yn.textColorRGB}, 0.2);
243
+ white-space: pre-wrap;
244
+ word-break: break-word;
245
+ }
246
+ .highlight {
247
+ display: none;
248
+ }
249
+ }
250
+ </style>
251
+ `}mounted(){this.effect((async()=>{if(!this.codeRef.element)return;const e="https://cdn.skypack.dev/prismjs";await import(`${e}?min`);const{Prism:t}=window;if(this.codelang&&!t.languages[this.codelang]){const n=Gn[this.codelang]||this.codelang,r=[].concat(Vn[n]||[]);try{await Promise.all(r.map((n=>{if(!t.languages[n])return import(`${e}/components/prism-${n}.min.js`)}))),await import(`${e}/components/prism-${n}.min.js`)}catch(e){}}const n=t.languages[this.codelang]?t.highlight(this.textContent||"",t.languages[this.codelang],this.codelang):this.innerHTML;this.codeRef.element.innerHTML=this.getParts(n)}),(()=>[]))}};Wn([Bt],Zn.prototype,"codelang",void 0),Wn([Bt],Zn.prototype,"range",void 0),Wn([Bt],Zn.prototype,"highlight",void 0),Wn([Ft],Zn.prototype,"codeRef",void 0),Zn=Wn([Ht("gem-book-pre")],Zn);var Kn=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};const Jn=new DOMParser,Xn=_({fetching:!1,content:null});let Qn=class extends kt{constructor(){super(...arguments),this.mdRenderer=this.getMdRenderer(),this.cache=new Map,this.linkStyle=g`
252
+ .link {
253
+ display: inline-flex;
254
+ align-items: center;
255
+ gap: 0.2em;
256
+ color: inherit;
257
+ text-decoration: none;
258
+ line-height: 1.2;
259
+ background: rgba(${yn.primaryColorRGB}, 0.2);
260
+ border-bottom: 1px solid rgba(${yn.textColorRGB}, 0.4);
261
+ }
262
+ .link:hover {
263
+ background: rgba(${yn.primaryColorRGB}, 0.4);
264
+ border-color: currentColor;
265
+ }
266
+ `,this.fetchData=async()=>{R(Xn,{fetching:!0,content:null});const e=En(this.link,this.lang);let t=this.cache.get(e);t||(t=await(await fetch(e)).text(),this.cache.set(e,t));const[,,n,r,i,o]=t.match(/^(([\r\n\s]*---\s*(?:\r\n|\n))(.*?)((?:\r\n|\n)---\s*(?:\r\n|\n)?))?(.*)$/s)||[],s=this.parseMarkdown(o);R(Xn,{fetching:!1,content:s}),queueMicrotask(this.hashChangeHandle)},this.hashChangeHandle=()=>{var e;const{hash:t}=location,n=t&&(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(decodeURIComponent(t)));t?n&&n.scrollIntoView({behavior:"smooth",block:"start"}):scrollTo(0,0)}}getMdRenderer(){const e=new(Tn().Renderer);e.heading=function(e,t,n,r){const[,i,o]=e.match(/^(.*?)\s*(?:{#(.*)})?$/s),s=`h${t}`,a=o||`${this.options.headerPrefix}${r.slug(n)}`;return`<${s} class="markdown-header" id="${a}"><a class="header-anchor" aria-hidden="true" href="#${a}">${Hn}</a>${i}</${s}>`},e.code=(e,t)=>{const[n,r=""]=(null==t?void 0:t.split(/\s+/))||[];return`<gem-book-pre codelang="${n}" highlight="${r}">${i=e,_n.textContent=i,_n.innerHTML}</gem-book-pre>`;var i},e.image=(e,t,n)=>null===e?n:`<img src="${new URL(e,`${location.origin}${En(this.link,this.lang)}`).href}" alt="${n}" title="${t||""}"/>`;const{displayRank:t}=this;return e.link=function(e,n,r){if(null==e?void 0:e.startsWith(".")){const{search:i,hash:o}=new URL(e,location.origin);return`\n <gem-link\n class="link"\n path="${Bn(e.replace(/#.*/,""),t)}"\n hash="${o}"\n query="${i}"\n title="${n||""}"\n >${r}</gem-link>\n `}const i=Fn(e||"");return`\n <a\n class="link"\n ${i?"":'ref="noreferrer" target="_blank"'}\n href="${e||""}"\n title="${n||""}"\n >${r}${i?"":Un}</a>\n `},e}render(){const{fetching:e,content:t}=Xn;return Le`
267
+ ${t||Le`<div>${On.get("loading")}</div>`}
268
+ <style>
269
+ ${this.linkStyle}
270
+ </style>
271
+ <style>
272
+ :not(:defined)::before {
273
+ display: block;
274
+ content: 'The element is not defined';
275
+ padding: 1em;
276
+ border-radius: 0.25rem;
277
+ text-align: center;
278
+ background: ${yn.borderColor};
279
+ }
280
+ :host {
281
+ -webkit-print-color-adjust: economy;
282
+ color-adjust: economy;
283
+ display: block;
284
+ width: 100%;
285
+ box-sizing: border-box;
286
+ z-index: 1;
287
+ opacity: ${e?.3:1};
288
+ line-height: 1.7;
289
+ }
290
+ :host :first-child {
291
+ margin-top: 0;
292
+ }
293
+ a > img + svg {
294
+ display: none;
295
+ }
296
+ a > img {
297
+ margin-bottom: -1px;
298
+ }
299
+ a {
300
+ color: inherit;
301
+ }
302
+ h1,
303
+ h2,
304
+ h3,
305
+ h4,
306
+ h5,
307
+ h6 {
308
+ font-weight: bold;
309
+ line-height: 1.2;
310
+ scroll-margin: calc(${yn.headerHeight} + 2rem);
311
+ }
312
+ h1 {
313
+ font-size: 3rem;
314
+ margin: 0 0 1.4rem;
315
+ }
316
+ h2 {
317
+ font-size: 2rem;
318
+ margin: 7rem 0 2rem;
319
+ padding-bottom: 5px;
320
+ }
321
+ h3 {
322
+ font-size: 1.7rem;
323
+ margin: 2.5rem 0 1.5rem;
324
+ }
325
+ h4 {
326
+ font-size: 1.4rem;
327
+ margin: 2rem 0 1rem;
328
+ }
329
+ h5 {
330
+ font-size: 1.1rem;
331
+ margin: 2rem 0 1rem;
332
+ }
333
+ p {
334
+ margin: 1rem 0;
335
+ }
336
+ li > p {
337
+ margin: 0;
338
+ }
339
+ table {
340
+ margin: 2rem 0;
341
+ width: 100%;
342
+ border-spacing: 0;
343
+ border-collapse: separate;
344
+ }
345
+ table td,
346
+ table th {
347
+ padding: 12px 10px;
348
+ border-bottom: 1px solid ${yn.borderColor};
349
+ text-align: left;
350
+ }
351
+ thead th {
352
+ color: ${yn.textColor};
353
+ background: rgba(${yn.textColorRGB}, 0.05);
354
+ border-bottom: 1px solid ${yn.borderColor};
355
+ border-top: 1px solid ${yn.borderColor};
356
+ font-weight: normal;
357
+ font-size: 12px;
358
+ padding: 10px;
359
+ }
360
+ :host > ol,
361
+ :host > ul {
362
+ padding-left: 1.25rem;
363
+ margin: 1rem 0;
364
+ }
365
+ .contains-task-list {
366
+ list-style: none;
367
+ padding-left: 0;
368
+ }
369
+ img {
370
+ max-width: 100%;
371
+ }
372
+ blockquote {
373
+ background: rgba(${yn.textColorRGB}, 0.05);
374
+ border-left: 0.5rem solid rgba(${yn.textColorRGB}, 0.2);
375
+ margin: 1.2em 0;
376
+ padding: 0.8em 1em;
377
+ }
378
+ blockquote p {
379
+ margin: 0.5em 0 0;
380
+ }
381
+ blockquote > :first-child {
382
+ margin-top: 0;
383
+ font-weight: bold;
384
+ }
385
+ blockquote > :nth-child(n + 2),
386
+ blockquote > :last-child {
387
+ font-weight: normal;
388
+ }
389
+ hr {
390
+ height: 1px;
391
+ padding: 0;
392
+ margin: 3rem 0;
393
+ background-color: ${yn.borderColor};
394
+ border: 0;
395
+ }
396
+ .header-anchor {
397
+ float: left;
398
+ line-height: 1;
399
+ margin-left: -1.25rem;
400
+ padding-right: 0.25rem;
401
+ opacity: 0;
402
+ border-bottom: none;
403
+ }
404
+ .header-anchor:hover {
405
+ opacity: 1;
406
+ border-bottom: none;
407
+ }
408
+ .header-anchor svg {
409
+ vertical-align: middle;
410
+ fill: currentColor;
411
+ }
412
+ .markdown-header:focus,
413
+ .markdown-header:hover {
414
+ outline: none;
415
+ }
416
+ .markdown-header:focus .header-anchor,
417
+ .markdown-header:hover .header-anchor {
418
+ opacity: 1;
419
+ }
420
+ code {
421
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
422
+ font-size: 90%;
423
+ background: ${yn.inlineCodeBackground};
424
+ padding: 0 3px;
425
+ }
426
+ a code {
427
+ background: transparent;
428
+ padding: 0;
429
+ }
430
+ gem-book-pre {
431
+ z-index: 2;
432
+ border-radius: 0.25rem;
433
+ margin: 1rem 0px;
434
+ background: ${yn.blockCodeBackground};
435
+ }
436
+ @media ${hn.PHONE} {
437
+ .header-anchor {
438
+ display: none;
439
+ }
440
+ h1 {
441
+ font-size: 2.5rem;
442
+ }
443
+ @media screen {
444
+ gem-book-pre {
445
+ margin: 1rem -1rem;
446
+ border-radius: 0;
447
+ }
448
+ }
449
+ }
450
+ </style>
451
+ `}mounted(){return this.effect((()=>{this.mdRenderer=this.getMdRenderer()}),(()=>[this.displayRank])),this.effect((()=>{scrollTo(0,0),this.fetchData()}),(()=>[this.link,this.lang])),window.addEventListener("hashchange",this.hashChangeHandle),()=>{window.removeEventListener("hashchange",this.hashChangeHandle)}}parseMarkdown(e){return[...Jn.parseFromString(Tn().parse(e,{renderer:this.mdRenderer}),"text/html").body.children]}unsafeRenderHTML(e,t=""){const n=Tn().parse(e,{renderer:this.mdRenderer}),r=g`
452
+ ${this.linkStyle}
453
+ ${t}
454
+ `;return Le`<gem-unsafe content=${n} contentcss=${r}></gem-unsafe>`}};Kn([Bt],Qn.prototype,"link",void 0),Kn([Bt],Qn.prototype,"lang",void 0),Kn([_t],Qn.prototype,"displayRank",void 0),Qn=Kn([Ht("gem-book-main"),Nt(Xn)],Qn);const Yn=new Qn;let er=class extends kt{render(){return Le`
455
+ <style>
456
+ h1 {
457
+ font-size: 2em;
458
+ font-weight: bold;
459
+ margin: 0;
460
+ }
461
+ </style>
462
+ <h1>404 - Not found</h1>
463
+ <gem-reflect>
464
+ <meta name="robots" content="noindex" />
465
+ </gem-reflect>
466
+ `}};er=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ht("gem-book-404")],er);const tr=_({});function nr(e){return e.filter((({type:e,link:t,children:n})=>"dir"===e&&t!==(null==n?void 0:n[0].link))).map((({link:e,children:t})=>({pattern:e,redirect:null==t?void 0:t[0].link})))}function rr(e,t,n,r){var i;const o=[];if(e.forEach((e=>{const{title:i,link:s,userFullPath:a,originLink:l}=e,u=`${xn(i)}${i?" - ":""}${t}`,c=Le`
467
+ <gem-book-main role="article" lang=${n} link=${l} ?display-rank=${r}></gem-book-main>
468
+ `;if(o.push({title:u,pattern:s,content:c,data:e}),a!==s&&o.push({pattern:a,redirect:s}),!r){const e=$n(l,!0);e!==s&&o.push({pattern:e,redirect:s})}})),!o.some((({pattern:e})=>"/"===e))){const e=null===(i=o.find((({pattern:e})=>!!e)))||void 0===i?void 0:i.pattern;e&&o.push({pattern:"/",redirect:e})}return o.push({pattern:"*",content:Le`<gem-book-404 role="region" aria-label="not found"></gem-book-404>`}),o}function ir(e,t){const{sidebar:n,lang:r,langList:i,languagechangeHandle:o}=function(e){let t=[],n="",r=[],i=e=>{};if(e)if(e.sidebar instanceof Array)t=e.sidebar;else{const o=e.sidebar;r=Object.keys(e.sidebar).map((e=>({code:e,name:o[e].name})));const s=r[0].code,a=new jn({fallbackLanguage:s,resources:o,cache:!0,urlParamsType:"path"});n=a.currentLanguage,history.basePath=`/${n}`,t=o[n].data,i=async e=>{const{path:t,query:n,hash:r}=history.getParams();history.basePath=`/${e}`,await a.setLanguage(e),history.replace({path:t,query:n,hash:r})}}return n&&On.setLanguage(n in On.resources?n:On.fallbackLanguage),{sidebar:t,lang:n,langList:r,languagechangeHandle:i}}(e),s=function(e,t){const n=e=>{var r;return{...e,link:e.link&&Bn(e.link,t),userFullPath:e.link&&$n(e.link,t),originLink:e.link,children:null===(r=e.children)||void 0===r?void 0:r.map(n)}};return e.map(n)}(n,null==e?void 0:e.displayRank),a=Cn(s),l=function(e,t){const n=[],r=e=>{e.forEach((e=>{var t;e.isNav?("file"===e.type||"dir"===e.type&&(null===(t=e.children)||void 0===t?void 0:t.length))&&n.push(e):e.children&&r(e.children)}))};return r(e),n.concat(t)}(s,(null==e?void 0:e.nav)||[]),u=[...nr(l),...rr(a,(null==e?void 0:e.title)||"",r,null==e?void 0:e.displayRank)],c=function(e){const{path:t}=history.getParams();let n,r;const i=[],o=(e,i)=>(e.forEach((e=>{let s;!r&&n&&e.link===t&&"file"===e.type&&(r=n),e.isNav&&"dir"===e.type?(n=e,s=e):i.push(e),e.children&&(e.children=o(e.children,[])),s&&(n=void 0)})),e);return o(e,i),r?r.children||[]:i}(s),h=function(e){const t=e.find((e=>"/"===e.pattern));return t?t.redirect||t.pattern:""}(u),d=Cn(c).filter((t=>!(t.sidebarIgnore||(null==e?void 0:e.homeMode)&&t.link===h)));R(tr,{config:e,links:a,nav:l,routes:u,lang:r,langList:i,languagechangeHandle:o,homePage:h,currentSidebar:c,currentLinks:d}),t&&R(tr,{getCurrentLink:()=>{var e,n;return null===(n=null===(e=null==t?void 0:t.routeRef.element)||void 0===e?void 0:e.currentRoute)||void 0===n?void 0:n.data}})}P(history.store,(()=>{ir(tr.config)}));var or=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let sr=class extends kt{constructor(){super(...arguments),this.languagechange=e=>{var t;return null===(t=tr.languagechangeHandle)||void 0===t?void 0:t.call(tr,e)},this.renderI18nSelect=()=>{var e;const{langList:t=[],lang:n}=tr;if(n){const r=null===(e=t.find((({code:e})=>e===n)))||void 0===e?void 0:e.name;return Le`
469
+ <div class="item">
470
+ ${hn.isPhone?"":r||n}
471
+ <gem-use @click=${()=>{var e;return null===(e=this.i18nRef.element)||void 0===e?void 0:e.click()}} .root=${In} selector="#i18n"></gem-use>
472
+ <select
473
+ class="i18n-select"
474
+ aria-label="language select"
475
+ ref=${this.i18nRef.ref}
476
+ @change=${e=>this.languagechange(e.target.value)}
477
+ >
478
+ ${t.map((({name:e,code:t})=>Le`<option value=${t} ?selected=${t===n}>${e}</option>`))}
479
+ </select>
480
+ </div>
481
+ `}},this.renderExternalItem=({navTitle:e,title:t,link:n})=>{if(n)return Le`
482
+ <gem-link class="external item" href=${n}>
483
+ ${xn(e||t)}
484
+ <gem-use .root=${In} selector="#link"></gem-use>
485
+ </gem-link>
486
+ `},this.renderInternalItem=({navTitle:e,title:t,link:n})=>{if(n)return Le`
487
+ <gem-active-link class="item" href=${n} pattern="${n}*">
488
+ ${xn(e||t)}
489
+ </gem-active-link>
490
+ `}}render(){const{config:e,nav:t=[]}=tr,{github:n="",icon:r="",title:i=""}=e||{},o=e?this.renderExternalItem({title:"github",link:n}):null,s=(null==t?void 0:t.filter((e=>Fn(e.link))))||[],a=(null==t?void 0:t.filter((e=>!Fn(e.link))))||[];return Le`
491
+ <style>
492
+ :host {
493
+ --height: ${yn.headerHeight};
494
+ display: flex;
495
+ line-height: var(--height);
496
+ }
497
+ .item {
498
+ display: flex;
499
+ align-items: center;
500
+ position: relative;
501
+ cursor: pointer;
502
+ }
503
+ .item gem-use {
504
+ margin-left: 0.3rem;
505
+ }
506
+ .i18n-select {
507
+ width: 100%;
508
+ cursor: pointer;
509
+ position: absolute;
510
+ top: 0;
511
+ right: 0;
512
+ left: 0;
513
+ bottom: 0;
514
+ opacity: 0;
515
+ }
516
+ .internals {
517
+ flex-grow: 1;
518
+ display: flex;
519
+ }
520
+ .homelink {
521
+ margin-right: 3rem;
522
+ font-size: 1.2rem;
523
+ font-weight: 700;
524
+ }
525
+ .homelink ~ .item {
526
+ font-weight: 300;
527
+ padding: 0 1rem;
528
+ }
529
+ .internals img {
530
+ height: calc(0.8 * var(--height));
531
+ min-width: calc(0.8 * var(--height));
532
+ object-fit: contain;
533
+ transform: translateX(-10%);
534
+ }
535
+ .item + .item {
536
+ margin-left: 1rem;
537
+ }
538
+ gem-link,
539
+ gem-active-link {
540
+ text-decoration: none;
541
+ color: inherit;
542
+ }
543
+ gem-active-link:active {
544
+ background: rgba(${yn.primaryColorRGB}, 0.1);
545
+ }
546
+ gem-active-link:hover,
547
+ gem-active-link:where(.--active, :--active) {
548
+ color: ${yn.primaryColor};
549
+ }
550
+ gem-active-link:where(.--active, :--active)::after {
551
+ content: '';
552
+ position: absolute;
553
+ left: 0;
554
+ bottom: 0;
555
+ height: 3px;
556
+ background: currentColor;
557
+ width: 100%;
558
+ }
559
+ gem-use {
560
+ width: 15px;
561
+ height: 15px;
562
+ }
563
+ @media ${hn.PHONE} {
564
+ :host {
565
+ --height: calc(0.875 * ${yn.headerHeight});
566
+ }
567
+ .homelink {
568
+ margin-right: 0;
569
+ }
570
+ .homelink ~ .item {
571
+ padding: 0 0.3rem;
572
+ }
573
+ .external {
574
+ display: none;
575
+ }
576
+ }
577
+ </style>
578
+ <div class="internals">
579
+ <gem-link class="item homelink" path="/">
580
+ ${r?Le`<img alt=${i} src=${r} aria-hidden="true" />`:null}
581
+ ${hn.isPhone&&r&&Number(null==t?void 0:t.length)>=2?"":i}
582
+ </gem-link>
583
+ ${s.map(this.renderInternalItem)}
584
+ </div>
585
+ ${a.map(this.renderExternalItem)} ${o} ${this.renderI18nSelect()}
586
+ <slot class="item"></slot>
587
+ `}updated(){this.i18nRef.element&&tr.lang&&(this.i18nRef.element.value=tr.lang)}};or([Tt],sr.prototype,"languagechange",void 0),or([Ft],sr.prototype,"i18nRef",void 0),sr=or([Ht("gem-book-nav"),Nt(tr)],sr);let ar=class extends kt{constructor(){super(...arguments),this.toggleLinks=e=>{e.target.classList.toggle("close")},this.renderItem=({type:e,link:t,title:n,children:r,sidebarIgnore:i},o=!1)=>{const{homePage:s,config:a}=tr,l=null==a?void 0:a.homeMode;return i||l&&s===t?Le`<!-- No need to render homepage item -->`:"dir"===e?(null==r?void 0:r.length)?Le`
588
+ <div class="item" @click=${this.toggleLinks}>
589
+ <gem-use class="arrow" selector="#arrow" .root=${In}></gem-use>
590
+ ${xn(n)}
591
+ </div>
592
+ <div class="links item">${r.map((e=>this.renderItem(e)))}</div>
593
+ `:Le`<!-- No need for an empty directory -->`:Le`
594
+ <gem-active-link
595
+ class="item ${o?"single":""}"
596
+ pattern=${r?new URL(t,location.origin).pathname:t}
597
+ href=${t}
598
+ >
599
+ ${"heading"===e?"# ":""} ${n?xn(n):"No title"}
600
+ </gem-active-link>
601
+ ${r?Le`<div class="links item hash">${r.map((e=>this.renderItem(e)))}</div>`:null}
602
+ `}}render(){var e;return Le`
603
+ <slot></slot>
604
+ <style>
605
+ :host {
606
+ display: block;
607
+ overflow: auto;
608
+ overscroll-behavior: contain;
609
+ box-sizing: border-box;
610
+ position: sticky;
611
+ top: 0;
612
+ padding: 3rem 1rem 0;
613
+ margin: 0 -1rem;
614
+ font-size: 0.875rem;
615
+ scrollbar-width: thin;
616
+ }
617
+ :host::-webkit-scrollbar {
618
+ width: 0.5em;
619
+ }
620
+ :host::-webkit-scrollbar-thumb {
621
+ background: ${yn.borderColor};
622
+ }
623
+ @media ${hn.PHONE} {
624
+ :host {
625
+ position: static;
626
+ height: auto;
627
+ margin: 0;
628
+ padding: 0;
629
+ overflow: visible;
630
+ border-bottom: 1px solid ${yn.borderColor};
631
+ }
632
+ }
633
+ :host::after {
634
+ content: '';
635
+ display: block;
636
+ height: 2rem;
637
+ }
638
+ gem-active-link {
639
+ display: block;
640
+ color: inherit;
641
+ text-decoration: none;
642
+ line-height: 1.2;
643
+ padding: 0.15em 0;
644
+ }
645
+ gem-active-link:where(.--active, :--active) {
646
+ color: inherit;
647
+ }
648
+ gem-active-link:not(:where(.--active, :--active)):hover {
649
+ opacity: 0.6;
650
+ }
651
+ gem-active-link:where(.--active, :--active):not([pattern*='#']) {
652
+ font-weight: bolder;
653
+ }
654
+ gem-active-link:where(.--active, :--active) + .hash {
655
+ display: block;
656
+ }
657
+ .arrow {
658
+ width: 6px;
659
+ height: 10px;
660
+ margin-right: calc(1em - 6px);
661
+ }
662
+ .close + .links {
663
+ display: none;
664
+ }
665
+ .links {
666
+ position: relative;
667
+ }
668
+ .links::before {
669
+ position: absolute;
670
+ content: '';
671
+ height: 100%;
672
+ border-left: 1px solid ${yn.borderColor};
673
+ transform: translateX(0.15em);
674
+ }
675
+ .hash {
676
+ display: none;
677
+ }
678
+ .item {
679
+ cursor: pointer;
680
+ }
681
+ .item:not(.links) {
682
+ display: flex;
683
+ align-items: center;
684
+ }
685
+ .single {
686
+ display: flex;
687
+ align-items: center;
688
+ }
689
+ .single::before {
690
+ content: '';
691
+ display: block;
692
+ width: 4px;
693
+ height: 4px;
694
+ border-radius: 50%;
695
+ background: currentColor;
696
+ margin-right: calc(1em - 4px);
697
+ opacity: 0.6;
698
+ flex-shrink: 0;
699
+ }
700
+ .item gem-use {
701
+ transform: rotate(90deg);
702
+ }
703
+ .item.close gem-use {
704
+ transform: rotate(0deg);
705
+ }
706
+ .item .item {
707
+ margin-left: 1rem;
708
+ }
709
+ .item + .item {
710
+ margin-top: 0.5rem;
711
+ }
712
+ </style>
713
+ ${null===(e=tr.currentSidebar)||void 0===e?void 0:e.map((e=>this.renderItem(e,!0)))}
714
+ `}updated(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(":where(.--active, :--active)"),n=e=>{var t;e&&(e.classList.remove("close"),n(null===(t=e.parentElement)||void 0===t?void 0:t.previousElementSibling))};n(t)}};ar=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ht("gem-book-sidebar"),Nt(tr)],ar);var lr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let ur=class extends kt{renderHero({hero:e}){if(!e)return null;const{title:t,desc:n,actions:r}=e;return Le`
715
+ <style>
716
+ .hero {
717
+ text-align: center;
718
+ padding: 3.5rem 1rem;
719
+ --tcolor: rgba(${yn.textColorRGB}, 0.03);
720
+ --pcolor: rgba(${yn.primaryColorRGB}, 0.02);
721
+ background: linear-gradient(var(--tcolor), var(--tcolor)), linear-gradient(var(--pcolor), var(--pcolor));
722
+ }
723
+ .title {
724
+ margin: 0;
725
+ padding: 0;
726
+ font-size: 3rem;
727
+ font-weight: bold;
728
+ }
729
+ .desc {
730
+ opacity: 0.6;
731
+ }
732
+ .actions {
733
+ display: flex;
734
+ flex-wrap: wrap;
735
+ margin: 2rem;
736
+ gap: 1rem;
737
+ justify-content: center;
738
+ align-items: center;
739
+ }
740
+ gem-link {
741
+ color: ${yn.primaryColor};
742
+ text-decoration: none;
743
+ transition: all 0.3s;
744
+ }
745
+ gem-link:first-of-type {
746
+ padding: 0.5rem 2rem;
747
+ text-decoration: none;
748
+ color: #fff;
749
+ background: ${yn.primaryColor};
750
+ }
751
+ gem-link:hover {
752
+ filter: brightness(1.1);
753
+ }
754
+ gem-use {
755
+ margin-left: 0.3rem;
756
+ transform: scale(1.3);
757
+ }
758
+ @media ${hn.PHONE} {
759
+ .hero {
760
+ padding: 2rem 1rem;
761
+ }
762
+ .title {
763
+ font-size: 2rem;
764
+ }
765
+ gem-link:first-of-type {
766
+ padding: 0.3rem 1rem;
767
+ }
768
+ }
769
+ @media print {
770
+ .hero {
771
+ background: transparent;
772
+ }
773
+ }
774
+ </style>
775
+ <div class="hero" part=${this.hero} role="banner">
776
+ <div class="body">
777
+ ${t?Le`<h1 class="title">${t}</h1>`:""}
778
+ ${n?Le`<p class="desc">${Yn.unsafeRenderHTML(n)}</p>`:""}
779
+ <div class="actions">
780
+ ${null==r?void 0:r.map((({link:e,text:t},n)=>Le`<gem-link href=${Bn(e)}>
781
+ ${t}${n?Le`<gem-use .root=${In} selector="#arrow"></gem-use>`:""}
782
+ </gem-link>`))}
783
+ </div>
784
+ </div>
785
+ </div>
786
+ `}renderFeature({features:e,originLink:t}){return Le`
787
+ <style>
788
+ .features {
789
+ padding: 3rem;
790
+ }
791
+ .features .body {
792
+ display: grid;
793
+ grid-template-columns: repeat(3, 1fr);
794
+ grid-column-gap: 1rem;
795
+ }
796
+ .icon {
797
+ width: 30%;
798
+ object-fit: contain;
799
+ }
800
+ .has-icon {
801
+ text-align: center;
802
+ }
803
+ .feat-title {
804
+ margin: 1rem 0;
805
+ font-size: 1.5em;
806
+ line-height: 1;
807
+ font-weight: 300;
808
+ opacity: 0.6;
809
+ }
810
+ .feat-desc {
811
+ line-height: 1.5;
812
+ margin: 1rem 0;
813
+ letter-spacing: 0.05em;
814
+ font-weight: 300;
815
+ }
816
+ @media ${hn.PHONE}, print {
817
+ .features {
818
+ padding: 3rem 1rem;
819
+ }
820
+ .features .body {
821
+ display: block;
822
+ }
823
+ .icon {
824
+ width: 5rem;
825
+ }
826
+ .feat-title,
827
+ .feat-desc {
828
+ margin: 0;
829
+ }
830
+ }
831
+ </style>
832
+ <div role="region" aria-label="features" class="features">
833
+ <dl class="body">
834
+ ${null==e?void 0:e.map((e=>Le`
835
+ <div class="feature ${e.icon?"has-icon":""}">
836
+ ${e.icon?Le`<img
837
+ class="icon"
838
+ src=${new URL(e.icon,`${location.origin}${En(t,tr.lang)}`).href}
839
+ />`:""}
840
+ <dt class="feat-title">${e.title}</dt>
841
+ <dd class="feat-desc">${Yn.unsafeRenderHTML(e.desc)}</dd>
842
+ </div>
843
+ `))}
844
+ </dl>
845
+ </div>
846
+ `}render(){var e;const t=null===(e=tr.links)||void 0===e?void 0:e.find((e=>e.link===tr.homePage));return t?Le`
847
+ <style>
848
+ :host {
849
+ overflow: hidden;
850
+ }
851
+ .body {
852
+ margin: auto;
853
+ width: 100%;
854
+ max-width: ${yn.mainWidth};
855
+ }
856
+ @media print {
857
+ :host {
858
+ -webkit-print-color-adjust: exact;
859
+ color-adjust: exact;
860
+ }
861
+ }
862
+ </style>
863
+ ${this.renderHero(t)}${this.renderFeature(t)}
864
+ `:null}};lr([Ot],ur.prototype,"hero",void 0),ur=lr([Ht("gem-book-homepage"),Nt(tr)],ur);let cr=class extends kt{render(){const{config:e}=tr;return Le`
865
+ <style>
866
+ :host {
867
+ display: block;
868
+ padding: 2rem 0;
869
+ margin-top: 6rem;
870
+ border-top: 1px solid ${yn.borderColor};
871
+ font-style: italic;
872
+ line-height: 1.5;
873
+ color: rgba(${yn.textColorRGB}, 0.5);
874
+ }
875
+ @media ${hn.PHONE} {
876
+ :host {
877
+ margin: 0;
878
+ }
879
+ }
880
+ gem-link {
881
+ color: ${yn.textColor};
882
+ border-bottom: 1px solid rgba(${yn.textColorRGB}, 0.3);
883
+ text-decoration: none;
884
+ }
885
+ gem-link:hover {
886
+ border-bottom: 1px solid;
887
+ }
888
+ </style>
889
+ ${(null==e?void 0:e.footer)?Yn.unsafeRenderHTML(e.footer,g`
890
+ p {
891
+ margin: 0;
892
+ }
893
+ .link,
894
+ .link:hover {
895
+ background: none;
896
+ }
897
+ `):On.get("footer",(e=>Le`<gem-link href="https://gem-book.js.org">&lt;${e}&gt;</gem-link>`))}
898
+ `}};cr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ht("gem-book-footer"),Nt(On.store),Nt(tr)],cr);const hr={};let dr=class extends kt{constructor(){super(...arguments),this.state={lastUpdated:"",message:"",commitUrl:""},this.getMdFullPath=()=>{const{config:e,lang:t,links:n=[]}=tr,{sourceDir:r=""}=e||{},{path:i}=O.getParams(),o=n.find((({originLink:e})=>Bn(e)===i));if(o)return`${r?`/${r}`:""}${En(o.originLink,t)}`}}get lastUpdated(){const{lastUpdated:e}=this.state;return e&&new Intl.DateTimeFormat(tr.lang||"default",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}).format(new Date(e))}render(){const{lastUpdated:e}=this,{message:t,commitUrl:n}=this.state,{config:r}=tr,{github:i,sourceBranch:o=""}=r||{},s=this.getMdFullPath();if(i&&o&&s)return Le`
899
+ <style>
900
+ :host {
901
+ display: flex;
902
+ flex-wrap: wrap;
903
+ padding: 2rem 0;
904
+ justify-content: space-between;
905
+ line-height: 1.5;
906
+ }
907
+ gem-link {
908
+ border-bottom: 1px solid rgba(${yn.textColorRGB}, 0.3);
909
+ color: inherit;
910
+ text-decoration: none;
911
+ display: inline-flex;
912
+ align-items: center;
913
+ }
914
+ gem-link:hover {
915
+ border-bottom: 1px solid;
916
+ }
917
+ gem-use {
918
+ width: 18px;
919
+ height: 18px;
920
+ margin-right: 10px;
921
+ }
922
+ .last-updated span {
923
+ opacity: 0.5;
924
+ }
925
+ @media ${hn.PHONE} {
926
+ gem-link,
927
+ .last-updated {
928
+ white-space: nowrap;
929
+ }
930
+ }
931
+ </style>
932
+ <gem-link class="edit" href=${`${i}/blob/${o}${s}`}>
933
+ <gem-use selector="#compose" .root=${In}></gem-use>
934
+ <span>${On.get("editOnGithub")}</span>
935
+ </gem-link>
936
+ ${e&&Le`
937
+ <div class="last-updated">
938
+ <gem-link class="edit" href=${n} title=${t}>${On.get("lastUpdated")}:</gem-link>
939
+ <span>${e}</span>
940
+ </div>
941
+ `}
942
+ `}mounted(){this.effect((async()=>{var e,t;const{config:n}=tr,{github:r,sourceBranch:i=""}=n||{};if(!r)return;const o=new URL(r).pathname,s=this.getMdFullPath();if(!s)return;const a=new URLSearchParams({path:s,page:"1",per_page:"1",sha:i});try{const n=`https://api.github.com/repos${o}/commits?${a}`,r=await(async e=>{if(hr[e])return hr[e];const[t]=await(await fetch(e)).json();return hr[e]=t,t})(n),i=null===(t=null===(e=null==r?void 0:r.commit)||void 0===e?void 0:e.committer)||void 0===t?void 0:t.date;this.setState({lastUpdated:i||"",message:i?r.commit.message:"",commitUrl:i?r.html_url:""})}catch(e){this.setState({lastUpdated:""})}}),(()=>[O.getParams().path]))}};dr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ht("gem-book-edit-link"),Nt(On.store)],dr);var pr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let gr=class extends kt{render(){const{currentLinks:e,getCurrentLink:t}=tr,n=null==t?void 0:t();if(!e||!n)return;const r=e.findIndex((e=>n.originLink===e.originLink)),i=e[r-1],o=e[r+1];return Le`
943
+ <style>
944
+ :host {
945
+ display: flex;
946
+ flex-wrap: wrap;
947
+ justify-content: space-between;
948
+ padding: 2rem 0;
949
+ line-height: 1.5;
950
+ border-top: 1px solid ${yn.borderColor};
951
+ }
952
+ gem-link {
953
+ border-bottom: 1px solid rgba(${yn.textColorRGB}, 0.3);
954
+ color: inherit;
955
+ text-decoration: none;
956
+ }
957
+ gem-link:hover {
958
+ border-bottom: 1px solid;
959
+ }
960
+ </style>
961
+ ${i?Le`<gem-link path=${i.link}>← ${xn(i.title)}</gem-link>`:null}
962
+ <div></div>
963
+ ${o?Le`<gem-link path=${o.link}>${xn(o.title)} →</gem-link>`:null}
964
+ `}};pr([Rt],gr.prototype,"links",void 0),gr=pr([Ht("gem-book-rel-link"),Nt(tr)],gr);let fr=class extends kt{render(){var e,t,n;const{links:r,langList:i,lang:o="",routes:s,homePage:a,getCurrentLink:l}=tr,{path:u}=O.getParams(),c=null==s?void 0:s.find((e=>e.pattern===u&&e.redirect)),h=An(o&&i&&!location.pathname.startsWith(`/${o}`)?i[0].code:o,null==c?void 0:c.redirect),d=null==l?void 0:l(),p=a&&a===(null==d?void 0:d.link)&&(null===(e=null==d?void 0:d.hero)||void 0===e?void 0:e.desc)||(null===(n=null===(t=Xn.content)||void 0===t?void 0:t.find((e=>"P"===e.tagName)))||void 0===n?void 0:n.textContent);return Le`
965
+ <gem-reflect>
966
+ ${p?Le`<meta name="description" content=${p} />`:""}
967
+ ${hn.isDataReduce?null:null==r?void 0:r.filter((e=>"file"===e.type)).map((({originLink:e})=>Le`<link rel="prefetch" href=${En(e,o)}></link>`))}
968
+
969
+ <!-- search engine -->
970
+ <link rel="canonical" href=${h} />
971
+ ${null==i?void 0:i.map((({code:e})=>Le`<link rel="alternate" hreflang=${e} href=${An(e)} />`))}
972
+ </gem-reflect>
973
+ `}};fr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ht("gem-book-meta"),Nt(tr),Nt(Xn)],fr);let mr=class extends kt{static get links(){return tr.links}static get nav(){return tr.nav}static get routes(){return tr.routes}static get lang(){return tr.lang}static get langList(){return tr.langList}static get homePage(){return tr.homePage}static get currentSidebar(){return tr.currentSidebar}static get currentLinks(){return tr.currentLinks}static get currentLink(){var e;return null===(e=tr.getCurrentLink)||void 0===e?void 0:e.call(tr)}};mr.marked=Tn(),mr.Gem=r,mr.theme=yn,mr.config=new Proxy({},{get(e,t){var n;return null===(n=tr.config)||void 0===n?void 0:n[t]}}),mr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Nt(tr)],mr);var Dr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let kr=class extends kt{constructor(e,t){super(),this.changeTheme=wn,this.config=e,this.theme=t}render(){const{config:e,nav:t=[],routes:n=[],lang:r="",homePage:i=""}=tr;if(!e)return null;const{icon:o="",title:s="",homeMode:a}=e,l=o||s||t.length;this.isHomePage=i===O.getParams().path;const u=a&&this.isHomePage;return Le`
974
+ <style>
975
+ :host {
976
+ display: grid;
977
+ grid-template-areas: 'left aside content right';
978
+ grid-template-columns: auto ${yn.sidebarWidth} minmax(auto, ${yn.mainWidth}) auto;
979
+ grid-template-rows: repeat(44, auto);
980
+ grid-column-gap: 3rem;
981
+ text-rendering: optimizeLegibility;
982
+ font: 16px/1.7 ${yn.font};
983
+ color: ${yn.textColor};
984
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
985
+ background: ${yn.backgroundColor};
986
+ }
987
+ .nav-shadow {
988
+ grid-area: 1 / left / 2 / right;
989
+ background: ${yn.backgroundColor};
990
+ border-bottom: 1px solid ${yn.borderColor};
991
+ box-shadow: 0 0 1.5rem #00000015;
992
+ }
993
+ .nav-shadow,
994
+ gem-book-nav {
995
+ position: sticky;
996
+ top: 0;
997
+ z-index: 3;
998
+ }
999
+ .nav-shadow ~ gem-book-sidebar {
1000
+ margin-top: ${yn.headerHeight};
1001
+ top: ${yn.headerHeight};
1002
+ max-height: calc(100vh - ${yn.headerHeight});
1003
+ }
1004
+ gem-book-sidebar {
1005
+ grid-area: 1 / aside / -1 / aside;
1006
+ max-height: 100vh;
1007
+ }
1008
+ gem-book-nav {
1009
+ grid-area: 1 / aside / 2 / content;
1010
+ }
1011
+ gem-light-route,
1012
+ gem-book-edit-link,
1013
+ gem-book-rel-link,
1014
+ gem-book-footer,
1015
+ slot[name='${this.mainBefore}'],
1016
+ slot[name='${this.mainAfter}'] {
1017
+ grid-area: auto / content;
1018
+ }
1019
+ slot[name='${this.mainBefore}'],
1020
+ slot[name='${this.mainAfter}'] {
1021
+ display: block;
1022
+ grid-area: auto / content;
1023
+ }
1024
+ slot[name='${this.mainBefore}'] {
1025
+ margin-top: 3rem;
1026
+ }
1027
+ gem-light-route {
1028
+ min-height: 20rem;
1029
+ overflow: hidden;
1030
+ margin: 0 -3rem;
1031
+ padding: 0 3rem;
1032
+ }
1033
+ @media ${u?"all":"not all"} {
1034
+ gem-light-route {
1035
+ display: flex;
1036
+ justify-content: center;
1037
+ }
1038
+ gem-book-main {
1039
+ max-width: min(${yn.mainWidth}, 100vw);
1040
+ }
1041
+ gem-book-homepage {
1042
+ grid-area: auto / left / auto / right;
1043
+ }
1044
+ gem-light-route,
1045
+ gem-book-footer {
1046
+ grid-area: auto / aside / auto / content;
1047
+ }
1048
+ gem-book-sidebar,
1049
+ gem-book-edit-link,
1050
+ gem-book-rel-link {
1051
+ display: none;
1052
+ }
1053
+ gem-book-footer {
1054
+ text-align: center;
1055
+ }
1056
+ }
1057
+ @media ${hn.PHONE} {
1058
+ .nav-shadow ~ gem-book-sidebar {
1059
+ margin-top: 0;
1060
+ height: auto;
1061
+ }
1062
+ slot[name='${this.mainBefore}'] {
1063
+ margin-top: 1rem;
1064
+ }
1065
+ :host {
1066
+ grid-column-gap: 1rem;
1067
+ grid-template-areas: 'left content right';
1068
+ grid-template-columns: 0 1fr auto;
1069
+ }
1070
+ gem-light-route {
1071
+ margin: 0 -1rem;
1072
+ padding: 0 1rem;
1073
+ }
1074
+ gem-book-sidebar,
1075
+ gem-book-edit-link,
1076
+ gem-book-rel-link,
1077
+ gem-book-footer,
1078
+ gem-light-route {
1079
+ grid-area: auto / content;
1080
+ }
1081
+ gem-book-nav {
1082
+ grid-area: 1 / content / 2 / content;
1083
+ }
1084
+ gem-book-footer {
1085
+ text-align: left;
1086
+ }
1087
+ }
1088
+ @media print {
1089
+ :host {
1090
+ display: block;
1091
+ }
1092
+ .nav-shadow,
1093
+ gem-book-nav,
1094
+ gem-book-sidebar,
1095
+ gem-book-edit-link,
1096
+ gem-book-rel-link,
1097
+ gem-book-footer,
1098
+ slot[name] {
1099
+ display: none;
1100
+ }
1101
+ gem-light-route {
1102
+ grid-area: auto / left / auto / right;
1103
+ }
1104
+ }
1105
+ </style>
1106
+ <gem-book-meta aria-hidden="true"></gem-book-meta>
1107
+ ${l?Le`
1108
+ <div class="nav-shadow" part=${this.navShadow}></div>
1109
+ <gem-book-nav role="navigation" part=${this.nav}>
1110
+ <slot name=${this.navInside}></slot>
1111
+ </gem-book-nav>
1112
+ `:null}
1113
+ ${u?Le`<gem-book-homepage exportparts="hero: ${this.homepageHero}"></gem-book-homepage>`:Le`<slot name=${this.mainBefore}></slot>`}
1114
+ <gem-light-route
1115
+ ref=${this.routeRef.ref}
1116
+ role="main"
1117
+ part=${this.main}
1118
+ .key=${r}
1119
+ .routes=${n}
1120
+ @change=${e=>this.routechange(e.detail)}
1121
+ ></gem-light-route>
1122
+ <gem-book-edit-link role="complementary" part=${this.editLink}></gem-book-edit-link>
1123
+ <gem-book-sidebar role="navigation" part=${this.sidebar}>
1124
+ <slot name=${this.sidebarBefore}></slot>
1125
+ </gem-book-sidebar>
1126
+ <gem-book-rel-link role="navigation" part=${this.relLink}></gem-book-rel-link>
1127
+ ${u?"":Le`<slot name=${this.mainAfter}></slot>`}
1128
+ <gem-book-footer role="contentinfo" part=${this.footer}></gem-book-footer>
1129
+ `}mounted(){this.effect((async()=>{this.src&&ir(await(await fetch(this.src)).json(),this)}),(()=>[this.src])),this.effect((()=>{this.config&&ir(this.config,this)}),(()=>[this.config])),this.effect((()=>{wn(this.theme)}),(()=>[this.theme]))}};kr.GemBookPluginElement=mr,Dr([Ft],kr.prototype,"routeRef",void 0),Dr([Bt],kr.prototype,"src",void 0),Dr([Rt],kr.prototype,"config",void 0),Dr([Rt],kr.prototype,"theme",void 0),Dr([Tt],kr.prototype,"routechange",void 0),Dr([Ot],kr.prototype,"nav",void 0),Dr([Ot],kr.prototype,"navShadow",void 0),Dr([Ot],kr.prototype,"sidebar",void 0),Dr([Ot],kr.prototype,"main",void 0),Dr([Ot],kr.prototype,"editLink",void 0),Dr([Ot],kr.prototype,"relLink",void 0),Dr([Ot],kr.prototype,"footer",void 0),Dr([Ot],kr.prototype,"homepageHero",void 0),Dr([jt],kr.prototype,"sidebarBefore",void 0),Dr([jt],kr.prototype,"mainBefore",void 0),Dr([jt],kr.prototype,"mainAfter",void 0),Dr([jt],kr.prototype,"navInside",void 0),Dr([Pt],kr.prototype,"isHomePage",void 0),kr=Dr([Ht("gem-book"),Nt(tr)],kr),JSON.parse(String("[]")).forEach((e=>{if(/^(https?:)?\/\//.test(e)){const t=document.createElement("script");t.src=e,document.body.append(),t.remove()}else n(135)(`./${e}`)}));const vr=JSON.parse(String('{"title":"DuoyunUI","github":"https://github.com/duoyun/duoyun-fe","sourceDir":"docs","sourceBranch":"dev-console","sidebar":{"zh":{"data":[{"title":"简介","link":"/README.md","type":"file","children":[{"title":"元素分类","link":"#元素分类","type":"heading"},{"title":"使用方法","link":"#使用方法","type":"heading"},{"title":"状态","link":"#状态","type":"heading"},{"title":"路线图","link":"#路线图","type":"heading"}]},{"title":"自定义","link":"/02-customize.md","type":"file","children":[{"title":"自定义主题","link":"#自定义主题","type":"heading"},{"title":"自定义图标","link":"#自定义图标","type":"heading"},{"title":"自定义语言","link":"#自定义语言","type":"heading"}]},{"title":"高级表单","link":"/03-form.md","type":"file","children":[{"title":"表单验证","link":"#表单验证","type":"heading"},{"title":"自定义表单字段","link":"#自定义表单字段","type":"heading"}]},{"title":"可访问性支持","link":"/04-accessible.md","type":"file"}],"name":"中文"}}}')),br=JSON.parse(String("null"));(()=>{const e=document.querySelector("gem-book")||new kr;e.config=vr,e.theme=br,document.body.append(e)})();const yr=document.createElement("style");yr.innerText=g`
1130
+ body {
1131
+ margin: 0;
1132
+ }
1133
+ `,document.head.append(yr),window.addEventListener("load",(()=>{navigator.serviceWorker.register("/service-worker.js")}))}}]);