@baishuyun/ai-design 2.0.31 → 2.0.33

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 (410) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +4 -4
  3. package/src/components/agent-helper/field-select/index.tsx +4 -1
  4. package/src/components/form-info-editor.tsx +13 -3
  5. package/.claude/settings.local.json +0 -7
  6. package/.turbo/turbo-build.log +0 -574
  7. package/debug-storybook.log +0 -19
  8. package/dist/ai-design.js +0 -39928
  9. package/dist/ai-design.js.map +0 -1
  10. package/dist/ai-design.umd.cjs +0 -591
  11. package/dist/ai-design.umd.cjs.map +0 -1
  12. package/dist/index.css +0 -1
  13. package/storybook-static/assets/AbsFullscreenGradientBg.stories-Hd2WmWkA.js +0 -18
  14. package/storybook-static/assets/AgentScrollSelector.stories-C3rsFZ6F.js +0 -40
  15. package/storybook-static/assets/AgentSelect.stories-DVhwD0rq.js +0 -53
  16. package/storybook-static/assets/AttachmentPart.stories-ejj4i7n-.js +0 -45
  17. package/storybook-static/assets/AttachmentPartGroup.stories-5Zdayw6l.js +0 -34
  18. package/storybook-static/assets/AttachmentsPreviewer.stories-DyjtCRco.js +0 -138
  19. package/storybook-static/assets/BaseButton.stories-DrGEYx9W.js +0 -11
  20. package/storybook-static/assets/BorderAnimation.stories-D9p4pgL6.js +0 -87
  21. package/storybook-static/assets/BorderColorAnimation.stories-tvilZOeG.js +0 -42
  22. package/storybook-static/assets/BotAvatarAndName.stories-B8ZNN2_J.js +0 -5
  23. package/storybook-static/assets/BotIcon.stories-DAyXSQDa.js +0 -3
  24. package/storybook-static/assets/BsEntrySelect.stories-B2B9FZWy.js +0 -119
  25. package/storybook-static/assets/BsTooltip.stories-Bf_LcqnK.js +0 -6
  26. package/storybook-static/assets/Card.stories-BSeowjg-.js +0 -8
  27. package/storybook-static/assets/CardField.stories-CYnnBUTk.js +0 -41
  28. package/storybook-static/assets/ChatAreaHeader.stories-muYZq_ix.js +0 -6
  29. package/storybook-static/assets/CircleChecker.stories-CueVuqmn.js +0 -38
  30. package/storybook-static/assets/CollapsibleTextMsg.stories-Bl8inRXa.js +0 -21
  31. package/storybook-static/assets/Color-ASIRERSW-CAiV6Nyl.js +0 -1
  32. package/storybook-static/assets/Combination-CZ7kzc03.js +0 -41
  33. package/storybook-static/assets/ConfirmDialog.stories-C3TDIr-r.js +0 -42
  34. package/storybook-static/assets/DocsRenderer-GHJI37HO-DLf4p3c1.js +0 -763
  35. package/storybook-static/assets/FakeBotMsg.stories-CSC1k9UE.js +0 -14
  36. package/storybook-static/assets/FormInfoEditor.stories-DcLwCSHN.js +0 -75
  37. package/storybook-static/assets/FormulaTag.stories-hiPYLb6Y.js +0 -29
  38. package/storybook-static/assets/GenerateAnimation.stories-C5qGwAy0.js +0 -14
  39. package/storybook-static/assets/IconBtn.stories-pcl--4Wl.js +0 -10
  40. package/storybook-static/assets/Icons.stories-FN8wG7iW.js +0 -3
  41. package/storybook-static/assets/ImgMsgPart.stories-CkiWUjiY.js +0 -15
  42. package/storybook-static/assets/LegacySlot.stories-C_PeMEjh.js +0 -38
  43. package/storybook-static/assets/LineChecker.stories-DcChEKvO.js +0 -93
  44. package/storybook-static/assets/LinearGradientBorderBtn.stories-CQgLcYJf.js +0 -46
  45. package/storybook-static/assets/LinearGradientColorBgAnimation.stories-D9NYfNzo.js +0 -43
  46. package/storybook-static/assets/MemoizedMarkdown.stories-BxOuEc_8.js +0 -195
  47. package/storybook-static/assets/MessageContent.stories-Cz7z6a8d.js +0 -14
  48. package/storybook-static/assets/NumbersMsgPart.stories-Dke7EvTU.js +0 -16
  49. package/storybook-static/assets/OfficeContainer.stories-DpQ7TB3v.js +0 -116
  50. package/storybook-static/assets/OptionItem.stories-BNr85yzu.js +0 -44
  51. package/storybook-static/assets/PreviewerHeader.stories-IxioHG75.js +0 -68
  52. package/storybook-static/assets/PrimaryConfirmBtn.stories-Dg0OQKbA.js +0 -30
  53. package/storybook-static/assets/PrimaryEntryBtn.stories-Baz1MVoZ.js +0 -35
  54. package/storybook-static/assets/ScrollToBottom.stories-DqAOmU_g.js +0 -5
  55. package/storybook-static/assets/SplitLine.stories-CbkBng-u.js +0 -9
  56. package/storybook-static/assets/SquareChecker.stories-BFXpWaHr.js +0 -43
  57. package/storybook-static/assets/TabRadioGroup.stories-d3CvjAQV.js +0 -54
  58. package/storybook-static/assets/UserTextMsgBubble.stories-Dv5HUEKe.js +0 -5
  59. package/storybook-static/assets/WarningMessage.stories-DoHvvVJB.js +0 -3
  60. package/storybook-static/assets/WithTooltip-IO6J4KBT-5iq4HD_s.js +0 -9
  61. package/storybook-static/assets/abs-fullscreen-gradient-bg-pEhwW8Lt.js +0 -1
  62. package/storybook-static/assets/agent-select-BlwXZgPu.js +0 -1
  63. package/storybook-static/assets/attachment-part-_D41HaS7.js +0 -1
  64. package/storybook-static/assets/base-button-BGn3Fo0B.js +0 -1
  65. package/storybook-static/assets/border-color-animation-BoCxpIBW.js +0 -10
  66. package/storybook-static/assets/bot-icon-Ci07j_8n.js +0 -1
  67. package/storybook-static/assets/bs-icons-CDeLTCWJ.js +0 -1
  68. package/storybook-static/assets/button-Cyp2OfiJ.js +0 -1
  69. package/storybook-static/assets/collapsible-TCbdh_v_.js +0 -1
  70. package/storybook-static/assets/collapsible-txt-msg-DukRF1Ws.js +0 -1
  71. package/storybook-static/assets/collapsible.stories-DmrXoEsa.js +0 -25
  72. package/storybook-static/assets/confirm-dialog-BO5s3AJb.js +0 -1
  73. package/storybook-static/assets/createLucideIcon-CkLwfbD4.js +0 -21
  74. package/storybook-static/assets/drawer.stories-BdM7Wbzl.js +0 -123
  75. package/storybook-static/assets/field-checker-f9FOL58q.js +0 -1
  76. package/storybook-static/assets/field-checker-list-msg.stories-B_6usiWl.js +0 -37
  77. package/storybook-static/assets/field-checker.stories-BghsIYEd.js +0 -91
  78. package/storybook-static/assets/field-icon-6Mrtj4c9.js +0 -1
  79. package/storybook-static/assets/field-icon.stories-D9Ukdb7l.js +0 -57
  80. package/storybook-static/assets/field-value-checker-BOyFGXwK.js +0 -1
  81. package/storybook-static/assets/field-value-checker.stories-Ch-7H5CO.js +0 -93
  82. package/storybook-static/assets/fields-design-info-table.stories-CtmX3mmp.js +0 -75
  83. package/storybook-static/assets/fields-generating-indicator-Cex4HigZ.js +0 -12
  84. package/storybook-static/assets/fields-generating.stories-CAtWVnX3.js +0 -16
  85. package/storybook-static/assets/fields-previewer.stories-D3USvSB3.js +0 -48
  86. package/storybook-static/assets/font-icon-Ts3EnP1y.js +0 -1
  87. package/storybook-static/assets/formatter-QJ4M4OGQ-Db-9LUhi.js +0 -1
  88. package/storybook-static/assets/icon-btn-B-A_0V7W.js +0 -1
  89. package/storybook-static/assets/icons-iPP3Tbk5.js +0 -1
  90. package/storybook-static/assets/iframe-BNpZCkNl.js +0 -1071
  91. package/storybook-static/assets/iframe-DHG3NC8n.css +0 -1
  92. package/storybook-static/assets/img-part-CWcYacNo.js +0 -1
  93. package/storybook-static/assets/index-B-T-IyWu.js +0 -24
  94. package/storybook-static/assets/index-CCxWT_9r.js +0 -1
  95. package/storybook-static/assets/index-CXB_DHA8.js +0 -1
  96. package/storybook-static/assets/index-CY6zduIX.js +0 -5
  97. package/storybook-static/assets/index-CaU3vELI.js +0 -5
  98. package/storybook-static/assets/index-D-D2iJjc.js +0 -1
  99. package/storybook-static/assets/index-DFx_ePTl.js +0 -1
  100. package/storybook-static/assets/index-DZuATJno.js +0 -1
  101. package/storybook-static/assets/index-DvxqVOC1.js +0 -1
  102. package/storybook-static/assets/index-KJpiBtEb.js +0 -1
  103. package/storybook-static/assets/jsx-runtime-CpaO0gaJ.js +0 -9
  104. package/storybook-static/assets/line-checker-DSzQ_hxZ.js +0 -1
  105. package/storybook-static/assets/linear-gradient-color-bg-animation-DIBcKbzI.js +0 -39
  106. package/storybook-static/assets/message-content-DwEkjIr8.js +0 -1
  107. package/storybook-static/assets/option-item-DVwitDz1.js +0 -1
  108. package/storybook-static/assets/preload-helper-CmsKOCeN.js +0 -1
  109. package/storybook-static/assets/previewer-header-BzO0Sbpf.js +0 -6
  110. package/storybook-static/assets/primary-confirm-btn-CW72MiLv.js +0 -1
  111. package/storybook-static/assets/react-18-Cn3rktXT.js +0 -1
  112. package/storybook-static/assets/square-checker-BKGRXJag.js +0 -1
  113. package/storybook-static/assets/subform-fields-value-checker-DCstRpVF.js +0 -7
  114. package/storybook-static/assets/subform-fields-value-checker.stories-BCg_WRIi.js +0 -114
  115. package/storybook-static/assets/syntaxhighlighter-IQDEPFLK-RkNUra3q.js +0 -6
  116. package/storybook-static/assets/tooltip-3SR6ujOq.js +0 -1
  117. package/storybook-static/assets/ui-B16ZxGB5.js +0 -4
  118. package/storybook-static/assets/utils-CXGjNK-X.js +0 -1
  119. package/storybook-static/favicon-wrapper.svg +0 -46
  120. package/storybook-static/favicon.svg +0 -1
  121. package/storybook-static/iframe.html +0 -687
  122. package/storybook-static/index.html +0 -143
  123. package/storybook-static/index.json +0 -1
  124. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  125. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  126. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  127. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  128. package/storybook-static/project.json +0 -1
  129. package/storybook-static/sb-addons/docs-1/manager-bundle.js +0 -3
  130. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
  131. package/storybook-static/sb-addons/vitest-2/manager-bundle.js +0 -3
  132. package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
  133. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  134. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  135. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  136. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  137. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  138. package/storybook-static/sb-manager/globals-runtime.js +0 -75605
  139. package/storybook-static/sb-manager/globals.js +0 -24
  140. package/storybook-static/sb-manager/manager-stores.js +0 -23
  141. package/storybook-static/sb-manager/runtime.js +0 -19717
  142. package/storybook-static/src/components/abs-fullscreen-gradient-bg.d.ts +0 -10
  143. package/storybook-static/src/components/abs-fullscreen-gradient-bg.d.ts.map +0 -1
  144. package/storybook-static/src/components/agent-scroll-selector.d.ts +0 -12
  145. package/storybook-static/src/components/agent-scroll-selector.d.ts.map +0 -1
  146. package/storybook-static/src/components/agent-select.d.ts +0 -16
  147. package/storybook-static/src/components/agent-select.d.ts.map +0 -1
  148. package/storybook-static/src/components/attachment-part-group.d.ts +0 -16
  149. package/storybook-static/src/components/attachment-part-group.d.ts.map +0 -1
  150. package/storybook-static/src/components/attachment-part.d.ts +0 -19
  151. package/storybook-static/src/components/attachment-part.d.ts.map +0 -1
  152. package/storybook-static/src/components/attachments-previewer.d.ts +0 -18
  153. package/storybook-static/src/components/attachments-previewer.d.ts.map +0 -1
  154. package/storybook-static/src/components/base-button.d.ts +0 -8
  155. package/storybook-static/src/components/base-button.d.ts.map +0 -1
  156. package/storybook-static/src/components/border-animation.d.ts +0 -23
  157. package/storybook-static/src/components/border-animation.d.ts.map +0 -1
  158. package/storybook-static/src/components/border-color-animation.d.ts +0 -11
  159. package/storybook-static/src/components/border-color-animation.d.ts.map +0 -1
  160. package/storybook-static/src/components/bot-avatar-name.d.ts +0 -6
  161. package/storybook-static/src/components/bot-avatar-name.d.ts.map +0 -1
  162. package/storybook-static/src/components/bot-icon.d.ts +0 -5
  163. package/storybook-static/src/components/bot-icon.d.ts.map +0 -1
  164. package/storybook-static/src/components/bs-entry-select/app-group-folder.d.ts +0 -6
  165. package/storybook-static/src/components/bs-entry-select/app-group-folder.d.ts.map +0 -1
  166. package/storybook-static/src/components/bs-entry-select/bs-entry-select.d.ts +0 -4
  167. package/storybook-static/src/components/bs-entry-select/bs-entry-select.d.ts.map +0 -1
  168. package/storybook-static/src/components/bs-entry-select/build-tree.d.ts +0 -9
  169. package/storybook-static/src/components/bs-entry-select/build-tree.d.ts.map +0 -1
  170. package/storybook-static/src/components/bs-entry-select/entry-item.d.ts +0 -8
  171. package/storybook-static/src/components/bs-entry-select/entry-item.d.ts.map +0 -1
  172. package/storybook-static/src/components/bs-entry-select/entry-popover.d.ts +0 -17
  173. package/storybook-static/src/components/bs-entry-select/entry-popover.d.ts.map +0 -1
  174. package/storybook-static/src/components/bs-entry-select/index.d.ts +0 -3
  175. package/storybook-static/src/components/bs-entry-select/index.d.ts.map +0 -1
  176. package/storybook-static/src/components/bs-entry-select/other-app-section.d.ts +0 -11
  177. package/storybook-static/src/components/bs-entry-select/other-app-section.d.ts.map +0 -1
  178. package/storybook-static/src/components/bs-entry-select/scroll-slider.d.ts +0 -10
  179. package/storybook-static/src/components/bs-entry-select/scroll-slider.d.ts.map +0 -1
  180. package/storybook-static/src/components/bs-entry-select/search-input.d.ts +0 -5
  181. package/storybook-static/src/components/bs-entry-select/search-input.d.ts.map +0 -1
  182. package/storybook-static/src/components/bs-entry-select/tree-item-node.d.ts +0 -9
  183. package/storybook-static/src/components/bs-entry-select/tree-item-node.d.ts.map +0 -1
  184. package/storybook-static/src/components/bs-entry-select/types.d.ts +0 -28
  185. package/storybook-static/src/components/bs-entry-select/types.d.ts.map +0 -1
  186. package/storybook-static/src/components/bs-icons.d.ts +0 -77
  187. package/storybook-static/src/components/bs-icons.d.ts.map +0 -1
  188. package/storybook-static/src/components/card-field.d.ts +0 -11
  189. package/storybook-static/src/components/card-field.d.ts.map +0 -1
  190. package/storybook-static/src/components/card.d.ts +0 -11
  191. package/storybook-static/src/components/card.d.ts.map +0 -1
  192. package/storybook-static/src/components/chat-area-header.d.ts +0 -13
  193. package/storybook-static/src/components/chat-area-header.d.ts.map +0 -1
  194. package/storybook-static/src/components/circle-checker.d.ts +0 -10
  195. package/storybook-static/src/components/circle-checker.d.ts.map +0 -1
  196. package/storybook-static/src/components/collapsible-txt-msg.d.ts +0 -11
  197. package/storybook-static/src/components/collapsible-txt-msg.d.ts.map +0 -1
  198. package/storybook-static/src/components/collapsible.d.ts +0 -6
  199. package/storybook-static/src/components/collapsible.d.ts.map +0 -1
  200. package/storybook-static/src/components/confirm-dialog.d.ts +0 -26
  201. package/storybook-static/src/components/confirm-dialog.d.ts.map +0 -1
  202. package/storybook-static/src/components/fake-bot-msg.d.ts +0 -8
  203. package/storybook-static/src/components/fake-bot-msg.d.ts.map +0 -1
  204. package/storybook-static/src/components/field-checker-list-msg.d.ts +0 -19
  205. package/storybook-static/src/components/field-checker-list-msg.d.ts.map +0 -1
  206. package/storybook-static/src/components/field-checker.d.ts +0 -19
  207. package/storybook-static/src/components/field-checker.d.ts.map +0 -1
  208. package/storybook-static/src/components/field-icon.d.ts +0 -5
  209. package/storybook-static/src/components/field-icon.d.ts.map +0 -1
  210. package/storybook-static/src/components/field-value-checker.d.ts +0 -16
  211. package/storybook-static/src/components/field-value-checker.d.ts.map +0 -1
  212. package/storybook-static/src/components/fields-design-info-table.d.ts +0 -7
  213. package/storybook-static/src/components/fields-design-info-table.d.ts.map +0 -1
  214. package/storybook-static/src/components/fields-generating-indicator.d.ts +0 -6
  215. package/storybook-static/src/components/fields-generating-indicator.d.ts.map +0 -1
  216. package/storybook-static/src/components/fields-portal.d.ts +0 -8
  217. package/storybook-static/src/components/fields-portal.d.ts.map +0 -1
  218. package/storybook-static/src/components/fields-previewer.d.ts +0 -19
  219. package/storybook-static/src/components/fields-previewer.d.ts.map +0 -1
  220. package/storybook-static/src/components/font-icon.d.ts +0 -6
  221. package/storybook-static/src/components/font-icon.d.ts.map +0 -1
  222. package/storybook-static/src/components/form-info-editor.d.ts +0 -31
  223. package/storybook-static/src/components/form-info-editor.d.ts.map +0 -1
  224. package/storybook-static/src/components/formula-tag.d.ts +0 -8
  225. package/storybook-static/src/components/formula-tag.d.ts.map +0 -1
  226. package/storybook-static/src/components/generate-animation.d.ts +0 -5
  227. package/storybook-static/src/components/generate-animation.d.ts.map +0 -1
  228. package/storybook-static/src/components/icon-btn.d.ts +0 -9
  229. package/storybook-static/src/components/icon-btn.d.ts.map +0 -1
  230. package/storybook-static/src/components/img-part.d.ts +0 -10
  231. package/storybook-static/src/components/img-part.d.ts.map +0 -1
  232. package/storybook-static/src/components/legacy-slot.d.ts +0 -11
  233. package/storybook-static/src/components/legacy-slot.d.ts.map +0 -1
  234. package/storybook-static/src/components/line-checker.d.ts +0 -19
  235. package/storybook-static/src/components/line-checker.d.ts.map +0 -1
  236. package/storybook-static/src/components/linear-gradient-border-btn.d.ts +0 -10
  237. package/storybook-static/src/components/linear-gradient-border-btn.d.ts.map +0 -1
  238. package/storybook-static/src/components/linear-gradient-color-bg-animation.d.ts +0 -8
  239. package/storybook-static/src/components/linear-gradient-color-bg-animation.d.ts.map +0 -1
  240. package/storybook-static/src/components/memoized-markdown.d.ts +0 -5
  241. package/storybook-static/src/components/memoized-markdown.d.ts.map +0 -1
  242. package/storybook-static/src/components/message-content.d.ts +0 -6
  243. package/storybook-static/src/components/message-content.d.ts.map +0 -1
  244. package/storybook-static/src/components/number-part.d.ts +0 -9
  245. package/storybook-static/src/components/number-part.d.ts.map +0 -1
  246. package/storybook-static/src/components/office-container.d.ts +0 -17
  247. package/storybook-static/src/components/office-container.d.ts.map +0 -1
  248. package/storybook-static/src/components/option-item.d.ts +0 -9
  249. package/storybook-static/src/components/option-item.d.ts.map +0 -1
  250. package/storybook-static/src/components/previewer-header.d.ts +0 -21
  251. package/storybook-static/src/components/previewer-header.d.ts.map +0 -1
  252. package/storybook-static/src/components/primary-confirm-btn.d.ts +0 -10
  253. package/storybook-static/src/components/primary-confirm-btn.d.ts.map +0 -1
  254. package/storybook-static/src/components/primary-entry-btn.d.ts +0 -9
  255. package/storybook-static/src/components/primary-entry-btn.d.ts.map +0 -1
  256. package/storybook-static/src/components/scroll-to-bottom-btn.d.ts +0 -6
  257. package/storybook-static/src/components/scroll-to-bottom-btn.d.ts.map +0 -1
  258. package/storybook-static/src/components/split-line.d.ts +0 -5
  259. package/storybook-static/src/components/split-line.d.ts.map +0 -1
  260. package/storybook-static/src/components/square-checker.d.ts +0 -15
  261. package/storybook-static/src/components/square-checker.d.ts.map +0 -1
  262. package/storybook-static/src/components/subform-fields-value-checker.d.ts +0 -22
  263. package/storybook-static/src/components/subform-fields-value-checker.d.ts.map +0 -1
  264. package/storybook-static/src/components/tab-radio-group.d.ts +0 -20
  265. package/storybook-static/src/components/tab-radio-group.d.ts.map +0 -1
  266. package/storybook-static/src/components/tooltip.d.ts +0 -6
  267. package/storybook-static/src/components/tooltip.d.ts.map +0 -1
  268. package/storybook-static/src/components/ui/button.d.ts +0 -12
  269. package/storybook-static/src/components/ui/button.d.ts.map +0 -1
  270. package/storybook-static/src/components/ui/dialog.d.ts +0 -24
  271. package/storybook-static/src/components/ui/dialog.d.ts.map +0 -1
  272. package/storybook-static/src/components/ui/drawer.d.ts +0 -16
  273. package/storybook-static/src/components/ui/drawer.d.ts.map +0 -1
  274. package/storybook-static/src/components/ui/icons.d.ts +0 -176
  275. package/storybook-static/src/components/ui/icons.d.ts.map +0 -1
  276. package/storybook-static/src/components/ui/popover.d.ts +0 -10
  277. package/storybook-static/src/components/ui/popover.d.ts.map +0 -1
  278. package/storybook-static/src/components/ui/spinner.d.ts +0 -3
  279. package/storybook-static/src/components/ui/spinner.d.ts.map +0 -1
  280. package/storybook-static/src/components/ui/tooltip.d.ts +0 -13
  281. package/storybook-static/src/components/ui/tooltip.d.ts.map +0 -1
  282. package/storybook-static/src/components/user-txt-msg-bubble.d.ts +0 -6
  283. package/storybook-static/src/components/user-txt-msg-bubble.d.ts.map +0 -1
  284. package/storybook-static/src/components/warning-msg.d.ts +0 -6
  285. package/storybook-static/src/components/warning-msg.d.ts.map +0 -1
  286. package/storybook-static/src/const/ui.d.ts +0 -10
  287. package/storybook-static/src/const/ui.d.ts.map +0 -1
  288. package/storybook-static/src/hooks/use-column-appear.d.ts +0 -22
  289. package/storybook-static/src/hooks/use-column-appear.d.ts.map +0 -1
  290. package/storybook-static/src/hooks/use-resizable-width.d.ts +0 -26
  291. package/storybook-static/src/hooks/use-resizable-width.d.ts.map +0 -1
  292. package/storybook-static/src/hooks/use-shadow.d.ts +0 -25
  293. package/storybook-static/src/hooks/use-shadow.d.ts.map +0 -1
  294. package/storybook-static/src/index.d.ts +0 -76
  295. package/storybook-static/src/index.d.ts.map +0 -1
  296. package/storybook-static/src/lib/utils.d.ts +0 -7
  297. package/storybook-static/src/lib/utils.d.ts.map +0 -1
  298. package/storybook-static/src/stories/AbsFullscreenGradientBg.stories.d.ts +0 -17
  299. package/storybook-static/src/stories/AbsFullscreenGradientBg.stories.d.ts.map +0 -1
  300. package/storybook-static/src/stories/AgentScrollSelector.stories.d.ts +0 -11
  301. package/storybook-static/src/stories/AgentScrollSelector.stories.d.ts.map +0 -1
  302. package/storybook-static/src/stories/AgentSelect.stories.d.ts +0 -14
  303. package/storybook-static/src/stories/AgentSelect.stories.d.ts.map +0 -1
  304. package/storybook-static/src/stories/AttachmentPart.stories.d.ts +0 -23
  305. package/storybook-static/src/stories/AttachmentPart.stories.d.ts.map +0 -1
  306. package/storybook-static/src/stories/AttachmentPartGroup.stories.d.ts +0 -21
  307. package/storybook-static/src/stories/AttachmentPartGroup.stories.d.ts.map +0 -1
  308. package/storybook-static/src/stories/AttachmentsPreviewer.stories.d.ts +0 -20
  309. package/storybook-static/src/stories/AttachmentsPreviewer.stories.d.ts.map +0 -1
  310. package/storybook-static/src/stories/BaseButton.stories.d.ts +0 -18
  311. package/storybook-static/src/stories/BaseButton.stories.d.ts.map +0 -1
  312. package/storybook-static/src/stories/BorderAnimation.stories.d.ts +0 -21
  313. package/storybook-static/src/stories/BorderAnimation.stories.d.ts.map +0 -1
  314. package/storybook-static/src/stories/BorderColorAnimation.stories.d.ts +0 -26
  315. package/storybook-static/src/stories/BorderColorAnimation.stories.d.ts.map +0 -1
  316. package/storybook-static/src/stories/BotAvatarAndName.stories.d.ts +0 -18
  317. package/storybook-static/src/stories/BotAvatarAndName.stories.d.ts.map +0 -1
  318. package/storybook-static/src/stories/BotIcon.stories.d.ts +0 -17
  319. package/storybook-static/src/stories/BotIcon.stories.d.ts.map +0 -1
  320. package/storybook-static/src/stories/BsEntrySelect.stories.d.ts +0 -17
  321. package/storybook-static/src/stories/BsEntrySelect.stories.d.ts.map +0 -1
  322. package/storybook-static/src/stories/BsTooltip.stories.d.ts +0 -7
  323. package/storybook-static/src/stories/BsTooltip.stories.d.ts.map +0 -1
  324. package/storybook-static/src/stories/Card.stories.d.ts +0 -14
  325. package/storybook-static/src/stories/Card.stories.d.ts.map +0 -1
  326. package/storybook-static/src/stories/CardField.stories.d.ts +0 -13
  327. package/storybook-static/src/stories/CardField.stories.d.ts.map +0 -1
  328. package/storybook-static/src/stories/ChatAreaHeader.stories.d.ts +0 -14
  329. package/storybook-static/src/stories/ChatAreaHeader.stories.d.ts.map +0 -1
  330. package/storybook-static/src/stories/CircleChecker.stories.d.ts +0 -21
  331. package/storybook-static/src/stories/CircleChecker.stories.d.ts.map +0 -1
  332. package/storybook-static/src/stories/CollapsibleTextMsg.stories.d.ts +0 -16
  333. package/storybook-static/src/stories/CollapsibleTextMsg.stories.d.ts.map +0 -1
  334. package/storybook-static/src/stories/ConfirmDialog.stories.d.ts +0 -61
  335. package/storybook-static/src/stories/ConfirmDialog.stories.d.ts.map +0 -1
  336. package/storybook-static/src/stories/FakeBotMsg.stories.d.ts +0 -21
  337. package/storybook-static/src/stories/FakeBotMsg.stories.d.ts.map +0 -1
  338. package/storybook-static/src/stories/FormInfoEditor.stories.d.ts +0 -15
  339. package/storybook-static/src/stories/FormInfoEditor.stories.d.ts.map +0 -1
  340. package/storybook-static/src/stories/FormulaTag.stories.d.ts +0 -37
  341. package/storybook-static/src/stories/FormulaTag.stories.d.ts.map +0 -1
  342. package/storybook-static/src/stories/GenerateAnimation.stories.d.ts +0 -17
  343. package/storybook-static/src/stories/GenerateAnimation.stories.d.ts.map +0 -1
  344. package/storybook-static/src/stories/IconBtn.stories.d.ts +0 -15
  345. package/storybook-static/src/stories/IconBtn.stories.d.ts.map +0 -1
  346. package/storybook-static/src/stories/IconLib.d.ts +0 -12
  347. package/storybook-static/src/stories/IconLib.d.ts.map +0 -1
  348. package/storybook-static/src/stories/Icons.stories.d.ts +0 -24
  349. package/storybook-static/src/stories/Icons.stories.d.ts.map +0 -1
  350. package/storybook-static/src/stories/ImgMsgPart.stories.d.ts +0 -20
  351. package/storybook-static/src/stories/ImgMsgPart.stories.d.ts.map +0 -1
  352. package/storybook-static/src/stories/LegacySlot.stories.d.ts +0 -16
  353. package/storybook-static/src/stories/LegacySlot.stories.d.ts.map +0 -1
  354. package/storybook-static/src/stories/LineChecker.stories.d.ts +0 -23
  355. package/storybook-static/src/stories/LineChecker.stories.d.ts.map +0 -1
  356. package/storybook-static/src/stories/LinearGradientBorderBtn.stories.d.ts +0 -22
  357. package/storybook-static/src/stories/LinearGradientBorderBtn.stories.d.ts.map +0 -1
  358. package/storybook-static/src/stories/LinearGradientColorBgAnimation.stories.d.ts +0 -23
  359. package/storybook-static/src/stories/LinearGradientColorBgAnimation.stories.d.ts.map +0 -1
  360. package/storybook-static/src/stories/MemoizedMarkdown.stories.d.ts +0 -23
  361. package/storybook-static/src/stories/MemoizedMarkdown.stories.d.ts.map +0 -1
  362. package/storybook-static/src/stories/MessageContent.stories.d.ts +0 -16
  363. package/storybook-static/src/stories/MessageContent.stories.d.ts.map +0 -1
  364. package/storybook-static/src/stories/NumbersMsgPart.stories.d.ts +0 -19
  365. package/storybook-static/src/stories/NumbersMsgPart.stories.d.ts.map +0 -1
  366. package/storybook-static/src/stories/OfficeContainer.stories.d.ts +0 -13
  367. package/storybook-static/src/stories/OfficeContainer.stories.d.ts.map +0 -1
  368. package/storybook-static/src/stories/OptionItem.stories.d.ts +0 -20
  369. package/storybook-static/src/stories/OptionItem.stories.d.ts.map +0 -1
  370. package/storybook-static/src/stories/PreviewerHeader.stories.d.ts +0 -12
  371. package/storybook-static/src/stories/PreviewerHeader.stories.d.ts.map +0 -1
  372. package/storybook-static/src/stories/PrimaryConfirmBtn.stories.d.ts +0 -19
  373. package/storybook-static/src/stories/PrimaryConfirmBtn.stories.d.ts.map +0 -1
  374. package/storybook-static/src/stories/PrimaryEntryBtn.stories.d.ts +0 -26
  375. package/storybook-static/src/stories/PrimaryEntryBtn.stories.d.ts.map +0 -1
  376. package/storybook-static/src/stories/ScrollToBottom.stories.d.ts +0 -15
  377. package/storybook-static/src/stories/ScrollToBottom.stories.d.ts.map +0 -1
  378. package/storybook-static/src/stories/SplitLine.stories.d.ts +0 -9
  379. package/storybook-static/src/stories/SplitLine.stories.d.ts.map +0 -1
  380. package/storybook-static/src/stories/SquareChecker.stories.d.ts +0 -26
  381. package/storybook-static/src/stories/SquareChecker.stories.d.ts.map +0 -1
  382. package/storybook-static/src/stories/TabRadioGroup.stories.d.ts +0 -18
  383. package/storybook-static/src/stories/TabRadioGroup.stories.d.ts.map +0 -1
  384. package/storybook-static/src/stories/UserTextMsgBubble.stories.d.ts +0 -14
  385. package/storybook-static/src/stories/UserTextMsgBubble.stories.d.ts.map +0 -1
  386. package/storybook-static/src/stories/WarningMessage.stories.d.ts +0 -16
  387. package/storybook-static/src/stories/WarningMessage.stories.d.ts.map +0 -1
  388. package/storybook-static/src/stories/collapsible.stories.d.ts +0 -8
  389. package/storybook-static/src/stories/collapsible.stories.d.ts.map +0 -1
  390. package/storybook-static/src/stories/drawer.stories.d.ts +0 -18
  391. package/storybook-static/src/stories/drawer.stories.d.ts.map +0 -1
  392. package/storybook-static/src/stories/field-checker-list-msg.stories.d.ts +0 -11
  393. package/storybook-static/src/stories/field-checker-list-msg.stories.d.ts.map +0 -1
  394. package/storybook-static/src/stories/field-checker.stories.d.ts +0 -13
  395. package/storybook-static/src/stories/field-checker.stories.d.ts.map +0 -1
  396. package/storybook-static/src/stories/field-icon.stories.d.ts +0 -15
  397. package/storybook-static/src/stories/field-icon.stories.d.ts.map +0 -1
  398. package/storybook-static/src/stories/field-value-checker.stories.d.ts +0 -13
  399. package/storybook-static/src/stories/field-value-checker.stories.d.ts.map +0 -1
  400. package/storybook-static/src/stories/fields-design-info-table.stories.d.ts +0 -14
  401. package/storybook-static/src/stories/fields-design-info-table.stories.d.ts.map +0 -1
  402. package/storybook-static/src/stories/fields-generating.stories.d.ts +0 -20
  403. package/storybook-static/src/stories/fields-generating.stories.d.ts.map +0 -1
  404. package/storybook-static/src/stories/fields-previewer.stories.d.ts +0 -19
  405. package/storybook-static/src/stories/fields-previewer.stories.d.ts.map +0 -1
  406. package/storybook-static/src/stories/subform-fields-value-checker.stories.d.ts +0 -9
  407. package/storybook-static/src/stories/subform-fields-value-checker.stories.d.ts.map +0 -1
  408. package/storybook-static/src/types.d.ts +0 -8
  409. package/storybook-static/src/types.d.ts.map +0 -1
  410. package/storybook-static/vite-inject-mocker-entry.js +0 -18
