@shineuix/ssr 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -2
  3. package/THIRD-PARTY-NOTICES.md +256 -0
  4. package/dist/components/index.d.ts +329 -0
  5. package/dist/components/index.js +1 -0
  6. package/dist/components/p--YwzuGO4.js +1 -0
  7. package/dist/components/p-1XW6gKXd.js +1 -0
  8. package/dist/components/p-5IOXzr3D.js +1 -0
  9. package/dist/components/p-7Ti-Ht9x.js +1 -0
  10. package/dist/components/p-8BHOb7Dy.js +1 -0
  11. package/dist/components/p-9ma1-eiT.js +1 -0
  12. package/dist/components/p-B-eMraLN.js +1 -0
  13. package/dist/components/p-B0NNDkks.js +1 -0
  14. package/dist/components/p-BE4gZZNA.js +1 -0
  15. package/dist/components/p-BEa7fx4d.js +1 -0
  16. package/dist/components/p-BHB1Wprj.js +1 -0
  17. package/dist/components/p-BJXb6pu9.js +1 -0
  18. package/dist/components/p-BM1Zzj1H.js +1 -0
  19. package/dist/components/p-BOdn2vI7.js +1 -0
  20. package/dist/components/p-BPGiU7Vj.js +1 -0
  21. package/dist/components/p-BSSeip34.js +1 -0
  22. package/dist/components/p-BU3LJP5B.js +1 -0
  23. package/dist/components/p-BUqcDxTK.js +1 -0
  24. package/dist/components/p-BWkzTEZX.js +1 -0
  25. package/dist/components/p-BfkKvKcf.js +1 -0
  26. package/dist/components/p-BiSaIyr0.js +1 -0
  27. package/dist/components/p-BioVIgkG.js +1 -0
  28. package/dist/components/p-BirQihPv.js +1 -0
  29. package/dist/components/p-BmmgLDk2.js +1 -0
  30. package/dist/components/p-BnZU02lM.js +1 -0
  31. package/dist/components/p-BpxmwysK.js +1 -0
  32. package/dist/components/p-Bt5Kx3zM.js +1 -0
  33. package/dist/components/p-Btp15dVO.js +1 -0
  34. package/dist/components/p-BuyjS5bS.js +1 -0
  35. package/dist/components/p-Bv5xqCDb.js +1 -0
  36. package/dist/components/p-Bzu70qWq.js +1 -0
  37. package/dist/components/p-C-6_KLLy.js +1 -0
  38. package/dist/components/p-C0MrkGLb.js +1 -0
  39. package/dist/components/p-C2EJFbyf.js +1 -0
  40. package/dist/components/p-C6DEF4nA.js +1 -0
  41. package/dist/components/p-C6T8Kp68.js +1 -0
  42. package/dist/components/p-C6hsDVJk.js +1 -0
  43. package/dist/components/p-CAeBVGwP.js +1 -0
  44. package/dist/components/p-CCVYcPwO.js +1 -0
  45. package/dist/components/p-CDJMRbCX.js +1 -0
  46. package/dist/components/p-CGWvlrv_.js +1 -0
  47. package/dist/components/p-CJT4wCXG.js +47 -0
  48. package/dist/components/p-CN5x4MC8.js +1 -0
  49. package/dist/components/p-COO9uV7W.js +1 -0
  50. package/dist/components/p-CR0heQtR.js +1 -0
  51. package/dist/components/p-CSPVrtqf.js +1 -0
  52. package/dist/components/p-CT6aJe8X.js +1 -0
  53. package/dist/components/p-CYZG3LOZ.js +1 -0
  54. package/dist/components/p-CYlxvoVo.js +1 -0
  55. package/dist/components/p-CZWUeOlG.js +1 -0
  56. package/dist/components/p-CbnOosJi.js +1 -0
  57. package/dist/components/p-CeVlau-G.js +1 -0
  58. package/dist/components/p-CekHtBpA.js +1 -0
  59. package/dist/components/p-CjVByuTx.js +1 -0
  60. package/dist/components/p-CmqQjlaI.js +1 -0
  61. package/dist/components/p-CrVcfwMC.js +1 -0
  62. package/dist/components/p-Cs2X0Kih.js +1 -0
  63. package/dist/components/p-CyBxJm67.js +1 -0
  64. package/dist/components/p-D0KZcTn9.js +1 -0
  65. package/dist/components/p-D31mbQ3e.js +1 -0
  66. package/dist/components/p-D7L5Nhsy.js +1 -0
  67. package/dist/components/p-D9rbC_yY.js +1 -0
  68. package/dist/components/p-DAfCbU7H.js +1 -0
  69. package/dist/components/p-DIvvXo_w.js +1 -0
  70. package/dist/components/p-DNXYH-fW.js +1 -0
  71. package/dist/components/p-DNgqy3W8.js +1 -0
  72. package/dist/components/p-DRMr6xXH.js +1 -0
  73. package/dist/components/p-DSNURte-.js +1 -0
  74. package/dist/components/p-DSjolNQa.js +1 -0
  75. package/dist/components/p-DXIDl7cw.js +1 -0
  76. package/dist/components/p-DZRA7Q7l.js +1 -0
  77. package/dist/components/p-D_S99uS1.js +1 -0
  78. package/dist/components/p-D_hGdmbW.js +1 -0
  79. package/dist/components/p-Da6TsjCG.js +1 -0
  80. package/dist/components/p-DbF8ArKE.js +1 -0
  81. package/dist/components/p-DdsE4HI6.js +1 -0
  82. package/dist/components/p-Deadvw27.js +1 -0
  83. package/dist/components/p-DgXzRiP4.js +1 -0
  84. package/dist/components/p-DgiZgZCh.js +1 -0
  85. package/dist/components/p-Dgl_qIYT.js +1 -0
  86. package/dist/components/p-DhYPkfV2.js +1 -0
  87. package/dist/components/p-Ds9HpZbg.js +1 -0
  88. package/dist/components/p-DskQyZoR.js +1 -0
  89. package/dist/components/p-DtI1DFsR.js +1 -0
  90. package/dist/components/p-DuJmXwMk.js +1 -0
  91. package/dist/components/p-Dxh8L0dt.js +1 -0
  92. package/dist/components/p-ES48zkCT.js +1 -0
  93. package/dist/components/p-GAnFXayY.js +1 -0
  94. package/dist/components/p-Hej7hALV.js +1 -0
  95. package/dist/components/p-M0fYQCIv.js +1 -0
  96. package/dist/components/p-MsqFuhDd.js +1 -0
  97. package/dist/components/p-NpX9eEW0.js +1 -0
  98. package/dist/components/p-RwPlJzMY.js +1 -0
  99. package/dist/components/p-TBwsYzWO.js +1 -0
  100. package/dist/components/p-U06fVoGD.js +1 -0
  101. package/dist/components/p-UtUl_rX-.js +1 -0
  102. package/dist/components/p-eoxRNwfF.js +1 -0
  103. package/dist/components/p-iKk1YZ0M.js +1 -0
  104. package/dist/components/p-l4ru8vIR.js +1 -0
  105. package/dist/components/p-mF7K10Wh.js +1 -0
  106. package/dist/components/p-mdFjb4l0.js +1 -0
  107. package/dist/components/p-n4-59tbj.js +1 -0
  108. package/dist/components/p-nX8XMRk5.js +1 -0
  109. package/dist/components/p-pJYXPDB_.js +1 -0
  110. package/dist/components/p-q0JbXN8q.js +1 -0
  111. package/dist/components/p-qjuvplfX.js +1 -0
  112. package/dist/components/p-v0MrzKlW.js +1 -0
  113. package/dist/components/p-vN2wl76B.js +1 -0
  114. package/dist/components/sui-accordion-item.d.ts +11 -0
  115. package/dist/components/sui-accordion-item.js +1 -0
  116. package/dist/components/sui-accordion.d.ts +11 -0
  117. package/dist/components/sui-accordion.js +1 -0
  118. package/dist/components/sui-anchor.d.ts +11 -0
  119. package/dist/components/sui-anchor.js +1 -0
  120. package/dist/components/sui-auto-complete.d.ts +11 -0
  121. package/dist/components/sui-auto-complete.js +1 -0
  122. package/dist/components/sui-avatar-group.d.ts +11 -0
  123. package/dist/components/sui-avatar-group.js +1 -0
  124. package/dist/components/sui-avatar.d.ts +11 -0
  125. package/dist/components/sui-avatar.js +1 -0
  126. package/dist/components/sui-badge.d.ts +11 -0
  127. package/dist/components/sui-badge.js +1 -0
  128. package/dist/components/sui-block-ui.d.ts +11 -0
  129. package/dist/components/sui-block-ui.js +1 -0
  130. package/dist/components/sui-board.d.ts +11 -0
  131. package/dist/components/sui-board.js +1 -0
  132. package/dist/components/sui-bottom-nav.d.ts +11 -0
  133. package/dist/components/sui-bottom-nav.js +1 -0
  134. package/dist/components/sui-breadcrumb.d.ts +11 -0
  135. package/dist/components/sui-breadcrumb.js +1 -0
  136. package/dist/components/sui-button-group.d.ts +11 -0
  137. package/dist/components/sui-button-group.js +1 -0
  138. package/dist/components/sui-button.d.ts +11 -0
  139. package/dist/components/sui-button.js +1 -0
  140. package/dist/components/sui-calendar.d.ts +11 -0
  141. package/dist/components/sui-calendar.js +1 -0
  142. package/dist/components/sui-card.d.ts +11 -0
  143. package/dist/components/sui-card.js +1 -0
  144. package/dist/components/sui-carousel.d.ts +11 -0
  145. package/dist/components/sui-carousel.js +1 -0
  146. package/dist/components/sui-cascade-select.d.ts +11 -0
  147. package/dist/components/sui-cascade-select.js +1 -0
  148. package/dist/components/sui-chart-bar.d.ts +11 -0
  149. package/dist/components/sui-chart-bar.js +1 -0
  150. package/dist/components/sui-chart-candlestick.d.ts +11 -0
  151. package/dist/components/sui-chart-candlestick.js +1 -0
  152. package/dist/components/sui-chart-combo.d.ts +11 -0
  153. package/dist/components/sui-chart-combo.js +1 -0
  154. package/dist/components/sui-chart-gauge.d.ts +11 -0
  155. package/dist/components/sui-chart-gauge.js +1 -0
  156. package/dist/components/sui-chart-heatmap.d.ts +11 -0
  157. package/dist/components/sui-chart-heatmap.js +1 -0
  158. package/dist/components/sui-chart-line.d.ts +11 -0
  159. package/dist/components/sui-chart-line.js +1 -0
  160. package/dist/components/sui-chart-navigator.d.ts +11 -0
  161. package/dist/components/sui-chart-navigator.js +1 -0
  162. package/dist/components/sui-chart-pie.d.ts +11 -0
  163. package/dist/components/sui-chart-pie.js +1 -0
  164. package/dist/components/sui-chart-radar.d.ts +11 -0
  165. package/dist/components/sui-chart-radar.js +1 -0
  166. package/dist/components/sui-chart-scatter.d.ts +11 -0
  167. package/dist/components/sui-chart-scatter.js +1 -0
  168. package/dist/components/sui-chart-synced.d.ts +11 -0
  169. package/dist/components/sui-chart-synced.js +1 -0
  170. package/dist/components/sui-chart-treemap.d.ts +11 -0
  171. package/dist/components/sui-chart-treemap.js +1 -0
  172. package/dist/components/sui-chart-waterfall.d.ts +11 -0
  173. package/dist/components/sui-chart-waterfall.js +1 -0
  174. package/dist/components/sui-checkbox-group.d.ts +11 -0
  175. package/dist/components/sui-checkbox-group.js +1 -0
  176. package/dist/components/sui-checkbox.d.ts +11 -0
  177. package/dist/components/sui-checkbox.js +1 -0
  178. package/dist/components/sui-chip.d.ts +11 -0
  179. package/dist/components/sui-chip.js +1 -0
  180. package/dist/components/sui-choice-cards.d.ts +11 -0
  181. package/dist/components/sui-choice-cards.js +1 -0
  182. package/dist/components/sui-code-block.d.ts +11 -0
  183. package/dist/components/sui-code-block.js +1 -0
  184. package/dist/components/sui-color-editor.d.ts +11 -0
  185. package/dist/components/sui-color-editor.js +1 -0
  186. package/dist/components/sui-color-picker.d.ts +11 -0
  187. package/dist/components/sui-color-picker.js +1 -0
  188. package/dist/components/sui-command-palette.d.ts +11 -0
  189. package/dist/components/sui-command-palette.js +1 -0
  190. package/dist/components/sui-config-list.d.ts +11 -0
  191. package/dist/components/sui-config-list.js +1 -0
  192. package/dist/components/sui-config-row.d.ts +11 -0
  193. package/dist/components/sui-config-row.js +1 -0
  194. package/dist/components/sui-confirm-dialog.d.ts +11 -0
  195. package/dist/components/sui-confirm-dialog.js +1 -0
  196. package/dist/components/sui-confirm-popup.d.ts +11 -0
  197. package/dist/components/sui-confirm-popup.js +1 -0
  198. package/dist/components/sui-context-menu.d.ts +11 -0
  199. package/dist/components/sui-context-menu.js +1 -0
  200. package/dist/components/sui-copy-button.d.ts +11 -0
  201. package/dist/components/sui-copy-button.js +1 -0
  202. package/dist/components/sui-data-grid.d.ts +11 -0
  203. package/dist/components/sui-data-grid.js +1 -0
  204. package/dist/components/sui-data-table.d.ts +11 -0
  205. package/dist/components/sui-data-table.js +1 -0
  206. package/dist/components/sui-data-view.d.ts +11 -0
  207. package/dist/components/sui-data-view.js +1 -0
  208. package/dist/components/sui-date-picker.d.ts +11 -0
  209. package/dist/components/sui-date-picker.js +1 -0
  210. package/dist/components/sui-description-list.d.ts +11 -0
  211. package/dist/components/sui-description-list.js +1 -0
  212. package/dist/components/sui-dialog.d.ts +11 -0
  213. package/dist/components/sui-dialog.js +1 -0
  214. package/dist/components/sui-divider.d.ts +11 -0
  215. package/dist/components/sui-divider.js +1 -0
  216. package/dist/components/sui-dock.d.ts +11 -0
  217. package/dist/components/sui-dock.js +1 -0
  218. package/dist/components/sui-drawer.d.ts +11 -0
  219. package/dist/components/sui-drawer.js +1 -0
  220. package/dist/components/sui-edit-box.d.ts +11 -0
  221. package/dist/components/sui-edit-box.js +1 -0
  222. package/dist/components/sui-empty-state.d.ts +11 -0
  223. package/dist/components/sui-empty-state.js +1 -0
  224. package/dist/components/sui-fieldset.d.ts +11 -0
  225. package/dist/components/sui-fieldset.js +1 -0
  226. package/dist/components/sui-file-upload.d.ts +11 -0
  227. package/dist/components/sui-file-upload.js +1 -0
  228. package/dist/components/sui-filter-builder.d.ts +11 -0
  229. package/dist/components/sui-filter-builder.js +1 -0
  230. package/dist/components/sui-filter-panel.d.ts +11 -0
  231. package/dist/components/sui-filter-panel.js +1 -0
  232. package/dist/components/sui-float-label.d.ts +11 -0
  233. package/dist/components/sui-float-label.js +1 -0
  234. package/dist/components/sui-fluid.d.ts +11 -0
  235. package/dist/components/sui-fluid.js +1 -0
  236. package/dist/components/sui-form-actions.d.ts +11 -0
  237. package/dist/components/sui-form-actions.js +1 -0
  238. package/dist/components/sui-form-layout.d.ts +11 -0
  239. package/dist/components/sui-form-layout.js +1 -0
  240. package/dist/components/sui-form.d.ts +11 -0
  241. package/dist/components/sui-form.js +1 -0
  242. package/dist/components/sui-galleria.d.ts +11 -0
  243. package/dist/components/sui-galleria.js +1 -0
  244. package/dist/components/sui-icon-button.d.ts +11 -0
  245. package/dist/components/sui-icon-button.js +1 -0
  246. package/dist/components/sui-icon-field.d.ts +11 -0
  247. package/dist/components/sui-icon-field.js +1 -0
  248. package/dist/components/sui-ifta-label.d.ts +11 -0
  249. package/dist/components/sui-ifta-label.js +1 -0
  250. package/dist/components/sui-image-compare.d.ts +11 -0
  251. package/dist/components/sui-image-compare.js +1 -0
  252. package/dist/components/sui-image.d.ts +11 -0
  253. package/dist/components/sui-image.js +1 -0
  254. package/dist/components/sui-inplace.d.ts +11 -0
  255. package/dist/components/sui-inplace.js +1 -0
  256. package/dist/components/sui-input-group-addon.d.ts +11 -0
  257. package/dist/components/sui-input-group-addon.js +1 -0
  258. package/dist/components/sui-input-group.d.ts +11 -0
  259. package/dist/components/sui-input-group.js +1 -0
  260. package/dist/components/sui-input-mask.d.ts +11 -0
  261. package/dist/components/sui-input-mask.js +1 -0
  262. package/dist/components/sui-input-number.d.ts +11 -0
  263. package/dist/components/sui-input-number.js +1 -0
  264. package/dist/components/sui-input-otp.d.ts +11 -0
  265. package/dist/components/sui-input-otp.js +1 -0
  266. package/dist/components/sui-input-tags.d.ts +11 -0
  267. package/dist/components/sui-input-tags.js +1 -0
  268. package/dist/components/sui-input-text.d.ts +11 -0
  269. package/dist/components/sui-input-text.js +1 -0
  270. package/dist/components/sui-kbd.d.ts +11 -0
  271. package/dist/components/sui-kbd.js +1 -0
  272. package/dist/components/sui-knob.d.ts +11 -0
  273. package/dist/components/sui-knob.js +1 -0
  274. package/dist/components/sui-list.d.ts +11 -0
  275. package/dist/components/sui-list.js +1 -0
  276. package/dist/components/sui-listbox.d.ts +11 -0
  277. package/dist/components/sui-listbox.js +1 -0
  278. package/dist/components/sui-mega-menu.d.ts +11 -0
  279. package/dist/components/sui-mega-menu.js +1 -0
  280. package/dist/components/sui-menu.d.ts +11 -0
  281. package/dist/components/sui-menu.js +1 -0
  282. package/dist/components/sui-menubar.d.ts +11 -0
  283. package/dist/components/sui-menubar.js +1 -0
  284. package/dist/components/sui-message.d.ts +11 -0
  285. package/dist/components/sui-message.js +1 -0
  286. package/dist/components/sui-meter-group.d.ts +11 -0
  287. package/dist/components/sui-meter-group.js +1 -0
  288. package/dist/components/sui-mini-toolbar.d.ts +11 -0
  289. package/dist/components/sui-mini-toolbar.js +1 -0
  290. package/dist/components/sui-multi-select.d.ts +11 -0
  291. package/dist/components/sui-multi-select.js +1 -0
  292. package/dist/components/sui-notification-center.d.ts +11 -0
  293. package/dist/components/sui-notification-center.js +1 -0
  294. package/dist/components/sui-order-list.d.ts +11 -0
  295. package/dist/components/sui-order-list.js +1 -0
  296. package/dist/components/sui-org-chart.d.ts +11 -0
  297. package/dist/components/sui-org-chart.js +1 -0
  298. package/dist/components/sui-overlay-badge.d.ts +11 -0
  299. package/dist/components/sui-overlay-badge.js +1 -0
  300. package/dist/components/sui-page-header.d.ts +11 -0
  301. package/dist/components/sui-page-header.js +1 -0
  302. package/dist/components/sui-paginator.d.ts +11 -0
  303. package/dist/components/sui-paginator.js +1 -0
  304. package/dist/components/sui-panel-menu.d.ts +11 -0
  305. package/dist/components/sui-panel-menu.js +1 -0
  306. package/dist/components/sui-panel.d.ts +11 -0
  307. package/dist/components/sui-panel.js +1 -0
  308. package/dist/components/sui-password.d.ts +11 -0
  309. package/dist/components/sui-password.js +1 -0
  310. package/dist/components/sui-persona.d.ts +11 -0
  311. package/dist/components/sui-persona.js +1 -0
  312. package/dist/components/sui-pick-list.d.ts +11 -0
  313. package/dist/components/sui-pick-list.js +1 -0
  314. package/dist/components/sui-popover.d.ts +11 -0
  315. package/dist/components/sui-popover.js +1 -0
  316. package/dist/components/sui-progress-bar.d.ts +11 -0
  317. package/dist/components/sui-progress-bar.js +1 -0
  318. package/dist/components/sui-progress-ring.d.ts +11 -0
  319. package/dist/components/sui-progress-ring.js +1 -0
  320. package/dist/components/sui-progress-spinner.d.ts +11 -0
  321. package/dist/components/sui-progress-spinner.js +1 -0
  322. package/dist/components/sui-qr-code.d.ts +11 -0
  323. package/dist/components/sui-qr-code.js +1 -0
  324. package/dist/components/sui-radio-button.d.ts +11 -0
  325. package/dist/components/sui-radio-button.js +1 -0
  326. package/dist/components/sui-radio-group.d.ts +11 -0
  327. package/dist/components/sui-radio-group.js +1 -0
  328. package/dist/components/sui-rating.d.ts +11 -0
  329. package/dist/components/sui-rating.js +1 -0
  330. package/dist/components/sui-rich-text-editor.d.ts +11 -0
  331. package/dist/components/sui-rich-text-editor.js +1 -0
  332. package/dist/components/sui-save-status.d.ts +11 -0
  333. package/dist/components/sui-save-status.js +1 -0
  334. package/dist/components/sui-scheduler-builder.d.ts +11 -0
  335. package/dist/components/sui-scheduler-builder.js +1 -0
  336. package/dist/components/sui-scroll-panel.d.ts +11 -0
  337. package/dist/components/sui-scroll-panel.js +1 -0
  338. package/dist/components/sui-scroll-top.d.ts +11 -0
  339. package/dist/components/sui-scroll-top.js +1 -0
  340. package/dist/components/sui-select-button.d.ts +11 -0
  341. package/dist/components/sui-select-button.js +1 -0
  342. package/dist/components/sui-select.d.ts +11 -0
  343. package/dist/components/sui-select.js +1 -0
  344. package/dist/components/sui-side-nav.d.ts +11 -0
  345. package/dist/components/sui-side-nav.js +1 -0
  346. package/dist/components/sui-skeleton-card.d.ts +11 -0
  347. package/dist/components/sui-skeleton-card.js +1 -0
  348. package/dist/components/sui-skeleton.d.ts +11 -0
  349. package/dist/components/sui-skeleton.js +1 -0
  350. package/dist/components/sui-slider.d.ts +11 -0
  351. package/dist/components/sui-slider.js +1 -0
  352. package/dist/components/sui-sparkline.d.ts +11 -0
  353. package/dist/components/sui-sparkline.js +1 -0
  354. package/dist/components/sui-speed-dial.d.ts +11 -0
  355. package/dist/components/sui-speed-dial.js +1 -0
  356. package/dist/components/sui-split-button.d.ts +11 -0
  357. package/dist/components/sui-split-button.js +1 -0
  358. package/dist/components/sui-splitter.d.ts +11 -0
  359. package/dist/components/sui-splitter.js +1 -0
  360. package/dist/components/sui-spoiler.d.ts +11 -0
  361. package/dist/components/sui-spoiler.js +1 -0
  362. package/dist/components/sui-stat-card.d.ts +11 -0
  363. package/dist/components/sui-stat-card.js +1 -0
  364. package/dist/components/sui-stepper.d.ts +11 -0
  365. package/dist/components/sui-stepper.js +1 -0
  366. package/dist/components/sui-tab.d.ts +11 -0
  367. package/dist/components/sui-tab.js +1 -0
  368. package/dist/components/sui-tabs.d.ts +11 -0
  369. package/dist/components/sui-tabs.js +1 -0
  370. package/dist/components/sui-tag.d.ts +11 -0
  371. package/dist/components/sui-tag.js +1 -0
  372. package/dist/components/sui-terminal.d.ts +11 -0
  373. package/dist/components/sui-terminal.js +1 -0
  374. package/dist/components/sui-textarea.d.ts +11 -0
  375. package/dist/components/sui-textarea.js +1 -0
  376. package/dist/components/sui-theme-picker.d.ts +11 -0
  377. package/dist/components/sui-theme-picker.js +1 -0
  378. package/dist/components/sui-tiered-menu.d.ts +11 -0
  379. package/dist/components/sui-tiered-menu.js +1 -0
  380. package/dist/components/sui-time-picker.d.ts +11 -0
  381. package/dist/components/sui-time-picker.js +1 -0
  382. package/dist/components/sui-timeline.d.ts +11 -0
  383. package/dist/components/sui-timeline.js +1 -0
  384. package/dist/components/sui-toast-host.d.ts +11 -0
  385. package/dist/components/sui-toast-host.js +1 -0
  386. package/dist/components/sui-toggle-button.d.ts +11 -0
  387. package/dist/components/sui-toggle-button.js +1 -0
  388. package/dist/components/sui-toggle-switch.d.ts +11 -0
  389. package/dist/components/sui-toggle-switch.js +1 -0
  390. package/dist/components/sui-toolbar.d.ts +11 -0
  391. package/dist/components/sui-toolbar.js +1 -0
  392. package/dist/components/sui-tooltip.d.ts +11 -0
  393. package/dist/components/sui-tooltip.js +1 -0
  394. package/dist/components/sui-tour.d.ts +11 -0
  395. package/dist/components/sui-tour.js +1 -0
  396. package/dist/components/sui-tree-select.d.ts +11 -0
  397. package/dist/components/sui-tree-select.js +1 -0
  398. package/dist/components/sui-tree-table.d.ts +11 -0
  399. package/dist/components/sui-tree-table.js +1 -0
  400. package/dist/components/sui-tree.d.ts +11 -0
  401. package/dist/components/sui-tree.js +1 -0
  402. package/dist/components/sui-trend.d.ts +11 -0
  403. package/dist/components/sui-trend.js +1 -0
  404. package/dist/components/sui-virtual-scroller.d.ts +11 -0
  405. package/dist/components/sui-virtual-scroller.js +1 -0
  406. package/dist/hydrate/index.d.ts +287 -0
  407. package/dist/hydrate/index.js +1 -0
  408. package/dist/hydrate/index.mjs +1 -0
  409. package/dist/hydrate/package.json +13 -0
  410. package/dist/index.cjs +55 -0
  411. package/dist/index.d.cts +28 -0
  412. package/dist/index.d.mts +28 -0
  413. package/dist/index.mjs +59 -0
  414. package/package.json +126 -3
@@ -0,0 +1 @@
1
+ import{h as e}from"./p-CeVlau-G.js";import{f as a,F as t,c as s,b as n,a as i,d as l}from"./p-mF7K10Wh.js";import{a as o}from"./p-BuyjS5bS.js";import{G as u,p as r,g as c}from"./p-DdsE4HI6.js";function d(e){switch(e){case"startsWith":return o(void 0,"filter.startsWith",void 0,"Starts with");case"contains":return o(void 0,"filter.contains",void 0,"Contains");case"notContains":return o(void 0,"filter.notContains",void 0,"Does not contain");case"endsWith":return o(void 0,"filter.endsWith",void 0,"Ends with");case"equals":return o(void 0,"filter.equals",void 0,"Equals");case"notEquals":return o(void 0,"filter.notEquals",void 0,"Does not equal");case"in":return o(void 0,"filter.in",void 0,"Is any of");case"notIn":return o(void 0,"filter.notIn",void 0,"Is none of");case"lt":return o(void 0,"filter.lt",void 0,"Less than");case"lte":return o(void 0,"filter.lte",void 0,"Less than or equal");case"gt":return o(void 0,"filter.gt",void 0,"Greater than");case"gte":return o(void 0,"filter.gte",void 0,"Greater than or equal");case"between":return o(void 0,"filter.between",void 0,"Between");case"dateIs":return o(void 0,"filter.dateIs",void 0,"Is");case"dateIsNot":return o(void 0,"filter.dateIsNot",void 0,"Is not");case"dateBefore":return o(void 0,"filter.dateBefore",void 0,"Before");case"dateAfter":return o(void 0,"filter.dateAfter",void 0,"After");case"empty":return o(void 0,"filter.empty",void 0,"Is blank");case"notEmpty":return o(void 0,"filter.notEmpty",void 0,"Is not blank");default:return i[e]||e}}const f={contains:"abc",notContains:"!abc",startsWith:"ab…",endsWith:"…bc",equals:"=",notEquals:"≠",lt:"<",lte:"≤",gt:">",gte:"≥",between:"↔",dateIs:"=",dateIsNot:"≠",dateBefore:"<",dateAfter:">",in:"any",notIn:"none",empty:"∅",notEmpty:"!∅"};function v(e){return f[e]||"="}function p(e,a,t){const n=[];let i=-1;for(const o of s(e)){const e="empty"===(l=o)||"notEmpty"===l?3:"contains"===l||"notContains"===l||"startsWith"===l||"endsWith"===l?0:"equals"===l||"notEquals"===l||"dateIs"===l||"dateIsNot"===l||"in"===l||"notIn"===l?1:2;-1!==i&&e!==i&&n.push({separator:!0}),i=e,n.push({label:d(o),checked:o===a,command:()=>t(o)})}var l;return n}function b(e){return s(e).map((e=>({value:e,label:d(e)})))}function m(e,a){if(t.has(a))return;const s=e=>"in"===e||"notIn"===e;if(s(a))return s(e.matchMode)?e.value:void 0;if(s(e.matchMode))return;const n="between"===e.matchMode;return"between"===a?n?e.value:[e.value??null,null]:n?Array.isArray(e.value)?e.value[0]??void 0:void 0:e.value}function h(e,a,t=".sui-cf, .sui-fb-panel, .sui-fb"){const s=e?.closest?.(t);s&&"function"==typeof requestAnimationFrame&&requestAnimationFrame((()=>requestAnimationFrame((()=>{const e=s.querySelectorAll("[data-row]"),t=e[Math.min(a,e.length-1)],n=t?.querySelector("sui-select.sui-cf-field, sui-select.sui-cf-mode");if(!n)return;const i=()=>{n.setFocus?.()};"function"==typeof n.componentOnReady?n.componentOnReady().then(i):i()}))))}const y=({index:a,operator:t,text:s,onOperator:n})=>0===a?e("div",{class:"sui-cf-join"},s.where):a>1?e("div",{class:"sui-cf-join muted"},"or"===t?s.or:s.and):e("div",{class:"sui-cf-join"},e("sui-select",{class:"sui-cf-joinsel",size:"sm","aria-label":s.match,options:[{value:"and",label:s.and},{value:"or",label:s.or}],value:t,onSuiChange:e=>{e.stopPropagation(),n("or"===e.detail?"or":"and")}})),g=s=>{const{column:n,matchMode:i,value:o,text:u,keyBase:r}=s;if(t.has(i))return null;const c=e=>e.stopPropagation(),d=u.valueFor,f=a(n);if(f&&("in"===i||"notIn"===i)){const a=Array.isArray(o)?o.map(String):null==o||""===o?[]:[String(o)];return e("sui-multi-select",{key:`${r}-l`,class:"sui-cf-value",size:"sm",maxChips:1,"aria-label":d,placeholder:u.value,options:f.map((e=>({value:e.value,label:e.label}))),value:a,onSuiChange:e=>{c(e),s.onValue(e.detail&&e.detail.length?e.detail:void 0)}})}const v=l(n);if("date"===v){const a="between"===i,t=a?Array.isArray(o)?o.filter((e=>null!=e&&""!==e)).map(String):[]:null==o?"":String(o);return e("sui-date-picker",{key:`${r}-d-${a?"r":"s"}`,class:"sui-cf-value",size:"sm",range:a,"aria-label":d,value:t,onSuiChange:e=>{c(e);const a=e.detail;s.onValue(Array.isArray(a)?a.length?[a[0]??null,a[1]??null]:void 0:a||void 0)}})}if("number"===v){const a=e=>{if(null==e||""===e)return null;const a=Number(e);return Number.isFinite(a)?a:null};if("between"===i){const t=Array.isArray(o)?o:[null,null],n=(n,i)=>e("sui-input-number",{key:`${r}-n-${n}`,class:"sui-cf-value",size:"sm",hideButtons:!0,"aria-label":`${d}, ${i}`,placeholder:i,value:a(t[n]),onSuiInput:e=>{c(e);const i=[a(t[0]),a(t[1])];i[n]=e.detail,s.onValue(null===i[0]&&null===i[1]?void 0:i)},onSuiChange:c});return e("div",{class:"sui-cf-pair"},n(0,u.from),n(1,u.to))}return e("sui-input-number",{key:`${r}-n`,class:"sui-cf-value",size:"sm",hideButtons:!0,"aria-label":d,placeholder:u.value,value:a(o),onSuiInput:e=>{c(e),s.onValue(e.detail??void 0)},onSuiChange:c})}return"boolean"===v?e("sui-select",{key:`${r}-b`,class:"sui-cf-value",size:"sm","aria-label":d,placeholder:u.value,options:[{value:"true",label:u.yes},{value:"false",label:u.no}],value:null==o||""===o?void 0:String(o),onSuiChange:e=>{c(e),s.onValue(e.detail||void 0)}}):e("sui-input-text",{key:`${r}-t`,class:"sui-cf-value",size:"sm","aria-label":d,placeholder:u.value,autocomplete:"off",value:null==o?"":String(o),onSuiInput:e=>{c(e),s.onValue(e.detail)},onSuiChange:c})},S=({label:a,onRemove:t})=>e("sui-icon-button",{class:"sui-cf-remove",size:"sm","aria-label":a,onClick:e=>t(e.currentTarget)},e(u,{glyph:c})),w=a=>e("sui-button",{class:`sui-cf-add ${a.class||""}`,variant:"ghost",size:"sm",label:a.label,onClick:e=>a.onAdd(e.currentTarget)},e(u,{glyph:r,class:"sui-cf-add-glyph"})),k=s=>{const i=a(s.column),l=!!i&&!!s.draft.values,o=l&&0===s.draft.values.length;return e("div",{class:{"sui-cf":!0,"sui-cf-menu":!l,"sui-cf-list-menu":l,closing:s.closing},id:s.id,role:"dialog","aria-label":s.text.title,inert:s.closing,ref:e=>s.menuRef(e),onKeyDown:s.onKeyDown},e("div",{class:"sui-cf-title","aria-hidden":"true"},s.column.header),s.note?e("div",{class:"sui-cf-note"},s.note):null,l?function(a,t){const{draft:s,text:n,column:i}=a,l=new Set(s.values||[]),o=a.search.trim().toLowerCase(),u=o?t.filter((e=>e.label.toLowerCase().includes(o))):t,r=u.filter((e=>l.has(e.value))).length,c=u.length>0&&r===u.length,d=r>0&&!c,f=e=>a.onDraft({...s,values:t.map((e=>e.value)).filter((a=>e.has(a)))});return e("div",{class:"sui-cf-body",role:"group","aria-label":i.header},t.length>8?e("sui-input-text",{class:"sui-cf-search",size:"sm",type:"search","aria-label":n.searchValues,placeholder:n.searchValues,autocomplete:"off",value:a.search,onSuiInput:e=>{e.stopPropagation(),a.onSearch(e.detail)},onSuiChange:e=>e.stopPropagation()}):null,u.length?e("sui-checkbox",{class:"sui-cf-all",size:"sm",label:n.selectAll,checked:c,indeterminate:d,onSuiChange:e=>{e.stopPropagation();const a=new Set(l);for(const t of u)e.detail?a.add(t.value):a.delete(t.value);f(a)}}):null,e("div",{class:"sui-cf-list"},u.length?u.map((a=>{return e("sui-checkbox",{key:a.value,class:"sui-cf-opt",size:"sm",label:a.label,checked:l.has(a.value),onSuiChange:(t=a.value,e=>{e.stopPropagation();const a=new Set(l);e.detail?a.add(t):a.delete(t),f(a)})});var t})):e("div",{class:"sui-cf-none"},n.noValues)))}(s,i):function(a){const{draft:s,column:i,text:l}=a,o=s.conditions.length?s.conditions:[n(i)],u=(e,t)=>{const n=o.slice();n[e]=t,a.onDraft({...s,conditions:n})},r=1===o.length&&!t.has(o[0].matchMode)&&(null==o[0].value||""===o[0].value);return e("div",{class:"sui-cf-body"},e("div",{class:"sui-cf-rows",role:"group","aria-label":a.text.title},o.map(((t,c)=>e("div",{class:"sui-cf-row",key:`c-${c}`,"data-row":!0,"data-index":c},e(y,{index:c,operator:s.operator,text:l,onOperator:e=>a.onDraft({...s,conditions:o,operator:e})}),e("sui-select",{class:"sui-cf-mode",size:"sm","aria-label":`${i.header}, ${c+1}`,options:b(i),value:t.matchMode,onSuiChange:e=>{e.stopPropagation();const a=e.detail;a&&a!==t.matchMode&&u(c,{matchMode:a,value:m(t,a)})}}),e("div",{class:"sui-cf-val"},e(g,{column:i,matchMode:t.matchMode,value:t.value,text:l,keyBase:`c${c}`,onValue:e=>u(c,{...t,value:e})})),r?e("span",{class:"sui-cf-remove-slot","aria-hidden":"true"}):e(S,{label:l.removeCondition,onRemove:e=>((e,t)=>{const l=o.filter(((a,t)=>t!==e));a.onDraft({...s,conditions:l.length?l:[n(i)]}),h(t,Math.max(0,e-1))})(c,e)}))))),e(w,{label:l.addCondition,onAdd:e=>{a.onDraft({...s,conditions:[...o,n(i)]}),h(e,o.length)}}))}(s),e("div",{class:"sui-cf-bar"},e("button",{type:"button",class:"sui-cf-clear",onClick:()=>s.onClear()},s.text.clear),e("sui-button",{class:"sui-cf-apply",variant:"brand",size:"sm",label:s.text.apply,disabled:o,onClick:()=>s.onApply()})))},C=s=>{const{column:n,matchMode:i,value:o,text:u,colKey:r}=s,c=d(i),f=t.has(i),p=l(n),b=a(n),m=e=>e.stopPropagation();let h;if(f)h=e("input",{type:"text",class:"sui-cf-rowbox","data-key":r,disabled:!0,value:c,"aria-label":u.valueFor});else if(!b||"in"!==i&&"notIn"!==i)if("date"===p){const a="between"===i,t=a?Array.isArray(o)?o.filter((e=>null!=e&&""!==e)).map(String):[]:null==o?"":String(o);h=e("sui-date-picker",{key:a?"r":"s","data-grow":!0,class:"sui-cf-rowpick",size:"sm",range:a,"aria-label":u.valueFor,placeholder:c,value:t,onSuiChange:e=>{m(e);const a=e.detail;s.onValue(Array.isArray(a)?a.length?[a[0]??null,a[1]??null]:void 0:a||void 0,!0)}})}else if("boolean"===p)h=e("sui-select",{"data-grow":!0,class:"sui-cf-rowpick",size:"sm",clearable:!0,"aria-label":u.valueFor,placeholder:c,options:[{value:"true",label:u.yes},{value:"false",label:u.no}],value:null==o||""===o?void 0:String(o),onSuiChange:e=>{m(e),s.onValue(e.detail||void 0,!0)}});else if("between"===i){const a=Array.isArray(o)?o:[null,null],t=(t,n)=>e("input",{type:"text",inputmode:"decimal",class:"sui-cf-rowbox","data-key":r,autocomplete:"off",value:null==a[t]?"":String(a[t]),placeholder:n,"aria-label":`${u.valueFor}, ${n}`,onInput:e=>{m(e);const a=Array.from(e.target.parentElement?.querySelectorAll("input.sui-cf-rowbox")||[]),t=[0,1].map((e=>a[e]?.value?a[e].value:null));s.onValue(null==t[0]&&null==t[1]?void 0:t,!1)}});h=[t(0,u.from),t(1,u.to)]}else h=e("input",{type:"text",inputmode:"number"===p?"decimal":void 0,class:"sui-cf-rowbox","data-key":r,"data-mode":i,autocomplete:"off",value:null==o?"":String(o),placeholder:c,"aria-label":u.valueFor,onInput:e=>{m(e),s.onValue(e.target.value,!1)}});else{const a=Array.isArray(o)?o.map(String):null==o||""===o?[]:[String(o)];h=e("sui-multi-select",{"data-grow":!0,class:"sui-cf-rowpick",size:"sm",maxChips:1,"aria-label":u.valueFor,placeholder:c,options:b.map((e=>({value:e.value,label:e.label}))),value:a,onSuiChange:e=>{m(e),s.onValue(e.detail&&e.detail.length?e.detail:void 0,!0)}})}return e("sui-input-group",{class:"sui-cf-rowgroup",size:"sm"},h,e("sui-icon-button",{class:{"sui-cf-modebtn":!0,on:s.changed},size:"sm",pill:!1,"data-col":r,"aria-label":u.modeFor(c),"aria-haspopup":"menu","aria-expanded":s.open?"true":"false",onClick:e=>{e.stopPropagation(),s.onModeButton(e.currentTarget)}},e("span",{class:{"sui-cf-token":!0,word:/[a-z]/i.test(v(i))},"aria-hidden":"true"},v(i))))};export{w as A,k as C,g as F,y as J,C as R,b as a,S as b,m as c,p as m}
@@ -0,0 +1 @@
1
+ import{p as i,H as o,h as s,a as n,t}from"./p-CeVlau-G.js";import{i as r,b as e}from"./p-Cs2X0Kih.js";import{d as a}from"./p-BHB1Wprj.js";import{G as u,a as c}from"./p-DdsE4HI6.js";import{d as b}from"./p-v0MrzKlW.js";const d=["ghost","outline","brand","accent","danger"],l=["sm","md","lg"],v=i(class extends o{constructor(i){super(),!1!==i&&this.__registerHost()}get host(){return this}icon;variant="ghost";size="md";tone;disabled=!1;loading=!1;noTooltip=!1;pill=!1;noTabStop=!1;type="button";form;name;value;href;target;rel;hostLabel;stopAria;hostState={};stopAriaState;connectedCallback(){a(this.host,(()=>this.btn)),this.stopAria=r(this.host,(i=>{this.hostLabel=i})),this.stopAriaState=e(this.host,(i=>{this.hostState={...this.hostState,...i}}))}disconnectedCallback(){this.stopAria?.(),this.stopAriaState?.(),this.stopAria=void 0,this.stopAriaState=void 0}btn;async setFocus(){this.btn?.focus()}get blocked(){return this.href?this.loading||this.disabled:this.loading&&!this.disabled}get linkRel(){return this.rel??("_blank"===this.target?"noopener":void 0)}onClick=i=>{this.blocked&&(i.preventDefault(),i.stopImmediatePropagation())};render(){const i=this.loading,o=this.disabled,t=!!this.href,r=d.includes(this.variant)?this.variant:"ghost",e=l.includes(this.size)?this.size:"md",a="ghost"===r||"outline"===r,b="inverse"===this.tone&&a,v="danger"===this.tone&&a,g=s(t?"a":"button",{key:"d257e81474796bef9e182e0648fd59820dffc015",ref:i=>this.btn=i,class:{"sui-ib":!0,[r]:!0,[e]:!0,pill:this.pill,inverse:b,"tone-danger":v,loading:i&&!o,disabled:t&&o},type:t?void 0:this.type,form:t?void 0:this.form,name:t?void 0:this.name,value:t?void 0:this.value,disabled:t?void 0:o,href:t&&!o?this.href:void 0,target:t&&!o?this.target:void 0,rel:t&&!o?this.linkRel:void 0,"aria-disabled":this.blocked?"true":void 0,tabIndex:this.noTabStop?-1:void 0,"aria-label":this.hostLabel,"aria-busy":i?"true":"false",onClick:this.onClick,...this.hostState},i?s(u,{glyph:c,class:"sui-ib-spin sui-ib-icon"}):[this.icon?s("i",{class:`${this.icon} sui-ib-icon`,"aria-hidden":"true"}):null,s("slot",null)]);return s(n,{key:"68454d2f097a35c705efe2e59abc22c443158400"},this.hostLabel&&!this.noTooltip?s("sui-tooltip",{content:this.hostLabel,position:"top"},g):g)}static get style(){return".sc-sui-icon-button-h{display:inline-block;vertical-align:middle;flex-shrink:0;font-family:var(--font-sans)}.sui-ib.sc-sui-icon-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex-shrink:0;padding:0;margin:0;border:1px solid transparent;border-radius:var(--sui-button-radius, var(--radius-md));font-family:var(--font-sans);line-height:1;cursor:pointer;user-select:none;transition:background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out)}.sui-ib.pill.sc-sui-icon-button{border-radius:var(--radius-pill)}.sui-ib.sc-sui-icon-button:focus-visible{outline:2px solid var(--focus-ring);outline-offset:var(--sui-button-focus-offset, 1px);box-shadow:var(--sui-button-focus-shadow, var(--focus-shadow))}.sui-ib.sm.sc-sui-icon-button{width:var(--control-sm);height:var(--sui-button-height, var(--control-sm))}.sui-ib.md.sc-sui-icon-button{width:var(--control-md);height:var(--sui-button-height, var(--control-md))}.sui-ib.lg.sc-sui-icon-button{width:var(--control-lg);height:var(--sui-button-height, var(--control-lg))}.sui-ib.sm.sc-sui-icon-button .sui-ib-icon.sc-sui-icon-button{font-size:var(--icon-size-sm)}.sui-ib.md.sc-sui-icon-button .sui-ib-icon.sc-sui-icon-button{font-size:var(--icon-size-md)}.sui-ib.lg.sc-sui-icon-button .sui-ib-icon.sc-sui-icon-button{font-size:var(--icon-size-lg)}.sui-ib.ghost.sc-sui-icon-button{background:transparent;color:var(--ink-muted);border-color:transparent}.sui-ib.ghost.sc-sui-icon-button:hover:not(:disabled){background:var(--brand-soft);color:var(--ink)}.sui-ib.ghost.sc-sui-icon-button:active:not(:disabled){background:color-mix(in srgb, var(--brand-soft) 92%, var(--ink));color:var(--ink)}.sui-ib.outline.sc-sui-icon-button{background:var(--surface);color:var(--ink-muted);border-color:var(--sui-button-border, var(--control-border))}.sui-ib.outline.sc-sui-icon-button:hover:not(:disabled){background:var(--brand-soft);color:var(--ink)}.sui-ib.outline.sc-sui-icon-button:active:not(:disabled){background:color-mix(in srgb, var(--brand-soft) 92%, var(--ink));color:var(--ink)}.sui-ib.brand.sc-sui-icon-button{background:var(--brand);color:var(--brand-contrast)}.sui-ib.brand.sc-sui-icon-button:hover:not(:disabled){background:var(--brand-hover)}.sui-ib.brand.sc-sui-icon-button:focus-visible{outline-color:var(--sui-button-focus-brand, var(--focus-ring))}.sui-ib.brand.sc-sui-icon-button:active:not(:disabled){background:var(--brand-active)}.sui-ib.accent.sc-sui-icon-button{background:var(--accent);color:var(--accent-contrast)}.sui-ib.accent.sc-sui-icon-button:hover:not(:disabled){background:var(--accent-hover)}.sui-ib.accent.sc-sui-icon-button:focus-visible{outline-color:var(--sui-button-focus-accent, var(--focus-ring))}.sui-ib.accent.sc-sui-icon-button:active:not(:disabled){background:var(--accent-active)}.sui-ib.danger.sc-sui-icon-button{background:var(--danger-fill);color:var(--danger-contrast);box-shadow:inset 0 0 0 1.5px var(--danger-fill-edge)}.sui-ib.danger.sc-sui-icon-button:disabled:not(.loading),.sui-ib.danger.disabled.sc-sui-icon-button{box-shadow:none}.sui-ib.danger.sc-sui-icon-button:hover:not(:disabled){background:var(--danger-hover)}.sui-ib.danger.sc-sui-icon-button:focus-visible{outline-color:var(--sui-button-focus-danger, var(--focus-ring))}.sui-ib.danger.sc-sui-icon-button:active:not(:disabled){background:var(--danger-active)}.sui-ib.ghost.tone-danger.sc-sui-icon-button,.sui-ib.outline.tone-danger.sc-sui-icon-button{color:var(--danger)}.sui-ib.outline.tone-danger.sc-sui-icon-button{border-color:var(--danger)}.sui-ib.ghost.tone-danger.sc-sui-icon-button:hover:not(:disabled),.sui-ib.outline.tone-danger.sc-sui-icon-button:hover:not(:disabled){background:var(--danger-soft);color:var(--danger)}.sui-ib.ghost.tone-danger.sc-sui-icon-button:active:not(:disabled),.sui-ib.outline.tone-danger.sc-sui-icon-button:active:not(:disabled){background:color-mix(in srgb, var(--danger-soft) 84%, var(--danger));color:var(--danger)}.sui-ib.inverse.sc-sui-icon-button{--focus-ring:var(--ink-inverse);--focus-shadow:none}.sui-ib.ghost.inverse.sc-sui-icon-button{background:transparent;color:var(--ink-inverse-muted);border-color:transparent}.sui-ib.ghost.inverse.sc-sui-icon-button:hover:not(:disabled){background:var(--border-inverse);color:var(--ink-inverse)}.sui-ib.ghost.inverse.sc-sui-icon-button:active:not(:disabled){background:color-mix(in srgb, var(--ink-inverse) 22%, transparent);color:var(--ink-inverse)}.sui-ib.outline.inverse.sc-sui-icon-button{background:transparent;color:var(--ink-inverse-muted);border-color:var(--border-inverse)}.sui-ib.outline.inverse.sc-sui-icon-button:hover:not(:disabled){background:var(--border-inverse);color:var(--ink-inverse)}.sui-ib.outline.inverse.sc-sui-icon-button:active:not(:disabled){background:color-mix(in srgb, var(--ink-inverse) 22%, transparent);color:var(--ink-inverse)}.sui-ib.sc-sui-icon-button:disabled{cursor:not-allowed}.sui-ib.loading.sc-sui-icon-button{cursor:progress;pointer-events:none}.sui-ib.disabled.sc-sui-icon-button{pointer-events:none}.sui-ib.sc-sui-icon-button:disabled:not(.loading),.sui-ib.disabled.sc-sui-icon-button:not(.loading){color:var(--disabled-ink);border-color:transparent}.sui-ib.accent.sc-sui-icon-button:disabled:not(.loading),.sui-ib.brand.sc-sui-icon-button:disabled:not(.loading),.sui-ib.danger.sc-sui-icon-button:disabled:not(.loading),.sui-ib.accent.disabled.sc-sui-icon-button,.sui-ib.brand.disabled.sc-sui-icon-button,.sui-ib.danger.disabled.sc-sui-icon-button{background:var(--disabled-bg)}.sui-ib.outline.sc-sui-icon-button:disabled:not(.loading),.sui-ib.outline.disabled.sc-sui-icon-button{background:var(--surface);border-color:var(--border);color:var(--ink-placeholder)}.sui-ib.ghost.sc-sui-icon-button:disabled:not(.loading),.sui-ib.ghost.disabled.sc-sui-icon-button{background:transparent;color:var(--ink-placeholder)}.sui-ib.inverse.sc-sui-icon-button:disabled:not(.loading),.sui-ib.inverse.disabled.sc-sui-icon-button{background:transparent;color:var(--ink-inverse-faint)}.sui-ib.outline.inverse.sc-sui-icon-button:disabled:not(.loading),.sui-ib.outline.inverse.disabled.sc-sui-icon-button{border-color:var(--border-inverse)}.sui-ib-spin.sc-sui-icon-button{animation:sb-spin 0.8s linear infinite}@media (prefers-reduced-motion: reduce){.sui-ib-spin.sc-sui-icon-button{animation-duration:2s}}@media (forced-colors: active){.sui-ib.disabled.sc-sui-icon-button{color:GrayText;border-color:GrayText}}"}},[774,"sui-icon-button",{icon:[1],variant:[513],size:[513],tone:[513],disabled:[516],loading:[516],noTooltip:[516,"no-tooltip"],pill:[516],noTabStop:[516,"no-tab-stop"],type:[513],form:[1],name:[1],value:[1],href:[1],target:[1],rel:[1],hostLabel:[32],hostState:[32],setFocus:[64]}]);function g(){"undefined"!=typeof customElements&&["sui-icon-button","sui-tooltip"].forEach((i=>{switch(i){case"sui-icon-button":customElements.get(t(i))||customElements.define(t(i),v);break;case"sui-tooltip":customElements.get(t(i))||b()}}))}export{v as SuiIconButton,g as defineCustomElement}
@@ -0,0 +1 @@
1
+ import{h as l}from"./p-CeVlau-G.js";import{G as e,c as i}from"./p-DdsE4HI6.js";function r(l,e,i){if(l)return i?`${l}-err`:e?`${l}-help`:void 0}const s=({label:r,required:s,help:d,error:a,htmlFor:o,descId:u},p)=>l("div",{class:{"sui-field":!0,invalid:!!a}},r?l("label",{class:"sui-field-label",htmlFor:o},r,s?l("span",{class:"sui-field-req","aria-hidden":"true"},"*"):null):null,p,a?l("div",{class:"sui-field-error",id:u?`${u}-err`:void 0,role:"alert"},l(e,{glyph:i}),a):d?l("div",{class:"sui-field-help",id:u?`${u}-help`:void 0},d):null);export{s as F,r as d}
@@ -0,0 +1 @@
1
+ let t=0;function u(u="sui"){return t+=1,`${u}-${t.toString(36)}`}export{u}
@@ -0,0 +1 @@
1
+ import{Slice as t,Fragment as e,Mark as r,MarkType as i,ReplaceError as n,Node as s}from"./p-BU3LJP5B.js";const h=Math.pow(2,16);function l(t,e){return t+e*h}function o(t){return 65535&t}class u{constructor(t,e,r){this.pos=t,this.delInfo=e,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class f{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&f.empty)return f.empty}recover(t){let e=0,r=o(t);if(!this.inverted)for(let t=0;t<r;t++)e+=this.ranges[3*t+2]-this.ranges[3*t+1];return this.ranges[3*r]+e+function(t){return(t-(65535&t))/h}(t)}mapResult(t,e=1){return this._map(t,e,!1)}map(t,e=1){return this._map(t,e,!0)}_map(t,e,r){let i=0,n=this.inverted?2:1,s=this.inverted?1:2;for(let h=0;h<this.ranges.length;h+=3){let o=this.ranges[h]-(this.inverted?i:0);if(o>t)break;let f=this.ranges[h+n],a=this.ranges[h+s],c=o+f;if(t<=c){let n=o+i+((f?t==o?-1:t==c?1:e:e)<0?0:a);if(r)return n;let s=t==(e<0?o:c)?null:l(h/3,t-o),p=t==o?2:t==c?1:4;return(e<0?t!=o:t!=c)&&(p|=8),new u(n,p,s)}i+=a-f}return r?t+i:new u(t+i,0,null)}touches(t,e){let r=0,i=o(e),n=this.inverted?2:1,s=this.inverted?1:2;for(let e=0;e<this.ranges.length;e+=3){let h=this.ranges[e]-(this.inverted?r:0);if(h>t)break;let l=this.ranges[e+n];if(t<=h+l&&e==3*i)return!0;r+=this.ranges[e+s]-l}return!1}forEach(t){let e=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,n=0;i<this.ranges.length;i+=3){let s=this.ranges[i],h=s-(this.inverted?n:0),l=s+(this.inverted?0:n),o=this.ranges[i+e],u=this.ranges[i+r];t(h,h+o,l,l+u),n+=u-o}}invert(){return new f(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return 0==t?f.empty:new f(t<0?[0,-t,0]:[0,0,t])}}f.empty=new f([]);class a{constructor(t,e,r=0,i=(t?t.length:0)){this.mirror=e,this.from=r,this.to=i,this._maps=t||[],this.ownData=!(t||e)}get maps(){return this._maps}slice(t=0,e=this.maps.length){return new a(this._maps,this.mirror,t,e)}appendMap(t,e){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),null!=e&&this.setMirror(this._maps.length-1,e)}appendMapping(t){for(let e=0,r=this._maps.length;e<t._maps.length;e++){let i=t.getMirror(e);this.appendMap(t._maps[e],null!=i&&i<e?r+i:void 0)}}getMirror(t){if(this.mirror)for(let e=0;e<this.mirror.length;e++)if(this.mirror[e]==t)return this.mirror[e+(e%2?-1:1)]}setMirror(t,e){this.mirror||(this.mirror=[]),this.mirror.push(t,e)}appendMappingInverted(t){for(let e=t.maps.length-1,r=this._maps.length+t._maps.length;e>=0;e--){let i=t.getMirror(e);this.appendMap(t._maps[e].invert(),null!=i&&i>e?r-i-1:void 0)}}invert(){let t=new a;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,e);return t}mapResult(t,e=1){return this._map(t,e,!1)}_map(t,e,r){let i=0;for(let r=this.from;r<this.to;r++){let n=this._maps[r].mapResult(t,e);if(null!=n.recover){let e=this.getMirror(r);if(null!=e&&e>r&&e<this.to){r=e,t=this._maps[e].recover(n.recover);continue}}i|=n.delInfo,t=n.pos}return r?t:new u(t,i,null)}}const c=Object.create(null);class p{getMap(){return f.empty}merge(t){return null}static fromJSON(t,e){if(!e||!e.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=c[e.stepType];if(!r)throw new RangeError(`No step type ${e.stepType} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in c)throw new RangeError("Duplicate use of step JSON ID "+t);return c[t]=e,e.prototype.jsonID=t,e}}class w{constructor(t,e){this.doc=t,this.failed=e}static ok(t){return new w(t,null)}static fail(t){return new w(null,t)}static fromReplace(t,e,r,i){try{return w.ok(t.replace(e,r,i))}catch(t){if(t instanceof n)return w.fail(t.message);throw t}}}function d(t,r,i){let n=[];for(let e=0;e<t.childCount;e++){let s=t.child(e);s.content.size&&(s=s.copy(d(s.content,r,s))),s.isInline&&(s=r(s,i,e)),n.push(s)}return e.fromArray(n)}class m extends p{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),i=e.resolve(this.from),n=i.node(i.sharedDepth(this.to)),s=new t(d(r.content,((t,e)=>t.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),n),r.openStart,r.openEnd);return w.fromReplace(e,this.from,this.to,s)}invert(){return new g(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new m(e.pos,r.pos,this.mark)}merge(t){return t instanceof m&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new m(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new m(e.from,e.to,t.markFromJSON(e.mark))}}p.jsonID("addMark",m);class g extends p{constructor(t,e,r){super(),this.from=t,this.to=e,this.mark=r}apply(e){let r=e.slice(this.from,this.to),i=new t(d(r.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),e),r.openStart,r.openEnd);return w.fromReplace(e,this.from,this.to,i)}invert(){return new m(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return e.deleted&&r.deleted||e.pos>=r.pos?null:new g(e.pos,r.pos,this.mark)}merge(t){return t instanceof g&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new g(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new g(e.from,e.to,t.markFromJSON(e.mark))}}p.jsonID("removeMark",g);class S extends p{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let i=r.nodeAt(this.pos);if(!i)return w.fail("No node at mark step's position");let n=i.type.create(i.attrs,null,this.mark.addToSet(i.marks));return w.fromReplace(r,this.pos,this.pos+1,new t(e.from(n),0,i.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let r=0;r<e.marks.length;r++)if(!e.marks[r].isInSet(t))return new S(this.pos,e.marks[r]);return new S(this.pos,this.mark)}}return new y(this.pos,this.mark)}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new S(e.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new S(e.pos,t.markFromJSON(e.mark))}}p.jsonID("addNodeMark",S);class y extends p{constructor(t,e){super(),this.pos=t,this.mark=e}apply(r){let i=r.nodeAt(this.pos);if(!i)return w.fail("No node at mark step's position");let n=i.type.create(i.attrs,null,this.mark.removeFromSet(i.marks));return w.fromReplace(r,this.pos,this.pos+1,new t(e.from(n),0,i.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);return e&&this.mark.isInSet(e.marks)?new S(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new y(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new y(e.pos,t.markFromJSON(e.mark))}}p.jsonID("removeNodeMark",y);class N extends p{constructor(t,e,r,i=!1){super(),this.from=t,this.to=e,this.slice=r,this.structure=i}apply(t){return this.structure&&v(t,this.from,this.to)?w.fail("Structure replace would overwrite content"):w.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new f([this.from,this.to-this.from,this.slice.size])}invert(t){return new N(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),r=this.from==this.to&&N.MAP_BIAS<0?e:t.mapResult(this.from,1);return r.deletedAcross&&e.deletedAcross?null:new N(r.pos,Math.max(r.pos,e.pos),this.slice,this.structure)}merge(e){if(!(e instanceof N)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let r=this.slice.size+e.slice.size==0?t.empty:new t(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new N(e.from,this.to,r,this.structure)}}{let r=this.slice.size+e.slice.size==0?t.empty:new t(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new N(this.from,this.to+(e.to-e.from),r,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new N(r.from,r.to,t.fromJSON(e,r.slice),!!r.structure)}}N.MAP_BIAS=1,p.jsonID("replace",N);class k extends p{constructor(t,e,r,i,n,s,h=!1){super(),this.from=t,this.to=e,this.gapFrom=r,this.gapTo=i,this.slice=n,this.insert=s,this.structure=h}apply(t){if(this.structure&&(v(t,this.from,this.gapFrom)||v(t,this.gapTo,this.to)))return w.fail("Structure gap-replace would overwrite content");let e=t.slice(this.gapFrom,this.gapTo);if(e.openStart||e.openEnd)return w.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,e.content);return r?w.fromReplace(t,this.from,this.to,r):w.fail("Content does not fit in gap")}getMap(){return new f([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let e=this.gapTo-this.gapFrom;return new k(this.from,this.from+this.slice.size+e,this.from+this.insert,this.from+this.insert+e,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let e=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?e.pos:t.map(this.gapFrom,-1),n=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return e.deletedAcross&&r.deletedAcross||i<e.pos||n>r.pos?null:new k(e.pos,r.pos,i,n,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(e,r){if("number"!=typeof r.from||"number"!=typeof r.to||"number"!=typeof r.gapFrom||"number"!=typeof r.gapTo||"number"!=typeof r.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new k(r.from,r.to,r.gapFrom,r.gapTo,t.fromJSON(e,r.slice),r.insert,!!r.structure)}}function v(t,e,r){let i=t.resolve(e),n=r-e,s=i.depth;for(;n>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,n--;if(n>0){let t=i.node(s).maybeChild(i.indexAfter(s));for(;n>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,n--}}return!1}function M(r,i,n,s=n.contentMatch,h=!0){let l=r.doc.nodeAt(i),o=[],u=i+1;for(let i=0;i<l.childCount;i++){let f=l.child(i),a=u+f.nodeSize,c=s.matchType(f.type);if(c){s=c;for(let t=0;t<f.marks.length;t++)n.allowsMarkType(f.marks[t].type)||r.step(new g(u,a,f.marks[t]));if(h&&f.isText&&"pre"!=n.whitespace){let r,i,s=/\r?\n|\r/g;for(;r=s.exec(f.text);)i||(i=new t(e.from(n.schema.text(" ",n.allowedMarks(f.marks))),0,0)),o.push(new N(u+r.index,u+r.index+r[0].length,i))}}else o.push(new N(u,a,t.empty));u=a}if(!s.validEnd){let i=s.fillBefore(e.empty,!0);r.replace(u,u,new t(i,0,0))}for(let t=o.length-1;t>=0;t--)r.step(o[t])}function O(t,e,r){return(0==e||t.canReplace(e,t.childCount))&&(r==t.childCount||t.canReplace(0,r))}function b(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,n=0;;--r){let s=t.$from.node(r),h=t.$from.index(r)+i,l=t.$to.indexAfter(r)-n;if(r<t.depth&&s.canReplace(h,l,e))return r;if(0==r||s.type.spec.isolating||!O(s,h,l))break;h&&(i=1),l<s.childCount&&(n=1)}return null}function J(t,e,r=null,i=t){let n=function(t,e){let{parent:r,startIndex:i,endIndex:n}=t,s=r.contentMatchAt(i).findWrapping(e);return s&&r.canReplaceWith(i,n,s.length?s[0]:e)?s:null}(t,e),s=n&&function(t,e){let{parent:r,startIndex:i,endIndex:n}=t,s=r.child(i),h=e.contentMatch.findWrapping(s.type);if(!h)return null;let l=(h.length?h[h.length-1]:e).contentMatch;for(let t=i;l&&t<n;t++)l=l.matchType(r.child(t).type);return l&&l.validEnd?h:null}(i,e);return s?n.map(R).concat({type:e,attrs:r}).concat(s.map(R)):null}function R(t){return{type:t,attrs:null}}function E(t,e,r,i){e.forEach(((n,s)=>{if(n.isText){let h,l=/\r?\n|\r/g;for(;h=l.exec(n.text);){let n=t.mapping.slice(i).map(r+1+s+h.index);t.replaceWith(n,n+1,e.type.schema.linebreakReplacement.create())}}}))}function I(t,e,r,i){e.forEach(((n,s)=>{if(n.type==n.type.schema.linebreakReplacement){let n=t.mapping.slice(i).map(r+1+s);t.replaceWith(n,n+1,e.type.schema.text("\n"))}}))}function T(t,e,r=1,i){let n=t.resolve(e),s=n.depth-r,h=i&&i[i.length-1]||n.parent;if(s<0||n.parent.type.spec.isolating||!n.parent.canReplace(n.index(),n.parent.childCount)||!h.type.validContent(n.parent.content.cutByIndex(n.index(),n.parent.childCount)))return!1;for(let t=n.depth-1,e=r-2;t>s;t--,e--){let r=n.node(t),s=n.index(t);if(r.type.spec.isolating)return!1;let h=r.content.cutByIndex(s,r.childCount),l=i&&i[e+1];l&&(h=h.replaceChild(0,l.type.create(l.attrs)));let o=i&&i[e]||r;if(!r.canReplace(s+1,r.childCount)||!o.type.validContent(h))return!1}let l=n.indexAfter(s),o=i&&i[0];return n.node(s).canReplaceWith(l,l,o?o.type:n.node(s+1).type)}function x(t,e){let r=t.resolve(e),i=r.index();return j(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(i,i+1)}function j(t,e){return!(!t||!e||t.isLeaf||!function(t,e){e.content.size||t.type.compatibleContent(e.type);let r=t.contentMatchAt(t.childCount),{linebreakReplacement:i}=t.type.schema;for(let n=0;n<e.childCount;n++){let s=e.child(n);if(r=r.matchType(s.type==i?t.type.schema.nodes.text:s.type),!r)return!1;if(!t.type.allowsMarks(s.marks))return!1}return r.validEnd}(t,e))}function A(t,e,r=-1){let i=t.resolve(e);for(let t=i.depth;;t--){let n,s,h=i.index(t);if(t==i.depth?(n=i.nodeBefore,s=i.nodeAfter):r>0?(n=i.node(t+1),h++,s=i.node(t).maybeChild(h)):(n=i.node(t).maybeChild(h-1),s=i.node(t+1)),n&&!n.isTextblock&&j(n,s)&&i.node(t).canReplace(h,h+1))return e;if(0==t)break;e=r<0?i.before(t):i.after(t)}}function D(t,e,r){let i=t.resolve(e);if(!r.content.size)return e;let n=r.content;for(let t=0;t<r.openStart;t++)n=n.firstChild.content;for(let t=1;t<=(0==r.openStart&&r.size?2:1);t++)for(let e=i.depth;e>=0;e--){let r=e==i.depth?0:i.pos<=(i.start(e+1)+i.end(e+1))/2?-1:1,s=i.index(e)+(r>0?1:0),h=i.node(e),l=!1;if(1==t)l=h.canReplace(s,s,n);else{let t=h.contentMatchAt(s).findWrapping(n.firstChild.type);l=t&&h.canReplaceWith(s,s,t[0])}if(l)return 0==r?i.pos:r<0?i.before(e+1):i.after(e+1)}return null}function $(e,r,i=r,n=t.empty){if(r==i&&!n.size)return null;let s=e.resolve(r),h=e.resolve(i);return B(s,h,n)?new N(r,i,n):new F(s,h,n).fit()}function B(t,e,r){return!r.openStart&&!r.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),r.content)}p.jsonID("replaceAround",k);class F{constructor(t,r,i){this.$from=t,this.$to=r,this.unplaced=i,this.frontier=[],this.placed=e.empty;for(let e=0;e<=t.depth;e++){let r=t.node(e);this.frontier.push({type:r.type,match:r.contentMatchAt(t.indexAfter(e))})}for(let r=t.depth;r>0;r--)this.placed=e.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),r=this.placed.size-this.depth-this.$from.depth,i=this.$from,n=this.close(e<0?this.$to:i.doc.resolve(e));if(!n)return null;let s=this.placed,h=i.depth,l=n.depth;for(;h&&l&&1==s.childCount;)s=s.firstChild.content,h--,l--;let o=new t(s,h,l);return e>-1?new k(i.pos,e,this.$to.pos,this.$to.end(),o,r):o.size||i.pos!=this.$to.pos?new N(i.pos,n.pos,o):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<t;r++){let n=e.firstChild;if(e.childCount>1&&(i=0),n.type.spec.isolating&&i<=r){t=r;break}e=n.content}for(let r=1;r<=2;r++)for(let i=1==r?t:this.unplaced.openStart;i>=0;i--){let t,n=null;i?(n=q(this.unplaced.content,i-1).firstChild,t=n.content):t=this.unplaced.content;let s=t.firstChild;for(let t=this.depth;t>=0;t--){let h,{type:l,match:o}=this.frontier[t],u=null;if(1==r&&(s?o.matchType(s.type)||(u=o.fillBefore(e.from(s),!1)):n&&l.compatibleContent(n.type)))return{sliceDepth:i,frontierDepth:t,parent:n,inject:u};if(2==r&&s&&(h=o.findWrapping(s.type)))return{sliceDepth:i,frontierDepth:t,parent:n,wrap:h};if(n&&o.matchType(n.type))break}}}openMore(){let{content:e,openStart:r,openEnd:i}=this.unplaced;return!(G(e,-1)<=r||(this.unplaced.size>1&&G(e,1)>i&&i++,this.unplaced=new t(e,r+1,i),0))}dropNode(){let{content:e,openStart:r,openEnd:i}=this.unplaced,n=q(e,r);if(n.childCount<=1&&r>0){let s=e.size-r<=r+n.size;this.unplaced=new t(_(e,r-1,1),r-1,s?r-1:i)}else this.unplaced=new t(_(e,r,1),r,i)}placeNodes({sliceDepth:r,frontierDepth:i,parent:n,inject:s,wrap:h}){for(;this.depth>i;)this.closeFrontierNode();if(h)for(let t=0;t<h.length;t++)this.openFrontierNode(h[t]);let l=this.unplaced,o=n?n.content:l.content,u=l.openStart-r,f=0,a=[],{match:c,type:p}=this.frontier[i];if(s){for(let t=0;t<s.childCount;t++)a.push(s.child(t));c=c.matchFragment(s)}let w=o.size+r-(l.content.size-l.openEnd);for(;f<o.childCount;){let t=o.child(f),e=c.matchType(t.type);if(!e)break;f++,(f>1||0==u||t.content.size)&&(c=e,a.push(P(t.mark(p.allowedMarks(t.marks)),1==f?u:0,f==o.childCount?w:-1)))}let d=f==o.childCount;d||(w=-1),this.placed=W(this.placed,i,e.from(a)),this.frontier[i].match=c,d&&w<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=o;t<w;t++){let t=e.lastChild;this.frontier.push({type:t.type,match:t.contentMatchAt(t.childCount)}),e=t.content}this.unplaced=d?0==r?t.empty:new t(_(l.content,r-1,1),r-1,w<0?l.openEnd:r-1):new t(_(l.content,r,f),l.openStart,l.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t,e=this.frontier[this.depth];if(!e.type.isTextblock||!C(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:r,type:i}=this.frontier[e],n=e<t.depth&&t.end(e+1)==t.pos+(t.depth-(e+1)),s=C(t,e,i,r,n);if(s){for(let r=e-1;r>=0;r--){let{match:e,type:i}=this.frontier[r],n=C(t,r,i,e,!0);if(!n||n.childCount)continue t}return{depth:e,fit:s,move:n?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=W(this.placed,e.depth,e.fit)),t=e.move;for(let r=e.depth+1;r<=t.depth;r++){let e=t.node(r),i=e.type.contentMatch.fillBefore(e.content,!0,t.index(r));this.openFrontierNode(e.type,e.attrs,i)}return t}openFrontierNode(t,r=null,i){let n=this.frontier[this.depth];n.match=n.match.matchType(t),this.placed=W(this.placed,this.depth,e.from(t.create(r,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(e.empty,!0);t.childCount&&(this.placed=W(this.placed,this.frontier.length,t))}}function _(t,e,r){return 0==e?t.cutByIndex(r,t.childCount):t.replaceChild(0,t.firstChild.copy(_(t.firstChild.content,e-1,r)))}function W(t,e,r){return 0==e?t.append(r):t.replaceChild(t.childCount-1,t.lastChild.copy(W(t.lastChild.content,e-1,r)))}function q(t,e){for(let r=0;r<e;r++)t=t.firstChild.content;return t}function P(t,r,i){if(r<=0)return t;let n=t.content;return r>1&&(n=n.replaceChild(0,P(n.firstChild,r-1,1==n.childCount?i-1:0))),r>0&&(n=t.type.contentMatch.fillBefore(n).append(n),i<=0&&(n=n.append(t.type.contentMatch.matchFragment(n).fillBefore(e.empty,!0)))),t.copy(n)}function C(t,e,r,i,n){let s=t.node(e),h=n?t.indexAfter(e):t.index(e);if(h==s.childCount&&!r.compatibleContent(s.type))return null;let l=i.fillBefore(s.content,!0,h);return l&&!function(t,e,r){for(let i=r;i<e.childCount;i++)if(!t.allowsMarks(e.child(i).marks))return!0;return!1}(r,s.content,h)?l:null}function G(t,e){for(let r=0;;r++){let i=e<0?t.firstChild:t.lastChild;if(!i||i.isAtom)return r;t=i.content}}function L(t,r,i,n,s){if(r<i){let e=t.firstChild;t=t.replaceChild(0,e.copy(L(e.content,r+1,i,n,e)))}if(r>n){let r=s.contentMatchAt(0),i=r.fillBefore(t).append(t);t=i.append(r.matchFragment(i).fillBefore(e.empty,!0))}return t}function V(t,e){let r=[];for(let i=Math.min(t.depth,e.depth);i>=0;i--){let n=t.start(i);if(n<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(n==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==n-1)&&r.push(i)}return r}class K extends p{constructor(t,e,r){super(),this.pos=t,this.attr=e,this.value=r}apply(r){let i=r.nodeAt(this.pos);if(!i)return w.fail("No node at attribute step's position");let n=Object.create(null);for(let t in i.attrs)n[t]=i.attrs[t];n[this.attr]=this.value;let s=i.type.create(n,null,i.marks);return w.fromReplace(r,this.pos,this.pos+1,new t(e.from(s),0,i.isLeaf?0:1))}getMap(){return f.empty}invert(t){return new K(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new K(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new K(e.pos,e.attr,e.value)}}p.jsonID("attr",K);class U extends p{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let r in t.attrs)e[r]=t.attrs[r];e[this.attr]=this.value;let r=t.type.create(e,t.content,t.marks);return w.ok(r)}getMap(){return f.empty}invert(t){return new U(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new U(e.attr,e.value)}}p.jsonID("docAttr",U);let z=class extends Error{};z=function t(e){let r=Error.call(this,e);return r.__proto__=t.prototype,r},(z.prototype=Object.create(Error.prototype)).constructor=z,z.prototype.name="TransformError";class H{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new a}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new z(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}changedRange(){let t=1e9,e=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(t=i.map(t,1),e=i.map(e,-1)),i.forEach(((r,i,n,s)=>{t=Math.min(t,n),e=Math.max(e,s)}))}return 1e9==t?null:{from:t,to:e}}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(e,r=e,i=t.empty){let n=$(this.doc,e,r,i);return n&&this.step(n),this}replaceWith(r,i,n){return this.replace(r,i,new t(e.from(n),0,0))}delete(e,r){return this.replace(e,r,t.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(e,r,i){return function(e,r,i,n){if(!n.size)return e.deleteRange(r,i);let s=e.doc.resolve(r),h=e.doc.resolve(i);if(B(s,h,n))return e.step(new N(r,i,n));let l=V(s,h);0==l[l.length-1]&&l.pop();let o=-(s.depth+1);l.unshift(o);for(let t=s.depth,e=s.pos-1;t>0;t--,e--){let r=s.node(t).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(t)>-1?o=t:s.before(t)==e&&l.splice(1,0,-t)}let u=l.indexOf(o),f=[],a=n.openStart;for(let t=n.content,e=0;;e++){let r=t.firstChild;if(f.push(r),e==n.openStart)break;t=r.content}for(let t=a-1;t>=0;t--){let e=f[t],r=(c=e.type).spec.defining||c.spec.definingForContent;if(r&&!e.sameMarkup(s.node(Math.abs(o)-1)))a=t;else if(r||!e.type.isTextblock)break}var c;for(let r=n.openStart;r>=0;r--){let o=(r+a+1)%(n.openStart+1),c=f[o];if(c)for(let r=0;r<l.length;r++){let f=l[(r+u)%l.length],a=!0;f<0&&(a=!1,f=-f);let p=s.node(f-1),w=s.index(f-1);if(p.canReplaceWith(w,w,c.type,c.marks))return e.replace(s.before(f),a?h.after(f):i,new t(L(n.content,0,n.openStart,o),o,n.openEnd))}}let p=e.steps.length;for(let t=l.length-1;t>=0&&(e.replace(r,i,n),!(e.steps.length>p));t--){let e=l[t];e<0||(r=s.before(e),i=h.after(e))}}(this,e,r,i),this}replaceRangeWith(r,i,n){return function(r,i,n,s){if(!s.isInline&&i==n&&r.doc.resolve(i).parent.content.size){let t=function(t,e,r){let i=t.resolve(e);if(i.parent.canReplaceWith(i.index(),i.index(),r))return e;if(0==i.parentOffset)for(let t=i.depth-1;t>=0;t--){let e=i.index(t);if(i.node(t).canReplaceWith(e,e,r))return i.before(t+1);if(e>0)return null}if(i.parentOffset==i.parent.content.size)for(let t=i.depth-1;t>=0;t--){let e=i.indexAfter(t);if(i.node(t).canReplaceWith(e,e,r))return i.after(t+1);if(e<i.node(t).childCount)return null}return null}(r.doc,i,s.type);null!=t&&(i=n=t)}r.replaceRange(i,n,new t(e.from(s),0,0))}(this,r,i,n),this}deleteRange(t,e){return function(t,e,r){let i=t.doc.resolve(e),n=t.doc.resolve(r);if(i.parent.isTextblock&&n.parent.isTextblock&&i.start()!=n.start()&&0==i.parentOffset&&0==n.parentOffset){let s=i.sharedDepth(r),h=!1;for(let t=i.depth;t>s;t--)i.node(t).type.spec.isolating&&(h=!0);for(let t=n.depth;t>s;t--)n.node(t).type.spec.isolating&&(h=!0);if(!h){for(let t=i.depth;t>0&&e==i.start(t);t--)e=i.before(t);for(let t=n.depth;t>0&&r==n.start(t);t--)r=n.before(t);i=t.doc.resolve(e),n=t.doc.resolve(r)}}let s=V(i,n);for(let e=0;e<s.length;e++){let r=s[e],h=e==s.length-1;if(h&&0==r||i.node(r).type.contentMatch.validEnd)return t.delete(i.start(r),n.end(r));if(r>0&&(h||i.node(r-1).canReplace(i.index(r-1),n.indexAfter(r-1))))return t.delete(i.before(r),n.after(r))}for(let s=1;s<=i.depth&&s<=n.depth;s++)if(e-i.start(s)==i.depth-s&&r>i.end(s)&&n.end(s)-r!=n.depth-s&&i.start(s-1)==n.start(s-1)&&i.node(s-1).canReplace(i.index(s-1),n.index(s-1)))return t.delete(i.before(s),r);t.delete(e,r)}(this,t,e),this}lift(r,i){return function(r,i,n){let{$from:s,$to:h,depth:l}=i,o=s.before(l+1),u=h.after(l+1),f=o,a=u,c=e.empty,p=0;for(let t=l,r=!1;t>n;t--)r||s.index(t)>0?(r=!0,c=e.from(s.node(t).copy(c)),p++):f--;let w=e.empty,d=0;for(let t=l,r=!1;t>n;t--)r||h.after(t+1)<h.end(t)?(r=!0,w=e.from(h.node(t).copy(w)),d++):a++;r.step(new k(f,a,o,u,new t(c.append(w),p,d),c.size-p,!0))}(this,r,i),this}join(e,r=1){return function(e,r,i){let n=null,{linebreakReplacement:s}=e.doc.type.schema,h=e.doc.resolve(r-i),l=h.node().type;if(s&&l.inlineContent){let t="pre"==l.whitespace,e=!!l.contentMatch.matchType(s);t&&!e?n=!1:!t&&e&&(n=!0)}let o=e.steps.length;if(!1===n){let t=e.doc.resolve(r+i);I(e,t.node(),t.before(),o)}l.inlineContent&&M(e,r+i-1,l,h.node().contentMatchAt(h.index()),null==n);let u=e.mapping.slice(o),f=u.map(r-i);if(e.step(new N(f,u.map(r+i,-1),t.empty,!0)),!0===n){let t=e.doc.resolve(f);E(e,t.node(),t.before(),e.steps.length)}}(this,e,r),this}wrap(r,i){return function(r,i,n){let s=e.empty;for(let t=n.length-1;t>=0;t--){if(s.size){let e=n[t].type.contentMatch.matchFragment(s);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}s=e.from(n[t].type.create(n[t].attrs,s))}let h=i.start,l=i.end;r.step(new k(h,l,h,l,new t(s,0,0),n.length,!0))}(this,r,i),this}setBlockType(r,i=r,n,s=null){return function(r,i,n,s,h){if(!s.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let l=r.steps.length;r.doc.nodesBetween(i,n,((i,n)=>{let o="function"==typeof h?h(i):h;if(i.isTextblock&&!i.hasMarkup(s,o)&&function(t,e,r){let i=t.resolve(e),n=i.index();return i.parent.canReplaceWith(n,n+1,r)}(r.doc,r.mapping.slice(l).map(n),s)){let h=null;if(s.schema.linebreakReplacement){let t="pre"==s.whitespace,e=!!s.contentMatch.matchType(s.schema.linebreakReplacement);t&&!e?h=!1:!t&&e&&(h=!0)}!1===h&&I(r,i,n,l),M(r,r.mapping.slice(l).map(n,1),s,void 0,null===h);let u=r.mapping.slice(l),f=u.map(n,1),a=u.map(n+i.nodeSize,1);return r.step(new k(f,a,f+1,a-1,new t(e.from(s.create(o,null,i.marks)),0,0),1,!0)),!0===h&&E(r,i,n,l),!1}}))}(this,r,i,n,s),this}setNodeMarkup(r,i,n=null,s){return function(r,i,n,s,h){let l=r.doc.nodeAt(i);if(!l)throw new RangeError("No node at given position");n||(n=l.type);let o=n.create(s,null,h||l.marks);if(l.isLeaf)return r.replaceWith(i,i+l.nodeSize,o);if(!n.validContent(l.content))throw new RangeError("Invalid content for node type "+n.name);r.step(new k(i,i+l.nodeSize,i+1,i+l.nodeSize-1,new t(e.from(o),0,0),1,!0))}(this,r,i,n,s),this}setNodeAttribute(t,e,r){return this.step(new K(t,e,r)),this}setDocAttribute(t,e){return this.step(new U(t,e)),this}addNodeMark(t,e){return this.step(new S(t,e)),this}removeNodeMark(t,e){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(e instanceof r)e.isInSet(i.marks)&&this.step(new y(t,e));else{let r,n=i.marks,s=[];for(;r=e.isInSet(n);)s.push(new y(t,r)),n=r.removeFromSet(n);for(let t=s.length-1;t>=0;t--)this.step(s[t])}return this}split(r,i=1,n){return function(r,i,n=1,s){let h=r.doc.resolve(i),l=e.empty,o=e.empty;for(let t=h.depth,r=h.depth-n,i=n-1;t>r;t--,i--){l=e.from(h.node(t).copy(l));let r=s&&s[i];o=e.from(r?r.type.create(r.attrs,o):h.node(t).copy(o))}r.step(new N(i,i,new t(l.append(o),n,n),!0))}(this,r,i,n),this}addMark(t,e,r){return function(t,e,r,i){let n,s,h=[],l=[];t.doc.nodesBetween(e,r,((t,o,u)=>{if(!t.isInline)return;let f=t.marks;if(!i.isInSet(f)&&u.type.allowsMarkType(i.type)){let u=Math.max(o,e),a=Math.min(o+t.nodeSize,r),c=i.addToSet(f);for(let t=0;t<f.length;t++)f[t].isInSet(c)||(n&&n.to==u&&n.mark.eq(f[t])?n.to=a:h.push(n=new g(u,a,f[t])));s&&s.to==u?s.to=a:l.push(s=new m(u,a,i))}})),h.forEach((e=>t.step(e))),l.forEach((e=>t.step(e)))}(this,t,e,r),this}removeMark(t,e,r){return function(t,e,r,n){let s=[],h=0;t.doc.nodesBetween(e,r,((t,l)=>{if(!t.isInline)return;h++;let o=null;if(n instanceof i){let e,r=t.marks;for(;e=n.isInSet(r);)(o||(o=[])).push(e),r=e.removeFromSet(r)}else n?n.isInSet(t.marks)&&(o=[n]):o=t.marks;if(o&&o.length){let i=Math.min(l+t.nodeSize,r);for(let t=0;t<o.length;t++){let r,n=o[t];for(let t=0;t<s.length;t++){let e=s[t];e.step==h-1&&n.eq(s[t].style)&&(r=e)}r?(r.to=i,r.step=h):s.push({style:n,from:Math.max(l,e),to:i,step:h})}}})),s.forEach((e=>t.step(new g(e.from,e.to,e.style))))}(this,t,e,r),this}clearIncompatible(t,e,r){return M(this,t,e,r),this}}const Q=Object.create(null);class X{constructor(t,e,r){this.$anchor=t,this.$head=e,this.ranges=r||[new Y(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e<t.length;e++)if(t[e].$from.pos!=t[e].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,r=t.empty){let i=r.content.lastChild,n=null;for(let t=0;t<r.openEnd;t++)n=i,i=i.lastChild;let s=e.steps.length,h=this.ranges;for(let l=0;l<h.length;l++){let{$from:o,$to:u}=h[l],f=e.mapping.slice(s);e.replaceRange(f.map(o.pos),f.map(u.pos),l?t.empty:r),0==l&&ot(e,s,(i?i.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(t,e){let r=t.steps.length,i=this.ranges;for(let n=0;n<i.length;n++){let{$from:s,$to:h}=i[n],l=t.mapping.slice(r),o=l.map(s.pos),u=l.map(h.pos);n?t.deleteRange(o,u):(t.replaceRangeWith(o,u,e),ot(t,r,e.isInline?-1:1))}}static findFrom(t,e,r=!1){let i=t.parent.inlineContent?new et(t):lt(t.node(0),t.parent,t.pos,t.index(),e,r);if(i)return i;for(let i=t.depth-1;i>=0;i--){let n=e<0?lt(t.node(0),t.node(i),t.before(i+1),t.index(i),e,r):lt(t.node(0),t.node(i),t.after(i+1),t.index(i)+1,e,r);if(n)return n}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new st(t.node(0))}static atStart(t){return lt(t,t,0,0,1)||new st(t)}static atEnd(t){return lt(t,t,t.content.size,t.childCount,-1)||new st(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Q[e.type];if(!r)throw new RangeError(`No selection type ${e.type} defined`);return r.fromJSON(t,e)}static jsonID(t,e){if(t in Q)throw new RangeError("Duplicate use of selection JSON ID "+t);return Q[t]=e,e.prototype.jsonID=t,e}getBookmark(){return et.between(this.$anchor,this.$head).getBookmark()}}X.prototype.visible=!0;class Y{constructor(t,e){this.$from=t,this.$to=e}}let Z=!1;function tt(t){Z||t.parent.inlineContent||(Z=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class et extends X{constructor(t,e=t){tt(t),tt(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let r=t.resolve(e.map(this.head));if(!r.parent.inlineContent)return X.near(r);let i=t.resolve(e.map(this.anchor));return new et(i.parent.inlineContent?i:r,r)}replace(e,r=t.empty){if(super.replace(e,r),r==t.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof et&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new rt(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new et(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,r=e){let i=t.resolve(e);return new this(i,r==e?i:t.resolve(r))}static between(t,e,r){let i=t.pos-e.pos;if(r&&!i||(r=i>=0?1:-1),!e.parent.inlineContent){let t=X.findFrom(e,r,!0)||X.findFrom(e,-r,!0);if(!t)return X.near(e,r);e=t.$head}return t.parent.inlineContent||(0==i||(t=(X.findFrom(t,-r,!0)||X.findFrom(t,r,!0)).$anchor).pos<e.pos!=i<0)&&(t=e),new et(t,e)}}X.jsonID("text",et);class rt{constructor(t,e){this.anchor=t,this.head=e}map(t){return new rt(t.map(this.anchor),t.map(this.head))}resolve(t){return et.between(t.resolve(this.anchor),t.resolve(this.head))}}class it extends X{constructor(t){let e=t.nodeAfter,r=t.node(0).resolve(t.pos+e.nodeSize);super(t,r),this.node=e}map(t,e){let{deleted:r,pos:i}=e.mapResult(this.anchor),n=t.resolve(i);return r?X.near(n):new it(n)}content(){return new t(e.from(this.node),0,0)}eq(t){return t instanceof it&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new nt(this.anchor)}static fromJSON(t,e){if("number"!=typeof e.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new it(t.resolve(e.anchor))}static create(t,e){return new it(t.resolve(e))}static isSelectable(t){return!t.isText&&!1!==t.type.spec.selectable}}it.prototype.visible=!1,X.jsonID("node",it);class nt{constructor(t){this.anchor=t}map(t){let{deleted:e,pos:r}=t.mapResult(this.anchor);return e?new rt(r,r):new nt(r)}resolve(t){let e=t.resolve(this.anchor),r=e.nodeAfter;return r&&it.isSelectable(r)?new it(e):X.near(e)}}class st extends X{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(e,r=t.empty){if(r==t.empty){e.delete(0,e.doc.content.size);let t=X.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,r)}toJSON(){return{type:"all"}}static fromJSON(t){return new st(t)}map(t){return new st(t)}eq(t){return t instanceof st}getBookmark(){return ht}}X.jsonID("all",st);const ht={map(){return this},resolve:t=>new st(t)};function lt(t,e,r,i,n,s=!1){if(e.inlineContent)return et.create(t,r);for(let h=i-(n>0?0:1);n>0?h<e.childCount:h>=0;h+=n){let i=e.child(h);if(i.isAtom){if(!s&&it.isSelectable(i))return it.create(t,r-(n<0?i.nodeSize:0))}else{let e=lt(t,i,r+n,n<0?i.childCount:0,n,s);if(e)return e}r+=i.nodeSize*n}return null}function ot(t,e,r){let i=t.steps.length-1;if(i<e)return;let n,s=t.steps[i];(s instanceof N||s instanceof k)&&(t.mapping.maps[i].forEach(((t,e,r,i)=>{null==n&&(n=i)})),t.setSelection(X.near(t.doc.resolve(n),r)))}class ut extends H{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(t){if(t.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=t,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return r.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let i=this.selection;return e&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||r.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,r){let i=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(i.text(t),!0):this.deleteSelection();{if(null==r&&(r=e),!t)return this.deleteRange(e,r);let n=this.storedMarks;if(!n){let t=this.doc.resolve(e);n=r==e?t.marks():t.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(e,r,i.text(t,n)),this.selection.empty||this.selection.to!=e+t.length||this.setSelection(X.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function ft(t,e){return e&&t?t.bind(e):t}class at{constructor(t,e,r){this.name=t,this.init=ft(e.init,r),this.apply=ft(e.apply,r)}}const ct=[new at("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new at("selection",{init:(t,e)=>t.selection||X.atStart(e.doc),apply:t=>t.selection}),new at("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,r,i)=>i.selection.$cursor?t.storedMarks:null}),new at("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class pt{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=ct.slice(),e&&e.forEach((t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new at(t.key,t.spec.state,t))}))}}class wt{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=e){let e=this.config.plugins[r];if(e.spec.filterTransaction&&!e.spec.filterTransaction.call(e,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let e=[t],r=this.applyInner(t),i=null;for(;;){let n=!1;for(let s=0;s<this.config.plugins.length;s++){let h=this.config.plugins[s];if(h.spec.appendTransaction){let l=i?i[s].n:0,o=i?i[s].state:this,u=l<e.length&&h.spec.appendTransaction.call(h,l?e.slice(l):e,o,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",t),!i){i=[];for(let t=0;t<this.config.plugins.length;t++)i.push(t<s?{state:r,n:e.length}:{state:this,n:0})}e.push(u),r=r.applyInner(u),n=!0}i&&(i[s]={state:r,n:e.length})}}if(!n)return{state:r,transactions:e}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let e=new wt(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let n=r[i];e[n.name]=n.apply(t,this[n.name],this,e)}return e}get tr(){return new ut(this)}static create(t){let e=new pt(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new wt(e);for(let i=0;i<e.fields.length;i++)r[e.fields[i].name]=e.fields[i].init(t,r);return r}reconfigure(t){let e=new pt(this.schema,t.plugins),r=e.fields,i=new wt(e);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(t){let e={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(e.storedMarks=this.storedMarks.map((t=>t.toJSON()))),t&&"object"==typeof t)for(let r in t){if("doc"==r||"selection"==r)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],n=i.spec.state;n&&n.toJSON&&(e[r]=n.toJSON.call(i,this[i.key]))}return e}static fromJSON(t,e,r){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new pt(t.schema,t.plugins),n=new wt(i);return i.fields.forEach((i=>{if("doc"==i.name)n.doc=s.fromJSON(t.schema,e.doc);else if("selection"==i.name)n.selection=X.fromJSON(n.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(n.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let s in r){let h=r[s],l=h.spec.state;if(h.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(e,s))return void(n[i.name]=l.fromJSON.call(h,t,e[s],n))}n[i.name]=i.init(t,n)}})),n}}function dt(t,e,r){for(let i in t){let n=t[i];n instanceof Function?n=n.bind(e):"handleDOMEvents"==i&&(n=dt(n,e,{})),r[i]=n}return r}class mt{constructor(t){this.spec=t,this.props={},t.props&&dt(t.props,this,this.props),this.key=t.key?t.key.key:St("plugin")}getState(t){return t[this.key]}}const gt=Object.create(null);function St(t){return t in gt?t+"$"+ ++gt[t]:(gt[t]=0,t+"$")}class yt{constructor(t="key"){this.key=St(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}var Nt=Object.freeze({__proto__:null,AllSelection:st,EditorState:wt,NodeSelection:it,Plugin:mt,PluginKey:yt,Selection:X,SelectionRange:Y,TextSelection:et,Transaction:ut});export{st as A,a as M,it as N,mt as P,k as R,X as S,et as T,x as a,N as b,T as c,D as d,Y as e,J as f,yt as g,Nt as i,A as j,b as l,$ as r}
@@ -0,0 +1 @@
1
+ import{p as s,H as e,h as r,a as i,t as n}from"./p-CeVlau-G.js";import{i as t}from"./p-Cs2X0Kih.js";import{a as o}from"./p-BuyjS5bS.js";const a=s(class extends e{constructor(s){super(),!1!==s&&this.__registerHost()}get host(){return this}diameter=32;thickness=3;accent=!1;label;hostLabel;disposeLabel;connectedCallback(){this.disposeLabel?.(),this.disposeLabel=t(this.host,(s=>this.hostLabel=s))}disconnectedCallback(){this.disposeLabel?.()}render(){const s=`${Number(this.diameter)||32}px`,e=`${Number(this.thickness)||3}px`;return r(i,{key:"4bbb3f4d31bb7b6fa4c1472f6a4361aa459c6493"},r("div",{key:"9656fce46a0f63a80d34979c94ec2483546d41ce",class:{spinner:!0,accent:this.accent},role:"status","aria-label":this.label||this.hostLabel||o(void 0,"progress-spinner.loading",void 0,"Loading"),style:{width:s,height:s,borderWidth:e}}),this.label?r("span",{class:"label"},this.label):null)}static get style(){return".sc-sui-progress-spinner-h{display:inline-flex;flex-direction:column;align-items:center;gap:9px;font-family:var(--font-sans)}.spinner.sc-sui-progress-spinner{border-radius:50%;box-sizing:border-box;border-style:solid;border-color:var(--brand-soft);border-top-color:var(--brand);animation:sb-spin 0.8s linear infinite}.spinner.accent.sc-sui-progress-spinner{border-top-color:var(--accent)}.label.sc-sui-progress-spinner{font-size:var(--sui-spinner-label-size, 12px);font-weight:var(--sui-spinner-label-weight, 550);color:var(--ink-muted)}@media (prefers-reduced-motion: reduce){.spinner.sc-sui-progress-spinner{animation-duration:2s}}@media (forced-colors: active){.spinner.sc-sui-progress-spinner{border-color:Canvas;border-top-color:Highlight;outline:1px solid CanvasText;outline-offset:-1px}.spinner.accent.sc-sui-progress-spinner{border-top-color:Highlight}}"}},[514,"sui-progress-spinner",{diameter:[2],thickness:[2],accent:[516],label:[1],hostLabel:[32]}]);function c(){"undefined"!=typeof customElements&&["sui-progress-spinner"].forEach((s=>{"sui-progress-spinner"===s&&(customElements.get(n(s))||customElements.define(n(s),a))}))}export{a as S,c as d}
@@ -0,0 +1 @@
1
+ import{p as i,H as s,c as t,h as o,t as r}from"./p-CeVlau-G.js";import{u as e}from"./p-U06fVoGD.js";import{i as n,d as a,s as d,r as u}from"./p-BHB1Wprj.js";import{f as c}from"./p-CGWvlrv_.js";import{i as l}from"./p-GAnFXayY.js";const h=new WeakMap,b=i(class i extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.suiChange=t(this,"suiChange",7),this.internals=this.attachInternals()}get host(){return this}internals;label;description;checked=!1;disabled=!1;readOnly=!1;size="md";invalid=!1;name;value;required=!1;suiChange;formDisabled=!1;get isDisabled(){return this.disabled||this.formDisabled}fieldId=e("sui-radio");input;initial=!1;connectedCallback(){n(this.host,this.internals),a(this.host,(()=>this.input)),h.set(this.host,(()=>this.syncValidity()))}componentWillLoad(){this.initial=this.checked,this.syncForm()}componentDidRender(){this.syncForm()}componentDidLoad(){this.syncGroup()}onGroupChange(){this.syncForm(),this.syncGroup()}syncForm(){const i=!!this.host.closest?.("sui-radio-group");d(this.internals,i||this.isDisabled||!this.checked?null:this.value??"on"),this.syncValidity()}syncValidity(){const s=!!this.host.closest?.("sui-radio-group"),t=s?[]:this.peers(),o=!s&&!this.isDisabled&&!this.readOnly&&t.some((s=>i.isRequired(s)));u(this.internals,o,!t.some((s=>i.isChecked(s))),void 0,this.input)}syncGroup(){for(const i of this.peers())(i===this.host?()=>this.syncValidity():h.get(i))?.()}formResetCallback(){this.checked=this.initial,this.input&&(this.input.checked=this.initial),this.syncForm()}formDisabledCallback(i){this.formDisabled=c(this.host,this.disabled,i),this.syncForm()}async setFocus(){this.input?.focus()}peers(){const i=this.host.closest?.("sui-radio-group");if(i)return Array.from(i.querySelectorAll("sui-radio-button"));if(!this.name)return[this.host];const s=this.host.closest?.("form")||("undefined"!=typeof document?document:this.host);return Array.from(s.querySelectorAll("sui-radio-button")).filter((i=>(i.name??i.getAttribute("name"))===this.name))}static isChecked(i){const s=i.checked;return"boolean"==typeof s?s:i.hasAttribute("checked")}static isRequired(i){const s=i.required;return"boolean"==typeof s?s:i.hasAttribute("required")}static isDisabled(i){const s=i.disabled;return"boolean"==typeof s?s:i.hasAttribute("disabled")}tabIndexFor(){return this.checked?0:this.peers().some((s=>i.isChecked(s)))?-1:0}static activate(i,s){s.forEach((s=>{s.checked=s===i;const t=s.querySelector("input");t&&(t.tabIndex=s===i?0:-1)}))}select(){this.isDisabled||this.checked||(i.activate(this.host,this.peers()),this.suiChange.emit(!0))}onClick=i=>{this.readOnly&&i.preventDefault()};onChange=()=>{this.readOnly?this.input&&(this.input.checked=this.checked):(this.input&&(this.input.checked=!0),this.select())};onKeyDown=s=>{if(this.readOnly)return;const t=l(this.host)?"ArrowLeft":"ArrowRight",o="ArrowDown"===s.key||s.key===t?1:"ArrowUp"===s.key||s.key===("ArrowLeft"===t?"ArrowRight":"ArrowLeft")?-1:0;if(!o)return;const r=this.peers().filter((s=>!i.isDisabled(s))),e=r.indexOf(this.host);if(e<0||r.length<2)return;s.preventDefault();const n=r[(e+o+r.length)%r.length];i.activate(n,this.peers()),n.querySelector("input")?.focus(),"undefined"!=typeof CustomEvent&&n.dispatchEvent(new CustomEvent("suiChange",{detail:!0,bubbles:!0,composed:!0}))};render(){const i=this.checked,s=this.description?`${this.fieldId}-desc`:null;return o("label",{key:"693a89bebda2301bfe9883d7bc31ac8ace67afed",class:{"sui-radio":!0,["sm"===this.size?"sm":"md"]:!0,on:i,disabled:this.isDisabled,readonly:this.readOnly,invalid:this.invalid,"has-desc":!!this.description}},o("span",{key:"a976e469de962fe5be28236f151bf9e0ade88b3b",class:"ctl"},o("input",{key:"835359bb83aeb95f379765bddba7e8659ca17957",ref:i=>this.input=i,id:this.fieldId,type:"radio",checked:i,disabled:this.isDisabled,value:this.value,tabIndex:this.isDisabled?-1:this.tabIndexFor(),"aria-checked":i?"true":"false","aria-invalid":this.invalid?"true":null,"aria-readonly":this.readOnly?"true":null,"aria-required":this.required&&!this.host.closest?.("sui-radio-group")?"true":null,"aria-describedby":s,onClick:this.onClick,onChange:this.onChange,onKeyDown:this.onKeyDown}),o("span",{key:"05807e97da03c826b86bde2b76294dacf38d1268",class:"circle","aria-hidden":"true"})),this.label||this.description?o("span",{class:"text"},this.label?o("span",{class:"lbl"},this.label):null,this.description?o("span",{class:"desc",id:`${this.fieldId}-desc`},this.description):null):null)}static get formAssociated(){return!0}static get watchers(){return{checked:[{onGroupChange:0}],required:[{onGroupChange:0}],disabled:[{onGroupChange:0}],readOnly:[{onGroupChange:0}],name:[{onGroupChange:0}],value:[{syncForm:0}]}}static get style(){return".sc-sui-radio-button-h{display:inline-block;font-family:var(--font-sans)}.sui-radio.sc-sui-radio-button{display:inline-flex;align-items:center;gap:9px;cursor:pointer;user-select:none;font-family:var(--font-sans)}.sui-radio.has-desc.sc-sui-radio-button{align-items:flex-start}.sui-radio.disabled.sc-sui-radio-button{cursor:not-allowed}.sui-radio.readonly.sc-sui-radio-button{cursor:default}.ctl.sc-sui-radio-button{position:relative;display:inline-flex;flex-shrink:0}.has-desc.sc-sui-radio-button .ctl.sc-sui-radio-button{margin-top:1px}input.sc-sui-radio-button{position:absolute;inset:0;width:18px;height:18px;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.circle.sc-sui-radio-button{width:18px;height:18px;box-sizing:border-box;border-radius:50%;border:2px solid color-mix(in srgb, var(--control-border) 75%, var(--ink));background:var(--surface);transition:border var(--duration-fast) var(--ease-out)}.on.sc-sui-radio-button .circle.sc-sui-radio-button{border-width:5px;border-color:var(--brand)}.sm.sc-sui-radio-button input.sc-sui-radio-button,.sm.sc-sui-radio-button .circle.sc-sui-radio-button{width:16px;height:16px}.sm.on.sc-sui-radio-button .circle.sc-sui-radio-button{border-width:4px}.sm.sc-sui-radio-button .lbl.sc-sui-radio-button{font-size:12.5px}.invalid.sc-sui-radio-button .circle.sc-sui-radio-button{border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger)}.invalid.on.sc-sui-radio-button .circle.sc-sui-radio-button{border-width:2px;box-shadow:none;background:radial-gradient(circle, var(--surface) 0 3.75px, var(--brand) 4.25px)}.disabled.sc-sui-radio-button .circle.sc-sui-radio-button{background:var(--disabled-bg);border-color:var(--border-strong)}.sc-sui-radio-button-h:hover .circle.sc-sui-radio-button:not(.disabled .circle):not(.on .circle){border-color:color-mix(in srgb, var(--control-border) 60%, var(--ink))}input.sc-sui-radio-button:focus-visible+.circle.sc-sui-radio-button{outline:2px solid var(--focus-ring);outline-offset:1px;box-shadow:0 0 0 3px var(--focus-halo)}.invalid.sc-sui-radio-button input.sc-sui-radio-button:focus-visible+.circle.sc-sui-radio-button{outline-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger), 0 0 0 3px color-mix(in srgb, var(--danger) 35%, transparent)}.text.sc-sui-radio-button{display:flex;flex-direction:column;gap:2px;min-width:0}.lbl.sc-sui-radio-button{font-size:13px;font-weight:550;color:var(--ink);line-height:1.3}.disabled.sc-sui-radio-button .lbl.sc-sui-radio-button{color:var(--disabled-ink)}.desc.sc-sui-radio-button{font-size:12px;color:var(--ink-faint);line-height:1.4}@media (forced-colors: active){.on.sc-sui-radio-button .circle.sc-sui-radio-button{border-color:Highlight}.invalid.on.sc-sui-radio-button .circle.sc-sui-radio-button{border-width:5px;background:Canvas}.sm.invalid.on.sc-sui-radio-button .circle.sc-sui-radio-button{border-width:4px}.disabled.sc-sui-radio-button .circle.sc-sui-radio-button{border-color:GrayText}.disabled.sc-sui-radio-button .lbl.sc-sui-radio-button,.disabled.sc-sui-radio-button .desc.sc-sui-radio-button{color:GrayText}input.sc-sui-radio-button:focus-visible+.circle.sc-sui-radio-button{outline:2px solid Highlight;outline-offset:1px}}"}},[578,"sui-radio-button",{label:[1],description:[1],checked:[1540],disabled:[516],readOnly:[516,"readonly"],size:[513],invalid:[516],name:[513],value:[1],required:[516],formDisabled:[32],setFocus:[64]},void 0,{checked:[{onGroupChange:0}],required:[{onGroupChange:0}],disabled:[{onGroupChange:0}],readOnly:[{onGroupChange:0}],name:[{onGroupChange:0}],value:[{syncForm:0}]}]);function p(){"undefined"!=typeof customElements&&["sui-radio-button"].forEach((i=>{"sui-radio-button"===i&&(customElements.get(r(i))||customElements.define(r(i),b))}))}export{b as S,p as d}
@@ -0,0 +1 @@
1
+ function t(t){let n=String(t||"").replace("#","");3===n.length&&(n=n.split("").map((t=>t+t)).join(""));const e=parseInt(n,16);return Number.isNaN(e)?[0,0,0]:[e>>16&255,e>>8&255,255&e].map((t=>t/255))}function n(t){return"#"+t.map((t=>Math.round(255*Math.max(0,Math.min(1,t))).toString(16).padStart(2,"0"))).join("").toUpperCase()}const e=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4),a=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055;function r(t){const n=e(t[0]),a=e(t[1]),r=e(t[2]),o=Math.cbrt(.4122214708*n+.5363325363*a+.0514459929*r),s=Math.cbrt(.2119034982*n+.6806995451*a+.1073969566*r),i=Math.cbrt(.0883024619*n+.2817188376*a+.6299787005*r),c=1.9779984951*o-2.428592205*s+.4505937099*i,F=.0259040371*o+.7827717662*s-.808675766*i;return{L:.2104542553*o+.793617785*s-.0040720468*i,C:Math.hypot(c,F),H:(180*Math.atan2(F,c)/Math.PI+360)%360}}function o(t){const n=t.C*Math.cos(t.H*Math.PI/180),e=t.C*Math.sin(t.H*Math.PI/180),r=Math.pow(t.L+.3963377774*n+.2158037573*e,3),o=Math.pow(t.L-.1055613458*n-.0638541728*e,3),s=Math.pow(t.L-.0894841775*n-1.291485548*e,3);return[a(4.0767416621*r-3.3077115913*o+.2309699292*s),a(-1.2684380046*r+2.6097574011*o-.3413193965*s),a(-.0041960863*r-.7034186147*o+1.707614701*s)]}function s(t,e,a){let r=a,s=o({L:e,C:r,H:t}),i=0;for(;!s.every((t=>t>=-5e-4&&t<=1.0005))&&i++<24;)r*=.82,s=o({L:e,C:r,H:t});return n(s)}function i(t,e,a){const r=n=>o({L:e,C:n,H:t}).every((t=>t>=-5e-4&&t<=1.0005));if(!(a>0))return n(o({L:e,C:0,H:t}));if(r(a))return n(o({L:e,C:a,H:t}));let s=0,i=a;for(let t=0;t<20;t++){const t=(s+i)/2;r(t)?s=t:i=t}return n(o({L:e,C:s,H:t}))}function c(n){const a=t(n).map(e);return.2126*a[0]+.7152*a[1]+.0722*a[2]}function F(t,n){const e=c(t)+.05,a=c(n)+.05;return e>a?e/a:a/e}function l(n,e,a){const r=t(n),o=t(e);return"#"+r.map(((t,n)=>Math.round(255*(t*a+o[n]*(1-a))).toString(16).padStart(2,"0"))).join("").toUpperCase()}const u=.635;function h(t){const n=(t%360+360)%360;return 1-.7*(n<=35||n>=135?0:n<55?(n-35)/20:n>115?(135-n)/20:1)}function f(t){return(1-h(t))/.7}function d(n,e){return Math.min(1,r(t(i(n,.235,.5))).C/Math.max(e,.06))}function M(n,e,a,o,s){const i=r(t(a)).L;return s?C(n,e,Math.min(.97,i+.01),.97,(t=>F(t,a)>=o)):C(n,e,Math.max(.05,i-.01),.05,(t=>F(t,a)>=o))}const b=.11,g=.62,p=[70,115],m=[20,110];function v(t){return{"--shadow-raised":"0 2px 8px rgba("+t+", 0.08)","--shadow-pop":"0 8px 24px rgba("+t+", 0.14)","--shadow-overlay":"0 24px 64px rgba("+t+", 0.28)","--shadow-soft":"0 18px 50px rgba("+t+", 0.12)"}}function k(t,n,e,a,r,o=4.5){let s=n,c=i(t,s,e),l=0;for(;F(c,a)<o&&l++<120;)s+=r?.005:-.005,c=i(t,s,e);return{hex:c,L:s}}function y(n,e,a,o,s=4.5){const c=[];let l=-1;for(let o=.14;o<=.951;o+=.005){const u=i(n,o,e);if(F(u,a)<s)continue;const h=r(t(u)).C;c.push({hex:u,c:h}),h>l&&(l=h)}if(!c.length)return i(n,o?.95:.14,e);const u=c.filter((t=>t.c>=l-.005));return o?u[0].hex:u[u.length-1].hex}function x(n,a,r){const o=o=>function(n,a,r){const o=t(n),s=t(a),i=o.map(((t,n)=>e(t*r+s[n]*(1-r)))),F=.2126*i[0]+.7152*i[1]+.0722*i[2]+.05,l=c(a)+.05;return F>l?F/l:l/F}(n,a,o)>=r&&F(l(n,a,o),a)>=r;if(!o(1))return 1;let s=0,i=1;for(let t=0;t<22;t++){const t=(s+i)/2;o(t)?i=t:s=t}return i}function w(n,e,a,o){return r(t(y(n,e,a,!1,o))).C}function A(n,e,a,o){return r(t(k((n+e+360)%360,.52,a,o,!1,5.4).hex)).C}function H(t,n,e,a,r){const o=B(t,n),s=Math.min(12,Math.max(0,30-o)),i=(t-n+540)%360-180,c=e?0:Math.abs(i)<1?function(t,n,e){let a=-1;const r=[];for(let o=12;o<=24;o++)for(const s of[1,-1]){const i=A(t,s*o,n,e);r.push({t:s*o,m:o,c:i}),i>a&&(a=i)}return r.filter((t=>t.c>=a-.005)).sort(((t,n)=>t.m-n.m||n.t-t.t))[0].t}(n,a,r):(i>0?-1:1)*s,F=(n+c+360)%360;return{keyH:t,famH:F,tight:B(t,F)<25}}function S(n,e,a){const o=r(t(n));let i=n,c=0;for(;F(i,e)<a&&o.L>.06&&c++<120;)o.L=Math.max(.06,o.L-.012),i=s(o.H,o.L,o.C);return i}function E(n,e,a){const o=r(t(n));let i=n,c=0;for(;F(i,e)<a&&o.L<.97&&c++<120;)o.L=Math.min(.97,o.L+.012),i=s(o.H,o.L,o.C);return i}function C(t,n,e,a,r){let o=e,s=a;for(let e=0;e<24;e++){const e=(o+s)/2;r(i(t,e,n))?s=e:o=e}return i(t,s,n)}function N(t,n,e){if(F(t,n)>=e)return t;const a=E(t,n,e),r=S(t,n,e);return F(a,n)>=F(r,n)?a:r}function z(t,n,e=4.5){const a=n.find((n=>F(n,t)>=e));if(a)return a;const r=N(n.reduce(((n,e)=>F(e,t)>F(n,t)?e:n)),t,e);return F(r,t)>=e?r:F("#000000",t)>=F("#FFFFFF",t)?"#000000":"#FFFFFF"}function B(t,n){const e=Math.abs(t-n)%360;return e>180?360-e:e}function Y(n,e){const a=r(t(n)),o=r(t(e)),s=Math.PI/180,i=a.C*Math.cos(a.H*s)-o.C*Math.cos(o.H*s),c=a.C*Math.sin(a.H*s)-o.C*Math.sin(o.H*s);return Math.sqrt((a.L-o.L)**2+i*i+c*c)}function D(n,e,a,o){const s=r(t(n)),c=t=>e.every((n=>F(t,n)>=o)),l=t=>{if(t(n))return n;let e=null,a=1/0;for(let n=.04;n<=.9901;n+=.005){if(Math.abs(n-s.L)>=a)continue;const r=i(s.H,n,s.C);t(r)&&(e=r,a=Math.abs(n-s.L))}return e},u=a?l((t=>c(t)&&F(t,a)>=3)):null,h=e.reduce(((t,e)=>F(n,e)<F(n,t)?e:t));return u??l(c)??N(n,h,o)}const L=new Map;function T(t,n,e,a){let r=t;return a.forEach((t=>{if(B(r,t)<20){const a=(t+25)%360,o=(t-25+360)%360;r=a>=n&&a<=e?a:o>=n&&o<=e?o:B(e,t)>B(n,t)?e:n}})),Math.min(e,Math.max(n,r))}function I(n){const e=r(t(n)),a=Math.max(e.C,.12),o=n=>{const e=F(n,"#FFFFFF");return e>=2.2&&(e>=2.6||r(t(n)).C>=.118)};let s=e.L,c=i(e.H,s,a),l=0;for(;!o(c)&&s>.06&&l++<120;)s=Math.max(.06,s-.012),c=i(e.H,s,a);return c}function O(n){const e=r(t(n));return e.C<.02?[s(65,.75,.15),s(250,.62,.14),s(180,.7,.12),s(300,.68,.13),s(20,.66,.15)].map(I):[[165,.78,.17],[135,.74,.15],[195,.72,.15],[90,.8,.14],[30,.75,.14]].map((t=>I(s((e.H+t[0])%360,t[1],t[2]))))}const $={tint:{label:"Tinted by primary",H:null,f:1},tintA:{label:"Tinted by accent",H:-1,f:1},white:{label:"Minimal",H:0,f:0,w:!0},slate:{label:"Slate",H:262,f:.85},mist:{label:"Mist",H:195,f:.6},mauve:{label:"Mauve",H:325,f:.55},zinc:{label:"Zinc",H:286,f:.35},gray:{label:"Pure gray",H:0,f:0},sage:{label:"Sage",H:150,f:.55},olive:{label:"Olive",H:118,f:.45},stone:{label:"Stone",H:70,f:.5},sand:{label:"Sand",H:85,f:.95}},P=["tint","tintA","white","slate","mist","mauve","zinc","gray","sage","olive","stone","sand"],j={shineui:{id:"shineui",name:"ShineUI",brand:"#121C4D",accent:"#FF9422",neutral:"tint"},evergreen:{id:"evergreen",name:"Evergreen",brand:"#14532D",accent:"#E9A13B",neutral:"tint"},plum:{id:"plum",name:"Plum",brand:"#3D1D50",accent:"#F2734E",neutral:"tint"},harbor:{id:"harbor",name:"Harbor",brand:"#134E5E",accent:"#F4B542",neutral:"tint"},wine:{id:"wine",name:"Wine",brand:"#5C1F33",accent:"#E0B252",neutral:"tint"},graphite:{id:"graphite",name:"Graphite",brand:"#232936",accent:"#3AB7A0",neutral:"tint"},midnight:{id:"midnight",name:"Midnight",brand:"#0B1F3A",accent:"#53B8E8",neutral:"tint"},indigo:{id:"indigo",name:"Indigo",brand:"#312E81",accent:"#F59E0B",neutral:"tint"},forest:{id:"forest",name:"Forest",brand:"#1A3C34",accent:"#D9A441",neutral:"tint"},espresso:{id:"espresso",name:"Espresso",brand:"#3E2723",accent:"#E8A87C",neutral:"tint"},slate:{id:"slate",name:"Slate",brand:"#334155",accent:"#38BDF8",neutral:"tint"},ocean:{id:"ocean",name:"Ocean",brand:"#0E7490",accent:"#F97316",neutral:"tint"},cranberry:{id:"cranberry",name:"Cranberry",brand:"#7F1D3A",accent:"#F4A261",neutral:"tint"},olive:{id:"olive",name:"Olive",brand:"#3F4A22",accent:"#E76F51",neutral:"tint"},charcoal:{id:"charcoal",name:"Charcoal",brand:"#1F2937",accent:"#FBBF24",neutral:"tint"},royal:{id:"royal",name:"Royal",brand:"#1E3A8A",accent:"#F6AD37",neutral:"tint"},terracotta:{id:"terracotta",name:"Terracotta",brand:"#9A3412",accent:"#2A9D8F",neutral:"tint"},steel:{id:"steel",name:"Steel",brand:"#37474F",accent:"#FF8A65",neutral:"tint"},sage:{id:"sage",name:"Sage",brand:"#52796F",accent:"#E9C46A",neutral:"tint"},aubergine:{id:"aubergine",name:"Aubergine",brand:"#432344",accent:"#ECB22E",neutral:"tint"},achroma:{id:"achroma",name:"Achroma",brand:"#000000",accent:"#FFFFFF",neutral:"tint"}},W=["shineui","evergreen","plum","harbor","wine","graphite","midnight","indigo","forest","espresso","slate","ocean","cranberry","olive","charcoal","royal","terracotta","steel","sage","aubergine","achroma"];function G(t,n){const e=String(null==t?"":t).trim(),a=e.startsWith("#")?e:"#"+e;return/^#[0-9A-Fa-f]{6}$/.test(a)?a.toUpperCase():n||""}function J(t,n){return G(t,"")===G(n,"")}function R(t,n,e){const a=G(t,""),r=G(n,""),o=$[e]?e:"tint";for(const t of W){const n=j[t];if(J(a,n.brand)&&J(r,n.accent)&&o===n.neutral)return t}return null}function U(t,n,e,a){if("primary"===e)return G(t,j.shineui.brand);if("custom"===e)return G(n,j.shineui.accent);const r=O(G(t,j.shineui.brand)),o=Number(a);return r[(Number.isFinite(o)?o:0)%r.length]||r[0]}function Z(e,a,o,A,I){const O=r(t(e)),P=r(t(a)),j=$[o]||$.tint,W=O.C>=.02,G=P.C>=.02,J=null===j.H?O.H:-1===j.H?P.H:j.H,R=null===j.H&&!W||-1===j.H&&!G?0:j.f*(null===j.H||-1===j.H?h(J):1),U=[];let q={},K=!1,Q=null;const V=W?d(O.H,O.C):1,X=G?d(P.H,P.C):0,_=G&&V<.6&&X>V+.15&&F(e,"#FFFFFF")<4.5;if(I){const n=s(J,.93,.012*R),o=t(n).map((t=>Math.round(255*t))).join(", "),u=s(J,.145,(null===j.H?Math.min(.45*O.C,.038):-1===j.H?Math.min(.45*P.C,.038):.03)*R),d=s(J,.19,(null===j.H?Math.min(.4*O.C,.034):-1===j.H?Math.min(.4*P.C,.034):.027)*R),g=s(J,.23,.03*R),p=s(J,.25,.03*R);let m=a;const v=s(O.H,.15,W?.02:0),k=F(e,d)>=3&&F(v,e)>=4.5,y=s(O.H,Math.min(Math.max(O.L,.48),.52),W?Math.min(Math.max(O.C,.11),.17):0),w=k?e:function(n,e){if(F(n,e)>=3)return n;const a=r(t(n));return F(i(a.H,.97,a.C),e)<3?i(a.H,.97,a.C):C(a.H,a.C,a.L,.97,(t=>F(t,e)>=3))}(y,p),A=["#FFFFFF",n,v],H=A.find((t=>F(t,w)>=4.5))??z(w,A),Y=F(H,w)>=4.5?w:c(H)>c(w)?S(w,H,4.5):E(w,H,4.5),D=r(t(Y)),L=Math.min(D.L+.05,.9),T=t=>{if(F(t,Y)<4.5)return null;const n=s(D.H,L,D.C);return F(t,n)>=4.5?n:C(D.H,D.C,L,D.L,(n=>F(t,n)>=4.5))};let I=H,$="",Z=-1;for(const n of A){const e=T(n);if(!e)continue;const a=r(t(e)).L-D.L;a>Z+.001&&(Z=a,I=n,$=e)}k?U.push("Your primary is light, so in dark mode buttons keep it and carry dark text."):O.L>.6&&U.push("In dark mode your primary deepens to "+Y+" so light text stays readable on buttons and panels.");const V=t=>{const n=s(D.H,t,D.C),e=F(I,n)>=4.5?n:s(D.H,Math.min(.9,Math.max(.08,2*D.L-t)),D.C);return F(e,Y)>=1.03?e:s(D.H,Math.min(.9,D.L+(t>D.L?.3:.22)),D.C)},X=Z>=.03-.001,_=X?$:V(D.L-.05),tt=s(J,.285,.02*R),nt=F(a,d)<4,et=nt&&G?Math.min(Math.max(P.C,.11),.17):P.C;nt&&(m=E(s(P.H,P.L,G?et:0),d,4),U.push("Your accent was too dark for dark cards, so fills and rings use "+m+". Your pick still drives the soft mixes."));const at=r(t(m)),rt=s(P.H,.285,G?.055*h(P.H):0),ot=s(P.H,.265,G?.095*h(P.H):0),st=E(s(P.H,.75,Math.min(et,.13)),rt,4.5),it=G?Math.min(Math.max(P.C+.02,.12),.17):0;let ct=E(s(P.H,.66,it),d,4.5),Ft=S(s(P.H,Math.min(.5,at.L-.15),Math.max(it,G?.15:0)),"#FFFFFF",4.5);F(Ft,d)<2&&(Ft=E(Ft,d,2));const lt=E(s(O.H,.7,W?Math.max(O.C,.12):0),d,4.5);if(B(P.H,O.H)<25||!G){const n=r(t(ct)),e=r(t(lt));n.L<e.L+.1&&(ct=E(s(n.H,Math.min(e.L+.1,.9),n.C),d,4.5))}const ut=s(O.H,.255,W?.05*h(O.H):0),ht=z(m,[v,n]),ft=Math.min(Math.max(O.L,.22),.3),dt=(W?Math.min(Math.max(O.C,.06),.11):0)*h(O.H);K=k&&F("#FFFFFF",e)<3;const Mt=K?e:s(O.H,ft,dt),bt=K?s(O.H,Math.max(.16,O.L-.045),O.C):s(O.H,ft-.045,dt),gt=K?N(v,bt,7):n,pt=K?t(gt).map((t=>Math.round(255*t))).join(", "):o,mt=(t,n)=>K?Math.max(t,x(gt,bt,n)):t,vt=mt(.82,7),kt=mt(.68,5.4);K&&(Q={bg:s(O.H,.235,dt),head:s(O.H,.28,dt),chip:s(O.H,.34,dt),ink:n});const yt=t=>W?t*(1+.8*f(O.H)):0,xt=F(N(tt,d,3),d),wt=E(s(O.H,.35,yt(.062)),d,Math.max(2.5,xt)),At=s(O.H,.81,W?Math.min(Math.max(O.C,.11),.15):0),Ht=Math.pow(F(At,d)/F(wt,d),1/3),St=M(O.H,yt(.076),d,F(wt,d)*Ht,!0),Et=M(O.H,yt(.09),d,F(wt,d)*Ht*Ht,!0);q={"--ink":n,"--ink-muted":s(J,.78,.02*R),"--ink-faint":s(J,.64,.018*R),"--ink-placeholder":s(J,.5,.016*R),"--ink-inverse":gt,"--ink-inverse-muted":"rgba("+pt+", "+vt+")","--ink-inverse-faint":"rgba("+pt+", "+kt+")","--ink-on-dark":n,"--canvas":u,"--surface":d,"--surface-sunken":g,"--surface-navy":Mt,"--surface-navy-deep":bt,"--border":tt,"--border-strong":s(J,.345,.022*R),"--hairline":s(J,.24,.016*R),"--border-inverse":"rgba("+pt+", 0.14)","--brand":Y,"--brand-hover":_,"--brand-active":V(Math.max(D.L-(X?.04:.08),.08)),"--brand-soft":ut,"--brand-contrast":I,"--accent":m,"--accent-hover":s(at.H,Math.max(.1,at.L-.05),Math.min(at.C+.02,.2)),"--accent-active":s(at.H,Math.max(.1,at.L-.09),Math.min(at.C+.02,.2)),"--accent-soft":rt,"--accent-ink":st,"--accent-deep":ct,"--accent-contrast":ht,"--link":lt,"--control-on":k?Y:s(O.H,.5,W?Math.min(Math.max(O.C,.12),.17):0),"--status-positive-bg":ut,"--status-positive-ink":n,"--status-positive-accent":E(Y,d,3),"--status-attention-bg":rt,"--status-attention-ink":st,"--status-attention-accent":m,"--status-critical-bg":Ft,"--status-critical-ink":"#FFFFFF","--status-neutral-bg":d,"--status-neutral-ink":s(J,.72,.02*R),"--status-neutral-border":s(J,.4,.022*R),"--danger":ct,"--danger-fill":Ft,"--danger-soft":ot,"--viz-1":At,"--viz-2":Et,"--viz-3":St,"--viz-4":wt,"--viz-5":m,"--scrim":"rgba(0, 0, 0, 0.55)","--selection":rt,"--selection-ink":n,"--disabled-bg":s(J,.245,.02*R),"--disabled-ink":s(J,.58,.015*R),"--surface-raised":p,"--surface-raised-hover":l(n,p,b),"--surface-hover":"rgba("+o+", "+b+")","--surface-pressed":"rgba("+o+", 0.2)","--surface-current":"rgba("+o+", 0.24)","--shadow-raised":"0 2px 8px rgba(0, 0, 0, 0.45)","--shadow-pop":"0 8px 24px rgba(0, 0, 0, 0.55)","--shadow-overlay":"0 24px 64px rgba(0, 0, 0, 0.7)","--shadow-soft":"0 18px 50px rgba(0, 0, 0, 0.5)"}}else{let n=a;F(a,"#FFFFFF")<1.9&&(n=S(a,"#FFFFFF",1.9),U.push("Your accent was nearly invisible on white cards, so fills and rings use "+n+". Your pick still drives the soft mixes."));const o=r(t(n)),i=null===j.H?e:-1===j.H?a:null,c=null!==i&&h(J)<1&&F(i,"#FFFFFF")<4.5,u=(null===j.H?Math.min(O.C,.085):-1===j.H?Math.min(P.C,.085):.032)*R,d=s(J,.27,c?Math.min(u,.012):u);let g=e;F(e,"#FFFFFF")<1.35&&(g=S(e,"#FFFFFF",1.5),U.push("Your primary was nearly invisible as a fill on white, so buttons and bars use "+g+"."));const p=r(t(g)),m=_,k=m?P:O,y=m?G:W;m&&U.push("Your primary turns brown or olive when it is darkened, so links and the chart ramp take deep tones of the accent and the chart highlight is the primary.");const w=z(g,["#FFFFFF",d]);K=F("#FFFFFF",g)<3&&F(d,g)>=4.5,K?U.push("Your primary is light, so buttons, bars and the app chrome keep it and carry dark text. The accent sits on them as you picked it."):F("#FFFFFF",g)<4.5&&U.push("Your primary sits between light and dark, so labels on it use "+w+" rather than white.");const A=t(d).map((t=>Math.round(255*t))).join(", "),H=(W?Math.min(Math.max(p.C,.06),.11):0)*h(p.H),E=p.L<=.34||K?g:s(p.H,.28,H),C=K?s(p.H,Math.max(.16,p.L-.045),p.C):s(p.H,Math.max(.16,(p.L<=.34?p.L:.28)-.045),H),Y=K?N(d,C,7):"#FFFFFF",D=K?t(Y).map((t=>Math.round(255*t))).join(", "):"255, 255, 255",L=(t,n)=>K?Math.max(t,x(Y,C,n)):t,T=L(.82,7),I=L(.68,5.4);K&&(Q={bg:s(p.H,.235,H),head:s(p.H,.28,H),chip:s(p.H,.34,H),ink:"#FFFFFF"});const $=s(J,.905,.015*R),Z=s(P.H,.936,G?Math.min(.07,Math.max(.045,.35*P.C)):0),V=F(n,Z)>=4.5?n:S(s(P.H,.5,Math.min(P.C,.13)),Z,4.5);let X=F(n,"#FFFFFF")>=4.5?n:S(s(P.H,Math.max(.46,P.L-.14),G?Math.min(Math.max(P.C+.02,.12),.185):0),"#FFFFFF",4.5);const tt=S(s(k.H,.46,y?Math.max(k.C,.13):0),"#FFFFFF",4.5);if(B(P.H,O.H)<25||!G||m){const n=r(t(X)),e=r(t(tt));n.L>e.L-.1&&(X=S(s(n.H,e.L-.1,n.C),"#FFFFFF",4.5))}const nt=r(t(X)),et=S(s(nt.H,Math.min(.5,o.L-.12),Math.max(nt.C,G?.14:0)),"#FFFFFF",4.5),at=s(P.H,.9,G?Math.min(.1,Math.max(.07,.5*P.C)):0),rt=s(O.H,.928,W?.022:0),ot=z(n,[d,"#FFFFFF"]),st=p.L<.55?Math.min(p.L+(p.L<.4?.07:.05),.97):p.L-.05,it=p.L<.55?Math.max(p.L-.04,.05):p.L-.1,ct=t=>{const n=s(p.H,t,p.C),e=F(w,n)>=4.5?n:s(p.H,Math.min(.97,Math.max(.05,2*p.L-t)),p.C);return F(e,g)>=1.03?e:s(p.H,Math.min(.97,p.L+(t>p.L?.3:.22)),p.C)},Ft=y?1+.8*f(k.H):0,lt=F(N($,"#FFFFFF",3),"#FFFFFF"),ut=S(s(k.H,.8,.03*Ft),"#FFFFFF",Math.max(1.5,lt)),ht=s(k.H,.3,y?Math.min(Math.max(k.C,.06),.12):0),ft=Math.pow(F(ht,"#FFFFFF")/F(ut,"#FFFFFF"),1/3),dt=M(k.H,.042*Ft,"#FFFFFF",F(ut,"#FFFFFF")*ft,!1),Mt=M(k.H,.06*Ft,"#FFFFFF",F(ut,"#FFFFFF")*ft*ft,!1);q={"--ink":d,"--ink-muted":s(J,.5,.05*R),"--ink-faint":s(J,.665,.032*R),"--ink-placeholder":s(J,.7,.03*R),"--ink-inverse":Y,"--ink-inverse-muted":"rgba("+D+", "+T+")","--ink-inverse-faint":"rgba("+D+", "+I+")","--ink-on-dark":"#FFFFFF","--canvas":j.w?"#FFFFFF":s(J,.972,.008*R),"--surface":"#FFFFFF","--surface-sunken":s(J,j.w?.977:.982,.005*R),"--surface-navy":E,"--surface-navy-deep":C,"--border":$,"--border-strong":s(J,.862,.018*R),"--hairline":s(J,.955,.009*R),"--border-inverse":"rgba("+D+", 0.12)","--brand":g,"--brand-hover":ct(st),"--brand-active":ct(it),"--brand-soft":rt,"--brand-contrast":w,"--accent":n,"--accent-hover":s(o.H,Math.max(.1,o.L-.05),Math.min(o.C+.02,.2)),"--accent-active":s(o.H,Math.max(.1,o.L-.09),Math.min(o.C+.02,.2)),"--accent-soft":Z,"--accent-ink":V,"--accent-deep":X,"--accent-contrast":ot,"--link":tt,"--control-on":g,"--status-positive-bg":rt,"--status-positive-ink":d,"--status-positive-accent":N(g,"#FFFFFF",3),"--status-attention-bg":Z,"--status-attention-ink":V,"--status-attention-accent":n,"--status-critical-bg":et,"--status-critical-ink":"#FFFFFF","--status-neutral-bg":"#FFFFFF","--status-neutral-ink":s(J,.5,.05*R),"--status-neutral-border":s(J,.862,.018*R),"--danger":X,"--danger-fill":et,"--danger-soft":at,"--viz-1":ht,"--viz-2":Mt,"--viz-3":dt,"--viz-4":ut,"--viz-5":m?g:n,"--scrim":"rgba("+A+", 0.45)","--selection":Z,"--selection-ink":d,"--disabled-bg":s(J,.924,.008*R),"--disabled-ink":s(J,.7,.03*R),"--surface-raised":"#FFFFFF","--surface-raised-hover":l(d,"#FFFFFF",b),...v(A),"--surface-hover":"rgba("+A+", "+b+")","--surface-pressed":"rgba("+A+", 0.2)","--surface-current":"rgba("+A+", 0.24)"}}const tt=!(!A||"semantic"!==A.mode);let nt=null,et=null,at=null;const rt=G?Math.min(Math.max(P.C,.1),.19):.12,ot=(O.C>=.02?[O.H]:[]).concat(P.C>=.02?[P.H]:[]),st=t=>I?s(t,.27,.05*h(t)):s(t,.94,.04),it=tt&&A?.alert||null;let ct=it||s(T(O.C>=.02?Math.min(22,Math.max(12,17+Math.max(-10,Math.min(10,.35*((O.H-17+540)%360-180))))):17,12,22,ot),.55,Math.max(.15,Math.min(rt,.17)));it&&(ct=I?E(it,q["--surface"],4.5):S(it,"#FFFFFF",4.5));const Ft=r(t(ct)),lt=I?s(O.H,.15,.02):q["--ink"];let ut="#FFFFFF";if(F("#FFFFFF",ct)<4.5)if(F(lt,ct)>=4.5)ut=lt;else{const t=S(ct,"#FFFFFF",4.5);it&&U.push("Your alert color was too light for readable pill text, so solid fills deepen it to "+t+"."),ct=t}const ht=I?E(s(Ft.H,.66,Math.min(Ft.C+.02,.17)),q["--surface"],4.5):S(ct,"#FFFFFF",4.5),ft=st(Ft.H);q["--danger"]=ht,q["--danger-fill"]=ct,q["--danger-soft"]=ft,q["--alert"]=ct,q["--alert-ink"]=ut,q["--status-critical-bg"]=ct,q["--status-critical-ink"]=ut,q["--alert-soft"]=ft,q["--alert-text"]=ht;const dt=l(ht,ft,.16);q["--danger-soft-ink"]=N(ht,F(ht,dt)<F(ht,ft)?dt:ft,4.5);const Mt=n=>{const e=r(t(n));return s(e.H,Math.min(e.L+.06,.9),.9*e.C)},bt=(t,n)=>I?E(s(t,.78,.1),n,4.5):S(s(t,.45,Math.min(.6*rt,.1)),n,4.5),gt=()=>s(T(92,86,98,ot),.74,Math.min(.8*rt,.15)),pt=!tt&&G&&B(P.H,Ft.H)<35;if(pt){const n=I?Mt(gt()):gt(),e=r(t(n)),a=st(e.H);q["--status-attention-bg"]=a,q["--status-attention-ink"]=bt(e.H-8,a),q["--status-attention-accent"]=n}if(tt){const n=G&&B(P.H,60)<=40;let e=A.warn?I?E(A.warn,q["--surface"],3):S(A.warn,"#FFFFFF",2):gt();const a=r(t(e)),o=st(a.H),i=bt(a.H-8,o);I&&!A.warn&&(e=Mt(e));let c=A.positive?I?E(A.positive,q["--surface"],3):S(A.positive,"#FFFFFF",3):s(T(n?148:158,n?140:152,n?152:165,ot),.56,Math.min(.7*rt,.13));const F=r(t(c)),l=st(F.H),u=bt(F.H,l);I&&!A.positive&&(c=Mt(c));const h=I?E(c,q["--surface"],3):c;q["--status-positive-bg"]=l,q["--status-positive-ink"]=u,q["--status-positive-accent"]=h,q["--positive"]=h,q["--positive-bg"]=l,q["--positive-ink"]=u,q["--status-attention-bg"]=o,q["--status-attention-ink"]=i,q["--status-attention-accent"]=e,q["--warning"]=e,q["--warning-bg"]=o,q["--warning-ink"]=i,nt=c,et=e,at=ct}const mt=r(t(q["--danger-fill"]));q["--danger-hover"]=s(mt.H,Math.max(mt.L-.05,.08),mt.C),q["--danger-active"]=s(mt.H,Math.max(mt.L-.09,.06),mt.C),q["--alert-hover"]=q["--danger-hover"],q["--alert-active"]=q["--danger-active"],F(q["--disabled-ink"],q["--disabled-bg"])<4.5&&(q["--disabled-ink"]=I?E(q["--disabled-ink"],q["--disabled-bg"],4.5):S(q["--disabled-ink"],q["--disabled-bg"],4.5));const vt=[q["--surface"],q["--surface-sunken"],q["--canvas"]],kt=(t,n)=>t.reduce(((t,e)=>F(n,e)<F(n,t)?e:t)),yt=t=>kt(vt,t),xt=[...vt,q["--surface-raised"]],wt=(t,n)=>N(q[t],kt(xt,q[t]),n),At=q["--ink-faint"];if(q["--chart-axis"]=N(q["--border"],q["--surface"],3),q["--ink-faint"]=wt("--ink-faint",I?5.4:4.8),q["--ink-placeholder"]=wt("--ink-placeholder",4.5),q["--ink-muted"]=wt("--ink-muted",7),!I){const n=t=>xt.every((n=>F(t,n)>=1.5*F(q["--ink-faint"],n))),e=r(t(q["--ink-muted"]));for(let t=0;!n(q["--ink-muted"])&&e.L>.06&&t<120;t++)e.L=Math.max(.06,e.L-.005),q["--ink-muted"]=s(e.H,e.L,e.C)}F(q["--ink-inverse"],q["--surface-navy"])<4.5&&(q["--ink-inverse"]=c(q["--surface-navy"])<c(q["--ink-inverse"])?E(q["--ink-inverse"],q["--surface-navy"],4.5):S(q["--ink-inverse"],q["--surface-navy"],4.5)),q["--accent-contrast"]=N(q["--accent-contrast"],q["--accent"],4.5),q["--accent-inverse"]=F(q["--accent"],q["--surface-navy"])<2&&(B(P.H,O.H)<25||!G)?q["--ink-inverse"]:N(q["--accent"],q["--surface-navy"],4.5);const Ht=[q["--accent-contrast"],q["--ink-inverse"],q["--ink"],"#FFFFFF","#000000",q["--brand"]].find((t=>F(t,q["--accent-inverse"])>=4.5));q["--accent-inverse-contrast"]=Ht??N(q["--accent-contrast"],q["--accent-inverse"],4.5);const St=(t,n)=>{const e=l(q["--ink"],q["--surface"],n),a=1.12*F(e,q["--surface"]),r=1*Y(e,q["--surface"]),o=(e,a)=>F(l(t,q[e],a),q[e])>=1.085*F(l(q["--ink"],q[e],n),q[e]);for(let n=1;n<=60;n++){const s=n/100,i=l(t,q["--surface"],s);if(F(i,q["--surface"])>=a&&Y(i,e)>=r&&o("--canvas",s)&&o("--surface-raised",s))return s}return 0};let Et="",Ct=0;for(let t=W&&O.H>=p[0]&&O.H<=p[1]?.8:Math.max(g,Math.min(O.L,.8));Et=I?s(O.H,.82,W?.12:0):s(O.H,t,W?.22:0),Ct=St(Et,b),!Ct&&!I&&t!==g;t=Math.max(g,t-.02));if(Ct||(Ct=.6),W&&O.H>=m[0]&&O.H<=m[1]){const n=I?.02:.06,e=(n,e)=>r(t(l(n,q["--surface"],e))).C;if(e(Et,Ct)>n){const a=r(t(Et)),o=t=>{const n=i(a.H,a.L,t);return{src:n,a:St(n,b)||.6}};let s=0,c=a.C,F=o(0);for(let t=0;t<18;t++){const t=(s+c)/2,a=o(t);e(a.src,a.a)<=n?(s=t,F=a):c=t}Et=F.src,Ct=F.a}}q["--surface-selected"]=function(n,e){const a=t(n).map((t=>Math.round(255*t)));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+e+")"}(Et,Ct);{const t=(t,e)=>{const a=/^rgba\((\d+), (\d+), (\d+), ([\d.]+)\)$/.exec(q[t]);return a?l(n([1,2,3].map((t=>Number(a[t])/255))),e,Number(a[4])):q[t]},e=[];for(const n of[q["--surface"],q["--canvas"],q["--surface-sunken"],q["--surface-raised"]])for(const a of["--surface-selected","--surface-current","--surface-pressed"])e.push(t(a,n));for(const n of[q["--surface"],q["--canvas"]])e.push(t("--surface-hover",t("--surface-selected",n)));let a=q["--ink-muted"];for(let t=0;t<=1.0001&&(a=l(q["--ink"],q["--ink-muted"],Math.min(1,t)),!e.every((t=>F(a,t)>=4.5)));t+=.01);q["--ink-muted-on-wash"]=a}const Nt=[q["--brand-soft"],...[q["--surface"],q["--canvas"],q["--surface-raised"]].map((t=>l(Et,t,Ct)))],zt=[q["--brand"],q["--ink"],q["--ink-inverse"],"#000000","#FFFFFF"].find((t=>Nt.every((n=>F(t,n)>=4.5)))),Bt=Nt.reduce(((t,n)=>F(q["--ink"],n)<F(q["--ink"],t)?n:t));q["--brand-soft-ink"]=zt??N(q["--ink"],Bt,4.5);const Yt=t=>F(t,q["--accent-soft"])>=4.5;let Dt=Yt(q["--accent-ink"])?q["--accent-ink"]:void 0;if(!Dt){const n=r(t(q["--accent-ink"]));for(const e of[-1,1]){for(let a=1;a<=60&&!Dt;a++){const o=n.L+e*a*.005;if(o<.05||o>.97)break;const s=i(n.H,o,n.C);r(t(s)).C<n.C-.004||Yt(s)&&(Dt=s)}if(Dt)break}}Dt||(Dt=[q["--ink"],q["--ink-inverse"],"#000000","#FFFFFF"].find(Yt)),q["--accent-soft-ink"]=Dt??N(q["--accent-ink"],q["--accent-soft"],4.5),tt||pt||(q["--status-attention-ink"]=q["--accent-soft-ink"]),q["--status-info-bg"]=q["--surface-sunken"],q["--status-info-ink"]=z(q["--status-info-bg"],[q["--brand"],q["--ink"],q["--ink-inverse"]]);const Lt=n=>{const e=r(t(n));if(e.C<.05)return!1;const a=(n,a)=>{const o=r(t(n));return o.C>=.05&&B(e.H,o.H)<35&&(!a||Math.abs(e.L-o.L)<.2)};return a(q["--danger"],!1)||a(q["--status-attention-accent"],!0)},Tt=I?E(q["--status-neutral-border"],q["--surface"],3):N(q["--status-neutral-border"],"#FFFFFF",3),It=I?E(q["--brand"],q["--surface"],3):N(q["--brand"],"#FFFFFF",3);q["--status-info-accent"]=Lt(It)?Tt:It,q["--status-positive-edge"]=Lt(q["--status-positive-accent"])?Tt:q["--status-positive-accent"],q["--media-dark"]=s(O.H,.13,Math.min(.07,O.C));{const n=q["--ink-inverse"],e=q["--surface-navy"],a=l(n,e,.07);let r=.16;for(;r<.5;){const t=l(n,e,r);if(F(t,e)>=1.12*F(a,e)&&Y(t,a)>=Y(a,e))break;r=Math.round(100*(r+.01))/100}q["--surface-navy-current"]="rgba("+t(n).map((t=>Math.round(255*t))).join(", ")+", "+r+")"}q["--status-positive-contrast"]=z(q["--status-positive-accent"],["#FFFFFF",q["--ink-inverse"],q["--ink"]],3),q["--status-attention-contrast"]=z(q["--status-attention-accent"],[q["--accent-contrast"],q["--ink"],q["--ink-inverse"],"#FFFFFF"],3),tt&&(q["--positive-contrast"]=q["--status-positive-contrast"],q["--warning-contrast"]=q["--status-attention-contrast"],q["--positive-edge"]=q["--status-positive-edge"],q["--info-edge"]=q["--status-info-accent"]),q["--danger-contrast"]=z(q["--danger-fill"],["#FFFFFF",q["--ink-inverse"],q["--ink"]]);const Ot=B(P.H,O.H)<15||!G,$t=r(t(q["--danger-fill"])),Pt=n=>{const e=r(t(n));return e.C>=.04&&B(e.H,$t.H)<15&&Math.abs(e.L-$t.L)<.12},jt=Pt(q["--brand"])||Pt(q["--accent"]);q["--danger-fill-edge"]=jt?"rgba(255, 255, 255, 0.45)":"transparent",jt&&U.push("Your primary or accent sits close to the error red, so filled danger buttons carry an inner edge as well as their white label."),!I&&F(q["--accent"],"#FFFFFF")<2.2&&F(q["--danger-fill"],"#FFFFFF")>F(q["--accent"],"#FFFFFF")+1.5&&U.push('Your accent is light, so a filled danger button is heavier than it on white. Give inline destructive actions tone="danger" on an outline or ghost button and keep the filled one for the confirmation step.');const Wt=(n,e,a)=>{if(!Ot&&F(q["--accent"],n)>=2&&F(q["--accent"],e)>=1.5)return q["--accent"];const o=l(e,n,a),i=r(t(q["--accent"]));let c=q["--accent"],u=-1/0;for(let t=.2;t<=.951;t+=.01){const a=s(i.H,t,i.C),r=Math.min(F(a,n)/3,F(a,e)/2,F(a,o)/1.6);r>u&&(u=r,c=a)}return c};q["--logo-spark"]=Wt(q["--surface"],q["--ink"],.14),q["--logo-spark-inverse"]=Wt(q["--surface-navy"],q["--ink-inverse"],K?.14:.82),q["--logo-quiet-inverse"]=K?"14%":"82%",q["--accent-mark"]=N(q["--accent"],yt(q["--accent"]),2),q["--status-attention-accent"]=N(q["--status-attention-accent"],yt(q["--status-attention-accent"]),2),tt&&(q["--warning"]=q["--status-attention-accent"]),q["--control-border"]=N(q["--border-strong"],kt(xt,q["--border-strong"]),3);const Gt=[e,a,o,tt?"semantic":"brand",tt&&A?.alert||""].join("|");let Jt;if(I){L.has(Gt)||Z(e,a,o,A,!1);const t=L.get(Gt)??"primary";Jt={from:t,ring:D("primary"===t?q["--brand"]:q["--accent"],vt,q["--brand"],4.5)}}else Jt=function(n,e,a,o){const s=r(t(a)),i=(n,e)=>{const i=D(e,o,null,3),c=r(t(i)),l=Y(i,a),u=c.C>=.015&&s.C>=.03&&B(c.H,s.H)<30||l<.1,h=o.every((t=>F(i,t)>=2.995))&&!0;return{from:n,ring:i,nearDanger:u,apart:l,fits:h,colourful:c.C>=.025,shift:Y(i,e)}},c=[i("primary",n),i("accent",e)],l=c.filter((t=>!t.nearDanger)),u=t=>"primary"===t.from?-1:1;l.length?l.sort(((t,n)=>Number(n.fits)-Number(t.fits)||Number(n.colourful)-Number(t.colourful)||t.shift-n.shift||u(t))):c.sort(((t,n)=>Number(n.fits)-Number(t.fits)||n.apart-t.apart||u(t)));const h=l.length?l[0]:c[0];return{from:h.from,ring:h.ring}}(q["--brand"],q["--accent"],q["--danger"],vt),Rt=Gt,Ut=Jt.from,L.size>256&&L.clear(),L.set(Rt,Ut);var Rt,Ut;q["--focus-ring"]=Jt.ring,q["--focus-halo"]=function(n,e,a){if(a)return l(n,e,.35);const o=r(t(n));return i(o.H,.87,o.C<.02?0:Math.min(Math.max(.6*o.C,.05),.1))}(Jt.ring,q["--surface"],I),q["--focus-shadow"]=I?"0 0 0 1px "+q["--surface"]+", 0 0 0 3px "+Jt.ring:"0 0 0 3px "+q["--focus-halo"];const Zt=G&&X>V+.15,qt=Math.pow(Math.min(1,(Zt?X:V)/.6),2);if(K||Zt||qt<1){const t=Zt?P.H:O.H,n=((Zt?G:W)?Math.min(Math.max(Zt?P.C:O.C,.06),.11):0)*qt*h(t);Q={bg:s(t,.235,n),head:s(t,.28,n),chip:s(t,.34,n),ink:I?q["--ink"]:"#FFFFFF"},Zt&&U.push("Code panes take the accent as their dark ground, because the primary turns brown or olive in the dark and the accent does not.")}q["--sui-code-dark-bg"]=Q?Q.bg:q["--surface-navy-deep"],q["--sui-code-dark-head"]=Q?Q.head:q["--surface-navy"],q["--sui-code-dark-chip"]=Q?Q.chip:q["--brand-hover"],q["--sui-code-dark-ink"]=Q?Q.ink:q["--ink-inverse"],q["--sui-code-dark-accent"]=[q["--accent"],q["--brand"]].find((t=>F(t,q["--sui-code-dark-bg"])>=4.5))??N(q["--accent"],q["--sui-code-dark-bg"],4.5),q["--logo-spark"]===q["--accent"]&&q["--logo-spark-inverse"]===q["--accent"]||U.push("Your accent cannot carry the logo spark against the pills beside it, so the mark draws its spark at another tone of the same hue. Nothing in the mark disappears and the three tiers stay apart.");const Kt=s(J,.962,.006*R);let Qt=S(s(J,.3,.03*R),Kt,14);for(let n=0;n<40&&F(l(Qt,Kt,u),Kt)<4.6;n++){const n=r(t(Qt));if(n.L<=.06)break;Qt=s(n.H,Math.max(.06,n.L-.012),n.C)}const Vt=(Xt=Kt,Math.max(4.5,1.5*F(l(Qt,Xt,u),Xt)));var Xt;const _t=W||G?.165:0,tn=0===_t,nn=G?P.H:O.H,en=W?O.H:P.H,an=W&&G&&(rn=nn)>=155&&rn<=245&&w(en,_t,Kt,Vt)>w(nn,_t,Kt,Vt)+.002;var rn;const on=an?en:nn,sn=an?nn:en,cn=H(on,sn,tn,_t,Kt),Fn=cn.famH,ln=cn.tight,un=_&&!an?H(sn,on,tn,_t,Kt):cn,hn=k(un.famH,.52,_t,Kt,!1,5.4),fn=k(un.famH,hn.L-.11,_t,Kt,!1),dn=un.tight?k(un.keyH,(fn.L+hn.L)/2,_t,Kt,!1,Vt).hex:y(un.keyH,_t,Kt,!1,Vt),Mn=s(O.H,.3,W?Math.min(Math.max(O.C,.06),.11):0),bn=q["--sui-code-dark-bg"],gn=W||G?.19:0,pn=k(Fn,.66,gn,Mn,!0),mn=k(Fn,pn.L+.11,gn,Mn,!0),vn=Math.max(4.5,6.75),kn=ln?k(on,(mn.L+pn.L)/2,gn,bn,!0,vn).hex:y(on,gn,bn,!0,vn),yn=q["--sui-code-dark-ink"],xn=x(yn,bn,4.5),wn=Math.min(1,Math.max(.66,xn+.06)),An=Math.min(1,Math.max(.88,wn+.06)),Hn=t=>(Math.ceil(1e4*t)/100).toFixed(2)+"%",Sn=(t,n)=>(t+n)/2,En=tn?l(Qt,Kt,Sn(u,.78)):"",Cn=tn?l(Qt,Kt,Sn(.78,.92)):"",Nn=tn?l(yn,bn,Sn(xn,wn)):"",zn=tn?l(yn,bn,Sn(wn,An)):"";q["--sui-code-light-bg"]=Kt,q["--sui-code-light-ink"]=Qt,q["--sui-code-light-key"]=tn?Cn:dn,q["--sui-code-light-num"]=tn?En:fn.hex,q["--sui-code-light-str"]=tn?En:hn.hex,q["--sui-code-duo-key"]=tn?zn:kn,q["--sui-code-duo-num"]=tn?Nn:mn.hex,q["--sui-code-duo-str"]=tn?Nn:pn.hex,q["--sui-code-dark-fg-mix"]=Hn(An),q["--sui-code-dark-muted-mix"]=Hn(wn),q["--sui-code-dark-dim-mix"]=Hn(xn),["--palette-deep-blue","--palette-orange","--palette-blue-gray","--palette-white","--palette-black","--palette-link-blue","--palette-orange-deep","--palette-slate"].forEach(((t,n)=>{q[t]=[q["--ink"],q["--accent"],q["--border"],"#FFFFFF","#000000",q["--link"],q["--accent-deep"],At][n]}));const Bn=[["Body text on the page background",q["--ink"],q["--canvas"]],["Accent on the inverse panel",q["--accent-inverse"],q["--surface-navy"]],["Chip text on soft brand fills",q["--brand-soft-ink"],q["--brand-soft"]],["Text on soft accent fills",q["--accent-soft-ink"],q["--accent-soft"]],["Danger button labels",q["--danger-contrast"],q["--danger-fill"]],["Red text on the red tint",q["--danger-soft-ink"],q["--danger-soft"]],["Button labels on the primary color",q["--brand-contrast"],q["--brand"]],["Links on cards",q["--link"],q["--surface"]],["Positive text on soft positive fills",q["--status-positive-ink"],q["--status-positive-bg"]],["Info text on soft info fills",q["--status-info-ink"],q["--status-info-bg"]]].concat(tt?[["Warning text on soft warning fills",q["--status-attention-ink"],q["--status-attention-bg"]],["Alert pill text",q["--status-critical-ink"],q["--status-critical-bg"]],["Alert text on cards",q["--danger"],q["--surface"]]]:[["Small text on soft accent fills",q["--accent-ink"],q["--accent-soft"]],["Critical pill text",q["--status-critical-ink"],q["--status-critical-bg"]]]).map((t=>({label:String(t[0]),ratio:F(String(t[1]),String(t[2]))})));return{T:q,checks:Bn,notes:U,suggestedPositive:nt,suggestedWarn:et,suggestedAlert:at}}function q(t,n){return t+" {\n"+Object.keys(n).map((t=>" "+t+": "+n[t]+";")).join("\n")+"\n}\n"}const K=["shineui","evergreen","plum","midnight","graphite"];function Q(t,n,e="custom"){const a=String(null==t?"":t).trim()||"html";if(!function(t){if(t.includes("<"))return!1;let n="";for(let e=0;e<t.length;e++){const a=t.charAt(e);if("\\"!==a)if(n){if(a===n)n="";else if("\n"===a||"\r"===a||"\f"===a)return!1}else if('"'===a||"'"===a)n=a;else{if("{"===a||"}"===a||";"===a||"@"===a)return!1;if("/"===a&&"*"===t.charAt(e+1))return!1}else{if(e+1>=t.length)return!1;e++}}return!n}(a))throw new TypeError(`sheetSelector: ${JSON.stringify(a)} cannot be written into a style sheet.`);if(!/^[a-z][a-z0-9-]*$/.test(String(e)))throw new TypeError(`sheetSelector: ${JSON.stringify(e)} is not a preset name.`);const r=`[data-sui-preset="${e}"]`;return"html"===a||n&&"HTML"===n.nodeName?"html"+r:a+r}function V(n,e){const a={};return Object.keys($).forEach((o=>{const i=$[o],c=null===i.H?r(t(n)):-1===i.H?r(t(e)):null,F=c?c.H:i.H??0,l=c&&c.C<.02?0:i.f;a[o]=[i.w?"#FFFFFF":s(F,.972,.008*l),s(F,.862,.018*l)]})),a}function X(){const t=360*Math.random(),n=s(t,.24+.38*Math.random(),.06+.1*Math.random()),e=Math.floor(5*Math.random()),a=O(n)[e],r=Object.keys($),o=r[Math.floor(Math.random()*r.length)],i=Math.random();return i<.4?{primary:n,accent:I(s((t+40+280*Math.random())%360,.62+.18*Math.random(),.12+.05*Math.random())),accentMode:"custom",accentIdx:e,neutral:o}:i<.8?{primary:n,accent:a,accentMode:"auto",accentIdx:e,neutral:o}:{primary:n,accent:n,accentMode:"primary",accentIdx:e,neutral:o}}export{W as N,K as P,j as S,r as a,o as b,F as c,Z as d,U as e,P as f,$ as g,t as h,X as i,O as j,R as m,V as n,l as o,G as p,n as r,Q as s,q as t}
@@ -0,0 +1 @@
1
+ import{b as t,e as n}from"./p-COO9uV7W.js";function e(t,n=0){const e="undefined"!=typeof window&&window.devicePixelRatio>0?window.devicePixelRatio:1;return Math.round((t+n)*e)/e-n}function r(t,n,e,r){const o=Math.max(0,t||0),s=Math.max(0,n||0),u=Math.max(0,r||0),a=Math.max(0,e||0),i=Math.min(o,a),c=Math.max(0,o-a);return{top:i,bottom:-Math.max(0,u-s-c)}}function o(t){return`inset(${t.top}px -1000000px ${t.bottom}px -1000000px)`}class s{count=0;size=1;overrides;at=[];start=[];sizeAt=[];total=0;set(t,n,e){const r=Math.max(0,Math.floor(t)||0),o=Math.max(1,n||1);r===this.count&&o===this.size&&e===this.overrides||(this.count=r,this.size=o,this.overrides=e,this.build())}build(){this.at=[],this.start=[],this.sizeAt=[];const t=this.overrides;if(!t||0===t.size)return void(this.total=this.count*this.size);for(const n of t.keys())n>=0&&n<this.count&&this.at.push(n);this.at.sort(((t,n)=>t-n));let n=-1,e=0;for(const r of this.at){const o=e+(r-n-1)*this.size,s=Math.max(0,t.get(r)||0);this.start.push(o),this.sizeAt.push(s),n=r,e=o+s}this.total=e+(this.count-n-1)*this.size}get extent(){return this.total}get length(){return this.count}sizeOf(t){if(0===this.at.length)return this.size;const n=this.exact(t);return n>=0?this.sizeAt[n]:this.size}offsetOf(t){const n=Math.max(0,Math.min(this.count,Math.floor(t)||0));if(0===this.at.length)return n*this.size;const e=this.lastBefore(n);return e<0?n*this.size:this.start[e]+this.sizeAt[e]+(n-this.at[e]-1)*this.size}indexAt(t){if(0===this.count)return 0;const n=Math.max(0,t);if(0===this.at.length)return Math.min(this.count-1,Math.floor(n/this.size));let e=0,r=this.at.length-1,o=-1;for(;e<=r;){const t=e+r>>1;this.start[t]<=n?(o=t,e=t+1):r=t-1}if(o<0)return Math.min(this.at[0],Math.floor(n/this.size));const s=this.start[o]+this.sizeAt[o];return n<s?this.at[o]:Math.min(this.count-1,this.at[o]+1+Math.floor((n-s)/this.size))}exact(t){let n=0,e=this.at.length-1;for(;n<=e;){const r=n+e>>1,o=this.at[r];if(o===t)return r;o<t?n=r+1:e=r-1}return-1}lastBefore(t){let n=0,e=this.at.length-1,r=-1;for(;n<=e;){const o=n+e>>1;this.at[o]<t?(r=o,n=o+1):e=o-1}return r}}function u(t,n){const e=Math.max(1,Math.floor(t.overscan)||1),r=Math.max(1,Math.floor(t.block||0)||1),o=Math.ceil(1.75*e)+24,s=Math.max(1,Math.floor(.4*e)),u=Math.max(0,n)+o+s;return r>1?Math.ceil(u/r)*r+r:u}function a(t,n){const e=t.length;if(0===e)return{start:0,end:0};const r=Math.max(1,Math.floor(n.overscan)||1),o=n.velocity||0,s=Math.min(24,Math.round(Math.abs(o)/900*r)),u=Math.ceil(1.75*r)+s,a=Math.max(1,Math.floor(.4*r)),i=o>=0?a:u,c=o>=0?u:a,f=Math.max(0,n.scrollTop||0),l=t.indexAt(f),h=t.indexAt(f+Math.max(0,n.viewport||0)),d=Math.max(1,Math.floor(n.block||0)||1);if(d<=1)return{start:Math.max(0,l-i),end:Math.min(e,h+1+c)};const M=Math.max(0,Math.floor(Math.max(0,l-i)/d)*d),p=Math.ceil((h-l+1+i+c)/d)*d+d;return{start:M,end:Math.min(e,M+p)}}function i(t,n,e,r="auto"){const o=t.length;if(0===o)return null;const s=Math.max(0,Math.min(o-1,Math.floor(e)||0)),u=t.offsetOf(s),a=t.sizeOf(s),i=Math.max(0,n.viewport||0),c=Math.max(0,t.extent-i),f=t=>Math.max(0,Math.min(c,t));if("start"===r)return f(u);if("end"===r)return f(u+a-i);if("center"===r)return f(u+a/2-i/2);const l=Math.max(0,n.scrollTop||0);return u<l?f(u):u+a>l+i?f(u+a-i):null}const c=48,f=(t,n)=>{const e=Math.max(48,n.minWidth||0);return Math.min(n.maxWidth&&n.maxWidth>e?n.maxWidth:1/0,Math.max(e,t))};function l(t){return t.type||(t.money?"number":"text")}function h(t){return t.align?t.align:"number"===l(t)?"right":"left"}function d(t){return t.align?`al-${t.align}`:"number"===l(t)?"al-end":"al-start"}function M(t,n){const e=n.hidden,r=function(t,n){if(!n||0===n.length)return t.slice();const e=new Map;n.forEach(((t,n)=>e.set(t,n)));const r=(t,r)=>e.get(t.key)??n.length+r;return t.map(((t,n)=>({c:t,r:r(t,n)}))).sort(((t,n)=>t.r-n.r)).map((t=>t.c))}(t,n.order).filter((t=>!t.hidden&&!e?.has(t.key))),o=t=>n.pinned&&n.pinned.has(t.key)?n.pinned.get(t.key):t.pin,u=new Map;let a=0,i=0;for(const t of r){const e=n.resized?.get(t.key);if(null!=e){const n=f(e,t);u.set(t.key,n),a+=n}else if(t.flex&&t.flex>0)i+=t.flex;else{const n=f(t.width||160,t);u.set(t.key,n),a+=n}}const c=Math.max(0,(n.viewport||0)-a),M=t=>{const n=u.get(t.key);return null!=n?n:f(i>0?c*(t.flex||0)/i:0,t)},p=[],m=[],y=[];for(const t of r){const n=o(t),e={column:t,key:t.key,index:0,width:M(t),offset:0,align:h(t),type:l(t),pin:n,cellClass:"",cellStyle:{insetInlineStart:"0px",width:"0px"},headerClass:"",headerStyle:{insetInlineStart:"0px",width:"0px"}};("start"===n?p:"end"===n?y:m).push(e)}const b=t=>{let n=0;for(const e of t)e.offset=n,n+=e.width;return n},w=b(p),g=b(m),x=b(y),S=p.concat(m,y),A=new Map;S.forEach(((t,n)=>{t.index=n,A.set(t.key,t);const e=t.column,r={insetInlineStart:`${t.offset}px`,width:`${t.width}px`},o=d(e);t.cellStyle=r,t.headerStyle=r,t.cellClass=`sui-dg-cell ${o}${"number"===t.type?" num":""}${e.money?" money":""}${e.muted?" muted":""}${e.nowrap?" nowrap":""}`,t.headerClass=`sui-dg-hcell ${o}${e.sortable?" sortable":""}`}));const v=new s,I=new Map;return m.forEach(((t,n)=>I.set(n,t.width))),v.set(m.length,160,I),{start:p,center:m,end:y,all:S,byKey:A,startWidth:w,centerWidth:g,endWidth:x,totalWidth:w+g+x,centerGeometry:v}}function p(t,n,e,r=4,o=4){const s=t.center.length;if(0===s)return{start:0,end:0};const u=t.centerGeometry,a=Math.max(0,n||0),i=u.indexAt(a),c=u.indexAt(a+Math.max(0,e||0)),f=Math.max(1,r);let l=Math.max(0,i-f),h=Math.min(s,c+1+f);const d=Math.max(1,Math.floor(o)||1);return d>1&&(l=Math.max(0,Math.floor(l/d)*d),h=Math.min(s,Math.ceil(h/d)*d)),{start:l,end:h}}function m(t,n,e){const r=t.slice(),o=r.indexOf(n);o>=0&&r.splice(o,1);const s=r.indexOf(e);return r.splice(s<0?r.length:s,0,n),r}function y(t,n){const e=new Set(t||[]);return e.has(n)?e.delete(n):e.add(n),Array.from(e)}let b;function w(){return b||=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"})}function g(t,n){return n.value?n.value(t):t[n.field||n.key]}function x(t,n){const e=g(n,t);return t.format?t.format(e,n):null==e?"":String(e)}function S(t,n){return A(t,g(n,t),n)}function A(n,e,r){return n.format?n.format(e,r):"number"==typeof e&&Number.isFinite(e)&&"number"===l(n)?t(e):null==e?"":String(e)}function v(t,e){if(null==t||""===t)return null;switch(e){case"number":{const e=function(t){if("number"==typeof t)return t;if("boolean"==typeof t)return t?1:0;if(t instanceof Date)return t.getTime();const e=n(t);return"number"==typeof e?e:NaN}(t);return Number.isNaN(e)?null:e}case"date":{const n=function(t){return t instanceof Date?t.getTime():"number"==typeof t?t:"string"==typeof t?Date.parse(t):NaN}(t);return Number.isNaN(n)?null:n}case"boolean":return function(t){if("string"==typeof t){const n=t.trim().toLowerCase();return"false"!==n&&"0"!==n&&"no"!==n}return!!t}(t)?1:0;default:return"string"==typeof t?t:String(t)}}function I(t,n){return"number"==typeof t&&"number"==typeof n?t<n?-1:t>n?1:0:w().compare(String(t),String(n))}function q(t,n,e){if(t&&n)return 0;const r="first"===e?-1:1;return t?r:-r}function E(t){return null==t||""===t}function k(t,n,e,r={}){if(t.length<2||!n||0===n.length)return t.slice();const o=new Map;for(const t of e)o.set(t.key,t);const s=[];for(const t of n){const n=o.get(t.key);n&&s.push({read:t=>g(t,n),type:l(n),sign:"desc"===t.dir?-1:1,compare:n.compare})}if(0===s.length)return t.slice();const u=r.nullOrder||"last",a=r.fastPath??5e3,i=s.some((t=>!!t.compare));if(t.length<=a||i){const n=t.slice();return n.sort(((t,n)=>{for(const e of s){const r=e.read(t),o=e.read(n);let s;if(e.compare){const t=E(r),n=E(o);s=t||n?q(t,n,u):e.sign*e.compare(r,o)}else{const t=v(r,e.type),n=v(o,e.type);s=null===t||null===n?q(null===t,null===n,u):e.sign*I(t,n)}if(0!==s)return s}return 0})),n}const c=t.length,f=s.map((n=>function(t,n,e){const r=t.length,o=new Uint8Array(r),s="first"===e?-1:1,u=n.sign;if("text"===n.type){const e=new Array(r);for(let s=0;s<r;s++){const r=v(n.read(t[s]),"text");null===r?(o[s]=1,e[s]=""):e[s]=String(r)}const a=w().compare;return(t,n)=>{const r=o[t],i=o[n];return r||i?r&&i?0:r?s:-s:u*a(e[t],e[n])}}const a="boolean"===n.type?new Uint8Array(r):new Float64Array(r);for(let e=0;e<r;e++){const r=v(n.read(t[e]),n.type);"number"==typeof r?a[e]=r:o[e]=1}return(t,n)=>{const e=o[t],r=o[n];if(e||r)return e&&r?0:e?s:-s;const i=a[t],c=a[n];return i<c?-u:i>c?u:0}}(t,n,u))),h=new Array(c);for(let t=0;t<c;t++)h[t]=t;h.sort(((t,n)=>{for(let e=0;e<f.length;e++){const r=f[e](t,n);if(0!==r)return r}return 0}));const d=new Array(c);for(let n=0;n<c;n++)d[n]=t[h[n]];return d}function W(t){return Array.isArray(t.items)}function $(t,n,e,r){const o={...t?.rules||{}};(null==e||""===e||Array.isArray(e)&&e.every((t=>null==t||""===t)))&&"empty"!==r&&"notEmpty"!==r?delete o[n]:o[n]={key:n,operator:"and",constraints:[Q.has(r)?{matchMode:r}:{value:e,matchMode:r}]};const s={rules:o};return t?.global&&(s.global=t.global),t?.tree&&(s.tree=t.tree),s}function N(t){return String(t).normalize("NFD").replace(/\p{Diacritic}/gu,"").toLowerCase()}function D(t){const n=v(t,"text");return null===n?null:N(String(n))}function C(t){return null==t||""===t||!!Array.isArray(t)&&(0===t.length||t.every((t=>null==t||""===t)))}function B(t){return null===t?null:n=>!t(n)}function O(t,n){const e=N(n);return n=>{const r=D(n);return null!==r&&("contains"===t?r.includes(e):"startsWith"===t?r.startsWith(e):r.endsWith(e))}}function j(t,n){if("text"===n){const n=N(t);return t=>D(t)===n}const e=v(t,n);return null===e?null:t=>{const r=v(t,n);return null!==r&&0===I(r,e)}}function z(t,n){if(!Array.isArray(t))return null;if("text"===n){const n=new Set;for(const e of t)C(e)||n.add(N(e));return 0===n.size?null:t=>{const e=D(t);return null!==e&&n.has(e)}}const e=new Set;for(const r of t){const t=v(r,n);null!==t&&e.add(t)}return 0===e.size?null:t=>{const r=v(t,n);return null!==r&&e.has(r)}}function G(t,n){const e=v(n,"date");if("number"!=typeof e)return null;const r=function(t){const n=new Date(t);return n.setHours(0,0,0,0),n.getTime()}(e),o=function(t){const n=new Date(t);return n.setHours(0,0,0,0),n.setDate(n.getDate()+1),n.getTime()}(e);return n=>{const e=v(n,"date");return"number"==typeof e&&("is"===t?e>=r&&e<o:"before"===t?e<r:e>=o)}}function F(t,n){if("empty"===t.matchMode)return t=>null===v(t,n);if("notEmpty"===t.matchMode)return t=>null!==v(t,n);if(C(t.value))return null;switch(t.matchMode){case"startsWith":case"contains":case"endsWith":return O(t.matchMode,t.value);case"notContains":return B(O("contains",t.value));case"equals":return j(t.value,n);case"notEquals":return B(j(t.value,n));case"in":return z(t.value,n);case"notIn":return B(z(t.value,n));case"lt":case"lte":case"gt":case"gte":return function(t,n,e){const r=v(n,e);return null===r?null:n=>{const o=v(n,e);if(null===o)return!1;const s=I(o,r);return"lt"===t?s<0:"lte"===t?s<=0:"gt"===t?s>0:s>=0}}(t.matchMode,t.value,n);case"between":return function(t,n){if(!Array.isArray(t))return null;const e=v(t[0],n),r=v(t[1],n);return null===e&&null===r?null:t=>{const o=v(t,n);return!(null===o||null!==e&&I(o,e)<0||null!==r&&I(o,r)>0)}}(t.value,n);case"dateIs":return G("is",t.value);case"dateIsNot":return B(G("is",t.value));case"dateBefore":return G("before",t.value);case"dateAfter":return G("after",t.value);default:return null}}function L(t,n){const e=l(n),r=[];for(const n of t.constraints||[]){const t=F(n,e);t&&r.push(t)}if(0===r.length)return null;if(1===r.length){const t=r[0];return e=>t(g(e,n))}const o="or"===t.operator;return t=>{const e=g(t,n);for(const t of r){const n=t(e);if(o&&n)return!0;if(!o&&!n)return!1}return!o}}function U(t,n){const e=[];for(const r of t.items||[]){if(W(r)){const t=U(r,n);t&&e.push(t);continue}const t=n.get(r.key);if(!t)continue;const o=F({matchMode:r.matchMode,value:r.value},l(t));o&&e.push((n=>o(g(n,t))))}if(0===e.length)return null;if(1===e.length)return e[0];const r="or"===t.operator;return t=>{for(const n of e){const e=n(t);if(r&&e)return!0;if(!r&&!e)return!1}return!r}}function H(t,n){const e=[];if(!t)return e;const r=new Map;for(const t of n)r.set(t.key,t);if(t.rules)for(const n of Object.keys(t.rules)){const o=t.rules[n];if(!o)continue;const s=r.get(o.key);if(!s)continue;const u=L(o,s);u&&e.push(u)}if(t.global){const n=function(t,n){if(C(t.value))return null;const e=t.matchMode||"contains",r=[];for(const o of t.keys){const s=n.get(o);if(!s)continue;const u=F({value:t.value,matchMode:e},l(s));u&&r.push({column:s,test:u})}return 0===r.length?null:t=>{for(const n of r)if(n.test(g(t,n.column)))return!0;return!1}}(t.global,r);n&&e.push(n)}if(t.tree){const n=U(t.tree,r);n&&e.push(n)}return e}function K(t,n,e){const r=H(n,e);return 0===r.length?t:t.filter((t=>{for(const n of r)if(!n(t))return!1;return!0}))}const V={text:["contains","notContains","startsWith","endsWith","equals","notEquals","empty","notEmpty"],number:["equals","notEquals","lt","lte","gt","gte","between","empty","notEmpty"],date:["dateIs","dateIsNot","dateBefore","dateAfter","between","empty","notEmpty"],boolean:["equals","notEquals","empty","notEmpty"]},J={contains:"Contains",notContains:"Does not contain",startsWith:"Starts with",endsWith:"Ends with",equals:"Equals",notEquals:"Does not equal",lt:"Less than",lte:"Less than or equal",gt:"Greater than",gte:"Greater than or equal",between:"Between",dateIs:"Is",dateIsNot:"Is not",dateBefore:"Before",dateAfter:"After",empty:"Is blank",notEmpty:"Is not blank",in:"Is any of",notIn:"Is none of"};function P(t){return t.filterOptions&&t.filterOptions.length?["in","notIn","empty","notEmpty"]:V[l(t)]||V.text}const Q=new Set(["empty","notEmpty"]);function R(t){return"number"===t||"boolean"===t?"equals":"date"===t?"dateIs":"contains"}function T(t,n,e){const r={...t?.rules||{}};e?r[n]=e:delete r[n];const o={rules:r};return t?.global&&(o.global=t.global),t?.tree&&(o.tree=t.tree),o}function X(t){const n=t.filterOptions;return n&&0!==n.length?n.map((t=>"string"==typeof t?{value:t,label:t}:{value:String(t.value),label:t.label})):null}function Y(t){return t.matchMode||R(l(t))}function Z(t,n){const e=X(n);if(e){const n=t?.constraints?.[0];let r=e.map((t=>t.value));if(!n||"in"!==n.matchMode&&"equals"!==n.matchMode||C(n.value)){if(n&&"notIn"===n.matchMode&&Array.isArray(n.value)){const t=new Set(n.value.map((t=>N(t))));r=e.filter((n=>!t.has(N(n.value)))).map((t=>t.value))}}else{const t=new Set((Array.isArray(n.value)?n.value:[n.value]).map((t=>N(t))));r=e.filter((n=>t.has(N(n.value)))).map((t=>t.value))}return{operator:"and",conditions:[],values:r}}const r=(t?.constraints||[]).map((t=>({matchMode:t.matchMode,value:t.value})));return{operator:"or"===t?.operator?"or":"and",conditions:r.length?r:[{matchMode:Y(n),value:void 0}]}}function _(t){return{matchMode:Y(t),value:void 0}}function tt(t){return!!Q.has(t.matchMode)||("between"===t.matchMode?Array.isArray(t.value)&&!C(t.value):!C(t.value))}function nt(t,n,e){const r=X(e);if(r&&t.values){const e=t.values;if(0===e.length||e.length>=r.length)return;return{key:n,operator:"and",constraints:[{matchMode:"in",value:e.slice()}]}}const o=t.conditions.filter(tt).map((t=>Q.has(t.matchMode)?{matchMode:t.matchMode}:{matchMode:t.matchMode,value:t.value}));if(0!==o.length)return{key:n,operator:t.operator,constraints:o}}function et(t){return Q.has(t.matchMode)?{matchMode:t.matchMode}:{matchMode:t.matchMode,value:t.value}}function rt(t){if(!t)return 0;let n=0;for(const e of Object.keys(t.rules||{}))n+=t.rules[e]?.constraints?.length||0;const e=t=>{for(const r of t.items||[])W(r)?e(r):n++};return t.tree&&e(t.tree),n}function ot(t){const n=P(t);return t.matchMode&&n.includes(t.matchMode)?t.matchMode:n.includes("in")?"in":R(l(t))}function st(t){const n=[];for(const e of Object.keys(t?.rules||{})){const r=t.rules[e];if(!r||!r.constraints?.length)continue;const o=r.constraints.map((t=>({key:r.key,matchMode:t.matchMode,value:t.value})));n.push(1===o.length?o[0]:{operator:"or"===r.operator?"or":"and",items:o})}const e=t?.tree;if(e&&e.items?.length){if(!n.length)return{operator:e.operator,items:e.items.slice()};"and"===e.operator?n.push(...e.items):n.push(e)}return{operator:"and",items:n}}function ut(t){const n=[];for(const e of t.items||[])if(W(e)){const t=ut(e);t&&n.push(1===t.items.length?t.items[0]:t)}else e.key&&tt(e)&&n.push({key:e.key,...et(e)});return n.length?{operator:"or"===t.operator?"or":"and",items:n}:void 0}function at(t,n){const e={rules:{}};n?.global&&(e.global=n.global);const r=ut(t);if(!r)return e;if("or"===r.operator&&r.items.length>1)return e.tree=r,e;const o={},s=[],u=t=>"and"===t.operator||1===t.constraints.length;for(const t of r.items){let n=null;if(W(t)){const e=t.items[0];t.items.every((t=>!W(t)&&t.key===e.key))&&!W(e)&&(n={key:e.key,operator:t.operator,constraints:t.items.map(et)})}else n={key:t.key,operator:"and",constraints:[et(t)]};if(!n){s.push(t);continue}const e=o[n.key];e?u(e)&&u(n)?o[n.key]={key:n.key,operator:"and",constraints:[...e.constraints,...n.constraints]}:s.push(t):o[n.key]=n}return e.rules=o,s.length&&(e.tree={operator:"and",items:s}),e}function it(t){const n=new Set,e=t=>{for(const r of t.items||[])W(r)?e(r):r.key&&n.add(r.key)};return t&&e(t),n}export{rt as A,k as B,K as C,p as D,o as E,Q as F,u as G,r as H,c as M,s as S,J as a,_ as b,P as c,l as d,g as e,X as f,a as g,$ as h,ot as i,T as j,nt as k,x as l,m,Z as n,S as o,d as p,it as q,M as r,i as s,y as t,e as u,A as v,st as w,W as x,ut as y,at as z}
@@ -0,0 +1 @@
1
+ import{p as t,c as n,o as e,r,a as s,h as u,b as a}from"./p-l4ru8vIR.js";const o=["data-sui-theme","data-sui-preset","data-sui-status"],c=t=>{const n=/^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)/.exec(t);return n?"#"+[n[1],n[2],n[3]].map((t=>Math.round(Number(t)).toString(16).padStart(2,"0"))).join("").toUpperCase():""};function i(n,e){if("function"!=typeof getComputedStyle)return null;try{const r=getComputedStyle(n),s={};for(const n of e){const e=r.getPropertyValue(n).trim();if(s[n]=t(e,"")||c(e),!s[n])return null}return s}catch{return null}}function f(t,n){if("undefined"==typeof MutationObserver||"undefined"==typeof document)return()=>{};const e=new Set([document.documentElement]),r=t.closest(o.map((t=>`[${t}]`)).join(","));r&&e.add(r);const s=Array.from(e).map((t=>{const e=new MutationObserver(n);return e.observe(t,{attributes:!0,attributeFilter:o}),e}));return()=>s.forEach((t=>t.disconnect()))}const d=t=>{const n=s(u(t)),e=n.H*Math.PI/180;return[n.L,n.C*Math.cos(e),n.C*Math.sin(e)]};function F(t,n,e){const s=d(t),u=d(n),o=s.map(((t,n)=>t*e+u[n]*(1-e)));return r(a({L:o[0],C:Math.hypot(o[1],o[2]),H:180*Math.atan2(o[2],o[1])/Math.PI}))}function l(t,r){const s=r.find((e=>n(e,t)>=4.5))||(n("#000000",t)>n("#FFFFFF",t)?"#000000":"#FFFFFF");return{ink:s,sub:n(e(s,t,.78),t)>=3?.78:1}}export{l,F as m,i as r,f as w}
@@ -0,0 +1 @@
1
+ import{h as l}from"./p-CeVlau-G.js";import{G as s,h as a,j as n}from"./p-DdsE4HI6.js";const t=["positive","critical","neutral"],r=({value:r,direction:i,severity:e,note:c,unfavorable:o})=>{const p=t.includes(e)?e:"positive";return[r?l("span",{class:{delta:!0,critical:"critical"===p,neutral:"neutral"===p}},"up"===i||"down"===i?l(s,{glyph:"up"===i?a:n}):null,l("span",{class:"figure"},r),"critical"===p?l("span",{class:"sr-only"},o):null):null,c?l("span",{class:"note"},c):null]};export{r as T}
@@ -0,0 +1 @@
1
+ var e=[Object.freeze(JSON.parse('{"displayName":"Shell","name":"shellscript","patterns":[{"include":"#initial_context"}],"repository":{"alias_statement":{"begin":"[\\\\t ]*+(alias)[\\\\t ]*+((?:((?<!\\\\w)-\\\\w+)\\\\b[\\\\t ]*+)*)[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"storage.type.alias.shell"},"2":{"patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"}]},"3":{"name":"string.unquoted.argument.shell constant.other.option.shell"},"4":{"name":"variable.other.assignment.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"variable.other.assignment.shell"},"7":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"8":{"name":"punctuation.definition.array.access.shell"},"9":{"name":"keyword.operator.assignment.shell"},"10":{"name":"keyword.operator.assignment.compound.shell"},"11":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\t ]|$)|(?:(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&))","endCaptures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"name":"meta.expression.assignment.alias.shell","patterns":[{"include":"#normal_context"}]},"argument":{"begin":"[\\\\t ]++(?![\\\\n#\\\\&(\\\\[|]|$|;)","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])","endCaptures":{},"name":"meta.argument.shell","patterns":[{"include":"#argument_context"},{"include":"#line_continuation"}]},"argument_context":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell","patterns":[{"match":"\\\\*","name":"variable.language.special.wildcard.shell"},{"include":"#variable"},{"include":"#numeric_literal"},{"captures":{"1":{"name":"constant.language.$1.shell"}},"match":"(?<!\\\\w)\\\\b(true|false)\\\\b(?!\\\\w)"}]}},"match":"[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+(?!>))"},{"include":"#normal_context"}]},"arithmetic_double":{"patterns":[{"begin":"\\\\(\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"end":"\\\\)\\\\s*\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.double.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"arithmetic_no_dollar":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.arithmetic.single.shell"}},"name":"meta.arithmetic.shell","patterns":[{"include":"#math"},{"include":"#string"}]}]},"array_access_inline":{"captures":{"1":{"name":"punctuation.section.array.shell"},"2":{"patterns":[{"include":"#special_expansion"},{"include":"#string"},{"include":"#variable"}]},"3":{"name":"punctuation.section.array.shell"}},"match":"(\\\\[)([^]\\\\[]+)(])"},"array_value":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))[\\\\t ]*+(\\\\()","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"punctuation.definition.array.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.array.shell"}},"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"variable.other.assignment.array.shell entity.other.attribute-name.shell"},"2":{"name":"keyword.operator.assignment.shell punctuation.definition.assignment.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(=)"},{"captures":{"1":{"name":"punctuation.definition.bracket.named-array.shell"},"2":{"name":"string.unquoted.shell entity.other.attribute-name.bracket.shell"},"3":{"name":"punctuation.definition.bracket.named-array.shell"},"4":{"name":"punctuation.definition.assignment.shell"}},"match":"(\\\\[)(.+?)(])(=)"},{"include":"#normal_context"},{"include":"#simple_unquoted"}]},"assignment_statement":{"patterns":[{"include":"#array_value"},{"include":"#modified_assignment_statement"},{"include":"#normal_assignment_statement"}]},"basic_command_name":{"captures":{"1":{"name":"storage.modifier.$1.shell"},"2":{"name":"entity.name.function.call.shell entity.name.command.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"support.function.builtin.shell"},{"include":"#variable"}]}},"match":"(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?:((?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$))|((?![\\"\']|\\\\\\\\\\\\n?$)[^\\\\t\\\\n\\\\r !\\"\'<>]+?))(?:(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\))","name":"meta.statement.command.name.basic.shell"},"block_comment":{"begin":"\\\\s*+(/\\\\*)","beginCaptures":{"1":{"name":"punctuation.definition.comment.begin.shell"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.shell"}},"name":"comment.block.shell"},"boolean":{"match":"\\\\b(?:true|false)\\\\b","name":"constant.language.$0.shell"},"case_statement":{"begin":"\\\\b(case)\\\\b[\\\\t ]*+(.+?)[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.case.shell"},"2":{"patterns":[{"include":"#initial_context"}]},"3":{"name":"keyword.control.in.shell"}},"end":"\\\\besac\\\\b","endCaptures":{"0":{"name":"keyword.control.esac.shell"}},"name":"meta.case.shell","patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.operator.pattern.case.default.shell"}},"match":"[\\\\t ]*+(\\\\* *\\\\))"},{"begin":"(?<!\\\\))(?![\\\\t ]*+(?:esac\\\\b|$))","beginCaptures":{},"end":"(?=\\\\besac\\\\b)|(\\\\))","endCaptures":{"1":{"name":"keyword.operator.pattern.case.shell"}},"name":"meta.case.entry.pattern.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"(?<=\\\\))","beginCaptures":{},"end":"(;;)|(?=\\\\besac\\\\b)","endCaptures":{"1":{"name":"punctuation.terminator.statement.case.shell"}},"name":"meta.case.entry.body.shell","patterns":[{"include":"#typical_statements"},{"include":"#initial_context"}]}]},"case_statement_context":{"patterns":[{"match":"\\\\*","name":"variable.language.special.quantifier.star.shell keyword.operator.quantifier.star.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\+","name":"variable.language.special.quantifier.plus.shell keyword.operator.quantifier.plus.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"\\\\?","name":"variable.language.special.quantifier.question.shell keyword.operator.quantifier.question.shell punctuation.definition.arbitrary-repetition.shell punctuation.definition.regex.arbitrary-repetition.shell"},{"match":"@","name":"variable.language.special.at.shell keyword.operator.at.shell punctuation.definition.regex.at.shell"},{"match":"\\\\|","name":"keyword.operator.orvariable.language.special.or.shell keyword.operator.alternation.ruby.shell punctuation.definition.regex.alternation.shell punctuation.separator.regex.alternation.shell"},{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"match":"(?<=\\\\tin| in|[\\\\t ]|;;)\\\\(","name":"keyword.operator.pattern.case.shell"},{"begin":"(?<=\\\\S)(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.definition.regex.group.shell"}},"name":"meta.parenthese.shell","patterns":[{"include":"#case_statement_context"}]},{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.character-class.shell"}},"name":"string.regexp.character-class.shell","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"}]},{"include":"#string"},{"match":"[^\\\\t\\\\n )*?@\\\\[|]","name":"string.unquoted.pattern.shell string.regexp.unquoted.shell"}]},"command_name_range":{"begin":"\\\\G","beginCaptures":{},"end":"(?=[\\\\t \\\\&;|]|$|[\\\\n)`])|(?=<)","endCaptures":{},"name":"meta.statement.command.name.shell","patterns":[{"match":"(?<!\\\\w)(?:continue|return|break)(?!\\\\w)","name":"entity.name.function.call.shell entity.name.command.shell keyword.control.$0.shell"},{"match":"(?<!\\\\w)(?:unfunction|continue|autoload|unsetopt|bindkey|builtin|getopts|command|declare|unalias|history|unlimit|typeset|suspend|source|printf|unhash|disown|ulimit|return|which|alias|break|false|print|shift|times|umask|unset|read|type|exec|eval|wait|echo|dirs|jobs|kill|hash|stat|exit|test|trap|true|let|set|pwd|cd|fg|bg|fc|[.:])(?!/)(?!\\\\w)(?!-)","name":"entity.name.function.call.shell entity.name.command.shell support.function.builtin.shell"},{"include":"#variable"},{"captures":{"1":{"name":"entity.name.function.call.shell entity.name.command.shell"}},"match":"(?<!\\\\w)(?<=\\\\G|[\\"\')}])([^\\\\t\\\\n\\\\r \\"\\\\&\');->`{|]+)"},{"begin":"(?:\\\\G|(?<![\\\\t\\\\n #\\\\&;{|]))(\\\\$?)((\\")|(\'))","beginCaptures":{"1":{"name":"meta.statement.command.name.quoted.shell punctuation.definition.string.shell entity.name.function.call.shell entity.name.command.shell"},"2":{},"3":{"name":"meta.statement.command.name.quoted.shell string.quoted.double.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"},"4":{"name":"meta.statement.command.name.quoted.shell string.quoted.single.shell punctuation.definition.string.begin.shell entity.name.function.call.shell entity.name.command.shell"}},"end":"(?<!\\\\G)(?<=\\\\2)","endCaptures":{},"patterns":[{"include":"#continuation_of_single_quoted_command_name"},{"include":"#continuation_of_double_quoted_command_name"}]},{"include":"#line_continuation"},{"include":"#simple_unquoted"}]},"command_statement":{"begin":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"},{"include":"#heredoc"}]},"comment":{"captures":{"1":{"name":"comment.line.number-sign.shell meta.shebang.shell"},"2":{"name":"punctuation.definition.comment.shebang.shell"},"3":{"name":"comment.line.number-sign.shell"},"4":{"name":"punctuation.definition.comment.shell"}},"match":"(?:^|[\\\\t ]++)(?:((#!).*)|((#).*))"},"comments":{"patterns":[{"include":"#block_comment"},{"include":"#line_comment"}]},"compound-command":{"patterns":[{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical-expression"},{"include":"#initial_context"}]},{"begin":"(?<=\\\\s|^)\\\\{(?=\\\\s|$)","beginCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"end":"(?<=^|;)\\\\s*(})","endCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"continuation_of_double_quoted_command_name":{"begin":"\\\\G(?<=\\")","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.double entity.name.function.call entity.name.command","end":"\\"","endCaptures":{"0":{"name":"string.quoted.double.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}},"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"continuation_of_single_quoted_command_name":{"begin":"\\\\G(?<=\')","beginCaptures":{},"contentName":"meta.statement.command.name.continuation string.quoted.single entity.name.function.call entity.name.command","end":"\'","endCaptures":{"0":{"name":"string.quoted.single.shell punctuation.definition.string.end.shell entity.name.function.call.shell entity.name.command.shell"}}},"custom_command_names":{"patterns":[]},"custom_commands":{"patterns":[]},"double_quote_context":{"patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},"double_quote_escape_char":{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},"floating_keyword":{"patterns":[{"match":"(?<=^|[\\\\t \\\\&;])(?:then|elif|else|done|end|do|if|fi)(?=[\\\\t \\\\&;]|$)","name":"keyword.control.$0.shell"}]},"for_statement":{"patterns":[{"begin":"\\\\b(for)\\\\b[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))[\\\\t ]*+\\\\b(in)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"},"2":{"name":"variable.other.for.shell"},"3":{"name":"keyword.control.in.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.in.shell","patterns":[{"include":"#string"},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},{"begin":"\\\\b(for)\\\\b","beginCaptures":{"1":{"name":"keyword.control.for.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.for.shell","patterns":[{"include":"#arithmetic_double"},{"include":"#normal_context"}]}]},"function_definition":{"applyEndPatternLast":1,"begin":"[\\\\t ]*+(?:\\\\b(function)\\\\b[\\\\t ]*+([^\\\\t\\\\n\\\\r \\"\'()=]+)(?:(\\\\()[\\\\t ]*+(\\\\)))?|([^\\\\t\\\\n\\\\r \\"\'()=]+)[\\\\t ]*+(\\\\()[\\\\t ]*+(\\\\)))","beginCaptures":{"1":{"name":"storage.type.function.shell"},"2":{"name":"entity.name.function.shell"},"3":{"name":"punctuation.definition.arguments.shell"},"4":{"name":"punctuation.definition.arguments.shell"},"5":{"name":"entity.name.function.shell"},"6":{"name":"punctuation.definition.arguments.shell"},"7":{"name":"punctuation.definition.arguments.shell"}},"end":"(?<=[)}])","endCaptures":{},"name":"meta.function.shell","patterns":[{"match":"\\\\G[\\\\t\\\\n ]"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.shell punctuation.section.function.definition.shell"}},"name":"meta.function.body.shell","patterns":[{"include":"#initial_context"}]},{"include":"#initial_context"}]},"heredoc":{"patterns":[{"begin":"((?<!<)<<-)[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.indent.$3","end":"^\\\\t*\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.$0.shell"}},"patterns":[]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([\\"\'])[\\\\t ]*+([^\\"\']+?)(?=[\\"\\\\&\';<\\\\s])(\\\\2)(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.quote.shell"},"3":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"4":{"name":"punctuation.definition.string.heredoc.quote.shell"},"5":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.quoted.heredoc.no-indent.$3","end":"^\\\\3(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[]},{"begin":"((?<!<)<<-)[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.indent.$2","end":"^\\\\t*\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"((?<!<)<<(?!<))[\\\\t ]*+([^\\\\t \\"\']+)(?=[\\"\\\\&\';<\\\\s])(.*)","beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"punctuation.definition.string.heredoc.delimiter.shell"},"3":{"patterns":[{"include":"#redirect_fix"},{"include":"#typical_statements"}]}},"contentName":"string.unquoted.heredoc.no-indent.$2","end":"^\\\\2(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"punctuation.definition.string.heredoc.delimiter.shell"}},"patterns":[{"include":"#double_quote_escape_char"},{"include":"#variable"},{"include":"#interpolation"}]}]},"herestring":{"patterns":[{"begin":"(<<<)\\\\s*((\'))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.single.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.single.shell","end":"(\')","endCaptures":{"0":{"name":"string.quoted.single.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell"},{"begin":"(<<<)\\\\s*((\\"))","beginCaptures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.quoted.double.shell"},"3":{"name":"punctuation.definition.string.begin.shell"}},"contentName":"string.quoted.double.shell","end":"(\\")","endCaptures":{"0":{"name":"string.quoted.double.shell"},"1":{"name":"punctuation.definition.string.end.shell"}},"name":"meta.herestring.shell","patterns":[{"include":"#double_quote_context"}]},{"captures":{"1":{"name":"keyword.operator.herestring.shell"},"2":{"name":"string.unquoted.herestring.shell","patterns":[{"include":"#initial_context"}]}},"match":"(<<<)\\\\s*(([^)\\\\\\\\\\\\s]|\\\\\\\\.)+)","name":"meta.herestring.shell"}]},"initial_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#logical_expression_double"},{"include":"#logical_expression_single"},{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#loop"},{"include":"#function_definition"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#misc_ranges"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#alias_statement"},{"include":"#normal_statement"},{"include":"#string"},{"include":"#support"}]},"inline_comment":{"captures":{"1":{"name":"comment.block.shell punctuation.definition.comment.begin.shell"},"2":{"name":"comment.block.shell"},"3":{"patterns":[{"match":"\\\\*/","name":"comment.block.shell punctuation.definition.comment.end.shell"},{"match":"\\\\*","name":"comment.block.shell"}]}},"match":"(/\\\\*)((?:[^*]|\\\\*++[^/])*+(\\\\*++/))"},"interpolation":{"patterns":[{"include":"#arithmetic_dollar"},{"include":"#subshell_dollar"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.evaluation.backticks.shell"}},"name":"string.interpolated.backtick.shell","patterns":[{"match":"\\\\\\\\[$\\\\\\\\`]","name":"constant.character.escape.shell"},{"begin":"(?<=\\\\W)(?=#)(?!#\\\\{)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.shell"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.shell"}},"end":"(?=`)","name":"comment.line.number-sign.shell"}]},{"include":"#initial_context"}]}]},"keyword":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(then|else|elif|fi|for|in|do|done|select|continue|esac|while|until|return)(?=[\\\\&;\\\\s]|$)","name":"keyword.control.shell"},{"match":"(?<=^|[\\\\&;\\\\s])(?:export|declare|typeset|local|readonly)(?=[\\\\&;\\\\s]|$)","name":"storage.modifier.shell"}]},"line_comment":{"begin":"\\\\s*+(//)","beginCaptures":{"1":{"name":"punctuation.definition.comment.shell"}},"end":"(?<=\\\\n)(?<!\\\\\\\\\\\\n)","endCaptures":{},"name":"comment.line.double-slash.shell","patterns":[{"include":"#line_continuation_character"}]},"line_continuation":{"match":"\\\\\\\\(?=\\\\n)","name":"constant.character.escape.line-continuation.shell"},"logical-expression":{"patterns":[{"include":"#arithmetic_no_dollar"},{"match":"=[=~]?|!=?|[<>]|&&|\\\\|\\\\|","name":"keyword.operator.logical.shell"},{"match":"(?<!\\\\S)-(nt|ot|ef|eq|ne|l[et]|g[et]|[GLNOSa-hknopr-uwxz])\\\\b","name":"keyword.operator.logical.shell"}]},"logical_expression_context":{"patterns":[{"include":"#regex_comparison"},{"include":"#arithmetic_no_dollar"},{"include":"#logical-expression"},{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#comment"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"logical_expression_double":{"begin":"\\\\[\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"logical_expression_single":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.logical-expression.shell"}},"name":"meta.scope.logical-expression.shell","patterns":[{"include":"#logical_expression_context"}]},"loop":{"patterns":[{"begin":"(?<=^|[\\\\&;\\\\s])(for)\\\\s+(.+?)\\\\s+(in)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell","patterns":[{"include":"#string"}]},"3":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.for-in-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(while|until)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"}},"end":"(?<=^|[\\\\&;\\\\s])done(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"0":{"name":"keyword.control.shell"}},"name":"meta.scope.while-loop.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])(select)\\\\s+((?:[^\\\\\\\\\\\\s]|\\\\\\\\.)+)(?=[\\\\&;\\\\s]|$)","beginCaptures":{"1":{"name":"keyword.control.shell"},"2":{"name":"variable.other.loop.shell"}},"end":"(?<=^|[\\\\&;\\\\s])(done)(?=[\\\\&;\\\\s]|$|\\\\))","endCaptures":{"1":{"name":"keyword.control.shell"}},"name":"meta.scope.select-block.shell","patterns":[{"include":"#initial_context"}]},{"begin":"(?<=^|[\\\\&;\\\\s])if(?=[\\\\&;\\\\s]|$)","beginCaptures":{"0":{"name":"keyword.control.if.shell"}},"end":"(?<=^|[\\\\&;\\\\s])fi(?=[\\\\&;\\\\s]|$)","endCaptures":{"0":{"name":"keyword.control.fi.shell"}},"name":"meta.scope.if-block.shell","patterns":[{"include":"#initial_context"}]}]},"math":{"patterns":[{"include":"#variable"},{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":";","name":"punctuation.separator.semicolon.range"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"},{"match":"(?<!\\\\w)[0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"}]},"math_operators":{"patterns":[{"match":"\\\\+{1,2}|-{1,2}|[!~]|\\\\*{1,2}|[%/]|<[<=]?|>[=>]?|==|!=|^|\\\\|{1,2}|&{1,2}|[,:=?]|[-%\\\\&*+/^|]=|<<=|>>=","name":"keyword.operator.arithmetic.shell"},{"match":"0[Xx]\\\\h+","name":"constant.numeric.hex.shell"},{"match":"0\\\\d+","name":"constant.numeric.octal.shell"},{"match":"\\\\d{1,2}#[0-9@-Z_a-z]+","name":"constant.numeric.other.shell"},{"match":"\\\\d+","name":"constant.numeric.integer.shell"}]},"misc_ranges":{"patterns":[{"include":"#logical_expression_single"},{"include":"#logical_expression_double"},{"include":"#subshell_dollar"},{"begin":"(?<![^\\\\t ])(\\\\{)(?![$\\\\w])","beginCaptures":{"1":{"name":"punctuation.definition.group.shell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.group.shell"}},"name":"meta.scope.group.shell","patterns":[{"include":"#initial_context"}]}]},"modified_assignment_statement":{"begin":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","beginCaptures":{"0":{"name":"storage.modifier.$0.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell meta.expression.assignment.modified.shell","patterns":[{"match":"(?<!\\\\w)-\\\\w+\\\\b","name":"string.unquoted.argument.shell constant.other.option.shell"},{"include":"#array_value"},{"captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"},"9":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"10":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"11":{"name":"constant.numeric.shell constant.numeric.other.shell"},"12":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"13":{"name":"constant.numeric.shell constant.numeric.version.shell"},"14":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))?(?:(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}]))?"},{"include":"#normal_context"}]},"modifiers":{"match":"(?<=^|[\\\\t \\\\&;])(?:readonly|declare|typeset|export|local)(?=[\\\\t \\\\&;]|$)","name":"storage.modifier.$0.shell"},"normal_assignment_statement":{"begin":"[\\\\t ]*+((?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w))(?:(\\\\[)((?:(?:\\\\$?(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)|@)|\\\\*)|(-?\\\\d+))(]))?(?:(?:(=)|(\\\\+=))|(-=))","beginCaptures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"punctuation.definition.array.access.shell"},"3":{"name":"variable.other.assignment.shell"},"4":{"name":"constant.numeric.shell constant.numeric.integer.shell"},"5":{"name":"punctuation.definition.array.access.shell"},"6":{"name":"keyword.operator.assignment.shell"},"7":{"name":"keyword.operator.assignment.compound.shell"},"8":{"name":"keyword.operator.assignment.compound.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.expression.assignment.shell","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#normal_assignment_statement"},{"begin":"(?<=[\\\\t ])(?![\\\\t ]|\\\\w+=)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.command.env.shell","patterns":[{"include":"#command_name_range"},{"include":"#line_continuation"},{"include":"#option"},{"include":"#argument"},{"include":"#string"}]},{"include":"#simple_unquoted"},{"include":"#normal_context"}]},"normal_context":{"patterns":[{"include":"#comment"},{"include":"#pipeline"},{"include":"#normal_statement_seperator"},{"include":"#misc_ranges"},{"include":"#boolean"},{"include":"#redirect_number"},{"include":"#numeric_literal"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"},{"include":"#parenthese"}]},"normal_statement":{"begin":"(?!^[\\\\t ]*+$)(?:(?<=(?:^until| until|\\\\tuntil|^while| while|\\\\twhile|^elif| elif|\\\\telif|^else| else|\\\\telse|^then| then|\\\\tthen|^do| do|\\\\tdo|^if| if|\\\\tif) )|(?<=^|[!\\\\&(;`{|]))[\\\\t ]*+(?!nocorrect\\\\W|nocorrect\\\\$|function\\\\W|function\\\\$|foreach\\\\W|foreach\\\\$|repeat\\\\W|repeat\\\\$|logout\\\\W|logout\\\\$|coproc\\\\W|coproc\\\\$|select\\\\W|select\\\\$|while\\\\W|while\\\\$|pushd\\\\W|pushd\\\\$|until\\\\W|until\\\\$|case\\\\W|case\\\\$|done\\\\W|done\\\\$|elif\\\\W|elif\\\\$|else\\\\W|else\\\\$|esac\\\\W|esac\\\\$|popd\\\\W|popd\\\\$|then\\\\W|then\\\\$|time\\\\W|time\\\\$|for\\\\W|for\\\\$|end\\\\W|end\\\\$|fi\\\\W|fi\\\\$|do\\\\W|do\\\\$|in\\\\W|in\\\\$|if\\\\W|if\\\\$)","beginCaptures":{},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.statement.shell","patterns":[{"include":"#typical_statements"}]},"normal_statement_seperator":{"captures":{"1":{"name":"punctuation.terminator.statement.semicolon.shell"},"2":{"name":"punctuation.separator.statement.and.shell"},"3":{"name":"punctuation.separator.statement.or.shell"},"4":{"name":"punctuation.separator.statement.background.shell"}},"match":"(?:(?:(;)|(&&))|(\\\\|\\\\|))|(&)"},"numeric_literal":{"captures":{"1":{"name":"constant.numeric.shell constant.numeric.hex.shell"},"2":{"name":"constant.numeric.shell constant.numeric.octal.shell"},"3":{"name":"constant.numeric.shell constant.numeric.other.shell"},"4":{"name":"constant.numeric.shell constant.numeric.decimal.shell"},"5":{"name":"constant.numeric.shell constant.numeric.version.shell"},"6":{"name":"constant.numeric.shell constant.numeric.integer.shell"}},"match":"(?<=[\\\\t =]|^|[(\\\\[{])(?:(?:(?:(?:(?:(0[Xx]\\\\h+)|(0\\\\d+))|(\\\\d{1,2}#[0-9@-Z_a-z]+))|(-?\\\\d+\\\\.\\\\d+))|(-?\\\\d+(?:\\\\.\\\\d+)+))|(-?\\\\d+))(?=[\\\\t ]|$|[);}])"},"option":{"begin":"[\\\\t ]++(-)((?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;]))","beginCaptures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"contentName":"string.unquoted.argument constant.other.option","end":"(?=[\\\\t ])|(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"patterns":[{"include":"#option_context"}]},"option_context":{"patterns":[{"include":"#misc_ranges"},{"include":"#string"},{"include":"#variable"},{"include":"#interpolation"},{"include":"#heredoc"},{"include":"#herestring"},{"include":"#redirection"},{"include":"#pathname"},{"include":"#floating_keyword"},{"include":"#support"}]},"parenthese":{"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.parenthese.shell"}},"name":"meta.parenthese.group.shell","patterns":[{"include":"#initial_context"}]}]},"pathname":{"patterns":[{"match":"(?<=[:=\\\\s]|^)~","name":"keyword.operator.tilde.shell"},{"match":"[*?]","name":"keyword.operator.glob.shell"},{"begin":"([!*+?@])(\\\\()","beginCaptures":{"1":{"name":"keyword.operator.extglob.shell"},"2":{"name":"punctuation.definition.extglob.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.extglob.shell"}},"name":"meta.structure.extglob.shell","patterns":[{"include":"#initial_context"}]}]},"pipeline":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])(time)(?=[\\\\&;\\\\s]|$)","name":"keyword.other.shell"},{"match":"[!|]","name":"keyword.operator.pipe.shell"}]},"redirect_fix":{"captures":{"1":{"name":"keyword.operator.redirect.shell"},"2":{"name":"string.unquoted.argument.shell"}},"match":"(>>?)[\\\\t ]*+([^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]+)"},"redirect_number":{"captures":{"1":{"name":"keyword.operator.redirect.stdout.shell"},"2":{"name":"keyword.operator.redirect.stderr.shell"},"3":{"name":"keyword.operator.redirect.$3.shell"}},"match":"(?<=[\\\\t ])(?:(1)|(2)|(\\\\d+))(?=>)"},"redirection":{"patterns":[{"begin":"[<>]\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.interpolated.process-substitution.shell","patterns":[{"include":"#initial_context"}]},{"match":"(?<![<>])(&>|\\\\d*>&\\\\d*|\\\\d*(>>|[<>])|\\\\d*<&|\\\\d*<>)(?![<>])","name":"keyword.operator.redirect.shell"}]},"regex_comparison":{"match":"=~","name":"keyword.operator.logical.regex.shell"},"regexp":{"patterns":[{"match":".+"}]},"simple_options":{"captures":{"0":{"patterns":[{"captures":{"1":{"name":"string.unquoted.argument.shell constant.other.option.dash.shell"},"2":{"name":"string.unquoted.argument.shell constant.other.option.shell"}},"match":"[\\\\t ]++(-)(\\\\w+)"}]}},"match":"(?:[\\\\t ]++-\\\\w+)*"},"simple_unquoted":{"match":"[^\\\\t\\\\n \\"$\\\\&-);<>\\\\\\\\`|]","name":"string.unquoted.shell"},"special_expansion":{"match":"!|:[-=?]?|[*@]|##?|%%|[%/]","name":"keyword.operator.expansion.shell"},"start_of_command":{"match":"[\\\\t ]*+(?![\\\\n!#\\\\&()<>\\\\[{|]|$|[\\\\t ;])(?!nocorrect |nocorrect\\\\t|nocorrect$|readonly |readonly\\\\t|readonly$|function |function\\\\t|function$|foreach |foreach\\\\t|foreach$|coproc |coproc\\\\t|coproc$|logout |logout\\\\t|logout$|export |export\\\\t|export$|select |select\\\\t|select$|repeat |repeat\\\\t|repeat$|pushd |pushd\\\\t|pushd$|until |until\\\\t|until$|while |while\\\\t|while$|local |local\\\\t|local$|case |case\\\\t|case$|done |done\\\\t|done$|elif |elif\\\\t|elif$|else |else\\\\t|else$|esac |esac\\\\t|esac$|popd |popd\\\\t|popd$|then |then\\\\t|then$|time |time\\\\t|time$|for |for\\\\t|for$|end |end\\\\t|end$|fi |fi\\\\t|fi$|do |do\\\\t|do$|in |in\\\\t|in$|if |if\\\\t|if$)(?!\\\\\\\\\\\\n?$)"},"string":{"patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.shell"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.shell"},{"begin":"\\\\$?\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.double.shell","patterns":[{"match":"\\\\\\\\[\\\\n\\"$\\\\\\\\`]","name":"constant.character.escape.shell"},{"include":"#variable"},{"include":"#interpolation"}]},{"begin":"\\\\$\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.shell"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.shell"}},"name":"string.quoted.single.dollar.shell","patterns":[{"match":"\\\\\\\\[\'\\\\\\\\abefnrtv]","name":"constant.character.escape.ansi-c.shell"},{"match":"\\\\\\\\[0-9]{3}\\"","name":"constant.character.escape.octal.shell"},{"match":"\\\\\\\\x\\\\h{2}\\"","name":"constant.character.escape.hex.shell"},{"match":"\\\\\\\\c.\\"","name":"constant.character.escape.control-char.shell"}]}]},"subshell_dollar":{"patterns":[{"begin":"\\\\$\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.subshell.single.shell"}},"name":"meta.scope.subshell","patterns":[{"include":"#parenthese"},{"include":"#initial_context"}]}]},"support":{"patterns":[{"match":"(?<=^|[\\\\&;\\\\s])[.:](?=[\\\\&;\\\\s]|$)","name":"support.function.builtin.shell"}]},"typical_statements":{"patterns":[{"include":"#assignment_statement"},{"include":"#case_statement"},{"include":"#for_statement"},{"include":"#while_statement"},{"include":"#function_definition"},{"include":"#command_statement"},{"include":"#line_continuation"},{"include":"#arithmetic_double"},{"include":"#normal_context"}]},"variable":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.all.shell"},"2":{"name":"variable.parameter.positional.all.shell"}},"match":"(\\\\$)(@(?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"variable.parameter.positional.shell"}},"match":"(\\\\$)([0-9](?!\\\\w))"},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.language.special.shell"},"2":{"name":"variable.language.special.shell"}},"match":"(\\\\$)([-!#$*0?_](?!\\\\w))"},{"begin":"(\\\\$)(\\\\{)[\\\\t ]*+(?=\\\\d)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell variable.parameter.positional.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell variable.parameter.positional.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"[0-9]+","name":"variable.parameter.positional.shell"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"begin":"(\\\\$)(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.variable.shell"},"2":{"name":"punctuation.section.bracket.curly.variable.begin.shell punctuation.definition.variable.shell"}},"contentName":"meta.parameter-expansion","end":"}","endCaptures":{"0":{"name":"punctuation.section.bracket.curly.variable.end.shell punctuation.definition.variable.shell"}},"patterns":[{"include":"#special_expansion"},{"include":"#array_access_inline"},{"match":"(?<!\\\\w)[-0-9A-Z_a-z]+(?!\\\\w)","name":"variable.other.normal.shell"},{"include":"#variable"},{"include":"#string"}]},{"captures":{"1":{"name":"punctuation.definition.variable.shell variable.other.normal.shell"},"2":{"name":"variable.other.normal.shell"}},"match":"(\\\\$)(\\\\w+(?!\\\\w))"}]},"while_statement":{"patterns":[{"begin":"\\\\b(while)\\\\b","beginCaptures":{"1":{"name":"keyword.control.while.shell"}},"end":"(?=[\\\\n\\\\&);`{|}]|[\\\\t ]*#|])(?<!\\\\\\\\)","endCaptures":{},"name":"meta.while.shell","patterns":[{"include":"#line_continuation"},{"include":"#math_operators"},{"include":"#option"},{"include":"#simple_unquoted"},{"include":"#normal_context"},{"include":"#string"}]}]}},"scopeName":"source.shell","aliases":["bash","sh","shell","zsh"]}'))];export{e as default}
@@ -0,0 +1 @@
1
+ import{i as e}from"./p-GAnFXayY.js";import{m as n}from"./p-BPGiU7Vj.js";import{l as t,m as r}from"./p-CN5x4MC8.js";function i(e){return!(!(e&&e.items&&e.items.length)||e.disabled)}function o(e,n,t){let r=e||[];for(let e=0;e<t;e++){const t=r[n[e]];if(!t||!t.items)return[];r=t.items}return r}function s(n,i,o){for(let s=1;s<=o.length;s++){const c=i[s],a=n[s-1]?.querySelector(`[data-index="${o[s-1]}"]`);if(!c||!a)continue;const d=t(a,c,e(a)?"left":"right",4,"start");r(c,{...d,top:d.top-1})}}function c(e,t,r,s,c){const a=o(t,r,c),d=n(e,a,s&&s.depth===c?s.index:-1);switch(d.action&&"escape"!==d.action&&e.stopPropagation(),d.action){case"move":return d.index>=0?{kind:"move",cursor:{depth:c,index:d.index}}:{kind:"none"};case"forward":return i(a[d.index])?{kind:"open",cursor:{depth:c,index:d.index}}:{kind:"exit",key:"forward"};case"back":return c>0?{kind:"close",depth:c}:{kind:"exit",key:"back"};case"activate":{const e=a[d.index];return!e||e.disabled?{kind:"none"}:i(e)?{kind:"open",cursor:{depth:c,index:d.index}}:{kind:"pick",item:e,cursor:{depth:c,index:d.index}}}case"escape":return{kind:"exit",key:"escape"};default:return{kind:"none"}}}export{i as h,o as l,c as m,s as p}
@@ -0,0 +1 @@
1
+ function n(n){return"object"==typeof n&&null!==n&&"number"==typeof n.nodeType}const t=new WeakSet;function e(n,e,r){try{return n(...e)}catch(e){return t.has(n)||(t.add(n),console.error(e)),r}}function r(t,e){if(!t)return;if(n(e))return void(1===t.childNodes.length&&t.firstChild===e||(t.textContent="",t.appendChild(e)));const r=null==e?"":String(e),o=t.firstChild;(""===r?0===t.childNodes.length:1===t.childNodes.length&&o&&3===o.nodeType&&o.textContent===r)||(t.textContent=r)}export{e as c,n as i,r as m}
@@ -0,0 +1 @@
1
+ import{p as e,H as a,h as t,a as o,t as s}from"./p-CeVlau-G.js";import{d as i}from"./p-BUqcDxTK.js";const r=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost()}value;severity="accent";dot=!1;position="top-right";render(){return t(o,{key:"8e7dd54f44e8efb62e97c818eafab5af6562c90f"},t("slot",{key:"acd5192c5cf342bed1b470b5aa765d15672a819b"}),t("span",{key:"61a7a6c7afd442012e00a49e8755e2ec1d92a04c",class:{anchor:!0,[this.position]:!0,dot:this.dot}},t("sui-badge",{key:"19a734114ea1839bc0f1384c0dcb7891be2ce7a5",value:this.value,severity:this.severity,dot:this.dot,size:"sm"})))}static get style(){return".sc-sui-overlay-badge-h{position:relative;display:inline-flex;vertical-align:middle;font-family:var(--font-sans)}.anchor.sc-sui-overlay-badge{position:absolute;z-index:2;line-height:0}.anchor.top-right.sc-sui-overlay-badge{top:-5px;right:-5px}.anchor.top-left.sc-sui-overlay-badge{top:-5px;left:-5px}.anchor.bottom-right.sc-sui-overlay-badge{bottom:-5px;right:-5px}.anchor.bottom-left.sc-sui-overlay-badge{bottom:-5px;left:-5px}.anchor.dot.top-right.sc-sui-overlay-badge{top:0;right:0}.anchor.dot.top-left.sc-sui-overlay-badge{top:0;left:0}.anchor.dot.bottom-right.sc-sui-overlay-badge{bottom:0;right:0}.anchor.dot.bottom-left.sc-sui-overlay-badge{bottom:0;left:0}.anchor.sc-sui-overlay-badge sui-badge.sc-sui-overlay-badge{--sui-badge-ring:0 0 0 2px var(--surface)}@media (forced-colors: active){.anchor.sc-sui-overlay-badge sui-badge.sc-sui-overlay-badge{--sui-badge-ring:0 0 0 2px Canvas}}"}},[774,"sui-overlay-badge",{value:[8],severity:[513],dot:[516],position:[513]}]);function c(){"undefined"!=typeof customElements&&["sui-overlay-badge","sui-badge"].forEach((e=>{switch(e){case"sui-overlay-badge":customElements.get(s(e))||customElements.define(s(e),r);break;case"sui-badge":customElements.get(s(e))||i()}}))}export{r as S,c as d}
@@ -0,0 +1 @@
1
+ import{p as t,H as i,c as s,h as o,a as e,t as n}from"./p-CeVlau-G.js";import{o as a,b as h,p as r,h as l,n as c,m as p,l as d}from"./p-CN5x4MC8.js";import{f as u}from"./p-C6T8Kp68.js";import{h as m,o as f}from"./p-BWkzTEZX.js";import{u as b}from"./p-U06fVoGD.js";const y=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.suiClose=s(this,"suiClose",3)}get host(){return this}content;position="top";tone="brand";disabled=!1;openDelay=350;closeDelay=0;open=!1;suiClose;hover=!1;hasContentSlot=!1;closing=!1;fieldId=b("sui-tip");tip;described;dispose;demote;offLayers;unobserve;openTimer;closeTimer;hugKey="";exit=a((()=>this.exited()));loaded=!1;get hasContent(){return!(!this.content||!this.content.trim())||this.hasContentSlot}get visible(){return(this.open||this.hover)&&!this.disabled&&this.hasContent}get capsuleTone(){return"light"===this.tone?"light":"brand"}contentSlotted(){return m(this.host,"content")}componentWillLoad(){this.hasContentSlot=this.contentSlotted()}connectedCallback(){this.loaded&&(this.watchSlots(),Promise.resolve().then((()=>{this.host.isConnected&&(this.hasContentSlot=this.contentSlotted(),this.syncDescribedBy(),this.visible&&this.arm())})))}componentDidLoad(){this.loaded=!0,this.syncDescribedBy(),this.watchSlots(),this.visible&&this.arm()}watchSlots(){this.unobserve?.(),this.unobserve=f(this.host,(()=>{this.hasContentSlot=this.contentSlotted(),this.syncDescribedBy()}))}componentDidRender(){this.visible&&this.reposition()}disconnectedCallback(){this.clearTimers(),this.hover=!1,this.disarm(),this.exit.cancel(),this.exited(),this.unobserve?.(),this.unobserve=void 0}onOpenChange(t){t?this.arm():this.hover||this.disarm()}onDisabledChange(t){this.syncDescribedBy(),t&&(this.clearTimers(),this.hover=!1,this.disarm())}onContentChange(){this.syncDescribedBy()}syncDescribedBy(){const t=this.hasContent&&!this.disabled?u(this.host,this.tip):null;t!==this.described&&(this.described&&this.described.getAttribute("aria-describedby")===this.fieldId&&this.described.removeAttribute("aria-describedby"),this.described=void 0,t&&!t.getAttribute("aria-describedby")&&(t.setAttribute("aria-describedby",this.fieldId),this.described=t))}arm(){this.host.isConnected&&(this.exit.cancel(),this.closing=!1,document.addEventListener("keydown",this.onKey),this.dispose?.(),this.dispose=h((()=>this.reposition())),!this.demote&&this.tip&&(this.demote=r(this.tip,"tooltip")),this.offLayers||(this.offLayers=l((()=>{this.popupUp()&&Promise.resolve().then((()=>this.makeWay()))}))))}popupUp(){return c(this.host,this.tip).length>0}makeWay(){this.popupUp()&&(this.clearTimers(),this.hover&&(this.hover=!1,this.open||this.disarm()))}disarm(){document.removeEventListener("keydown",this.onKey),this.dispose?.(),this.dispose=void 0,this.offLayers?.(),this.offLayers=void 0,this.demote&&this.exit.begin(this.tip)?this.closing=!0:this.exited()}exited(){this.demote?.(),this.demote=void 0,this.closing=!1}clearTimers(){clearTimeout(this.openTimer),clearTimeout(this.closeTimer)}reposition(){this.visible&&this.tip&&(this.hug(this.tip),p(this.tip,d(this.host,this.tip,this.position,7,"center")))}hug(t){const i=`${t.textContent}|${window.innerWidth}`;if(i===this.hugKey)return;if(this.hugKey=i,t.style.width="","function"!=typeof document.createRange)return;const s=document.createRange();s.selectNodeContents(t);const o=Array.from(s.getClientRects()).filter((t=>t.width>0));if(new Set(o.map((t=>Math.round(t.top)))).size<2)return;const e=getComputedStyle(t),n=t=>parseFloat(t)||0,a=n(e.paddingLeft)+n(e.paddingRight)+n(e.borderLeftWidth)+n(e.borderRightWidth),h=Math.max(...o.map((t=>t.right)))-Math.min(...o.map((t=>t.left)));t.style.width=`${Math.ceil(h+a)}px`}onKey=t=>{"Escape"===t.key&&(this.open&&this.suiClose.emit("escape").defaultPrevented||(this.clearTimers(),this.hover=!1,this.open=!1,this.disarm()))};reveal(t){if(!this.disabled&&!this.popupUp()&&(clearTimeout(this.closeTimer),!this.hover)){if(clearTimeout(this.openTimer),t<=0)return this.hover=!0,void this.arm();this.openTimer=setTimeout((()=>{this.popupUp()||(this.hover=!0,this.arm())}),t)}}conceal(){if(clearTimeout(this.openTimer),!this.hover)return;const t=()=>{this.hover=!1,this.open||this.disarm()};this.closeDelay>0?this.closeTimer=setTimeout(t,this.closeDelay):t()}enter=()=>this.reveal(this.openDelay);focusIn=()=>this.reveal(0);leave=()=>this.conceal();focusOut=t=>{const i=t.relatedTarget;i&&this.host.contains(i)||this.conceal()};render(){const t=this.visible;return o(e,{key:"c2b806fa8cb59b97cdd534e5e6c929c24a344f1e",onMouseEnter:this.enter,onMouseLeave:this.leave,onFocusin:this.focusIn,onFocusout:this.focusOut},o("slot",{key:"54a259d6aa71871c48b723ebf93c89d0dfc87cf7"}),o("span",{key:"3cf9600e29d6aba103a92194273a0dbcbe5bb40f",ref:t=>this.tip=t,id:this.fieldId,role:"tooltip",class:{tip:!0,[this.capsuleTone]:!0,show:t||this.closing,closing:this.closing},"aria-hidden":t?null:"true"},this.content,o("slot",{key:"2ab16a55c9bb969a66145c5ae5f5d910d05fa75e",name:"content"})))}static get watchers(){return{open:[{onOpenChange:0}],disabled:[{onDisabledChange:0}],content:[{onContentChange:0}]}}static get style(){return".sc-sui-tooltip-h{display:inline-flex;position:relative;font-family:var(--font-sans)}.tip.sc-sui-tooltip{display:none;position:fixed;top:0;left:0;z-index:var(--z-tooltip);box-sizing:border-box;width:max-content;max-width:min(320px, calc(100vw - 16px));overflow-wrap:break-word;text-wrap:balance;font-family:var(--font-sans);font-size:11.5px;font-weight:620;line-height:1.3;padding:calc(6px - 0.15em) 9px;border-radius:6px;box-shadow:var(--shadow-pop);pointer-events:none;border:1px solid transparent}.tip.show.sc-sui-tooltip{display:inline-block;animation:sui-tooltip-in var(--duration-overlay) var(--ease-out)}.tip.show[data-side='bottom'].sc-sui-tooltip{animation-name:sui-tooltip-in-bottom}.tip.show[data-side='left'].sc-sui-tooltip{animation-name:sui-tooltip-in-left}.tip.show[data-side='right'].sc-sui-tooltip{animation-name:sui-tooltip-in-right}.tip.show.closing.sc-sui-tooltip{animation:sui-tooltip-out var(--duration-fast) var(--ease-out) forwards}.tip.brand.sc-sui-tooltip{background:var(--brand);color:var(--brand-contrast);border-color:transparent}.tip.light.sc-sui-tooltip{background:var(--surface-raised);color:var(--ink);border-color:var(--border)}@keyframes sui-tooltip-in{from{opacity:0;margin-top:4px}}@keyframes sui-tooltip-in-bottom{from{opacity:0;margin-top:-4px}}@keyframes sui-tooltip-in-left{from{opacity:0;margin-left:4px}}@keyframes sui-tooltip-in-right{from{opacity:0;margin-left:-4px}}@keyframes sui-tooltip-out{to{opacity:0}}@media (forced-colors: active){.tip.brand.sc-sui-tooltip,.tip.light.sc-sui-tooltip{border-color:CanvasText}}"}},[774,"sui-tooltip",{content:[1],position:[513],tone:[513],disabled:[516],openDelay:[2,"open-delay"],closeDelay:[2,"close-delay"],open:[1540],hover:[32],hasContentSlot:[32],closing:[32]},void 0,{open:[{onOpenChange:0}],disabled:[{onDisabledChange:0}],content:[{onContentChange:0}]}]);function g(){"undefined"!=typeof customElements&&["sui-tooltip"].forEach((t=>{"sui-tooltip"===t&&(customElements.get(n(t))||customElements.define(n(t),y))}))}export{y as S,g as d}
@@ -0,0 +1 @@
1
+ import{p as i,H as s,c as t,f as o,h as a,a as e,t as d}from"./p-CeVlau-G.js";import{o as n,n as l,a as r,f as h,s as c}from"./p-BEa7fx4d.js";import{m as u}from"./p-BiSaIyr0.js";import{a as g,o as m}from"./p-BWkzTEZX.js";import{u as p}from"./p-U06fVoGD.js";import{a as f}from"./p-BuyjS5bS.js";import{G as v,m as x,n as b,x as y}from"./p-DdsE4HI6.js";import{defineCustomElement as w}from"./p-RwPlJzMY.js";import{d as z}from"./p-v0MrzKlW.js";const k=i(class extends s{constructor(i){super(),!1!==i&&this.__registerHost(),this.suiClose=t(this,"suiClose",3),this.suiMaximizedChange=t(this,"suiMaximizedChange",3)}get host(){return this}open=!1;heading="";subtitle;size="md";hideClose=!1;movable=!1;maximizable=!1;maximized=!1;initialFocus;returnFocus;suiClose;suiMaximizedChange;hasFooter=!1;hasHeader=!1;offset;dragging=!1;closing=!1;fieldId=p("sui-dialog");modal;card;layer;body;unobserve;loaded=!1;top=u({exited:()=>this.exited(),onEscape:()=>this.requestClose("escape")});dragFrom;componentWillLoad(){this.readSlots()}readSlots(){this.hasFooter=g(this.host,"footer").length>0,this.hasHeader=g(this.host,"header").length>0}componentDidLoad(){this.loaded=!0,this.unobserve=m(this.host,(()=>this.readSlots()))}connectedCallback(){this.loaded&&(this.unobserve||(this.unobserve=m(this.host,(()=>this.readSlots())),this.readSlots()),this.open&&o(this))}disconnectedCallback(){this.deactivate(),this.top.disconnect()&&this.exited(),this.unobserve?.(),this.unobserve=void 0}onOpen(i){if(i)return this.top.reopen(),this.closing=!1,void(this.offset=void 0);this.deactivate(),this.top.close()?this.closing=!0:this.exited()}componentDidRender(){this.open&&this.activate()}activate(){this.open&&this.card&&!this.modal&&this.host.isConnected&&(this.top.open(this.layer),this.modal=n(this.card,{initialFocus:()=>r(this.card,this.initialFocus)||h(this.body)||c(this.body),returnFocus:()=>l(this.host,this.returnFocus)}))}onScrimPress=i=>{i.preventDefault()};deactivate(){this.modal?.release(),this.modal=void 0,this.endDrag()}exited(){this.closing=!1,this.offset=void 0}requestClose(i){this.suiClose.emit(i).defaultPrevented||(this.open=!1)}toggleMaximized=()=>{this.maximized=!this.maximized,this.suiMaximizedChange.emit(this.maximized)};onHeadPointerDown=i=>{if(!this.movable||this.maximized||0!==i.button||!this.card)return;if(i.target.closest("button, a, input, select, textarea, [contenteditable], sui-icon-button, sui-button"))return;i.preventDefault();const s=this.card.getBoundingClientRect();this.dragFrom={x:i.clientX-s.left,y:i.clientY-s.top},this.dragging=!0,document.addEventListener("pointermove",this.onDragMove),document.addEventListener("pointerup",this.endDrag),document.addEventListener("pointercancel",this.endDrag)};onDragMove=i=>{if(!this.dragFrom||!this.card)return;const s=Math.max(0,window.innerWidth-this.card.offsetWidth),t=Math.max(0,window.innerHeight-this.card.offsetHeight);this.offset={x:Math.min(s,Math.max(0,i.clientX-this.dragFrom.x)),y:Math.min(t,Math.max(0,i.clientY-this.dragFrom.y))}};endDrag=()=>{this.dragFrom&&(this.dragFrom=void 0,this.dragging=!1,document.removeEventListener("pointermove",this.onDragMove),document.removeEventListener("pointerup",this.endDrag),document.removeEventListener("pointercancel",this.endDrag))};render(){const i=`${this.fieldId}-title`,s=this.offset&&!this.maximized?{top:`${this.offset.y}px`,left:`${this.offset.x}px`,right:"auto",margin:"0"}:void 0;return a(e,{key:"6683cfed73ece872aa5f28ed3a33d5a6d28fbce0"},this.open||this.closing?a("div",{class:{layer:!0,closing:this.closing},inert:this.closing,ref:i=>this.layer=i},a("div",{class:"scrim",onMouseDown:this.onScrimPress,onClick:()=>this.requestClose("scrim")}),a("div",{ref:i=>this.card=i,class:{card:!0,[this.size]:!0,maximized:this.maximized,dragging:this.dragging},style:s,role:"dialog",tabindex:"-1","aria-labelledby":this.hasHeader?i:void 0,"aria-label":this.hasHeader?void 0:this.heading||void 0},a("div",{class:{head:!0,handle:this.movable&&!this.maximized},onPointerDown:this.onHeadPointerDown},a("div",{class:"titles",id:i},a("slot",{name:"header"}),this.hasHeader?null:a("div",{class:"heading"},this.heading),!this.hasHeader&&this.subtitle?a("div",{class:"subtitle"},this.subtitle):null),this.maximizable||!this.hideClose?a("div",{class:"controls"},this.maximizable?a("sui-icon-button",{class:"maximize",size:"sm","aria-label":this.maximized?f(void 0,"dialog.restore",void 0,"Restore"):f(void 0,"dialog.maximize",void 0,"Maximize"),onClick:this.toggleMaximized},a(v,{glyph:this.maximized?x:b})):null,this.hideClose?null:a("sui-icon-button",{class:"close",size:"sm","aria-label":f(void 0,"dialog.close",void 0,"Close"),onClick:()=>this.requestClose("close-button")},a(v,{glyph:y}))):null),a("div",{class:"body",ref:i=>this.body=i},a("slot",null)),a("div",{class:{foot:!0,has:this.hasFooter}},a("slot",{name:"footer"})))):null)}static get watchers(){return{open:[{onOpen:0}]}}static get style(){return".sc-sui-dialog-h{display:contents;font-family:var(--font-sans)}.layer.sc-sui-dialog{position:fixed;inset:0;z-index:var(--z-dialog)}.scrim.sc-sui-dialog{position:absolute;inset:0;background:var(--scrim);animation:sui-dialog-fade var(--duration-overlay) var(--ease-out)}.card.sc-sui-dialog{position:absolute;top:12vh;left:0;right:0;margin:0 auto;width:min(520px, calc(100% - 40px));box-sizing:border-box;max-height:76vh;background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-overlay);display:flex;flex-direction:column;animation:sui-dialog-in var(--duration-overlay) var(--ease-out)}.card.sm.sc-sui-dialog{width:min(400px, calc(100% - 40px))}.card.lg.sc-sui-dialog{width:min(680px, calc(100% - 40px))}.card.sc-sui-dialog:focus{outline:none}.card.dragging.sc-sui-dialog{user-select:none;-webkit-user-select:none;box-shadow:var(--shadow-overlay), var(--shadow-overlay), var(--shadow-pop), 0 0 0 1px var(--border-strong)}.card.maximized.sc-sui-dialog{top:0;left:0;right:0;bottom:0;margin:0;width:100%;height:100%;max-height:none;border-radius:0;animation-name:sui-dialog-fade}.card.maximized.sc-sui-dialog .body.sc-sui-dialog{flex:1}.card.maximized.sc-sui-dialog .foot.has.sc-sui-dialog{border-radius:0}.head.sc-sui-dialog{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 0}.head.handle.sc-sui-dialog{cursor:grab;touch-action:none}.card.dragging.sc-sui-dialog .head.handle.sc-sui-dialog{cursor:grabbing}.titles.sc-sui-dialog{flex:1;min-width:0}.heading.sc-sui-dialog{font-size:17px;font-weight:730;letter-spacing:var(--tracking-tight);color:var(--ink)}.subtitle.sc-sui-dialog{font-size:12.5px;color:var(--ink-muted);margin-top:3px}.controls.sc-sui-dialog{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-top:-2px}.controls.sc-sui-dialog .sui-glyph.sc-sui-dialog{font-size:var(--icon-size-sm)}.body.sc-sui-dialog{padding:14px 20px 18px;overflow:auto;overscroll-behavior:contain;font-size:13.5px;line-height:1.55;color:var(--ink)}.body.sc-sui-dialog:focus{outline:none}.foot.sc-sui-dialog{display:none}.foot.has.sc-sui-dialog{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:13px 20px;border-top:1px solid var(--hairline);background:var(--surface-sunken);border-radius:0 0 var(--radius-lg) var(--radius-lg)}.layer.closing.sc-sui-dialog{pointer-events:none}.layer.closing.sc-sui-dialog .scrim.sc-sui-dialog,.layer.closing.sc-sui-dialog .card.sc-sui-dialog{animation:sui-dialog-out var(--duration-fast) var(--ease-out) forwards}@keyframes sui-dialog-fade{from{opacity:0}}@keyframes sui-dialog-in{from{opacity:0;top:calc(12vh + 4px)}}@keyframes sui-dialog-out{to{opacity:0}}.foot.sc-sui-dialog-s>span,.foot .sc-sui-dialog-s>span,.foot.sc-sui-dialog-s>div,.foot .sc-sui-dialog-s>div{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px}@media (max-height: 480px){.card.sc-sui-dialog{top:16px;max-height:calc(100% - 32px);overflow-y:auto;overscroll-behavior:contain;animation-name:sui-dialog-fade}.body.sc-sui-dialog{overflow:visible}}@media (forced-colors: active){.card.sc-sui-dialog{border:1px solid CanvasText}}"}},[774,"sui-dialog",{open:[1540],heading:[1],subtitle:[1],size:[513],hideClose:[516,"hide-close"],movable:[516],maximizable:[516],maximized:[1540],initialFocus:[1,"initial-focus"],returnFocus:[1,"return-focus"],hasFooter:[32],hasHeader:[32],offset:[32],dragging:[32],closing:[32]},void 0,{open:[{onOpen:0}]}]);function C(){"undefined"!=typeof customElements&&["sui-dialog","sui-icon-button","sui-tooltip"].forEach((i=>{switch(i){case"sui-dialog":customElements.get(d(i))||customElements.define(d(i),k);break;case"sui-icon-button":customElements.get(d(i))||w();break;case"sui-tooltip":customElements.get(d(i))||z()}}))}export{k as S,C as d}