@@ -1 +0,0 @@
1
- import{j as s}from"./jsx-runtime-CpaO0gaJ.js";import{r as h}from"./iframe-BNpZCkNl.js";import{c as r}from"./index-CaU3vELI.js";import{c as w}from"./utils-CXGjNK-X.js";import{h as q}from"./bs-icons-CDeLTCWJ.js";import{S as C}from"./square-checker-BKGRXJag.js";const j=({defaultChecked:k=!1,checked:l,disabled:t=!1,onCheckedChange:y,icon:e,className:g,title:p,extra:d,style:N,streaming:i,confirmed:o,readonly:a,shortDesc:m})=>{const[c,f]=h.useState(k);h.useEffect(()=>{l!==void 0&&f(l)},[l]);const x=()=>{if(i||t)return;const u=!c;f(u),y?.(u)},n=!!d,v=o&&c?s.jsx(q,{className:"grow-0 shrink-0 text-[#0265ff]"}):s.jsx(C,{className:r("outline-none grow-0 shrink-0 cursor-pointer",{"mt-[2px]":n,"opacity-80 cursor-not-allowed":t,"opacity-50":i,"pointer-events-none":i}),id:p,checked:c,disabled:t||o,onCheckedChange:x});return s.jsxs("div",{className:w("flex items-center gap-[10px] px-4 py-[10px] rounded-[4px]","w-full transition-colors cursor-pointer",{"cursor-not-allowed":t,"hover:bg-[#EFF0F6]":!t,"items-start":n,"items-center":!n,"pointer-events-none":i||t||a||o},g),style:N,onClick:()=>{x()},children:[a?null:v,s.jsxs("div",{className:r("flex flex-col flex-1 min-w-0",{"gap-2.5":n}),children:[s.jsxs("div",{className:r("flex items-center justify-between w-full",{"gap-1.5":!!e,"gap-2.5":!e}),children:[s.jsxs("div",{className:r("flex items-center gap-[6px] min-w-0",{"flex-1":!!e,"w-[100px] flex-shrink-0":!e}),children:[e&&s.jsx("div",{className:"w-4 h-4 flex-shrink-0 text-[#6F829E] leading-[16px]",children:e}),s.jsx("p",{className:r(" min-w-0 text-sm text-[#121111] truncate text-[12px]",{"flex-1":!!e,"flex-grow-1 flex-shrink-0":!e,"!text-[#666]":a}),children:p})]}),m&&s.jsx("p",{className:r("text-sm text-[#666] text-[12px]",{"whitespace-nowrap flex-shrink-0":!!e,anywhere:!e,"!text-[#121111]":a}),children:m})]}),n?s.jsx("div",{className:w("overflow-x-auto whitespace-nowrap no-scrollbar flex items-center gap-2",{"!overflow-x-hidden":t||a||o}),children:d}):null]})]})};j.__docgenInfo={description:"",methods:[],displayName:"LineChecker",props:{defaultChecked:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},checked:{required:!1,tsType:{name:"boolean"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onCheckedChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(checked: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"checked"}],return:{name:"void"}}},description:""},icon:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},title:{required:!0,tsType:{name:"string"},description:""},shortDesc:{required:!1,tsType:{name:"string"},description:""},className:{required:!1,tsType:{name:"string"},description:""},extra:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},style:{required:!1,tsType:{name:"CSSProperties"},description:""},streaming:{required:!1,tsType:{name:"boolean"},description:""},confirmed:{required:!1,tsType:{name:"boolean"},description:""},readonly:{required:!1,tsType:{name:"boolean"},description:""}}};export{j as L};
@@ -1,39 +0,0 @@
1
- import{j as e}from"./jsx-runtime-CpaO0gaJ.js";const s=({children:t,width:a,height:r,style:i,childrenContainerStyle:n})=>e.jsxs("div",{style:{position:"relative",width:a??"100%",height:r??"100%",overflow:"hidden",borderRadius:"10px 10px 0 0",...i},children:[e.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"#F4FFFC"}}),e.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 25% -15%, #EEFFCE 0%, transparent 55%)",filter:"blur(70px)",animation:"floatCircle1 4s ease-in-out infinite"}}),e.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,background:"radial-gradient(circle at 80% 200%, #CEFFFB 0%, transparent 45%)",filter:"blur(70px)",animation:"floatCircle2 5s ease-in-out infinite 0.5s"}}),e.jsx("div",{style:{position:"relative",zIndex:1,width:"100%",height:"100%",...n},children:t}),e.jsx("style",{children:`
2
- @keyframes floatCircle1 {
3
- 0%, 100% {
4
- transform: translate(0%, 0%) scale(1.2);
5
- opacity: 1;
6
- }
7
- 25% {
8
- transform: translate(-15%, 20%) scale(1.6);
9
- opacity: 0.95;
10
- }
11
- 50% {
12
- transform: translate(12%, -15%) scale(0.9);
13
- opacity: 1;
14
- }
15
- 75% {
16
- transform: translate(-10%, 10%) scale(1.4);
17
- opacity: 0.9;
18
- }
19
- }
20
-
21
- @keyframes floatCircle2 {
22
- 0%, 100% {
23
- transform: translate(0%, 0%) scale(1.1);
24
- opacity: 1;
25
- }
26
- 30% {
27
- transform: translate(18%, -12%) scale(1.5);
28
- opacity: 1;
29
- }
30
- 60% {
31
- transform: translate(-12%, 15%) scale(0.85);
32
- opacity: 0.95;
33
- }
34
- 85% {
35
- transform: translate(14%, -8%) scale(1.3);
36
- opacity: 0.9;
37
- }
38
- }
39
- `})]});s.__docgenInfo={description:"",methods:[],displayName:"LinearGradientColorBgAnimation",props:{children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},width:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:""},height:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:""},style:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:""},childrenContainerStyle:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:""}}};export{s as L};
@@ -1 +0,0 @@
1
- import{j as r}from"./jsx-runtime-CpaO0gaJ.js";import{c as t}from"./utils-CXGjNK-X.js";const a=({children:e,className:s,...o})=>r.jsx("div",{className:t("flex flex-col gap-2.5 overflow-hidden p-0 text-foreground text-[14px]","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground","is-user:dark overflow-visible",s),...o,children:e});a.__docgenInfo={description:"",methods:[],displayName:"MessageContent",props:{compact:{required:!1,tsType:{name:"boolean"},description:""}}};export{a as M};
@@ -1 +0,0 @@
1
- import{j as o}from"./jsx-runtime-CpaO0gaJ.js";const a=({bgColor:e="#E8F4FF",color:t="#0265FF",label:r,children:s})=>o.jsx("div",{className:"flex items-center justify-center gap-1.5 px-1.5 h-[26px] rounded-[100px] text-[13px]",style:{backgroundColor:e,color:t},children:r||s});a.__docgenInfo={description:"",methods:[],displayName:"OptionItem",props:{bgColor:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"#E8F4FF"',computed:!1}},color:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:'"#0265FF"',computed:!1}},label:{required:!1,tsType:{name:"ReactNode"},description:""},children:{required:!1,tsType:{name:"ReactNode"},description:""}}};export{a as O};
@@ -1 +0,0 @@
1
- const E="modulepreload",y=function(a,i){return new URL(a,i).href},m={},w=function(i,l,u){let f=Promise.resolve();if(l&&l.length>0){const r=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),h=e?.nonce||e?.getAttribute("nonce");f=Promise.allSettled(l.map(t=>{if(t=y(t,u),t in m)return;m[t]=!0;const o=t.endsWith(".css"),v=o?'[rel="stylesheet"]':"";if(!!u)for(let s=r.length-1;s>=0;s--){const c=r[s];if(c.href===t&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${v}`))return;const n=document.createElement("link");if(n.rel=o?"stylesheet":E,o||(n.as="script"),n.crossOrigin="",n.href=t,h&&n.setAttribute("nonce",h),document.head.appendChild(n),o)return new Promise((s,c)=>{n.addEventListener("load",s),n.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${t}`)))})}))}function d(r){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=r,window.dispatchEvent(e),!e.defaultPrevented)throw r}return f.then(r=>{for(const e of r||[])e.status==="rejected"&&d(e.reason);return i().catch(d)})};export{w as _};
@@ -1,6 +0,0 @@
1
- import{j as e}from"./jsx-runtime-CpaO0gaJ.js";import{r as p}from"./iframe-BNpZCkNl.js";import{c as t}from"./index-CaU3vELI.js";import{I as G}from"./icon-btn-B-A_0V7W.js";import{B as J,i as O,j as V}from"./bs-icons-CDeLTCWJ.js";import{L as K}from"./linear-gradient-color-bg-animation-DIBcKbzI.js";import{C as Q}from"./confirm-dialog-BO5s3AJb.js";import{c as I}from"./utils-CXGjNK-X.js";import{c as U}from"./createLucideIcon-CkLwfbD4.js";import{B as W}from"./base-button-BGn3Fo0B.js";/**
2
- * @license lucide-react v0.554.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const X=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Y=U("loader-circle",X);function R({className:f,...s}){return e.jsx(Y,{role:"status","aria-label":"Loading",className:I("size-4 animate-spin",f),...s})}R.__docgenInfo={description:"",methods:[],displayName:"Spinner"};const Z=({title:f,tips:s,style:v,confirmContent:L,confirmTitle:B,className:F,active:m,onBackClick:u,onSave:x,closeBtnLabel:k,onCancel:a,onClear:h,variant:b="fields-previewer",dialogContainer:P,disableConfirm:w,disableOperation:C,customOperationElement:j})=>{const[_,r]=p.useState(!1),[o,l]=p.useState(!1),[A,d]=p.useState(null),N=p.useCallback(n=>{if(!n){d(null);return}const g=n.getRootNode();if(g instanceof ShadowRoot){const S=g.querySelector("[data-bs-dialog-portal]");if(S){d(S);return}const y=document.createElement("div");y.setAttribute("data-bs-dialog-portal","true"),g.appendChild(y),d(y)}else d(null)},[]),T=t("w-[94px] h-[34px] flex items-center justify-center rounded-[4px]"),i=b==="data-previewer",c=b==="fields-previewer",D=t("font-[700]",{"text-[16px]":c,"text-[18px]":i}),E=P||A||void 0,H=j||e.jsxs("div",{className:"flex items-center gap-[10px]",children:[h&&e.jsx(W,{className:I("w-[34px] h-[34px] text-[#8d8d8d] p-0 flex items-center justify-center hover:border-[#e0e0e0] hover:text-[#8d8d8d] border border-solid border-[#e0e0e0] ",{"pointer-events-none opacity-50":C||o}),tooltip:"清除全部",icon:e.jsx(J,{}),onClick:()=>{h?.()}}),x&&e.jsxs("button",{onClick:async()=>{l(!0);try{await x()}catch(n){console.error("Save failed:",n)}finally{l(!1)}},className:t(T,"flex items-center gap-[6px]","bg-[#0265FF] hover:opacity-90 text-white text-[14px]",{"w-[115px]":i,"pointer-events-none opacity-50":C||o}),children:[o?e.jsx(R,{}):null,c?"保存":"添加到表单"]}),a&&e.jsx("button",{onClick:()=>{if(w){a?.(),u?.();return}r(!0)},className:t(T,"text-[#121111] text-[14px] bg-[#fff] border border-solid border-[#e0e0e0] hover:bg-[#f0f0f0]",{"pointer-events-none opacity-50":o}),children:k||"取消"})]}),q=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[i?null:e.jsx(G,{icon:e.jsx(O,{}),onClick:()=>{if(w){a?.(),u?.();return}r(!0)},className:"text-[#0265FF] hover:text-[#0265FF]"}),e.jsx("span",{className:D,children:f}),s&&m&&e.jsxs("div",{className:"flex items-center gap-[6px] text-[#999999] text-[12px]",children:[e.jsx(V,{}),s]})]}),H,e.jsx(Q,{container:E,open:_,onOpenChange:r,title:B||"AI表单搭建有修改,是否保存?",description:L||"您修改了AI表单搭建但没有保存,是否需要保存并继续?",onLinkClick:()=>r(!1),onCancel:()=>{r(!1),a?.(),u?.()},onConfirm:async()=>{r(!1),l(!0);try{await x?.(!0)}catch(n){console.error("Save failed:",n)}finally{l(!1)}}})]}),z=t({"border-b border-solid border-[#e0e0e0]":!m&&c,"border-none":i});if(m)return e.jsx("div",{ref:N,children:e.jsx(K,{height:52,style:v,childrenContainerStyle:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px"},children:q})});const M=t({"px-[20px]":c,"px-[10px]":i});return e.jsx("div",{ref:N,style:v,className:t("w-full h-[52px] flex items-center justify-between",M,F,z),children:q})};Z.__docgenInfo={description:"",methods:[],displayName:"PreviewerHeader",props:{title:{required:!0,tsType:{name:"string"},description:""},tips:{required:!1,tsType:{name:"string"},description:""},active:{required:!1,tsType:{name:"boolean"},description:""},className:{required:!1,tsType:{name:"string"},description:""},onBackClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onSave:{required:!1,tsType:{name:"signature",type:"function",raw:"(isConfirm?: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"isConfirm"}],return:{name:"void"}}},description:""},onCancel:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onClear:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},style:{required:!1,tsType:{name:"ReactCSSProperties",raw:"React.CSSProperties"},description:""},confirmTitle:{required:!1,tsType:{name:"string"},description:""},confirmContent:{required:!1,tsType:{name:"string"},description:""},dialogContainer:{required:!1,tsType:{name:"HTMLElement"},description:""},variant:{required:!1,tsType:{name:"union",raw:"'fields-previewer' | 'data-previewer'",elements:[{name:"literal",value:"'fields-previewer'"},{name:"literal",value:"'data-previewer'"}]},description:"",defaultValue:{value:"'fields-previewer'",computed:!1}},closeBtnLabel:{required:!1,tsType:{name:"string"},description:""},disableConfirm:{required:!1,tsType:{name:"boolean"},description:""},disableOperation:{required:!1,tsType:{name:"boolean"},description:""},customOperationElement:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};export{Z as P};
@@ -1 +0,0 @@
1
- import{j as e}from"./jsx-runtime-CpaO0gaJ.js";import{B as l}from"./button-Cyp2OfiJ.js";import{c as f}from"./utils-CXGjNK-X.js";import{t as c}from"./ui-B16ZxGB5.js";const m=({text:a="确认",prefixDesc:t,className:n,disabled:o,light:i,icon:p,children:d,...r})=>{const s=e.jsxs(l,{...r,variant:"default",disabled:o,className:f("px-[10px] py-0 rounded-[100px] text-[14px] leading-normal h-[34px] min-w-[100px] cursor-pointer w-full disabled:opacity-100 gap-[6px] shadow-none",o?"bg-[#f0f0f0] text-[#999] cursor-not-allowed shadow-none":i?"bg-[#F0F6FF] text-[#0265FF] hover:bg-[#0265FF] hover:text-white":"bg-[#0265ff] text-white hover:bg-[#0265ff]/80",c,{"!bg-[#E5E6EB] !text-[#121111] shadow-none font-[400]":r.disabledWithInfo},n),children:[p,d||a]});return t?e.jsxs("div",{className:"flex flex-col items-start gap-2.5",children:[e.jsx("p",{className:"text-[#4D609F]",children:t}),s]}):s};m.__docgenInfo={description:"",methods:[],displayName:"PrimaryConfirmBtn",props:{asChild:{required:!1,tsType:{name:"boolean"},description:""},text:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'确认'",computed:!1}},prefixDesc:{required:!1,tsType:{name:"string"},description:""},icon:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},disabledWithInfo:{required:!1,tsType:{name:"boolean"},description:""},light:{required:!1,tsType:{name:"boolean"},description:""}},composes:["VariantProps"]};export{m as P};
@@ -1 +0,0 @@
1
- import{r as s}from"./iframe-BNpZCkNl.js";import{r as l}from"./index-B-T-IyWu.js";import"./preload-helper-CmsKOCeN.js";var u,a=l;u=a.createRoot,a.hydrateRoot;var n=new Map;function c(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var R=({callback:e,children:t})=>{let r=s.useRef();return s.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var h=async(e,t,r)=>{let o=await p(t,r);if(c()){o.render(e);return}let{promise:i,resolve:m}=Promise.withResolvers();return o.render(s.createElement(R,{callback:m},e)),i},w=(e,t)=>{let r=n.get(e);r&&(r.unmount(),n.delete(e))},p=async(e,t)=>{let r=n.get(e);return r||(r=u(e,t),n.set(e,r)),r};export{h as renderElement,w as unmountElement};
@@ -1 +0,0 @@
1
- import{j as r}from"./jsx-runtime-CpaO0gaJ.js";import{r as a}from"./iframe-BNpZCkNl.js";import{u as N}from"./index-KJpiBtEb.js";import{c as z,b as G,P as E,u as K,a as F}from"./index-CXB_DHA8.js";import{u as U}from"./index-D-D2iJjc.js";import{u as X}from"./index-DZuATJno.js";import{c as R}from"./utils-CXGjNK-X.js";import{d as J}from"./bs-icons-CDeLTCWJ.js";var I="Checkbox",[Q]=z(I),[V,j]=Q(I);function W(t){const{__scopeCheckbox:n,checked:s,children:i,defaultChecked:o,disabled:e,form:u,name:p,onCheckedChange:d,required:f,value:m="on",internal_do_not_use_render:h}=t,[b,v]=K({prop:s,defaultProp:o??!1,onChange:d,caller:I}),[C,k]=a.useState(null),[g,c]=a.useState(null),l=a.useRef(!1),w=C?!!u||!!C.closest("form"):!0,y={checked:b,disabled:e,setChecked:v,control:C,setControl:k,name:p,form:u,value:m,hasConsumerStoppedPropagationRef:l,required:f,defaultChecked:x(o)?!1:o,isFormControl:w,bubbleInput:g,setBubbleInput:c};return r.jsx(V,{scope:n,...y,children:Y(h)?h(y):i})}var P="CheckboxTrigger",S=a.forwardRef(({__scopeCheckbox:t,onKeyDown:n,onClick:s,...i},o)=>{const{control:e,value:u,disabled:p,checked:d,required:f,setControl:m,setChecked:h,hasConsumerStoppedPropagationRef:b,isFormControl:v,bubbleInput:C}=j(P,t),k=N(o,m),g=a.useRef(d);return a.useEffect(()=>{const c=e?.form;if(c){const l=()=>h(g.current);return c.addEventListener("reset",l),()=>c.removeEventListener("reset",l)}},[e,h]),r.jsx(E.button,{type:"button",role:"checkbox","aria-checked":x(d)?"mixed":d,"aria-required":f,"data-state":O(d),"data-disabled":p?"":void 0,disabled:p,value:u,...i,ref:k,onKeyDown:F(n,c=>{c.key==="Enter"&&c.preventDefault()}),onClick:F(s,c=>{h(l=>x(l)?!0:!l),C&&v&&(b.current=c.isPropagationStopped(),b.current||c.stopPropagation())})})});S.displayName=P;var q=a.forwardRef((t,n)=>{const{__scopeCheckbox:s,name:i,checked:o,defaultChecked:e,required:u,disabled:p,value:d,onCheckedChange:f,form:m,...h}=t;return r.jsx(W,{__scopeCheckbox:s,checked:o,defaultChecked:e,disabled:p,required:u,onCheckedChange:f,name:i,form:m,value:d,internal_do_not_use_render:({isFormControl:b})=>r.jsxs(r.Fragment,{children:[r.jsx(S,{...h,ref:n,__scopeCheckbox:s}),b&&r.jsx(A,{__scopeCheckbox:s})]})})});q.displayName=I;var B="CheckboxIndicator",T=a.forwardRef((t,n)=>{const{__scopeCheckbox:s,forceMount:i,...o}=t,e=j(B,s);return r.jsx(G,{present:i||x(e.checked)||e.checked===!0,children:r.jsx(E.span,{"data-state":O(e.checked),"data-disabled":e.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...t.style}})})});T.displayName=B;var M="CheckboxBubbleInput",A=a.forwardRef(({__scopeCheckbox:t,...n},s)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:e,defaultChecked:u,required:p,disabled:d,name:f,value:m,form:h,bubbleInput:b,setBubbleInput:v}=j(M,t),C=N(s,v),k=U(e),g=X(i);a.useEffect(()=>{const l=b;if(!l)return;const w=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(w,"checked").set,L=!o.current;if(k!==e&&_){const H=new Event("click",{bubbles:L});l.indeterminate=x(e),_.call(l,x(e)?!1:e),l.dispatchEvent(H)}},[b,k,e,o]);const c=a.useRef(x(e)?!1:e);return r.jsx(E.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??c.current,required:p,disabled:d,name:f,value:m,form:h,...n,tabIndex:-1,ref:C,style:{...n.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});A.displayName=M;function Y(t){return typeof t=="function"}function x(t){return t==="indeterminate"}function O(t){return x(t)?"indeterminate":t?"checked":"unchecked"}const Z=()=>r.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("rect",{x:"0.5",y:"0.5",width:"7",height:"7",rx:"1",fill:"#0265ff"})}),D=a.forwardRef(({className:t,children:n,id:s,readonly:i,disabled:o,intermediate:e,...u},p)=>{const d=a.useId(),f=s??d;return r.jsxs("label",{htmlFor:f,className:R("inline-flex items-center gap-[6px] select-none text-[#121111] text-[14px]",o?"cursor-not-allowed":"cursor-pointer",{"pointer-events-none":i}),children:[r.jsx(q,{ref:p,id:f,disabled:o,className:R("inline-flex shrink-0 items-center justify-center","w-[16px] h-[16px] rounded-[2px] box-border border","transition-colors duration-200","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#0265FF] focus-visible:ring-offset-1","border-[#E0E0E0] bg-white","hover:border-[#0265FF]","data-[state=checked]:bg-[#0265FF] data-[state=checked]:border-[#0265FF]","disabled:cursor-not-allowed disabled:bg-[#F0F0F0] disabled:border-[#C2C2C2]","disabled:data-[state=checked]:bg-[#C2C2C2] disabled:data-[state=checked]:border-[#C2C2C2]",e&&"bg-white border-[#0265FF] text-[#0265FF]",t,{"opacity-50":i}),...u,children:r.jsx(T,{className:"text-white",forceMount:e||void 0,children:e?r.jsx(Z,{}):r.jsx(J,{})})}),n!=null&&r.jsx("span",{className:R("text-sm leading-none",o&&"text-[#C2C2C2]"),children:n})]})});D.displayName="SquareChecker";D.__docgenInfo={description:"",methods:[],displayName:"SquareChecker",props:{children:{required:!1,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:"Optional label rendered beside the checkbox"},readonly:{required:!1,tsType:{name:"boolean"},description:""},intermediate:{required:!1,tsType:{name:"boolean"},description:""}}};export{D as S};
@@ -1,7 +0,0 @@
1
- import{j as t}from"./jsx-runtime-CpaO0gaJ.js";import{r as d}from"./iframe-BNpZCkNl.js";import{b as f}from"./ui-B16ZxGB5.js";import{t as y}from"./utils-CXGjNK-X.js";import{C as h,b as k}from"./collapsible-TCbdh_v_.js";import{L as T}from"./line-checker-DSzQ_hxZ.js";const b=({disabled:e,onCheckedChange:r,label:n,val:s,streaming:a,readonly:i})=>t.jsx(T,{streaming:a,readonly:i,title:n,disabled:e,defaultChecked:!0,onCheckedChange:r,className:"pl-9",shortDesc:s}),w=d.memo(({field:e,readonly:r,onCheckedChange:n,streaming:s})=>{const{widget:a,label:i}=e;if(!a)return null;const{type:c,value:u}=a,l=c;if(!f.hasOwnProperty(l))return null;const o=y(u,l),p=f[l]||f.unknown,m=d.useCallback(g=>{n(g,e)},[e]);return d.useEffect(()=>{m(!0)},[]),t.jsx(b,{streaming:s,readonly:r,desc:p,label:i,val:o,onCheckedChange:m})},(e,r)=>e.field.widget?.widgetName===r.field.widget?.widgetName&&e.readonly===r.readonly&&e.streaming===r.streaming),C=({subformField:e,onChange:r,streaming:n,readonly:s})=>{if(!e.widget.value||!e.widget.value.length)return null;const a=e.widget.value,[i,c]=d.useState(!0);return t.jsx(h,{open:i,onOpenChange:c,children:t.jsx(k,{children:a.map((u,l)=>!u||!u.length?null:t.jsx(h,{defaultOpen:!0,children:t.jsx(k,{children:u.map((o,p)=>t.jsx(w,{readonly:s,streaming:n,field:{label:o.label,widget:{widgetName:o.fieldName,type:o.fieldType,value:o.value}},onCheckedChange:(m,g)=>{r({checked:m,field:g,row:l,col:p,parentFieldName:e.widget.widgetName})}}))})},l))})})};C.__docgenInfo={description:"专门渲染子表单下的字段勾选",methods:[],displayName:"SubformFieldsValueChecker",props:{onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(p: onSubformFieldChangeParam) => void",signature:{arguments:[{type:{name:"signature",type:"object",raw:`{
2
- checked: boolean;
3
- field: F;
4
- parentFieldName: string;
5
- row?: number;
6
- col?: number;
7
- }`,signature:{properties:[{key:"checked",value:{name:"boolean",required:!0}},{key:"field",value:{name:"ValueOf",elements:[{name:"Pick",elements:[{name:"ToolUIPart",elements:[{name:"FieldsTools"}],raw:"ToolUIPart<FieldsTools>"},{name:"literal",value:"'output'"}],raw:"Pick<ToolUIPart<FieldsTools>, 'output'>"}],raw:"ValueOf<Pick<ToolUIPart<FieldsTools>, 'output'>>",required:!0}},{key:"parentFieldName",value:{name:"string",required:!0}},{key:"row",value:{name:"number",required:!1}},{key:"col",value:{name:"number",required:!1}}]}},name:"p"}],return:{name:"void"}}},description:""},subformField:{required:!0,tsType:{name:"ValueOf",elements:[{name:"Pick",elements:[{name:"ToolUIPart",elements:[{name:"FieldsTools"}],raw:"ToolUIPart<FieldsTools>"},{name:"literal",value:"'output'"}],raw:"Pick<ToolUIPart<FieldsTools>, 'output'>"}],raw:"ValueOf<Pick<ToolUIPart<FieldsTools>, 'output'>>"},description:""},streaming:{required:!1,tsType:{name:"boolean"},description:""},readonly:{required:!1,tsType:{name:"boolean"},description:""}}};export{C as S};
@@ -1,114 +0,0 @@
1
- import{j as i}from"./jsx-runtime-CpaO0gaJ.js";import{S as t}from"./subform-fields-value-checker-DCstRpVF.js";import"./iframe-BNpZCkNl.js";import"./preload-helper-CmsKOCeN.js";import"./ui-B16ZxGB5.js";import"./utils-CXGjNK-X.js";import"./collapsible-TCbdh_v_.js";import"./index-CXB_DHA8.js";import"./index-B-T-IyWu.js";import"./index-KJpiBtEb.js";import"./index-DvxqVOC1.js";import"./line-checker-DSzQ_hxZ.js";import"./index-CaU3vELI.js";import"./bs-icons-CDeLTCWJ.js";import"./square-checker-BKGRXJag.js";import"./index-D-D2iJjc.js";import"./index-DZuATJno.js";const C={title:"Example/Chat/SubformFieldsValueChecker",component:t,tags:["autodocs"],parameters:{layout:"centered"},decorators:[e=>i.jsx("div",{style:{width:450},children:i.jsx(e,{})})]},l={args:{subformField:{label:"联系方式",widget:{widgetName:"contact_info",type:"subform",value:[[{label:"联系人",fieldName:"name",fieldType:"text",value:"张三"},{label:"电话",fieldName:"phone",fieldType:"text",value:"13800138000"},{label:"邮箱",fieldName:"email",fieldType:"text",value:"zhangsan@test.com"}]]}},onChange:e=>{console.log("SubformFieldsValueChecker onChange:",e)}}},n={args:{subformField:{label:"采购清单",widget:{widgetName:"purchase_list",type:"subform",value:[[{label:"品名",fieldName:"item_name",fieldType:"text",value:"笔记本电脑"},{label:"数量",fieldName:"quantity",fieldType:"number",value:10},{label:"单价",fieldName:"price",fieldType:"number",value:5999}],[{label:"品名",fieldName:"item_name",fieldType:"text",value:"显示器"},{label:"数量",fieldName:"quantity",fieldType:"number",value:5},{label:"单价",fieldName:"price",fieldType:"number",value:1999}],[{label:"品名",fieldName:"item_name",fieldType:"text",value:"键盘"},{label:"数量",fieldName:"quantity",fieldType:"number",value:15},{label:"单价",fieldName:"price",fieldType:"number",value:299}]]}},onChange:e=>{console.log("SubformFieldsValueChecker onChange:",e)}}},a={args:{subformField:{label:"联系方式",widget:{widgetName:"contact_info",type:"subform",value:[[{label:"联系人",fieldName:"name",fieldType:"text",value:"张三"},{label:"电话",fieldName:"phone",fieldType:"text",value:"13800138000"}]]}},readonly:!0,onChange:e=>{console.log("SubformFieldsValueChecker onChange:",e)}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
2
- args: {
3
- subformField: {
4
- label: "联系方式",
5
- widget: {
6
- widgetName: "contact_info",
7
- type: "subform",
8
- value: [[{
9
- label: "联系人",
10
- fieldName: "name",
11
- fieldType: "text",
12
- value: "张三"
13
- }, {
14
- label: "电话",
15
- fieldName: "phone",
16
- fieldType: "text",
17
- value: "13800138000"
18
- }, {
19
- label: "邮箱",
20
- fieldName: "email",
21
- fieldType: "text",
22
- value: "zhangsan@test.com"
23
- }]]
24
- }
25
- },
26
- onChange: p => {
27
- console.log("SubformFieldsValueChecker onChange:", p);
28
- }
29
- }
30
- }`,...l.parameters?.docs?.source}}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
31
- args: {
32
- subformField: {
33
- label: "采购清单",
34
- widget: {
35
- widgetName: "purchase_list",
36
- type: "subform",
37
- value: [[{
38
- label: "品名",
39
- fieldName: "item_name",
40
- fieldType: "text",
41
- value: "笔记本电脑"
42
- }, {
43
- label: "数量",
44
- fieldName: "quantity",
45
- fieldType: "number",
46
- value: 10
47
- }, {
48
- label: "单价",
49
- fieldName: "price",
50
- fieldType: "number",
51
- value: 5999
52
- }], [{
53
- label: "品名",
54
- fieldName: "item_name",
55
- fieldType: "text",
56
- value: "显示器"
57
- }, {
58
- label: "数量",
59
- fieldName: "quantity",
60
- fieldType: "number",
61
- value: 5
62
- }, {
63
- label: "单价",
64
- fieldName: "price",
65
- fieldType: "number",
66
- value: 1999
67
- }], [{
68
- label: "品名",
69
- fieldName: "item_name",
70
- fieldType: "text",
71
- value: "键盘"
72
- }, {
73
- label: "数量",
74
- fieldName: "quantity",
75
- fieldType: "number",
76
- value: 15
77
- }, {
78
- label: "单价",
79
- fieldName: "price",
80
- fieldType: "number",
81
- value: 299
82
- }]]
83
- }
84
- },
85
- onChange: p => {
86
- console.log("SubformFieldsValueChecker onChange:", p);
87
- }
88
- }
89
- }`,...n.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
90
- args: {
91
- subformField: {
92
- label: "联系方式",
93
- widget: {
94
- widgetName: "contact_info",
95
- type: "subform",
96
- value: [[{
97
- label: "联系人",
98
- fieldName: "name",
99
- fieldType: "text",
100
- value: "张三"
101
- }, {
102
- label: "电话",
103
- fieldName: "phone",
104
- fieldType: "text",
105
- value: "13800138000"
106
- }]]
107
- }
108
- },
109
- readonly: true,
110
- onChange: p => {
111
- console.log("SubformFieldsValueChecker onChange:", p);
112
- }
113
- }
114
- }`,...a.parameters?.docs?.source}}};const w=["SingleRow","MultipleRows","Readonly"];export{n as MultipleRows,a as Readonly,l as SingleRow,w as __namedExportsOrder,C as default};
@@ -1,6 +0,0 @@
1
- import{_ as mt,c as ht,s as Ee,A as yt,a as bt,S as xt,r as vt}from"./DocsRenderer-GHJI37HO-DLf4p3c1.js";import{I as Z,r as we,a as G,_ as F}from"./iframe-BNpZCkNl.js";import"./preload-helper-CmsKOCeN.js";import"./react-18-Cn3rktXT.js";import"./index-B-T-IyWu.js";import"./jsx-runtime-CpaO0gaJ.js";function xe(e){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xe(e)}function St(e,r){if(xe(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r);if(xe(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function _t(e){var r=St(e,"string");return xe(r)=="symbol"?r:r+""}function Ve(e,r,t){return(r=_t(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function wt(e,r){if(e==null)return{};var t,a,n=mt(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var At=F({"../node_modules/refractor/lang/bash.js"(e,r){r.exports=t,t.displayName="bash",t.aliases=["shell"];function t(a){(function(n){var o="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",u={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},d={bash:u,environment:{pattern:RegExp("\\$"+o),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+o),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+o),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:d},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:u}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:d},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:d.entity}}],environment:{pattern:RegExp("\\$?"+o),alias:"constant"},variable:d.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},u.inside=n.languages.bash;for(var l=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],f=d.variable[1].inside,h=0;h<l.length;h++)f[l[h]]=n.languages.bash[l[h]];n.languages.shell=n.languages.bash})(a)}}}),Je=F({"../node_modules/refractor/lang/css.js"(e,r){r.exports=t,t.displayName="css",t.aliases=[];function t(a){(function(n){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var u=n.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))})(a)}}}),Et=F({"../node_modules/refractor/lang/graphql.js"(e,r){r.exports=t,t.displayName="graphql",t.aliases=[];function t(a){a.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:a.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},a.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var o=n.tokens.filter(function(A){return typeof A!="string"&&A.type!=="comment"&&A.type!=="scalar"}),u=0;function d(A){return o[u+A]}function l(A,i){i=i||0;for(var s=0;s<A.length;s++){var p=d(s+i);if(!p||p.type!==A[s])return!1}return!0}function f(A,i){for(var s=1,p=u;p<o.length;p++){var g=o[p],m=g.content;if(g.type==="punctuation"&&typeof m=="string"){if(A.test(m))s++;else if(i.test(m)&&(s--,s===0))return p}}return-1}function h(A,i){var s=A.alias;s?Array.isArray(s)||(A.alias=s=[s]):A.alias=s=[],s.push(i)}for(;u<o.length;){var C=o[u++];if(C.type==="keyword"&&C.content==="mutation"){var x=[];if(l(["definition-mutation","punctuation"])&&d(1).content==="("){u+=2;var b=f(/^\($/,/^\)$/);if(b===-1)continue;for(;u<b;u++){var y=d(0);y.type==="variable"&&(h(y,"variable-input"),x.push(y.content))}u=b+1}if(l(["punctuation","property-query"])&&d(0).content==="{"&&(u++,h(d(0),"property-mutation"),x.length>0)){var S=f(/^\{$/,/^\}$/);if(S===-1)continue;for(var E=u;E<S;E++){var _=o[E];_.type==="variable"&&x.indexOf(_.content)>=0&&h(_,"variable-input")}}}}})}}}),kt=F({"../node_modules/refractor/lang/js-extras.js"(e,r){r.exports=t,t.displayName="jsExtras",t.aliases=[];function t(a){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function o(C,x){return RegExp(C.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),x)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:o(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:o(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:o(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var u=["function","function-variable","method","method-variable","property-access"],d=0;d<u.length;d++){var l=u[d],f=n.languages.javascript[l];n.util.type(f)==="RegExp"&&(f=n.languages.javascript[l]={pattern:f});var h=f.inside||{};f.inside=h,h["maybe-class-name"]=/^[A-Z][\s\S]*/}})(a)}}}),Ct=F({"../node_modules/refractor/lang/json.js"(e,r){r.exports=t,t.displayName="json",t.aliases=["webmanifest"];function t(a){a.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},a.languages.webmanifest=a.languages.json}}}),Qe=F({"../node_modules/refractor/lang/jsx.js"(e,r){r.exports=t,t.displayName="jsx",t.aliases=[];function t(a){(function(n){var o=n.util.clone(n.languages.javascript),u=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,d=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,l=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function f(x,b){return x=x.replace(/<S>/g,function(){return u}).replace(/<BRACES>/g,function(){return d}).replace(/<SPREAD>/g,function(){return l}),RegExp(x,b)}l=f(l).source,n.languages.jsx=n.languages.extend("markup",o),n.languages.jsx.tag.pattern=f(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=o.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:f(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:f(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var h=function(x){return x?typeof x=="string"?x:typeof x.content=="string"?x.content:x.content.map(h).join(""):""},C=function(x){for(var b=[],y=0;y<x.length;y++){var S=x[y],E=!1;if(typeof S!="string"&&(S.type==="tag"&&S.content[0]&&S.content[0].type==="tag"?S.content[0].content[0].content==="</"?b.length>0&&b[b.length-1].tagName===h(S.content[0].content[1])&&b.pop():S.content[S.content.length-1].content==="/>"||b.push({tagName:h(S.content[0].content[1]),openedBraces:0}):b.length>0&&S.type==="punctuation"&&S.content==="{"?b[b.length-1].openedBraces++:b.length>0&&b[b.length-1].openedBraces>0&&S.type==="punctuation"&&S.content==="}"?b[b.length-1].openedBraces--:E=!0),(E||typeof S=="string")&&b.length>0&&b[b.length-1].openedBraces===0){var _=h(S);y<x.length-1&&(typeof x[y+1]=="string"||x[y+1].type==="plain-text")&&(_+=h(x[y+1]),x.splice(y+1,1)),y>0&&(typeof x[y-1]=="string"||x[y-1].type==="plain-text")&&(_=h(x[y-1])+_,x.splice(y-1,1),y--),x[y]=new n.Token("plain-text",_,null,_)}S.content&&typeof S.content!="string"&&C(S.content)}};n.hooks.add("after-tokenize",function(x){x.language!=="jsx"&&x.language!=="tsx"||C(x.tokens)})})(a)}}}),Ft=F({"../node_modules/refractor/lang/markdown.js"(e,r){r.exports=t,t.displayName="markdown",t.aliases=["md"];function t(a){(function(n){var o=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function u(y){return y=y.replace(/<inner>/g,function(){return o}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+y+")")}var d=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,l=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return d}),f=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+l+f+"(?:"+l+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+l+f+")(?:"+l+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(d),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+l+")"+f+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+l+"$"),inside:{"table-header":{pattern:RegExp(d),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:u(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:u(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:u(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:u(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(y){["url","bold","italic","strike","code-snippet"].forEach(function(S){y!==S&&(n.languages.markdown[y].inside.content.inside[S]=n.languages.markdown[S])})}),n.hooks.add("after-tokenize",function(y){if(y.language!=="markdown"&&y.language!=="md")return;function S(E){if(!(!E||typeof E=="string"))for(var _=0,A=E.length;_<A;_++){var i=E[_];if(i.type!=="code"){S(i.content);continue}var s=i.content[1],p=i.content[3];if(s&&p&&s.type==="code-language"&&p.type==="code-block"&&typeof s.content=="string"){var g=s.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");g=(/[a-z][\w-]*/i.exec(g)||[""])[0].toLowerCase();var m="language-"+g;p.alias?typeof p.alias=="string"?p.alias=[p.alias,m]:p.alias.push(m):p.alias=[m]}}}S(y.tokens)}),n.hooks.add("wrap",function(y){if(y.type==="code-block"){for(var S="",E=0,_=y.classes.length;E<_;E++){var A=y.classes[E],i=/language-(.+)/.exec(A);if(i){S=i[1];break}}var s=n.languages[S];if(s)y.content=n.highlight(b(y.content.value),s,S);else if(S&&S!=="none"&&n.plugins.autoloader){var p="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);y.attributes.id=p,n.plugins.autoloader.loadLanguages(S,function(){var g=document.getElementById(p);g&&(g.innerHTML=n.highlight(g.textContent,n.languages[S],S))})}}});var h=RegExp(n.languages.markup.tag.pattern.source,"gi"),C={amp:"&",lt:"<",gt:">",quot:'"'},x=String.fromCodePoint||String.fromCharCode;function b(y){var S=y.replace(h,"");return S=S.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,_){if(_=_.toLowerCase(),_[0]==="#"){var A;return _[1]==="x"?A=parseInt(_.slice(2),16):A=Number(_.slice(1)),x(A)}else{var i=C[_];return i||E}}),S}n.languages.md=n.languages.markdown})(a)}}}),et=F({"../node_modules/refractor/lang/markup.js"(e,r){r.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function t(a){a.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(n,o){var u={};u["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[o]},u.cdata=/^<!\[CDATA\[|\]\]>$/i;var d={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:u}};d["language-"+o]={pattern:/[\s\S]+/,inside:a.languages[o]};var l={};l[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:d},a.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(n,o){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:a.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml}}}),tt=F({"../node_modules/refractor/lang/typescript.js"(e,r){r.exports=t,t.displayName="typescript",t.aliases=["ts"];function t(a){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var o=n.languages.extend("typescript",{});delete o["class-name"],n.languages.typescript["class-name"].inside=o,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:o}}}}),n.languages.ts=n.languages.typescript})(a)}}}),jt=F({"../node_modules/refractor/lang/tsx.js"(e,r){var t=Qe(),a=tt();r.exports=n,n.displayName="tsx",n.aliases=[];function n(o){o.register(t),o.register(a),function(u){var d=u.util.clone(u.languages.typescript);u.languages.tsx=u.languages.extend("jsx",d),delete u.languages.tsx.parameter,delete u.languages.tsx["literal-property"];var l=u.languages.tsx.tag;l.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+l.pattern.source+")",l.pattern.flags),l.lookbehind=!0}(o)}}}),Nt=F({"../node_modules/refractor/lang/yaml.js"(e,r){r.exports=t,t.displayName="yaml",t.aliases=["yml"];function t(a){(function(n){var o=/[*&][^\s[\]{},]+/,u=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,d="(?:"+u.source+"(?:[ ]+"+o.source+")?|"+o.source+"(?:[ ]+"+u.source+")?)",l=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),f=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function h(C,x){x=(x||"").replace(/m/g,"")+"m";var b=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<value>>/g,function(){return C});return RegExp(b,x)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return d})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<key>>/g,function(){return"(?:"+l+"|"+f+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:h(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:h(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:h(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:h(f),lookbehind:!0,greedy:!0},number:{pattern:h(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:u,important:o,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(a)}}}),$t=F({"../node_modules/xtend/immutable.js"(e,r){r.exports=a;var t=Object.prototype.hasOwnProperty;function a(){for(var n={},o=0;o<arguments.length;o++){var u=arguments[o];for(var d in u)t.call(u,d)&&(n[d]=u[d])}return n}}}),nt=F({"../node_modules/hastscript/node_modules/property-information/lib/util/schema.js"(e,r){r.exports=a;var t=a.prototype;t.space=null,t.normal={},t.property={};function a(n,o,u){this.property=n,this.normal=o,u&&(this.space=u)}}}),Ot=F({"../node_modules/hastscript/node_modules/property-information/lib/util/merge.js"(e,r){var t=$t(),a=nt();r.exports=n;function n(o){for(var u=o.length,d=[],l=[],f=-1,h,C;++f<u;)h=o[f],d.push(h.property),l.push(h.normal),C=h.space;return new a(t.apply(null,d),t.apply(null,l),C)}}}),De=F({"../node_modules/hastscript/node_modules/property-information/normalize.js"(e,r){r.exports=t;function t(a){return a.toLowerCase()}}}),at=F({"../node_modules/hastscript/node_modules/property-information/lib/util/info.js"(e,r){r.exports=a;var t=a.prototype;t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1;function a(n,o){this.property=n,this.attribute=o}}}),Re=F({"../node_modules/hastscript/node_modules/property-information/lib/util/types.js"(e){var r=0;e.boolean=t(),e.booleanish=t(),e.overloadedBoolean=t(),e.number=t(),e.spaceSeparated=t(),e.commaSeparated=t(),e.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++r)}}}),rt=F({"../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js"(e,r){var t=at(),a=Re();r.exports=u,u.prototype=new t,u.prototype.defined=!0;var n=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=n.length;function u(l,f,h,C){var x=-1,b;for(d(this,"space",C),t.call(this,l,f);++x<o;)b=n[x],d(this,b,(h&a[b])===a[b])}function d(l,f,h){h&&(l[f]=h)}}}),ve=F({"../node_modules/hastscript/node_modules/property-information/lib/util/create.js"(e,r){var t=De(),a=nt(),n=rt();r.exports=o;function o(u){var d=u.space,l=u.mustUseProperty||[],f=u.attributes||{},h=u.properties,C=u.transform,x={},b={},y,S;for(y in h)S=new n(y,C(f,y),h[y],d),l.indexOf(y)!==-1&&(S.mustUseProperty=!0),x[y]=S,b[t(y)]=y,b[t(S.attribute)]=y;return new a(x,b,d)}}}),Lt=F({"../node_modules/hastscript/node_modules/property-information/lib/xlink.js"(e,r){var t=ve();r.exports=t({space:"xlink",transform:a,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function a(n,o){return"xlink:"+o.slice(5).toLowerCase()}}}),It=F({"../node_modules/hastscript/node_modules/property-information/lib/xml.js"(e,r){var t=ve();r.exports=t({space:"xml",transform:a,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function a(n,o){return"xml:"+o.slice(3).toLowerCase()}}}),Tt=F({"../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js"(e,r){r.exports=t;function t(a,n){return n in a?a[n]:n}}}),ot=F({"../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js"(e,r){var t=Tt();r.exports=a;function a(n,o){return t(n,o.toLowerCase())}}}),Dt=F({"../node_modules/hastscript/node_modules/property-information/lib/xmlns.js"(e,r){var t=ve(),a=ot();r.exports=t({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:a,properties:{xmlns:null,xmlnsXLink:null}})}}),Rt=F({"../node_modules/hastscript/node_modules/property-information/lib/aria.js"(e,r){var t=Re(),a=ve(),n=t.booleanish,o=t.number,u=t.spaceSeparated;r.exports=a({transform:d,properties:{ariaActiveDescendant:null,ariaAtomic:n,ariaAutoComplete:null,ariaBusy:n,ariaChecked:n,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:n,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:n,ariaFlowTo:u,ariaGrabbed:n,ariaHasPopup:null,ariaHidden:n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:o,ariaLive:null,ariaModal:n,ariaMultiLine:n,ariaMultiSelectable:n,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:n,ariaReadOnly:n,ariaRelevant:null,ariaRequired:n,ariaRoleDescription:u,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:n,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}});function d(l,f){return f==="role"?f:"aria-"+f.slice(4).toLowerCase()}}}),qt=F({"../node_modules/hastscript/node_modules/property-information/lib/html.js"(e,r){var t=Re(),a=ve(),n=ot(),o=t.boolean,u=t.overloadedBoolean,d=t.booleanish,l=t.number,f=t.spaceSeparated,h=t.commaSeparated;r.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:h,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:f,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:f,cols:l,colSpan:null,content:null,contentEditable:d,controls:o,controlsList:f,coords:l|h,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:u,draggable:d,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:f,height:l,hidden:o,high:l,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:h,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:f,itemRef:f,itemScope:o,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:l,manifest:null,max:null,maxLength:l,media:null,method:null,min:null,minLength:l,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:l,pattern:null,ping:f,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:f,required:o,reversed:o,rows:l,rowSpan:l,sandbox:f,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:l,sizes:null,slot:null,span:l,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:h,start:l,step:null,style:null,tabIndex:l,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:d,width:l,wrap:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:l,borderColor:null,bottomMargin:l,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:l,leftMargin:l,link:null,longDesc:null,lowSrc:null,marginHeight:l,marginWidth:l,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:l,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:l,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:l,security:null,unselectable:null}})}}),Bt=F({"../node_modules/hastscript/node_modules/property-information/html.js"(e,r){var t=Ot(),a=Lt(),n=It(),o=Dt(),u=Rt(),d=qt();r.exports=t([n,a,o,u,d])}}),Mt=F({"../node_modules/hastscript/node_modules/property-information/find.js"(e,r){var t=De(),a=rt(),n=at(),o="data";r.exports=f;var u=/^data[-\w.:]+$/i,d=/-[a-z]/g,l=/[A-Z]/g;function f(y,S){var E=t(S),_=S,A=n;return E in y.normal?y.property[y.normal[E]]:(E.length>4&&E.slice(0,4)===o&&u.test(S)&&(S.charAt(4)==="-"?_=h(S):S=C(S),A=a),new A(_,S))}function h(y){var S=y.slice(5).replace(d,b);return o+S.charAt(0).toUpperCase()+S.slice(1)}function C(y){var S=y.slice(4);return d.test(S)?y:(S=S.replace(l,x),S.charAt(0)!=="-"&&(S="-"+S),o+S)}function x(y){return"-"+y.toLowerCase()}function b(y){return y.charAt(1).toUpperCase()}}}),zt=F({"../node_modules/hast-util-parse-selector/index.js"(e,r){r.exports=a;var t=/[#.]/g;function a(n,o){for(var u=n||"",d=o||"div",l={},f=0,h,C,x;f<u.length;)t.lastIndex=f,x=t.exec(u),h=u.slice(f,x?x.index:u.length),h&&(C?C==="#"?l.id=h:l.className?l.className.push(h):l.className=[h]:d=h,f+=h.length),x&&(C=x[0],f++);return{type:"element",tagName:d,properties:l,children:[]}}}}),Ht=F({"../node_modules/hastscript/node_modules/space-separated-tokens/index.js"(e){e.parse=n,e.stringify=o;var r="",t=" ",a=/[ \t\n\r\f]+/g;function n(u){var d=String(u||r).trim();return d===r?[]:d.split(a)}function o(u){return u.join(t).trim()}}}),Ut=F({"../node_modules/hastscript/node_modules/comma-separated-tokens/index.js"(e){e.parse=n,e.stringify=o;var r=",",t=" ",a="";function n(u){for(var d=[],l=String(u||a),f=l.indexOf(r),h=0,C=!1,x;!C;)f===-1&&(f=l.length,C=!0),x=l.slice(h,f).trim(),(x||!C)&&d.push(x),h=f+1,f=l.indexOf(r,h);return d}function o(u,d){var l=d||{},f=l.padLeft===!1?a:t,h=l.padRight?t:a;return u[u.length-1]===a&&(u=u.concat(a)),u.join(h+r+f).trim()}}}),Pt=F({"../node_modules/hastscript/factory.js"(e,r){var t=Mt(),a=De(),n=zt(),o=Ht().parse,u=Ut().parse;r.exports=l;var d={}.hasOwnProperty;function l(E,_,A){var i=A?S(A):null;return s;function s(g,m){var c=n(g,_),w=Array.prototype.slice.call(arguments,2),v=c.tagName.toLowerCase(),k;if(c.tagName=i&&d.call(i,v)?i[v]:v,m&&f(m,c)&&(w.unshift(m),m=null),m)for(k in m)p(c.properties,k,m[k]);return C(c.children,w),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function p(g,m,c){var w,v,k;c==null||c!==c||(w=t(E,m),v=w.property,k=c,typeof k=="string"&&(w.spaceSeparated?k=o(k):w.commaSeparated?k=u(k):w.commaOrSpaceSeparated&&(k=o(u(k).join(" ")))),v==="style"&&typeof c!="string"&&(k=y(k)),v==="className"&&g.className&&(k=g.className.concat(k)),g[v]=x(w,v,k))}}function f(E,_){return typeof E=="string"||"length"in E||h(_.tagName,E)}function h(E,_){var A=_.type;return E==="input"||!A||typeof A!="string"?!1:typeof _.children=="object"&&"length"in _.children?!0:(A=A.toLowerCase(),E==="button"?A!=="menu"&&A!=="submit"&&A!=="reset"&&A!=="button":"value"in _)}function C(E,_){var A,i;if(typeof _=="string"||typeof _=="number"){E.push({type:"text",value:String(_)});return}if(typeof _=="object"&&"length"in _){for(A=-1,i=_.length;++A<i;)C(E,_[A]);return}if(typeof _!="object"||!("type"in _))throw new Error("Expected node, nodes, or string, got `"+_+"`");E.push(_)}function x(E,_,A){var i,s,p;if(typeof A!="object"||!("length"in A))return b(E,_,A);for(s=A.length,i=-1,p=[];++i<s;)p[i]=b(E,_,A[i]);return p}function b(E,_,A){var i=A;return E.number||E.positiveNumber?!isNaN(i)&&i!==""&&(i=Number(i)):(E.boolean||E.overloadedBoolean)&&typeof i=="string"&&(i===""||a(A)===a(_))&&(i=!0),i}function y(E){var _=[],A;for(A in E)_.push([A,E[A]].join(": "));return _.join("; ")}function S(E){for(var _=E.length,A=-1,i={},s;++A<_;)s=E[A],i[s.toLowerCase()]=s;return i}}}),Gt=F({"../node_modules/hastscript/html.js"(e,r){var t=Bt(),a=Pt(),n=a(t,"div");n.displayName="html",r.exports=n}}),Zt=F({"../node_modules/hastscript/index.js"(e,r){r.exports=Gt()}}),Wt=F({"../node_modules/refractor/node_modules/character-entities-legacy/index.json"(e,r){r.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),Kt=F({"../node_modules/refractor/node_modules/character-reference-invalid/index.json"(e,r){r.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}}),lt=F({"../node_modules/refractor/node_modules/is-decimal/index.js"(e,r){r.exports=t;function t(a){var n=typeof a=="string"?a.charCodeAt(0):a;return n>=48&&n<=57}}}),Xt=F({"../node_modules/refractor/node_modules/is-hexadecimal/index.js"(e,r){r.exports=t;function t(a){var n=typeof a=="string"?a.charCodeAt(0):a;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}}}),Yt=F({"../node_modules/refractor/node_modules/is-alphabetical/index.js"(e,r){r.exports=t;function t(a){var n=typeof a=="string"?a.charCodeAt(0):a;return n>=97&&n<=122||n>=65&&n<=90}}}),Vt=F({"../node_modules/refractor/node_modules/is-alphanumerical/index.js"(e,r){var t=Yt(),a=lt();r.exports=n;function n(o){return t(o)||a(o)}}}),Jt=F({"../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(e,r){var t,a=59;r.exports=n;function n(o){var u="&"+o+";",d;return t=t||document.createElement("i"),t.innerHTML=u,d=t.textContent,d.charCodeAt(d.length-1)===a&&o!=="semi"||d===u?!1:d}}}),Qt=F({"../node_modules/refractor/node_modules/parse-entities/index.js"(e,r){var t=Wt(),a=Kt(),n=lt(),o=Xt(),u=Vt(),d=Jt();r.exports=B;var l={}.hasOwnProperty,f=String.fromCharCode,h=Function.prototype,C={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},x=9,b=10,y=12,S=32,E=38,_=59,A=60,i=61,s=35,p=88,g=120,m=65533,c="named",w="hexadecimal",v="decimal",k={};k[w]=16,k[v]=10;var N={};N[c]=u,N[v]=n,N[w]=o;var $=1,H=2,z=3,X=4,J=5,W=6,O=7,L={};L[$]="Named character references must be terminated by a semicolon",L[H]="Numeric character references must be terminated by a semicolon",L[z]="Named character references cannot be empty",L[X]="Numeric character references cannot be empty",L[J]="Named character references must be known",L[W]="Numeric character references cannot be disallowed",L[O]="Numeric character references cannot be outside the permissible Unicode range";function B(j,I){var T={},K,U;I||(I={});for(U in C)K=I[U],T[U]=K??C[U];return(T.position.indent||T.position.start)&&(T.indent=T.position.indent||[],T.position=T.position.start),Q(j,T)}function Q(j,I){var T=I.additional,K=I.nonTerminated,U=I.text,re=I.reference,pe=I.warning,de=I.textContext,ke=I.referenceContext,me=I.warningContext,Ce=I.position,gt=I.indent||[],Fe=j.length,te=0,He=-1,oe=Ce.column||1,Ue=Ce.line||1,le="",je=[],ge,Ne,ie,P,ne,R,D,Y,Se,$e,se,he,ue,ee,Pe,ye,_e,V,q;for(typeof T=="string"&&(T=T.charCodeAt(0)),ye=be(),Y=pe?ft:h,te--,Fe++;++te<Fe;)if(ne===b&&(oe=gt[He]||1),ne=j.charCodeAt(te),ne===E){if(D=j.charCodeAt(te+1),D===x||D===b||D===y||D===S||D===E||D===A||D!==D||T&&D===T){le+=f(ne),oe++;continue}for(ue=te+1,he=ue,q=ue,D===s?(q=++he,D=j.charCodeAt(q),D===p||D===g?(ee=w,q=++he):ee=v):ee=c,ge="",se="",P="",Pe=N[ee],q--;++q<Fe&&(D=j.charCodeAt(q),!!Pe(D));)P+=f(D),ee===c&&l.call(t,P)&&(ge=P,se=t[P]);ie=j.charCodeAt(q)===_,ie&&(q++,Ne=ee===c?d(P):!1,Ne&&(ge=P,se=Ne)),V=1+q-ue,!ie&&!K||(P?ee===c?(ie&&!se?Y(J,1):(ge!==P&&(q=he+ge.length,V=1+q-he,ie=!1),ie||(Se=ge?$:z,I.attribute?(D=j.charCodeAt(q),D===i?(Y(Se,V),se=null):u(D)?se=null:Y(Se,V)):Y(Se,V))),R=se):(ie||Y(H,V),R=parseInt(P,k[ee]),M(R)?(Y(O,V),R=f(m)):R in a?(Y(W,V),R=a[R]):($e="",ce(R)&&Y(W,V),R>65535&&(R-=65536,$e+=f(R>>>10|55296),R=56320|R&1023),R=$e+f(R))):ee!==c&&Y(X,V)),R?(Ge(),ye=be(),te=q-1,oe+=q-ue+1,je.push(R),_e=be(),_e.offset++,re&&re.call(ke,R,{start:ye,end:_e},j.slice(ue-1,q)),ye=_e):(P=j.slice(ue-1,q),le+=P,oe+=P.length,te=q-1)}else ne===10&&(Ue++,He++,oe=0),ne===ne?(le+=f(ne),oe++):Ge();return je.join("");function be(){return{line:Ue,column:oe,offset:te+(Ce.offset||0)}}function ft(Ze,We){var Oe=be();Oe.column+=We,Oe.offset+=We,pe.call(me,L[Ze],Oe,Ze)}function Ge(){le&&(je.push(le),U&&U.call(de,le,{start:ye,end:be()}),le="")}}function M(j){return j>=55296&&j<=57343||j>1114111}function ce(j){return j>=1&&j<=8||j===11||j>=13&&j<=31||j>=127&&j<=159||j>=64976&&j<=65007||(j&65535)===65535||(j&65535)===65534}}}),en=F({"../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e,r){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},a=function(n){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,u=0,d={},l={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function i(s){return s instanceof f?new f(s.type,i(s.content),s.alias):Array.isArray(s)?s.map(i):s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(i){return Object.prototype.toString.call(i).slice(8,-1)},objId:function(i){return i.__id||Object.defineProperty(i,"__id",{value:++u}),i.__id},clone:function i(s,p){p=p||{};var g,m;switch(l.util.type(s)){case"Object":if(m=l.util.objId(s),p[m])return p[m];g={},p[m]=g;for(var c in s)s.hasOwnProperty(c)&&(g[c]=i(s[c],p));return g;case"Array":return m=l.util.objId(s),p[m]?p[m]:(g=[],p[m]=g,s.forEach(function(w,v){g[v]=i(w,p)}),g);default:return s}},getLanguage:function(i){for(;i;){var s=o.exec(i.className);if(s)return s[1].toLowerCase();i=i.parentElement}return"none"},setLanguage:function(i,s){i.className=i.className.replace(RegExp(o,"gi"),""),i.classList.add("language-"+s)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(g){var i=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(g.stack)||[])[1];if(i){var s=document.getElementsByTagName("script");for(var p in s)if(s[p].src==i)return s[p]}return null}},isActive:function(i,s,p){for(var g="no-"+s;i;){var m=i.classList;if(m.contains(s))return!0;if(m.contains(g))return!1;i=i.parentElement}return!!p}},languages:{plain:d,plaintext:d,text:d,txt:d,extend:function(i,s){var p=l.util.clone(l.languages[i]);for(var g in s)p[g]=s[g];return p},insertBefore:function(i,s,p,g){g=g||l.languages;var m=g[i],c={};for(var w in m)if(m.hasOwnProperty(w)){if(w==s)for(var v in p)p.hasOwnProperty(v)&&(c[v]=p[v]);p.hasOwnProperty(w)||(c[w]=m[w])}var k=g[i];return g[i]=c,l.languages.DFS(l.languages,function(N,$){$===k&&N!=i&&(this[N]=c)}),c},DFS:function i(s,p,g,m){m=m||{};var c=l.util.objId;for(var w in s)if(s.hasOwnProperty(w)){p.call(s,w,s[w],g||w);var v=s[w],k=l.util.type(v);k==="Object"&&!m[c(v)]?(m[c(v)]=!0,i(v,p,null,m)):k==="Array"&&!m[c(v)]&&(m[c(v)]=!0,i(v,p,w,m))}}},plugins:{},highlightAll:function(i,s){l.highlightAllUnder(document,i,s)},highlightAllUnder:function(i,s,p){var g={callback:p,container:i,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",g),g.elements=Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)),l.hooks.run("before-all-elements-highlight",g);for(var m=0,c;c=g.elements[m++];)l.highlightElement(c,s===!0,g.callback)},highlightElement:function(i,s,p){var g=l.util.getLanguage(i),m=l.languages[g];l.util.setLanguage(i,g);var c=i.parentElement;c&&c.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(c,g);var w=i.textContent,v={element:i,language:g,grammar:m,code:w};function k($){v.highlightedCode=$,l.hooks.run("before-insert",v),v.element.innerHTML=v.highlightedCode,l.hooks.run("after-highlight",v),l.hooks.run("complete",v),p&&p.call(v.element)}if(l.hooks.run("before-sanity-check",v),c=v.element.parentElement,c&&c.nodeName.toLowerCase()==="pre"&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!v.code){l.hooks.run("complete",v),p&&p.call(v.element);return}if(l.hooks.run("before-highlight",v),!v.grammar){k(l.util.encode(v.code));return}if(s&&n.Worker){var N=new Worker(l.filename);N.onmessage=function($){k($.data)},N.postMessage(JSON.stringify({language:v.language,code:v.code,immediateClose:!0}))}else k(l.highlight(v.code,v.grammar,v.language))},highlight:function(i,s,p){var g={code:i,grammar:s,language:p};if(l.hooks.run("before-tokenize",g),!g.grammar)throw new Error('The language "'+g.language+'" has no grammar.');return g.tokens=l.tokenize(g.code,g.grammar),l.hooks.run("after-tokenize",g),f.stringify(l.util.encode(g.tokens),g.language)},tokenize:function(i,s){var p=s.rest;if(p){for(var g in p)s[g]=p[g];delete s.rest}var m=new x;return b(m,m.head,i),C(i,m,s,m.head,0),S(m)},hooks:{all:{},add:function(i,s){var p=l.hooks.all;p[i]=p[i]||[],p[i].push(s)},run:function(i,s){var p=l.hooks.all[i];if(!(!p||!p.length))for(var g=0,m;m=p[g++];)m(s)}},Token:f};n.Prism=l;function f(i,s,p,g){this.type=i,this.content=s,this.alias=p,this.length=(g||"").length|0}f.stringify=function i(s,p){if(typeof s=="string")return s;if(Array.isArray(s)){var g="";return s.forEach(function(k){g+=i(k,p)}),g}var m={type:s.type,content:i(s.content,p),tag:"span",classes:["token",s.type],attributes:{},language:p},c=s.alias;c&&(Array.isArray(c)?Array.prototype.push.apply(m.classes,c):m.classes.push(c)),l.hooks.run("wrap",m);var w="";for(var v in m.attributes)w+=" "+v+'="'+(m.attributes[v]||"").replace(/"/g,"&quot;")+'"';return"<"+m.tag+' class="'+m.classes.join(" ")+'"'+w+">"+m.content+"</"+m.tag+">"};function h(i,s,p,g){i.lastIndex=s;var m=i.exec(p);if(m&&g&&m[1]){var c=m[1].length;m.index+=c,m[0]=m[0].slice(c)}return m}function C(i,s,p,g,m,c){for(var w in p)if(!(!p.hasOwnProperty(w)||!p[w])){var v=p[w];v=Array.isArray(v)?v:[v];for(var k=0;k<v.length;++k){if(c&&c.cause==w+","+k)return;var N=v[k],$=N.inside,H=!!N.lookbehind,z=!!N.greedy,X=N.alias;if(z&&!N.pattern.global){var J=N.pattern.toString().match(/[imsuy]*$/)[0];N.pattern=RegExp(N.pattern.source,J+"g")}for(var W=N.pattern||N,O=g.next,L=m;O!==s.tail&&!(c&&L>=c.reach);L+=O.value.length,O=O.next){var B=O.value;if(s.length>i.length)return;if(!(B instanceof f)){var Q=1,M;if(z){if(M=h(W,L,i,H),!M||M.index>=i.length)break;var T=M.index,ce=M.index+M[0].length,j=L;for(j+=O.value.length;T>=j;)O=O.next,j+=O.value.length;if(j-=O.value.length,L=j,O.value instanceof f)continue;for(var I=O;I!==s.tail&&(j<ce||typeof I.value=="string");I=I.next)Q++,j+=I.value.length;Q--,B=i.slice(L,j),M.index-=L}else if(M=h(W,0,B,H),!M)continue;var T=M.index,K=M[0],U=B.slice(0,T),re=B.slice(T+K.length),pe=L+B.length;c&&pe>c.reach&&(c.reach=pe);var de=O.prev;U&&(de=b(s,de,U),L+=U.length),y(s,de,Q);var ke=new f(w,$?l.tokenize(K,$):K,X,K);if(O=b(s,de,ke),re&&b(s,O,re),Q>1){var me={cause:w+","+k,reach:pe};C(i,s,p,O.prev,L,me),c&&me.reach>c.reach&&(c.reach=me.reach)}}}}}}function x(){var i={value:null,prev:null,next:null},s={value:null,prev:i,next:null};i.next=s,this.head=i,this.tail=s,this.length=0}function b(i,s,p){var g=s.next,m={value:p,prev:s,next:g};return s.next=m,g.prev=m,i.length++,m}function y(i,s,p){for(var g=s.next,m=0;m<p&&g!==i.tail;m++)g=g.next;s.next=g,g.prev=s,i.length-=m}function S(i){for(var s=[],p=i.head.next;p!==i.tail;)s.push(p.value),p=p.next;return s}if(!n.document)return n.addEventListener&&(l.disableWorkerMessageHandler||n.addEventListener("message",function(i){var s=JSON.parse(i.data),p=s.language,g=s.code,m=s.immediateClose;n.postMessage(l.highlight(g,l.languages[p],p)),m&&n.close()},!1)),l;var E=l.util.currentScript();E&&(l.filename=E.src,E.hasAttribute("data-manual")&&(l.manual=!0));function _(){l.manual||l.highlightAll()}if(!l.manual){var A=document.readyState;A==="loading"||A==="interactive"&&E&&E.defer?document.addEventListener("DOMContentLoaded",_):window.requestAnimationFrame?window.requestAnimationFrame(_):window.setTimeout(_,16)}return l}(t);typeof r<"u"&&r.exports&&(r.exports=a),typeof global<"u"&&(global.Prism=a)}}),tn=F({"../node_modules/refractor/lang/clike.js"(e,r){r.exports=t,t.displayName="clike",t.aliases=[];function t(a){a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}}}),nn=F({"../node_modules/refractor/lang/javascript.js"(e,r){r.exports=t,t.displayName="javascript",t.aliases=["js"];function t(a){a.languages.javascript=a.languages.extend("clike",{"class-name":[a.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:a.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),a.languages.js=a.languages.javascript}}}),an=F({"../node_modules/refractor/core.js"(e,r){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},a=m();t.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=Zt(),o=Qt(),u=en(),d=et(),l=Je(),f=tn(),h=nn();a();var C={}.hasOwnProperty;function x(){}x.prototype=u;var b=new x;r.exports=b,b.highlight=E,b.register=y,b.alias=S,b.registered=_,b.listLanguages=A,y(d),y(l),y(f),y(h),b.util.encode=p,b.Token.stringify=i;function y(c){if(typeof c!="function"||!c.displayName)throw new Error("Expected `function` for `grammar`, got `"+c+"`");b.languages[c.displayName]===void 0&&c(b)}function S(c,w){var v=b.languages,k=c,N,$,H,z;w&&(k={},k[c]=w);for(N in k)for($=k[N],$=typeof $=="string"?[$]:$,H=$.length,z=-1;++z<H;)v[$[z]]=v[N]}function E(c,w){var v=u.highlight,k;if(typeof c!="string")throw new Error("Expected `string` for `value`, got `"+c+"`");if(b.util.type(w)==="Object")k=w,w=null;else{if(typeof w!="string")throw new Error("Expected `string` for `name`, got `"+w+"`");if(C.call(b.languages,w))k=b.languages[w];else throw new Error("Unknown language: `"+w+"` is not registered")}return v.call(this,c,k,w)}function _(c){if(typeof c!="string")throw new Error("Expected `string` for `language`, got `"+c+"`");return C.call(b.languages,c)}function A(){var c=b.languages,w=[],v;for(v in c)C.call(c,v)&&typeof c[v]=="object"&&w.push(v);return w}function i(c,w,v){var k;return typeof c=="string"?{type:"text",value:c}:b.util.type(c)==="Array"?s(c,w):(k={type:c.type,content:b.Token.stringify(c.content,w,v),tag:"span",classes:["token",c.type],attributes:{},language:w,parent:v},c.alias&&(k.classes=k.classes.concat(c.alias)),b.hooks.run("wrap",k),n(k.tag+"."+k.classes.join("."),g(k.attributes),k.content))}function s(c,w){for(var v=[],k=c.length,N=-1,$;++N<k;)$=c[N],$!==""&&$!==null&&$!==void 0&&v.push($);for(N=-1,k=v.length;++N<k;)$=v[N],v[N]=b.Token.stringify($,w,v);return v}function p(c){return c}function g(c){var w;for(w in c)c[w]=o(c[w]);return c}function m(){var c="Prism"in t,w=c?t.Prism:void 0;return v;function v(){c?t.Prism=w:delete t.Prism,c=void 0,w=void 0}}}}),rn=Z(vt(),1);const{logger:on}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:ln}=__STORYBOOK_MODULE_GLOBAL__;function Ke(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function fe(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ke(Object(t),!0).forEach(function(a){Ve(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ke(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function sn(e){var r=e.length;if(r===0||r===1)return e;if(r===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(r===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(r>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Le={};function un(e){if(e.length===0||e.length===1)return e;var r=e.join(".");return Le[r]||(Le[r]=sn(e)),Le[r]}function cn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,a=e.filter(function(o){return o!=="token"}),n=un(a);return n.reduce(function(o,u){return fe(fe({},o),t[u])},r)}function Xe(e){return e.join(" ")}function pn(e,r){var t=0;return function(a){return t+=1,a.map(function(n,o){return qe({node:n,stylesheet:e,useInlineStyles:r,key:"code-segment-".concat(t,"-").concat(o)})})}}function qe(e){var r=e.node,t=e.stylesheet,a=e.style,n=a===void 0?{}:a,o=e.useInlineStyles,u=e.key,d=r.properties,l=r.type,f=r.tagName,h=r.value;if(l==="text")return h;if(f){var C=pn(t,o),x;if(!o)x=fe(fe({},d),{},{className:Xe(d.className)});else{var b=Object.keys(t).reduce(function(_,A){return A.split(".").forEach(function(i){_.includes(i)||_.push(i)}),_},[]),y=d.className&&d.className.includes("token")?["token"]:[],S=d.className&&y.concat(d.className.filter(function(_){return!b.includes(_)}));x=fe(fe({},d),{},{className:Xe(S)||void 0,style:cn(d.className,Object.assign({},d.style,n),t)})}var E=C(r.children);return G.createElement(f,bt({key:u},x),E)}}var dn=Z(At()),gn=dn.default,fn=Z(Je()),mn=fn.default,hn=Z(Et()),yn=hn.default,bn=Z(kt()),xn=bn.default,vn=Z(Ct()),Sn=vn.default,_n=Z(Qe()),wn=_n.default,An=Z(Ft()),En=An.default,kn=Z(et()),Cn=kn.default,Fn=Z(jt()),jn=Fn.default,Nn=Z(tt()),$n=Nn.default,On=Z(Nt()),Ln=On.default;function Ie(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}function In(e){if(Array.isArray(e))return Ie(e)}function Tn(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dn(e,r){if(e){if(typeof e=="string")return Ie(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ie(e,r):void 0}}function Rn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e){return In(e)||Tn(e)||Dn(e)||Rn()}var qn=function(e,r){var t=e.listLanguages();return t.indexOf(r)!==-1},Bn=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Ye(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function ae(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ye(Object(t),!0).forEach(function(a){Ve(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ye(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var Mn=/\n/g;function zn(e){return e.match(Mn)}function Hn(e){var r=e.lines,t=e.startingLineNumber,a=e.style;return r.map(function(n,o){var u=o+t;return G.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof a=="function"?a(u):a},"".concat(u,`
3
- `))})}function Un(e){var r=e.codeString,t=e.codeStyle,a=e.containerStyle,n=a===void 0?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,u=o===void 0?{}:o,d=e.startingLineNumber;return G.createElement("code",{style:Object.assign({},t,n)},Hn({lines:r.replace(/\n$/,"").split(`
4
- `),style:u,startingLineNumber:d}))}function Pn(e){return"".concat(e.toString().length,".25em")}function it(e,r){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:r},children:[{type:"text",value:e}]}}function st(e,r,t){var a={display:"inline-block",minWidth:Pn(t),paddingRight:"1em",textAlign:"right",userSelect:"none"},n=typeof e=="function"?e(r):e,o=ae(ae({},a),n);return o}function Ae(e){var r=e.children,t=e.lineNumber,a=e.lineNumberStyle,n=e.largestLineNumber,o=e.showInlineLineNumbers,u=e.lineProps,d=u===void 0?{}:u,l=e.className,f=l===void 0?[]:l,h=e.showLineNumbers,C=e.wrapLongLines,x=e.wrapLines,b=x===void 0?!1:x,y=b?ae({},typeof d=="function"?d(t):d):{};if(y.className=y.className?[].concat(Te(y.className.trim().split(/\s+/)),Te(f)):f,t&&o){var S=st(a,t,n);r.unshift(it(t,S))}return C&h&&(y.style=ae({display:"flex"},y.style)),{type:"element",tagName:"span",properties:y,children:r}}function ut(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=0;a<e.length;a++){var n=e[a];if(n.type==="text")t.push(Ae({children:[n],className:Te(new Set(r))}));else if(n.children){var o=r.concat(n.properties.className);ut(n.children,o).forEach(function(u){return t.push(u)})}}return t}function Gn(e,r,t,a,n,o,u,d,l){var f,h=ut(e.value),C=[],x=-1,b=0;function y(p,g){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ae({children:p,lineNumber:g,lineNumberStyle:d,largestLineNumber:u,showInlineLineNumbers:n,lineProps:t,className:m,showLineNumbers:a,wrapLongLines:l,wrapLines:r})}function S(p,g){if(a&&g&&n){var m=st(d,g,u);p.unshift(it(g,m))}return p}function E(p,g){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return r||m.length>0?y(p,g,m):S(p,g)}for(var _=function(){var p=h[b],g=p.children[0].value,m=zn(g);if(m){var c=g.split(`
5
- `);c.forEach(function(w,v){var k=a&&C.length+o,N={type:"text",value:"".concat(w,`
6
- `)};if(v===0){var $=h.slice(x+1,b).concat(Ae({children:[N],className:p.properties.className})),H=E($,k);C.push(H)}else if(v===c.length-1){var z=h[b+1]&&h[b+1].children&&h[b+1].children[0],X={type:"text",value:"".concat(w)};if(z){var J=Ae({children:[X],className:p.properties.className});h.splice(b+1,0,J)}else{var W=[X],O=E(W,k,p.properties.className);C.push(O)}}else{var L=[N],B=E(L,k,p.properties.className);C.push(B)}}),x=b}b++};b<h.length;)_();if(x!==h.length-1){var A=h.slice(x+1,h.length);if(A&&A.length){var i=a&&C.length+o,s=E(A,i);C.push(s)}}return r?C:(f=[]).concat.apply(f,C)}function Zn(e){var r=e.rows,t=e.stylesheet,a=e.useInlineStyles;return r.map(function(n,o){return qe({node:n,stylesheet:t,useInlineStyles:a,key:"code-segment-".concat(o)})})}function ct(e){return e&&typeof e.highlightAuto<"u"}function Wn(e){var r=e.astGenerator,t=e.language,a=e.code,n=e.defaultCodeValue;if(ct(r)){var o=qn(r,t);return t==="text"?{value:n,language:"text"}:o?r.highlight(t,a):r.highlightAuto(a)}try{return t&&t!=="text"?{value:r.highlight(a,t)}:{value:n}}catch{return{value:n}}}function Kn(e,r){return function(t){var a,n,o=t.language,u=t.children,d=t.style,l=d===void 0?r:d,f=t.customStyle,h=f===void 0?{}:f,C=t.codeTagProps,x=C===void 0?{className:o?"language-".concat(o):void 0,style:ae(ae({},l['code[class*="language-"]']),l['code[class*="language-'.concat(o,'"]')])}:C,b=t.useInlineStyles,y=b===void 0?!0:b,S=t.showLineNumbers,E=S===void 0?!1:S,_=t.showInlineLineNumbers,A=_===void 0?!0:_,i=t.startingLineNumber,s=i===void 0?1:i,p=t.lineNumberContainerStyle,g=t.lineNumberStyle,m=g===void 0?{}:g,c=t.wrapLines,w=t.wrapLongLines,v=w===void 0?!1:w,k=t.lineProps,N=k===void 0?{}:k,$=t.renderer,H=t.PreTag,z=H===void 0?"pre":H,X=t.CodeTag,J=X===void 0?"code":X,W=t.code,O=W===void 0?(Array.isArray(u)?u[0]:u)||"":W,L=t.astGenerator,B=wt(t,Bn);L=L||e;var Q=E?G.createElement(Un,{containerStyle:p,codeStyle:x.style||{},numberStyle:m,startingLineNumber:s,codeString:O}):null,M=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},ce=ct(L)?"hljs":"prismjs",j=y?Object.assign({},B,{style:Object.assign({},M,h)}):Object.assign({},B,{className:B.className?"".concat(ce," ").concat(B.className):ce,style:Object.assign({},h)});if(v?x.style=ae({whiteSpace:"pre-wrap"},x.style):x.style=ae({whiteSpace:"pre"},x.style),!L)return G.createElement(z,j,Q,G.createElement(J,x,O));(c===void 0&&$||v)&&(c=!0),$=$||Zn;var I=[{type:"text",value:O}],T=Wn({astGenerator:L,language:o,code:O,defaultCodeValue:I});T.language===null&&(T.value=I);var K=(a=(n=O.match(/\n/g))===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0,U=s+K,re=Gn(T,c,N,E,A,s,U,m,v);return G.createElement(z,j,G.createElement(J,x,!A&&Q,$({rows:re,stylesheet:l,useInlineStyles:y})))}}var Be=Z(an()),Me=Kn(Be.default,{});Me.registerLanguage=function(e,r){return Be.default.register(r)};Me.alias=function(e,r){return Be.default.alias(e,r)};var ze=Me,{window:Xn}=ln,Yn={jsextra:xn,jsx:wn,json:Sn,yml:Ln,md:En,bash:gn,css:mn,html:Cn,tsx:jn,typescript:$n,graphql:yn};Object.entries(Yn).forEach(([e,r])=>{ze.registerLanguage(e,r)});var Vn=(0,rn.default)(2)(e=>Object.entries(e.code||{}).reduce((r,[t,a])=>({...r,[`* .${t}`]:a}),{})),Jn=ht(),Qn=Ee.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:r})=>r?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{},({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),ea=({children:e,className:r})=>G.createElement(xt,{horizontal:!0,vertical:!0,className:r},e),ta=Ee(ea)({position:"relative"},({theme:e})=>Vn(e)),na=Ee.pre(({theme:e,padded:r})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:r?e.layoutMargin:0})),aa=Ee.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),pt=e=>{let r=[...e.children],t=r[0],a=t.children[0].value,n={...t,children:[],properties:{...t.properties,"data-line-number":a,style:{...t.properties.style,userSelect:"auto"}}};return r[0]=n,{...e,children:r}},ra=({rows:e,stylesheet:r,useInlineStyles:t})=>e.map((a,n)=>qe({node:pt(a),stylesheet:r,useInlineStyles:t,key:`code-segement${n}`})),oa=(e,r)=>r?e?({rows:t,...a})=>e({rows:t.map(n=>pt(n)),...a}):ra:e,dt=({children:e,language:r="jsx",copyable:t=!1,bordered:a=!1,padded:n=!1,format:o=!0,formatter:u=void 0,className:d=void 0,showLineNumbers:l=!1,...f})=>{if(typeof e!="string"||!e.trim())return null;let[h,C]=we.useState("");we.useEffect(()=>{u?u(o,e).then(C):C(e.trim())},[e,o,u]);let[x,b]=we.useState(!1),y=we.useCallback(E=>{E.preventDefault(),Jn(h).then(()=>{b(!0),Xn.setTimeout(()=>b(!1),1500)}).catch(on.error)},[h]),S=oa(f.renderer,l);return G.createElement(Qn,{bordered:a,padded:n,showLineNumbers:l,className:d},G.createElement(ta,null,G.createElement(ze,{padded:n||a,language:r,showLineNumbers:l,showInlineLineNumbers:l,useInlineStyles:!1,PreTag:na,CodeTag:aa,lineNumberContainerStyle:{},...f,renderer:S},h)),t?G.createElement(yt,{actionItems:[{title:x?"Copied":"Copy",onClick:y}]}):null)};dt.registerLanguage=(...e)=>ze.registerLanguage(...e);var da=dt;export{dt as SyntaxHighlighter,da as default,Yn as supportedLanguages};
@@ -1 +0,0 @@
1
- import{j as R}from"./jsx-runtime-CpaO0gaJ.js";import{r as h}from"./iframe-BNpZCkNl.js";import{P as le,c as ot,e as Ye,u as Gt,a as J,b as rt,f as Ut}from"./index-CXB_DHA8.js";import{u as we}from"./index-KJpiBtEb.js";import{u as Zt,P as Kt,D as Jt}from"./index-DFx_ePTl.js";import{u as Qt}from"./index-DvxqVOC1.js";import{r as en}from"./index-B-T-IyWu.js";import{u as tn}from"./index-DZuATJno.js";import{c as nn}from"./utils-CXGjNK-X.js";const on=["top","right","bottom","left"],U=Math.min,$=Math.max,me=Math.round,de=Math.floor,z=e=>({x:e,y:e}),rn={left:"right",right:"left",bottom:"top",top:"bottom"},sn={start:"end",end:"start"};function Oe(e,t,n){return $(e,U(t,n))}function q(e,t){return typeof e=="function"?e(t):e}function G(e){return e.split("-")[0]}function ne(e){return e.split("-")[1]}function Me(e){return e==="x"?"y":"x"}function _e(e){return e==="y"?"height":"width"}const cn=new Set(["top","bottom"]);function V(e){return cn.has(G(e))?"y":"x"}function Ne(e){return Me(V(e))}function ln(e,t,n){n===void 0&&(n=!1);const o=ne(e),r=Ne(e),i=_e(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=he(s)),[s,he(s)]}function an(e){const t=he(e);return[Ee(e),t,Ee(t)]}function Ee(e){return e.replace(/start|end/g,t=>sn[t])}const Xe=["left","right"],qe=["right","left"],fn=["top","bottom"],un=["bottom","top"];function dn(e,t,n){switch(e){case"top":case"bottom":return n?t?qe:Xe:t?Xe:qe;case"left":case"right":return t?fn:un;default:return[]}}function pn(e,t,n,o){const r=ne(e);let i=dn(G(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Ee)))),i}function he(e){return e.replace(/left|right|bottom|top/g,t=>rn[t])}function mn(e){return{top:0,right:0,bottom:0,left:0,...e}}function it(e){return typeof e!="number"?mn(e):{top:e,right:e,bottom:e,left:e}}function ge(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Ge(e,t,n){let{reference:o,floating:r}=e;const i=V(t),s=Ne(t),l=_e(s),c=G(t),f=i==="y",a=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let d;switch(c){case"top":d={x:a,y:o.y-r.height};break;case"bottom":d={x:a,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(ne(t)){case"start":d[s]-=p*(n&&f?-1:1);break;case"end":d[s]+=p*(n&&f?-1:1);break}return d}const hn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:a,y:u}=Ge(f,o,c),p=o,d={},m=0;for(let g=0;g<l.length;g++){const{name:x,fn:w}=l[g],{x:y,y:C,data:v,reset:b}=await w({x:a,y:u,initialPlacement:o,placement:p,strategy:r,middlewareData:d,rects:f,platform:s,elements:{reference:e,floating:t}});a=y??a,u=C??u,d={...d,[x]:{...d[x],...v}},b&&m<=50&&(m++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:a,y:u}=Ge(f,p,c)),g=-1)}return{x:a,y:u,placement:p,strategy:r,middlewareData:d}};async function ie(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:p=!1,padding:d=0}=q(t,e),m=it(d),x=l[p?u==="floating"?"reference":"floating":u],w=ge(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:a,strategy:c})),y=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),v=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},b=ge(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:C,strategy:c}):y);return{top:(w.top-b.top+m.top)/v.y,bottom:(b.bottom-w.bottom+m.bottom)/v.y,left:(w.left-b.left+m.left)/v.x,right:(b.right-w.right+m.right)/v.x}}const gn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=t,{element:f,padding:a=0}=q(e,t)||{};if(f==null)return{};const u=it(a),p={x:n,y:o},d=Ne(r),m=_e(d),g=await s.getDimensions(f),x=d==="y",w=x?"top":"left",y=x?"bottom":"right",C=x?"clientHeight":"clientWidth",v=i.reference[m]+i.reference[d]-p[d]-i.floating[m],b=p[d]-i.reference[d],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let P=T?T[C]:0;(!P||!await(s.isElement==null?void 0:s.isElement(T)))&&(P=l.floating[C]||i.floating[m]);const M=v/2-b/2,j=P/2-g[m]/2-1,D=U(u[w],j),N=U(u[y],j),k=D,E=P-g[m]-N,O=P/2-g[m]/2+M,H=Oe(k,O,E),S=!c.arrow&&ne(r)!=null&&O!==H&&i.reference[m]/2-(O<k?D:N)-g[m]/2<0,L=S?O<k?O-k:O-E:0;return{[d]:p[d]+L,data:{[d]:H,centerOffset:O-H-L,...S&&{alignmentOffset:L}},reset:S}}}),xn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:f}=t,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=q(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=G(r),y=V(l),C=G(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(f.floating)),b=p||(C||!g?[he(l)]:an(l)),T=m!=="none";!p&&T&&b.push(...pn(l,g,m,v));const P=[l,...b],M=await ie(t,x),j=[];let D=((o=i.flip)==null?void 0:o.overflows)||[];if(a&&j.push(M[w]),u){const O=ln(r,s,v);j.push(M[O[0]],M[O[1]])}if(D=[...D,{placement:r,overflows:j}],!j.every(O=>O<=0)){var N,k;const O=(((N=i.flip)==null?void 0:N.index)||0)+1,H=P[O];if(H&&(!(u==="alignment"?y!==V(H):!1)||D.every(A=>V(A.placement)===y?A.overflows[0]>0:!0)))return{data:{index:O,overflows:D},reset:{placement:H}};let S=(k=D.filter(L=>L.overflows[0]<=0).sort((L,A)=>L.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!S)switch(d){case"bestFit":{var E;const L=(E=D.filter(A=>{if(T){const _=V(A.placement);return _===y||_==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(_=>_>0).reduce((_,B)=>_+B,0)]).sort((A,_)=>A[1]-_[1])[0])==null?void 0:E[0];L&&(S=L);break}case"initialPlacement":S=l;break}if(r!==S)return{reset:{placement:S}}}return{}}}};function Ue(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ze(e){return on.some(t=>e[t]>=0)}const wn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=q(e,t);switch(o){case"referenceHidden":{const i=await ie(t,{...r,elementContext:"reference"}),s=Ue(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ze(s)}}}case"escaped":{const i=await ie(t,{...r,altBoundary:!0}),s=Ue(i,n.floating);return{data:{escapedOffsets:s,escaped:Ze(s)}}}default:return{}}}}},st=new Set(["left","top"]);async function yn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=G(n),l=ne(n),c=V(n)==="y",f=st.has(s)?-1:1,a=i&&c?-1:1,u=q(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof m=="number"&&(d=l==="end"?m*-1:m),c?{x:d*a,y:p*f}:{x:p*f,y:d*a}}const vn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,c=await yn(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},bn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:x=>{let{x:w,y}=x;return{x:w,y}}},...c}=q(e,t),f={x:n,y:o},a=await ie(t,c),u=V(G(r)),p=Me(u);let d=f[p],m=f[u];if(i){const x=p==="y"?"top":"left",w=p==="y"?"bottom":"right",y=d+a[x],C=d-a[w];d=Oe(y,d,C)}if(s){const x=u==="y"?"top":"left",w=u==="y"?"bottom":"right",y=m+a[x],C=m-a[w];m=Oe(y,m,C)}const g=l.fn({...t,[p]:d,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:i,[u]:s}}}}}},Cn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=q(e,t),a={x:n,y:o},u=V(r),p=Me(u);let d=a[p],m=a[u];const g=q(l,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=p==="y"?"height":"width",v=i.reference[p]-i.floating[C]+x.mainAxis,b=i.reference[p]+i.reference[C]-x.mainAxis;d<v?d=v:d>b&&(d=b)}if(f){var w,y;const C=p==="y"?"width":"height",v=st.has(G(r)),b=i.reference[u]-i.floating[C]+(v&&((w=s.offset)==null?void 0:w[u])||0)+(v?0:x.crossAxis),T=i.reference[u]+i.reference[C]+(v?0:((y=s.offset)==null?void 0:y[u])||0)-(v?x.crossAxis:0);m<b?m=b:m>T&&(m=T)}return{[p]:d,[u]:m}}}},Rn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:l}=t,{apply:c=()=>{},...f}=q(e,t),a=await ie(t,f),u=G(r),p=ne(r),d=V(r)==="y",{width:m,height:g}=i.floating;let x,w;u==="top"||u==="bottom"?(x=u,w=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(w=u,x=p==="end"?"top":"bottom");const y=g-a.top-a.bottom,C=m-a.left-a.right,v=U(g-a[x],y),b=U(m-a[w],C),T=!t.middlewareData.shift;let P=v,M=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(P=y),T&&!p){const D=$(a.left,0),N=$(a.right,0),k=$(a.top,0),E=$(a.bottom,0);d?M=m-2*(D!==0||N!==0?D+N:$(a.left,a.right)):P=g-2*(k!==0||E!==0?k+E:$(a.top,a.bottom))}await c({...t,availableWidth:M,availableHeight:P});const j=await s.getDimensions(l.floating);return m!==j.width||g!==j.height?{reset:{rects:!0}}:{}}}};function ye(){return typeof window<"u"}function oe(e){return ct(e)?(e.nodeName||"").toLowerCase():"#document"}function F(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(ct(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ct(e){return ye()?e instanceof Node||e instanceof F(e).Node:!1}function I(e){return ye()?e instanceof Element||e instanceof F(e).Element:!1}function Y(e){return ye()?e instanceof HTMLElement||e instanceof F(e).HTMLElement:!1}function Ke(e){return!ye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof F(e).ShadowRoot}const An=new Set(["inline","contents"]);function ae(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!An.has(r)}const Pn=new Set(["table","td","th"]);function Tn(e){return Pn.has(oe(e))}const On=[":popover-open",":modal"];function ve(e){return On.some(t=>{try{return e.matches(t)}catch{return!1}})}const En=["transform","translate","scale","rotate","perspective"],Sn=["transform","translate","scale","rotate","perspective","filter"],Ln=["paint","layout","strict","content"];function ke(e){const t=je(),n=I(e)?W(e):e;return En.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Sn.some(o=>(n.willChange||"").includes(o))||Ln.some(o=>(n.contain||"").includes(o))}function Dn(e){let t=Z(e);for(;Y(t)&&!ee(t);){if(ke(t))return t;if(ve(t))return null;t=Z(t)}return null}function je(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Mn=new Set(["html","body","#document"]);function ee(e){return Mn.has(oe(e))}function W(e){return F(e).getComputedStyle(e)}function be(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(oe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ke(e)&&e.host||X(e);return Ke(t)?t.host:t}function lt(e){const t=Z(e);return ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&ae(t)?t:lt(t)}function se(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=lt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=F(r);if(i){const l=Se(s);return t.concat(s,s.visualViewport||[],ae(r)?r:[],l&&n?se(l):[])}return t.concat(r,se(r,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function at(e){const t=W(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Y(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=me(n)!==i||me(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function He(e){return I(e)?e:e.contextElement}function Q(e){const t=He(e);if(!Y(t))return z(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=at(t);let s=(i?me(n.width):n.width)/o,l=(i?me(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const _n=z(0);function ft(e){const t=F(e);return!je()||!t.visualViewport?_n:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==F(e)?!1:t}function K(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=He(e);let s=z(1);t&&(o?I(o)&&(s=Q(o)):s=Q(e));const l=Nn(i,n,o)?ft(i):z(0);let c=(r.left+l.x)/s.x,f=(r.top+l.y)/s.y,a=r.width/s.x,u=r.height/s.y;if(i){const p=F(i),d=o&&I(o)?F(o):o;let m=p,g=Se(m);for(;g&&o&&d!==m;){const x=Q(g),w=g.getBoundingClientRect(),y=W(g),C=w.left+(g.clientLeft+parseFloat(y.paddingLeft))*x.x,v=w.top+(g.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,f*=x.y,a*=x.x,u*=x.y,c+=C,f+=v,m=F(g),g=Se(m)}}return ge({width:a,height:u,x:c,y:f})}function Ce(e,t){const n=be(e).scrollLeft;return t?t.left+n:K(X(e)).left+n}function ut(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Ce(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function kn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=X(o),l=t?ve(t.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},f=z(1);const a=z(0),u=Y(o);if((u||!u&&!i)&&((oe(o)!=="body"||ae(s))&&(c=be(o)),Y(o))){const d=K(o);f=Q(o),a.x=d.x+o.clientLeft,a.y=d.y+o.clientTop}const p=s&&!u&&!i?ut(s,c):z(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+a.x+p.x,y:n.y*f.y-c.scrollTop*f.y+a.y+p.y}}function jn(e){return Array.from(e.getClientRects())}function Hn(e){const t=X(e),n=be(e),o=e.ownerDocument.body,r=$(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=$(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Ce(e);const l=-n.scrollTop;return W(o).direction==="rtl"&&(s+=$(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}const Je=25;function $n(e,t){const n=F(e),o=X(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const a=je();(!a||a&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}const f=Ce(o);if(f<=0){const a=o.ownerDocument,u=a.body,p=getComputedStyle(u),d=a.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-d);m<=Je&&(i-=m)}else f<=Je&&(i+=f);return{width:i,height:s,x:l,y:c}}const Fn=new Set(["absolute","fixed"]);function In(e,t){const n=K(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Y(e)?Q(e):z(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=r*i.x,f=o*i.y;return{width:s,height:l,x:c,y:f}}function Qe(e,t,n){let o;if(t==="viewport")o=$n(e,n);else if(t==="document")o=Hn(X(e));else if(I(t))o=In(t,n);else{const r=ft(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ge(o)}function dt(e,t){const n=Z(e);return n===t||!I(n)||ee(n)?!1:W(n).position==="fixed"||dt(n,t)}function Wn(e,t){const n=t.get(e);if(n)return n;let o=se(e,[],!1).filter(l=>I(l)&&oe(l)!=="body"),r=null;const i=W(e).position==="fixed";let s=i?Z(e):e;for(;I(s)&&!ee(s);){const l=W(s),c=ke(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&Fn.has(r.position)||ae(s)&&!c&&dt(e,s))?o=o.filter(a=>a!==s):r=l,s=Z(s)}return t.set(e,o),o}function Bn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?ve(t)?[]:Wn(t,this._c):[].concat(n),o],l=s[0],c=s.reduce((f,a)=>{const u=Qe(t,a,r);return f.top=$(u.top,f.top),f.right=U(u.right,f.right),f.bottom=U(u.bottom,f.bottom),f.left=$(u.left,f.left),f},Qe(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Vn(e){const{width:t,height:n}=at(e);return{width:t,height:n}}function zn(e,t,n){const o=Y(t),r=X(t),i=n==="fixed",s=K(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=z(0);function f(){c.x=Ce(r)}if(o||!o&&!i)if((oe(t)!=="body"||ae(r))&&(l=be(t)),o){const d=K(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else r&&f();i&&!o&&r&&f();const a=r&&!o&&!i?ut(r,l):z(0),u=s.left+l.scrollLeft-c.x-a.x,p=s.top+l.scrollTop-c.y-a.y;return{x:u,y:p,width:s.width,height:s.height}}function Pe(e){return W(e).position==="static"}function et(e,t){if(!Y(e)||W(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function pt(e,t){const n=F(e);if(ve(e))return n;if(!Y(e)){let r=Z(e);for(;r&&!ee(r);){if(I(r)&&!Pe(r))return r;r=Z(r)}return n}let o=et(e,t);for(;o&&Tn(o)&&Pe(o);)o=et(o,t);return o&&ee(o)&&Pe(o)&&!ke(o)?n:o||Dn(e)||n}const Yn=async function(e){const t=this.getOffsetParent||pt,n=this.getDimensions,o=await n(e.floating);return{reference:zn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xn(e){return W(e).direction==="rtl"}const qn={convertOffsetParentRelativeRectToViewportRelativeRect:kn,getDocumentElement:X,getClippingRect:Bn,getOffsetParent:pt,getElementRects:Yn,getClientRects:jn,getDimensions:Vn,getScale:Q,isElement:I,isRTL:Xn};function mt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Gn(e,t){let n=null,o;const r=X(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const f=e.getBoundingClientRect(),{left:a,top:u,width:p,height:d}=f;if(l||t(),!p||!d)return;const m=de(u),g=de(r.clientWidth-(a+p)),x=de(r.clientHeight-(u+d)),w=de(a),C={rootMargin:-m+"px "+-g+"px "+-x+"px "+-w+"px",threshold:$(0,U(1,c))||1};let v=!0;function b(T){const P=T[0].intersectionRatio;if(P!==c){if(!v)return s();P?s(!1,P):o=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!mt(f,e.getBoundingClientRect())&&s(),v=!1}try{n=new IntersectionObserver(b,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(b,C)}n.observe(e)}return s(!0),i}function Un(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=He(e),a=r||i?[...f?se(f):[],...se(t)]:[];a.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const u=f&&l?Gn(f,n):null;let p=-1,d=null;s&&(d=new ResizeObserver(w=>{let[y]=w;y&&y.target===f&&d&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=d)==null||C.observe(t)})),n()}),f&&!c&&d.observe(f),d.observe(t));let m,g=c?K(e):null;c&&x();function x(){const w=K(e);g&&!mt(g,w)&&n(),g=w,m=requestAnimationFrame(x)}return n(),()=>{var w;a.forEach(y=>{r&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),u?.(),(w=d)==null||w.disconnect(),d=null,c&&cancelAnimationFrame(m)}}const Zn=vn,Kn=bn,Jn=xn,Qn=Rn,eo=wn,tt=gn,to=Cn,no=(e,t,n)=>{const o=new Map,r={platform:qn,...n},i={...r.platform,_c:o};return hn(e,t,{...r,platform:i})};var oo=typeof document<"u",ro=function(){},pe=oo?h.useLayoutEffect:ro;function xe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!xe(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!xe(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ht(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nt(e,t){const n=ht(e);return Math.round(t*n)/n}function Te(e){const t=h.useRef(e);return pe(()=>{t.current=e}),t}function io(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[a,u]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=h.useState(o);xe(p,o)||d(o);const[m,g]=h.useState(null),[x,w]=h.useState(null),y=h.useCallback(A=>{A!==T.current&&(T.current=A,g(A))},[]),C=h.useCallback(A=>{A!==P.current&&(P.current=A,w(A))},[]),v=i||m,b=s||x,T=h.useRef(null),P=h.useRef(null),M=h.useRef(a),j=c!=null,D=Te(c),N=Te(r),k=Te(f),E=h.useCallback(()=>{if(!T.current||!P.current)return;const A={placement:t,strategy:n,middleware:p};N.current&&(A.platform=N.current),no(T.current,P.current,A).then(_=>{const B={..._,isPositioned:k.current!==!1};O.current&&!xe(M.current,B)&&(M.current=B,en.flushSync(()=>{u(B)}))})},[p,t,n,N,k]);pe(()=>{f===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[f]);const O=h.useRef(!1);pe(()=>(O.current=!0,()=>{O.current=!1}),[]),pe(()=>{if(v&&(T.current=v),b&&(P.current=b),v&&b){if(D.current)return D.current(v,b,E);E()}},[v,b,E,D,j]);const H=h.useMemo(()=>({reference:T,floating:P,setReference:y,setFloating:C}),[y,C]),S=h.useMemo(()=>({reference:v,floating:b}),[v,b]),L=h.useMemo(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const _=nt(S.floating,a.x),B=nt(S.floating,a.y);return l?{...A,transform:"translate("+_+"px, "+B+"px)",...ht(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:B}},[n,l,S.floating,a.x,a.y]);return h.useMemo(()=>({...a,update:E,refs:H,elements:S,floatingStyles:L}),[a,E,H,S,L])}const so=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?tt({element:o.current,padding:r}).fn(n):{}:o?tt({element:o,padding:r}).fn(n):{}}}},co=(e,t)=>({...Zn(e),options:[e,t]}),lo=(e,t)=>({...Kn(e),options:[e,t]}),ao=(e,t)=>({...to(e),options:[e,t]}),fo=(e,t)=>({...Jn(e),options:[e,t]}),uo=(e,t)=>({...Qn(e),options:[e,t]}),po=(e,t)=>({...eo(e),options:[e,t]}),mo=(e,t)=>({...so(e),options:[e,t]});var ho="Arrow",gt=h.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...i}=e;return R.jsx(le.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});gt.displayName=ho;var go=gt,$e="Popper",[xt,wt]=ot($e),[xo,yt]=xt($e),vt=e=>{const{__scopePopper:t,children:n}=e,[o,r]=h.useState(null);return R.jsx(xo,{scope:t,anchor:o,onAnchorChange:r,children:n})};vt.displayName=$e;var bt="PopperAnchor",Ct=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,i=yt(bt,n),s=h.useRef(null),l=we(t,s),c=h.useRef(null);return h.useEffect(()=>{const f=c.current;c.current=o?.current||s.current,f!==c.current&&i.onAnchorChange(c.current)}),o?null:R.jsx(le.div,{...r,ref:l})});Ct.displayName=bt;var Fe="PopperContent",[wo,yo]=xt(Fe),Rt=h.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:a=0,sticky:u="partial",hideWhenDetached:p=!1,updatePositionStrategy:d="optimized",onPlaced:m,...g}=e,x=yt(Fe,n),[w,y]=h.useState(null),C=we(t,re=>y(re)),[v,b]=h.useState(null),T=tn(v),P=T?.width??0,M=T?.height??0,j=o+(i!=="center"?"-"+i:""),D=typeof a=="number"?a:{top:0,right:0,bottom:0,left:0,...a},N=Array.isArray(f)?f:[f],k=N.length>0,E={padding:D,boundary:N.filter(bo),altBoundary:k},{refs:O,floatingStyles:H,placement:S,isPositioned:L,middlewareData:A}=io({strategy:"fixed",placement:j,whileElementsMounted:(...re)=>Un(...re,{animationFrame:d==="always"}),elements:{reference:x.anchor},middleware:[co({mainAxis:r+M,alignmentAxis:s}),c&&lo({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?ao():void 0,...E}),c&&fo({...E}),uo({...E,apply:({elements:re,rects:ze,availableWidth:zt,availableHeight:Yt})=>{const{width:Xt,height:qt}=ze.reference,ue=re.floating.style;ue.setProperty("--radix-popper-available-width",`${zt}px`),ue.setProperty("--radix-popper-available-height",`${Yt}px`),ue.setProperty("--radix-popper-anchor-width",`${Xt}px`),ue.setProperty("--radix-popper-anchor-height",`${qt}px`)}}),v&&mo({element:v,padding:l}),Co({arrowWidth:P,arrowHeight:M}),p&&po({strategy:"referenceHidden",...E})]}),[_,B]=Tt(S),Ve=Zt(m);Ye(()=>{L&&Ve?.()},[L,Ve]);const Ft=A.arrow?.x,It=A.arrow?.y,Wt=A.arrow?.centerOffset!==0,[Bt,Vt]=h.useState();return Ye(()=>{w&&Vt(window.getComputedStyle(w).zIndex)},[w]),R.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:L?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Bt,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:R.jsx(wo,{scope:n,placedSide:_,onArrowChange:b,arrowX:Ft,arrowY:It,shouldHideArrow:Wt,children:R.jsx(le.div,{"data-side":_,"data-align":B,...g,ref:C,style:{...g.style,animation:L?void 0:"none"}})})})});Rt.displayName=Fe;var At="PopperArrow",vo={top:"bottom",right:"left",bottom:"top",left:"right"},Pt=h.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,i=yo(At,o),s=vo[i.placedSide];return R.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:R.jsx(go,{...r,ref:n,style:{...r.style,display:"block"}})})});Pt.displayName=At;function bo(e){return e!==null}var Co=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[f,a]=Tt(n),u={start:"0%",center:"50%",end:"100%"}[a],p=(r.arrow?.x??0)+l/2,d=(r.arrow?.y??0)+c/2;let m="",g="";return f==="bottom"?(m=s?u:`${p}px`,g=`${-c}px`):f==="top"?(m=s?u:`${p}px`,g=`${o.floating.height+c}px`):f==="right"?(m=`${-c}px`,g=s?u:`${d}px`):f==="left"&&(m=`${o.floating.width+c}px`,g=s?u:`${d}px`),{data:{x:m,y:g}}}});function Tt(e){const[t,n="center"]=e.split("-");return[t,n]}var Ro=vt,Ao=Ct,Po=Rt,To=Pt,Oo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Eo="VisuallyHidden",Ot=h.forwardRef((e,t)=>R.jsx(le.span,{...e,ref:t,style:{...Oo,...e.style}}));Ot.displayName=Eo;var So=Ot,[Re]=ot("Tooltip",[wt]),Ae=wt(),Et="TooltipProvider",Lo=700,Le="tooltip.open",[Do,Ie]=Re(Et),St=e=>{const{__scopeTooltip:t,delayDuration:n=Lo,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:i}=e,s=h.useRef(!0),l=h.useRef(!1),c=h.useRef(0);return h.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),R.jsx(Do,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:h.useCallback(f=>{l.current=f},[]),disableHoverableContent:r,children:i})};St.displayName=Et;var ce="Tooltip",[Mo,fe]=Re(ce),Lt=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,c=Ie(ce,e.__scopeTooltip),f=Ae(t),[a,u]=h.useState(null),p=Qt(),d=h.useRef(0),m=s??c.disableHoverableContent,g=l??c.delayDuration,x=h.useRef(!1),[w,y]=Gt({prop:o,defaultProp:r??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Le))):c.onClose(),i?.(P)},caller:ce}),C=h.useMemo(()=>w?x.current?"delayed-open":"instant-open":"closed",[w]),v=h.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x.current=!1,y(!0)},[y]),b=h.useCallback(()=>{window.clearTimeout(d.current),d.current=0,y(!1)},[y]),T=h.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{x.current=!0,y(!0),d.current=0},g)},[g,y]);return h.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),R.jsx(Ro,{...f,children:R.jsx(Mo,{scope:t,contentId:p,open:w,stateAttribute:C,trigger:a,onTriggerChange:u,onTriggerEnter:h.useCallback(()=>{c.isOpenDelayedRef.current?T():v()},[c.isOpenDelayedRef,T,v]),onTriggerLeave:h.useCallback(()=>{m?b():(window.clearTimeout(d.current),d.current=0)},[b,m]),onOpen:v,onClose:b,disableHoverableContent:m,children:n})})};Lt.displayName=ce;var De="TooltipTrigger",Dt=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=fe(De,n),i=Ie(De,n),s=Ae(n),l=h.useRef(null),c=we(t,l,r.onTriggerChange),f=h.useRef(!1),a=h.useRef(!1),u=h.useCallback(()=>f.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),R.jsx(Ao,{asChild:!0,...s,children:R.jsx(le.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:c,onPointerMove:J(e.onPointerMove,p=>{p.pointerType!=="touch"&&!a.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),a.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{r.onTriggerLeave(),a.current=!1}),onPointerDown:J(e.onPointerDown,()=>{r.open&&r.onClose(),f.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:J(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:J(e.onBlur,r.onClose),onClick:J(e.onClick,r.onClose)})})});Dt.displayName=De;var We="TooltipPortal",[_o,No]=Re(We,{forceMount:void 0}),Mt=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=fe(We,t);return R.jsx(_o,{scope:t,forceMount:n,children:R.jsx(rt,{present:n||i.open,children:R.jsx(Kt,{asChild:!0,container:r,children:o})})})};Mt.displayName=We;var te="TooltipContent",_t=h.forwardRef((e,t)=>{const n=No(te,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,s=fe(te,e.__scopeTooltip);return R.jsx(rt,{present:o||s.open,children:s.disableHoverableContent?R.jsx(Nt,{side:r,...i,ref:t}):R.jsx(ko,{side:r,...i,ref:t})})}),ko=h.forwardRef((e,t)=>{const n=fe(te,e.__scopeTooltip),o=Ie(te,e.__scopeTooltip),r=h.useRef(null),i=we(t,r),[s,l]=h.useState(null),{trigger:c,onClose:f}=n,a=r.current,{onPointerInTransitChange:u}=o,p=h.useCallback(()=>{l(null),u(!1)},[u]),d=h.useCallback((m,g)=>{const x=m.currentTarget,w={x:m.clientX,y:m.clientY},y=Fo(w,x.getBoundingClientRect()),C=Io(w,y),v=Wo(g.getBoundingClientRect()),b=Vo([...C,...v]);l(b),u(!0)},[u]);return h.useEffect(()=>()=>p(),[p]),h.useEffect(()=>{if(c&&a){const m=x=>d(x,a),g=x=>d(x,c);return c.addEventListener("pointerleave",m),a.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",m),a.removeEventListener("pointerleave",g)}}},[c,a,d,p]),h.useEffect(()=>{if(s){const m=g=>{const x=g.target,w={x:g.clientX,y:g.clientY},y=c?.contains(x)||a?.contains(x),C=!Bo(w,s);y?p():C&&(p(),f())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,a,s,f,p]),R.jsx(Nt,{...e,ref:i})}),[jo,Ho]=Re(ce,{isInside:!1}),$o=Ut("TooltipContent"),Nt=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,c=fe(te,n),f=Ae(n),{onClose:a}=c;return h.useEffect(()=>(document.addEventListener(Le,a),()=>document.removeEventListener(Le,a)),[a]),h.useEffect(()=>{if(c.trigger){const u=p=>{p.target?.contains(c.trigger)&&a()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[c.trigger,a]),R.jsx(Jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:a,children:R.jsxs(Po,{"data-state":c.stateAttribute,...f,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[R.jsx($o,{children:o}),R.jsx(jo,{scope:n,isInside:!0,children:R.jsx(So,{id:c.contentId,role:"tooltip",children:r||o})})]})})});_t.displayName=te;var kt="TooltipArrow",jt=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ae(n);return Ho(kt,n).isInside?null:R.jsx(To,{...r,...o,ref:t})});jt.displayName=kt;function Fo(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Io(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Wo(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Bo(e,t){const{x:n,y:o}=e;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],c=t[s],f=l.x,a=l.y,u=c.x,p=c.y;a>o!=p>o&&n<(u-f)*(o-a)/(p-a)+f&&(r=!r)}return r}function Vo(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),zo(t)}function zo(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Yo=St,Xo=Lt,qo=Dt,Go=Mt,Ht=_t,Uo=jt;const $t=h.createContext(void 0),Zo=({zIndex:e,children:t,...n})=>R.jsx($t.Provider,{value:e,children:R.jsx(Yo,{...n,children:t})}),Ko=Xo,Jo=qo,Be=h.forwardRef(({className:e,sideOffset:t=4,portalContainer:n,style:o,...r},i)=>{const s=h.useContext($t);return R.jsx(Go,{container:n??void 0,children:R.jsxs(Ht,{ref:i,sideOffset:t,className:nn(e),style:s!=null?{...o,zIndex:s}:o,...r,children:[r.children,R.jsx(Uo,{className:"fill-[#525867] stroke-[#525867] stroke-[2px] stroke-linejoin-round [paint-order:stroke_fill]"})]})})});Be.displayName=Ht.displayName;Be.__docgenInfo={description:"",methods:[],props:{portalContainer:{required:!1,tsType:{name:"union",raw:"HTMLElement | null",elements:[{name:"HTMLElement"},{name:"null"}]},description:""},sideOffset:{defaultValue:{value:"4",computed:!1},required:!1}}};Zo.__docgenInfo={description:"",methods:[],displayName:"TooltipProvider",props:{zIndex:{required:!1,tsType:{name:"number"},description:""}}};const Qo=({children:e,content:t})=>{const n=h.useRef(null),[o,r]=h.useState(null);return h.useEffect(()=>{const i=n.current;if(!i)return;const s=i.getRootNode();if(s instanceof ShadowRoot){const l=s.querySelector("[data-bs-tooltip-portal]");if(l){r(l);return}const c=document.createElement("div");c.setAttribute("data-bs-tooltip-portal","true"),s.appendChild(c),r(c);return}r(null)},[]),R.jsxs(Ko,{children:[R.jsx(Jo,{asChild:!0,children:R.jsx("span",{ref:n,className:"inline-flex",children:e})}),R.jsx(Be,{portalContainer:o,className:"rounded-[4px] bg-[#525867] px-[12px] !py-[7px] text-[12px] text-white leading-normal max-w-[288px] animate-in fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 duration-200",children:t})]})};Qo.__docgenInfo={description:"",methods:[],displayName:"BsTooltip",props:{children:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},content:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""}}};export{Ao as A,Qo as B,Po as C,Ro as R,Zo as T,To as a,St as b,wt as c};