@nldd/design-system 0.20.0 → 0.21.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 (330) hide show
  1. package/custom-elements.json +204 -8
  2. package/dist/cdn/autoloader.js +181 -0
  3. package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
  4. package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
  5. package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
  6. package/dist/cdn/chunks/avatar-group-rknt4FBO.js +338 -0
  7. package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
  8. package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
  9. package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
  10. package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
  11. package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
  12. package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
  13. package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
  14. package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
  15. package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
  16. package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
  17. package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
  18. package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
  19. package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
  20. package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
  21. package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
  22. package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
  23. package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
  24. package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
  25. package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
  26. package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
  27. package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
  28. package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
  29. package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
  30. package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
  31. package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
  32. package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
  33. package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
  34. package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
  35. package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
  36. package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
  37. package/dist/cdn/chunks/combo-box-DyBQSaQl.js +512 -0
  38. package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
  39. package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
  40. package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
  41. package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
  42. package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
  43. package/dist/cdn/chunks/date-field-Clti_wKN.js +654 -0
  44. package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
  45. package/dist/cdn/chunks/date-picker-2TCQLd5D.js +993 -0
  46. package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
  47. package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
  48. package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
  49. package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
  50. package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
  51. package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
  52. package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
  53. package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
  54. package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
  55. package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
  56. package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
  57. package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
  58. package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
  59. package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
  60. package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
  61. package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
  62. package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
  63. package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
  64. package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
  65. package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
  66. package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
  67. package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
  68. package/dist/cdn/chunks/document-tab-bar-CUc4WWY3.js +973 -0
  69. package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
  70. package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
  71. package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
  72. package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
  73. package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
  74. package/dist/cdn/chunks/file-field-Bff6_1pp.js +1484 -0
  75. package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
  76. package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
  77. package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
  78. package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
  79. package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
  80. package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
  81. package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
  82. package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
  83. package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
  84. package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
  85. package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
  86. package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
  87. package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
  88. package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
  89. package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
  90. package/dist/cdn/chunks/identity-Cg1l0HhB.js +187 -0
  91. package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
  92. package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
  93. package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
  94. package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
  95. package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
  96. package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
  97. package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
  98. package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
  99. package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
  100. package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
  101. package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
  102. package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
  103. package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
  104. package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
  105. package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
  106. package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
  107. package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
  108. package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
  109. package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
  110. package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
  111. package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
  112. package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
  113. package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
  114. package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
  115. package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
  116. package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
  117. package/dist/cdn/chunks/menu-BOu_pD1Q.js +719 -0
  118. package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
  119. package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.js +365 -0
  120. package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
  121. package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
  122. package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
  123. package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
  124. package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
  125. package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
  126. package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
  127. package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
  128. package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
  129. package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
  130. package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
  131. package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
  132. package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
  133. package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
  134. package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
  135. package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
  136. package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
  137. package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
  138. package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
  139. package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
  140. package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
  141. package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
  142. package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
  143. package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
  144. package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
  145. package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
  146. package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
  147. package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
  148. package/dist/cdn/chunks/popover-C-CVVtfl.js +334 -0
  149. package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
  150. package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
  151. package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
  152. package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
  153. package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
  154. package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
  155. package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
  156. package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
  157. package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
  158. package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
  159. package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
  160. package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
  161. package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
  162. package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
  163. package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
  164. package/dist/cdn/chunks/return-focus-Xmagtk6r.js +52 -0
  165. package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
  166. package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
  167. package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
  168. package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
  169. package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
  170. package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
  171. package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
  172. package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
  173. package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
  174. package/dist/cdn/chunks/sheet-BdVCqm2H.js +340 -0
  175. package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
  176. package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
  177. package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
  178. package/dist/cdn/chunks/sidebar-section-DP4jnS7g.js +353 -0
  179. package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
  180. package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
  181. package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
  182. package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
  183. package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
  184. package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
  185. package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
  186. package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
  187. package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
  188. package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
  189. package/dist/cdn/chunks/split-button-BeXnOUTt.js +268 -0
  190. package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
  191. package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
  192. package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
  193. package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
  194. package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
  195. package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
  196. package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
  197. package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
  198. package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
  199. package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
  200. package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
  201. package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
  202. package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
  203. package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
  204. package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
  205. package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
  206. package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
  207. package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
  208. package/dist/cdn/chunks/tab-bar-DmslEoPD.js +697 -0
  209. package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
  210. package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
  211. package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
  212. package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
  213. package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
  214. package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
  215. package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
  216. package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
  217. package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
  218. package/dist/cdn/chunks/time-field-Cj5WojfO.js +597 -0
  219. package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
  220. package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
  221. package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
  222. package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
  223. package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
  224. package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
  225. package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
  226. package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
  227. package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
  228. package/dist/cdn/chunks/token-field-hvDB3l6O.js +664 -0
  229. package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
  230. package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
  231. package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
  232. package/dist/cdn/chunks/toolbar-iNd1VmuG.js +408 -0
  233. package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
  234. package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
  235. package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
  236. package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
  237. package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
  238. package/dist/cdn/chunks/top-navigation-bar-D1hjWIF3.js +925 -0
  239. package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
  240. package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
  241. package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
  242. package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
  243. package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
  244. package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
  245. package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
  246. package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
  247. package/dist/cdn/chunks/window-t5iFkMLY.js +227 -0
  248. package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
  249. package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
  250. package/dist/components/actions/menu/menu-item.d.ts +6 -2
  251. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  252. package/dist/components/actions/menu/menu-item.js +12 -1
  253. package/dist/components/actions/menu/menu-item.js.map +1 -1
  254. package/dist/components/actions/menu/menu.js +1 -1
  255. package/dist/components/actions/menu/menu.js.map +1 -1
  256. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  257. package/dist/components/actions/menu/menu.template.js +2 -1
  258. package/dist/components/actions/menu/menu.template.js.map +1 -1
  259. package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
  260. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  261. package/dist/components/inputs/dropdown/dropdown.js +67 -11
  262. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  263. package/dist/components/layout/container/container.d.ts +15 -2
  264. package/dist/components/layout/container/container.d.ts.map +1 -1
  265. package/dist/components/layout/container/container.js +38 -3
  266. package/dist/components/layout/container/container.js.map +1 -1
  267. package/dist/components/layout/container/container.styles.js +1 -1
  268. package/dist/components/layout/container/container.template.js +1 -1
  269. package/dist/components/layout/container/container.template.js.map +1 -1
  270. package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
  271. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  272. package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
  273. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  274. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
  275. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  276. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
  277. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  278. package/dist/nldd.min.js +298 -298
  279. package/dist/types/react.d.ts +3323 -0
  280. package/dist/types/vue.d.ts +11 -3
  281. package/dist/utilities/autoloader.d.ts +33 -0
  282. package/dist/utilities/autoloader.d.ts.map +1 -0
  283. package/dist/utilities/autoloader.generated.d.ts +3 -0
  284. package/dist/utilities/autoloader.generated.d.ts.map +1 -0
  285. package/dist/utilities/autoloader.generated.js +141 -0
  286. package/dist/utilities/autoloader.generated.js.map +1 -0
  287. package/dist/utilities/autoloader.js +94 -0
  288. package/dist/utilities/autoloader.js.map +1 -0
  289. package/dist/utilities/dev-checks.d.ts +9 -0
  290. package/dist/utilities/dev-checks.d.ts.map +1 -1
  291. package/dist/utilities/dev-checks.js +45 -3
  292. package/dist/utilities/dev-checks.js.map +1 -1
  293. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  294. package/dist/utilities/dev-rules.generated.js +12 -2
  295. package/dist/utilities/dev-rules.generated.js.map +1 -1
  296. package/dist/utilities/loading-tags.d.ts +7 -0
  297. package/dist/utilities/loading-tags.d.ts.map +1 -0
  298. package/dist/utilities/loading-tags.js +7 -0
  299. package/dist/utilities/loading-tags.js.map +1 -0
  300. package/dist/utilities/owner-form.d.ts +3 -3
  301. package/dist/utilities/owner-form.d.ts.map +1 -1
  302. package/dist/utilities/owner-form.js +6 -3
  303. package/dist/utilities/owner-form.js.map +1 -1
  304. package/lint/data.generated.json +1 -1
  305. package/package.json +50 -11
  306. package/dist/components/breakpoints-DtL62nLI.js +0 -45
  307. package/dist/components/components.js +0 -68243
  308. package/dist/components/decorate-DD7uUxHb.js +0 -51
  309. package/dist/components/defer-focus-dzorHsCQ.js +0 -176
  310. package/dist/components/dev-checks-CLB9G43h.js +0 -2711
  311. package/dist/components/dist-245LaK9m.js +0 -1479
  312. package/dist/components/dist-BFZM0YsR.js +0 -15772
  313. package/dist/components/dist-BNkeFjc3.js +0 -1180
  314. package/dist/components/dist-CSC1dG3L.js +0 -365
  315. package/dist/components/dist-CeMOOqgP.js +0 -1509
  316. package/dist/components/dist-DFjwTlJV.js +0 -624
  317. package/dist/components/dist-DHhnz3Gv.js +0 -381
  318. package/dist/components/dist-PeUX4vPq.js +0 -2857
  319. package/dist/components/dist-m70B83qb.js +0 -463
  320. package/dist/components/element-state-BnarBv0M.js +0 -42
  321. package/dist/components/gherkin-DzYbEwDO.js +0 -107
  322. package/dist/components/icon-button-8gvQCwCW.js +0 -2305
  323. package/dist/components/input-modality-D_CY185R.js +0 -48
  324. package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
  325. package/dist/components/nl.generated-DzZkOgnP.js +0 -64
  326. package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
  327. package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
  328. package/dist/components/shell-Dh5IwHd-.js +0 -222
  329. package/dist/components/toml-D0Pix_8Q.js +0 -58
  330. package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
@@ -0,0 +1,1037 @@
1
+ import { A as e, C as t, D as n, J as r, K as i, N as a, O as o, P as s, Q as c, R as l, V as u, W as d, at as f, ct as p, dt as m, et as h, ft as g, ht as _, k as v, lt as y, nt as b, ot as x, st as S, tt as C, ut as w } from "./languages-yKikVFv_.js";
2
+ // node_modules/@codemirror/autocomplete/dist/index.js
3
+ var T = class {
4
+ constructor(e, t, n, r) {
5
+ this.state = e, this.pos = t, this.explicit = n, this.view = r, this.abortListeners = [], this.abortOnDocChange = !1;
6
+ }
7
+ tokenBefore(e) {
8
+ let t = n(this.state).resolveInner(this.pos, -1);
9
+ for (; t && e.indexOf(t.name) < 0;) t = t.parent;
10
+ return t ? {
11
+ from: t.from,
12
+ to: this.pos,
13
+ text: this.state.sliceDoc(t.from, this.pos),
14
+ type: t.type
15
+ } : null;
16
+ }
17
+ matchBefore(e) {
18
+ let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), i = r.search(k(e, !1));
19
+ return i < 0 ? null : {
20
+ from: n + i,
21
+ to: this.pos,
22
+ text: r.slice(i)
23
+ };
24
+ }
25
+ get aborted() {
26
+ return this.abortListeners == null;
27
+ }
28
+ addEventListener(e, t, n) {
29
+ e == "abort" && this.abortListeners && (this.abortListeners.push(t), n && n.onDocChange && (this.abortOnDocChange = !0));
30
+ }
31
+ };
32
+ function ee(e) {
33
+ let t = Object.keys(e).join(""), n = /\w/.test(t);
34
+ return n && (t = t.replace(/\w/g, "")), `[${n ? "\\w" : ""}${t.replace(/[^\w\s]/g, "\\$&")}]`;
35
+ }
36
+ function te(e) {
37
+ let t = Object.create(null), n = Object.create(null);
38
+ for (let { label: r } of e) {
39
+ t[r[0]] = !0;
40
+ for (let e = 1; e < r.length; e++) n[r[e]] = !0;
41
+ }
42
+ let r = ee(t) + ee(n) + "*$";
43
+ return [RegExp("^" + r), new RegExp(r)];
44
+ }
45
+ function E(e) {
46
+ let t = e.map((e) => typeof e == "string" ? { label: e } : e), [n, r] = t.every((e) => /^\w+$/.test(e.label)) ? [/\w*$/, /\w+$/] : te(t);
47
+ return (e) => {
48
+ let i = e.matchBefore(r);
49
+ return i || e.explicit ? {
50
+ from: i ? i.from : e.pos,
51
+ options: t,
52
+ validFor: n
53
+ } : null;
54
+ };
55
+ }
56
+ function ne(e, t) {
57
+ return (r) => {
58
+ for (let t = n(r.state).resolveInner(r.pos, -1); t; t = t.parent) {
59
+ if (e.indexOf(t.name) > -1) return null;
60
+ if (t.type.isTop) break;
61
+ }
62
+ return t(r);
63
+ };
64
+ }
65
+ var D = class {
66
+ constructor(e, t, n, r) {
67
+ this.completion = e, this.source = t, this.match = n, this.score = r;
68
+ }
69
+ };
70
+ function O(e) {
71
+ return e.selection.main.from;
72
+ }
73
+ function k(e, t) {
74
+ let { source: n } = e, r = t && n[0] != "^", i = n[n.length - 1] != "$";
75
+ return !r && !i ? e : RegExp(`${r ? "^" : ""}(?:${n})${i ? "$" : ""}`, e.flags ?? (e.ignoreCase ? "i" : ""));
76
+ }
77
+ var A = /*@__PURE__*/ r.define();
78
+ function re(e, t, n, r) {
79
+ let { main: i } = e.selection, a = n - i.from, o = r - i.from;
80
+ return {
81
+ ...e.changeByRange((s) => {
82
+ if (s != i && n != r && e.sliceDoc(s.from + a, s.from + o) != e.sliceDoc(n, r)) return { range: s };
83
+ let l = e.toText(t);
84
+ return {
85
+ changes: {
86
+ from: s.from + a,
87
+ to: r == i.from ? s.to : s.from + o,
88
+ insert: l
89
+ },
90
+ range: c.cursor(s.from + a + l.length)
91
+ };
92
+ }),
93
+ scrollIntoView: !0,
94
+ userEvent: "input.complete"
95
+ };
96
+ }
97
+ var j = /*@__PURE__*/ new WeakMap();
98
+ function ie(e) {
99
+ if (!Array.isArray(e)) return e;
100
+ let t = j.get(e);
101
+ return t || j.set(e, t = E(e)), t;
102
+ }
103
+ var M = /*@__PURE__*/ x.define(), N = /*@__PURE__*/ x.define(), ae = class {
104
+ constructor(e) {
105
+ this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
106
+ for (let t = 0; t < e.length;) {
107
+ let n = w(e, t), r = m(n);
108
+ this.chars.push(n);
109
+ let i = e.slice(t, t + r), a = i.toUpperCase();
110
+ this.folded.push(w(a == i ? i.toLowerCase() : a, 0)), t += r;
111
+ }
112
+ this.astral = e.length != this.chars.length;
113
+ }
114
+ ret(e, t) {
115
+ return this.score = e, this.matched = t, this;
116
+ }
117
+ match(e) {
118
+ if (this.pattern.length == 0) return this.ret(-100, []);
119
+ if (e.length < this.pattern.length) return null;
120
+ let { chars: t, folded: n, any: r, precise: i, byWord: a } = this;
121
+ if (t.length == 1) {
122
+ let r = w(e, 0), i = m(r), a = i == e.length ? 0 : -100;
123
+ if (r != t[0]) {
124
+ if (r == n[0]) a += -200;
125
+ else return null;
126
+ }
127
+ return this.ret(a, [0, i]);
128
+ }
129
+ let o = e.indexOf(this.pattern);
130
+ if (o == 0) return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
131
+ let s = t.length, c = 0;
132
+ if (o < 0) {
133
+ for (let i = 0, a = Math.min(e.length, 200); i < a && c < s;) {
134
+ let a = w(e, i);
135
+ (a == t[c] || a == n[c]) && (r[c++] = i), i += m(a);
136
+ }
137
+ if (c < s) return null;
138
+ }
139
+ let l = 0, u = 0, d = !1, f = 0, p = -1, h = -1, g = /[a-z]/.test(e), v = !0;
140
+ for (let r = 0, c = Math.min(e.length, 200), y = 0; r < c && u < s;) {
141
+ let c = w(e, r);
142
+ o < 0 && (l < s && c == t[l] && (i[l++] = r), f < s && (c == t[f] || c == n[f] ? (f == 0 && (p = r), h = r + 1, f++) : f = 0));
143
+ let b, x = c < 255 ? c >= 48 && c <= 57 || c >= 97 && c <= 122 ? 2 : +(c >= 65 && c <= 90) : (b = _(c)) == b.toLowerCase() ? b == b.toUpperCase() ? 0 : 2 : 1;
144
+ (!r || x == 1 && g || y == 0 && x != 0) && (t[u] == c || n[u] == c && (d = !0) ? a[u++] = r : a.length && (v = !1)), y = x, r += m(c);
145
+ }
146
+ return u == s && a[0] == 0 && v ? this.result(-100 + (d ? -200 : 0), a, e) : f == s && p == 0 ? this.ret(-200 - e.length + (h == e.length ? 0 : -100), [0, h]) : o > -1 ? this.ret(-700 - e.length, [o, o + this.pattern.length]) : f == s ? this.ret(-900 - e.length, [p, h]) : u == s ? this.result(-100 + (d ? -200 : 0) + -700 + (v ? 0 : -1100), a, e) : t.length == 2 ? null : this.result((r[0] ? -700 : 0) + -200 + -1100, r, e);
147
+ }
148
+ result(e, t, n) {
149
+ let r = [], i = 0;
150
+ for (let e of t) {
151
+ let t = e + (this.astral ? m(w(n, e)) : 1);
152
+ i && r[i - 1] == e ? r[i - 1] = t : (r[i++] = e, r[i++] = t);
153
+ }
154
+ return this.ret(e - n.length, r);
155
+ }
156
+ }, oe = class {
157
+ constructor(e) {
158
+ this.pattern = e, this.matched = [], this.score = 0, this.folded = e.toLowerCase();
159
+ }
160
+ match(e) {
161
+ if (e.length < this.pattern.length) return null;
162
+ let t = e.slice(0, this.pattern.length), n = t == this.pattern ? 0 : t.toLowerCase() == this.folded ? -200 : null;
163
+ return n == null ? null : (this.matched = [0, t.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
164
+ }
165
+ }, P = /*@__PURE__*/ h.define({ combine(e) {
166
+ return g(e, {
167
+ activateOnTyping: !0,
168
+ activateOnCompletion: () => !1,
169
+ activateOnTypingDelay: 100,
170
+ selectOnOpen: !0,
171
+ override: null,
172
+ closeOnBlur: !0,
173
+ maxRenderedOptions: 100,
174
+ defaultKeymap: !0,
175
+ tooltipClass: () => "",
176
+ optionClass: () => "",
177
+ aboveCursor: !1,
178
+ icons: !0,
179
+ addToOptions: [],
180
+ positionInfo: se,
181
+ filterStrict: !1,
182
+ compareCompletions: (e, t) => (e.sortText || e.label).localeCompare(t.sortText || t.label),
183
+ interactionDelay: 75,
184
+ updateSyncTime: 100
185
+ }, {
186
+ defaultKeymap: (e, t) => e && t,
187
+ closeOnBlur: (e, t) => e && t,
188
+ icons: (e, t) => e && t,
189
+ tooltipClass: (e, t) => (n) => F(e(n), t(n)),
190
+ optionClass: (e, t) => (n) => F(e(n), t(n)),
191
+ addToOptions: (e, t) => e.concat(t),
192
+ filterStrict: (e, t) => e || t
193
+ });
194
+ } });
195
+ function F(e, t) {
196
+ return e ? t ? e + " " + t : e : t;
197
+ }
198
+ function se(e, t, n, r, i, a) {
199
+ let o = e.textDirection == v.RTL, s = o, c = !1, l = "top", u, d, f = t.left - i.left, p = i.right - t.right, m = r.right - r.left, h = r.bottom - r.top;
200
+ if (s && f < Math.min(m, p) ? s = !1 : !s && p < Math.min(m, f) && (s = !0), m <= (s ? f : p)) u = Math.max(i.top, Math.min(n.top, i.bottom - h)) - t.top, d = Math.min(400, s ? f : p);
201
+ else {
202
+ c = !0, d = Math.min(400, (o ? t.right : i.right - t.left) - 30);
203
+ let e = i.bottom - t.bottom;
204
+ e >= h || e > t.top ? u = n.bottom - t.top : (l = "bottom", u = t.bottom - n.top);
205
+ }
206
+ let g = (t.bottom - t.top) / a.offsetHeight, _ = (t.right - t.left) / a.offsetWidth;
207
+ return {
208
+ style: `${l}: ${u / g}px; max-width: ${d / _}px`,
209
+ class: "cm-completionInfo-" + (c ? o ? "left-narrow" : "right-narrow" : s ? "left" : "right")
210
+ };
211
+ }
212
+ var I = /*@__PURE__*/ x.define();
213
+ function ce(e) {
214
+ let t = e.addToOptions.slice();
215
+ return e.icons && t.push({
216
+ render(e) {
217
+ let t = document.createElement("div");
218
+ return t.classList.add("cm-completionIcon"), e.type && t.classList.add(...e.type.split(/\s+/g).map((e) => "cm-completionIcon-" + e)), t.setAttribute("aria-hidden", "true"), t;
219
+ },
220
+ position: 20
221
+ }), t.push({
222
+ render(e, t, n, r) {
223
+ let i = document.createElement("span");
224
+ i.className = "cm-completionLabel";
225
+ let a = e.displayLabel || e.label, o = 0;
226
+ for (let e = 0; e < r.length;) {
227
+ let t = r[e++], n = r[e++];
228
+ t > o && i.appendChild(document.createTextNode(a.slice(o, t)));
229
+ let s = i.appendChild(document.createElement("span"));
230
+ s.appendChild(document.createTextNode(a.slice(t, n))), s.className = "cm-completionMatchedText", o = n;
231
+ }
232
+ return o < a.length && i.appendChild(document.createTextNode(a.slice(o))), i;
233
+ },
234
+ position: 50
235
+ }, {
236
+ render(e) {
237
+ if (!e.detail) return null;
238
+ let t = document.createElement("span");
239
+ return t.className = "cm-completionDetail", t.textContent = e.detail, t;
240
+ },
241
+ position: 80
242
+ }), t.sort((e, t) => e.position - t.position).map((e) => e.render);
243
+ }
244
+ function L(e, t, n) {
245
+ if (e <= n) return {
246
+ from: 0,
247
+ to: e
248
+ };
249
+ if (t < 0 && (t = 0), t <= e >> 1) {
250
+ let e = Math.floor(t / n);
251
+ return {
252
+ from: e * n,
253
+ to: (e + 1) * n
254
+ };
255
+ }
256
+ let r = Math.ceil((e - t) / n);
257
+ return {
258
+ from: e - r * n,
259
+ to: e - (r - 1) * n
260
+ };
261
+ }
262
+ var le = class {
263
+ constructor(e, t, n) {
264
+ this.view = e, this.stateField = t, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = {
265
+ read: () => this.measureInfo(),
266
+ write: (e) => this.placeInfo(e),
267
+ key: this
268
+ }, this.space = null, this.currentClass = "";
269
+ let r = e.state.field(t), { options: i, selected: a } = r.open, o = e.state.facet(P);
270
+ this.optionContent = ce(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = L(i.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (n) => {
271
+ let { options: r } = e.state.field(t).open;
272
+ for (let t = n.target, i; t && t != this.dom; t = t.parentNode) if (t.nodeName == "LI" && (i = /-(\d+)$/.exec(t.id)) && +i[1] < r.length) {
273
+ this.applyCompletion(e, r[+i[1]]), n.preventDefault();
274
+ return;
275
+ }
276
+ if (n.target == this.list) {
277
+ let t = this.list.classList.contains("cm-completionListIncompleteTop") && n.clientY < this.list.firstChild.getBoundingClientRect().top ? this.range.from - 1 : this.list.classList.contains("cm-completionListIncompleteBottom") && n.clientY > this.list.lastChild.getBoundingClientRect().bottom ? this.range.to : null;
278
+ t != null && (e.dispatch({ effects: I.of(t) }), n.preventDefault());
279
+ }
280
+ }), this.dom.addEventListener("focusout", (t) => {
281
+ let n = e.state.field(this.stateField, !1);
282
+ n && n.tooltip && e.state.facet(P).closeOnBlur && t.relatedTarget != e.contentDOM && e.dispatch({ effects: N.of(null) });
283
+ }), this.showOptions(i, r.id);
284
+ }
285
+ mount() {
286
+ this.updateSel();
287
+ }
288
+ showOptions(e, t) {
289
+ this.list && this.list.remove(), this.list = this.dom.appendChild(this.createListBox(e, t, this.range)), this.list.addEventListener("scroll", () => {
290
+ this.info && this.view.requestMeasure(this.placeInfoReq);
291
+ });
292
+ }
293
+ update(e) {
294
+ let t = e.state.field(this.stateField), n = e.startState.field(this.stateField);
295
+ if (this.updateTooltipClass(e.state), t != n) {
296
+ let { options: r, selected: i, disabled: a } = t.open;
297
+ n.open && n.open.options == r || (this.range = L(r.length, i, e.state.facet(P).maxRenderedOptions), this.showOptions(r, t.id)), this.updateSel(), a != n.open?.disabled && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!a);
298
+ }
299
+ }
300
+ updateTooltipClass(e) {
301
+ let t = this.tooltipClass(e);
302
+ if (t != this.currentClass) {
303
+ for (let e of this.currentClass.split(" ")) e && this.dom.classList.remove(e);
304
+ for (let e of t.split(" ")) e && this.dom.classList.add(e);
305
+ this.currentClass = t;
306
+ }
307
+ }
308
+ positioned(e) {
309
+ this.space = e, this.info && this.view.requestMeasure(this.placeInfoReq);
310
+ }
311
+ updateSel() {
312
+ let e = this.view.state.field(this.stateField), t = e.open;
313
+ (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = L(t.options.length, t.selected, this.view.state.facet(P).maxRenderedOptions), this.showOptions(t.options, e.id));
314
+ let n = this.updateSelectedOption(t.selected);
315
+ if (n) {
316
+ this.destroyInfo();
317
+ let { completion: r } = t.options[t.selected], { info: i } = r;
318
+ if (!i) return;
319
+ let a = typeof i == "string" ? document.createTextNode(i) : i(r);
320
+ if (!a) return;
321
+ "then" in a ? a.then((t) => {
322
+ t && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(t, r);
323
+ }).catch((e) => d(this.view.state, e, "completion info")) : (this.addInfoPane(a, r), n.setAttribute("aria-describedby", this.info.id));
324
+ }
325
+ }
326
+ addInfoPane(e, t) {
327
+ this.destroyInfo();
328
+ let n = this.info = document.createElement("div");
329
+ if (n.className = "cm-tooltip cm-completionInfo", n.id = "cm-completionInfo-" + Math.floor(Math.random() * 65535).toString(16), e.nodeType != null) n.appendChild(e), this.infoDestroy = null;
330
+ else {
331
+ let { dom: t, destroy: r } = e;
332
+ n.appendChild(t), this.infoDestroy = r || null;
333
+ }
334
+ this.dom.appendChild(n), this.view.requestMeasure(this.placeInfoReq);
335
+ }
336
+ updateSelectedOption(e) {
337
+ let t = null;
338
+ for (let n = this.list.firstChild, r = this.range.from; n; n = n.nextSibling, r++) n.nodeName != "LI" || !n.id ? r-- : r == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), t = n) : n.hasAttribute("aria-selected") && (n.removeAttribute("aria-selected"), n.removeAttribute("aria-describedby"));
339
+ return t && de(this.list, t), t;
340
+ }
341
+ measureInfo() {
342
+ let e = this.dom.querySelector("[aria-selected]");
343
+ if (!e || !this.info) return null;
344
+ let t = this.dom.getBoundingClientRect(), n = this.info.getBoundingClientRect(), r = e.getBoundingClientRect(), i = this.space;
345
+ if (!i) {
346
+ let e = this.dom.ownerDocument.documentElement;
347
+ i = {
348
+ left: 0,
349
+ top: 0,
350
+ right: e.clientWidth,
351
+ bottom: e.clientHeight
352
+ };
353
+ }
354
+ return r.top > Math.min(i.bottom, t.bottom) - 10 || r.bottom < Math.max(i.top, t.top) + 10 ? null : this.view.state.facet(P).positionInfo(this.view, t, r, n, i, this.dom);
355
+ }
356
+ placeInfo(e) {
357
+ this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
358
+ }
359
+ createListBox(e, t, n) {
360
+ let r = document.createElement("ul");
361
+ r.id = t, r.setAttribute("role", "listbox"), r.setAttribute("aria-expanded", "true"), r.setAttribute("aria-label", this.view.state.phrase("Completions")), r.addEventListener("mousedown", (e) => {
362
+ e.target == r && e.preventDefault();
363
+ });
364
+ let i = null;
365
+ for (let a = n.from; a < n.to; a++) {
366
+ let { completion: o, match: s } = e[a], { section: c } = o;
367
+ if (c) {
368
+ let e = typeof c == "string" ? c : c.name;
369
+ if (e != i && (a > n.from || n.from == 0)) {
370
+ if (i = e, typeof c != "string" && c.header) r.appendChild(c.header(c));
371
+ else {
372
+ let t = r.appendChild(document.createElement("completion-section"));
373
+ t.textContent = e;
374
+ }
375
+ }
376
+ }
377
+ let l = r.appendChild(document.createElement("li"));
378
+ l.id = t + "-" + a, l.setAttribute("role", "option");
379
+ let u = this.optionClass(o);
380
+ u && (l.className = u);
381
+ for (let e of this.optionContent) {
382
+ let t = e(o, this.view.state, this.view, s);
383
+ t && l.appendChild(t);
384
+ }
385
+ }
386
+ return n.from && r.classList.add("cm-completionListIncompleteTop"), n.to < e.length && r.classList.add("cm-completionListIncompleteBottom"), r;
387
+ }
388
+ destroyInfo() {
389
+ this.info && (this.infoDestroy && this.infoDestroy(), this.info.remove(), this.info = null);
390
+ }
391
+ destroy() {
392
+ this.destroyInfo();
393
+ }
394
+ };
395
+ function ue(e, t) {
396
+ return (n) => new le(n, e, t);
397
+ }
398
+ function de(e, t) {
399
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = n.height / e.offsetHeight;
400
+ r.top < n.top ? e.scrollTop -= (n.top - r.top) / i : r.bottom > n.bottom && (e.scrollTop += (r.bottom - n.bottom) / i);
401
+ }
402
+ function R(e) {
403
+ return (e.boost || 0) * 100 + (e.apply ? 10 : 0) + (e.info ? 5 : 0) + +!!e.type;
404
+ }
405
+ function fe(e, t) {
406
+ let n = [], r = null, i = null, a = (e) => {
407
+ n.push(e);
408
+ let { section: t } = e.completion;
409
+ if (t) {
410
+ r || (r = []);
411
+ let e = typeof t == "string" ? t : t.name;
412
+ r.some((t) => t.name == e) || r.push(typeof t == "string" ? { name: e } : t);
413
+ }
414
+ }, o = t.facet(P);
415
+ for (let r of e) if (r.hasResult()) {
416
+ let e = r.result.getMatch;
417
+ if (r.result.filter === !1) for (let t of r.result.options) a(new D(t, r.source, e ? e(t) : [], 1e9 - n.length));
418
+ else {
419
+ let n = t.sliceDoc(r.from, r.to), s, c = o.filterStrict ? new oe(n) : new ae(n);
420
+ for (let t of r.result.options) if (s = c.match(t.label)) {
421
+ let n = t.displayLabel ? e ? e(t, s.matched) : [] : s.matched, o = s.score + (t.boost || 0);
422
+ if (a(new D(t, r.source, n, o)), typeof t.section == "object" && t.section.rank === "dynamic") {
423
+ let { name: e } = t.section;
424
+ i || (i = Object.create(null)), i[e] = Math.max(o, i[e] || -1e9);
425
+ }
426
+ }
427
+ }
428
+ }
429
+ if (r) {
430
+ let e = Object.create(null), t = 0, a = (e, t) => (e.rank === "dynamic" && t.rank === "dynamic" ? i[t.name] - i[e.name] : 0) || (typeof e.rank == "number" ? e.rank : 1e9) - (typeof t.rank == "number" ? t.rank : 1e9) || (e.name < t.name ? -1 : 1);
431
+ for (let n of r.sort(a)) t -= 1e5, e[n.name] = t;
432
+ for (let t of n) {
433
+ let { section: n } = t.completion;
434
+ n && (t.score += e[typeof n == "string" ? n : n.name]);
435
+ }
436
+ }
437
+ let s = [], c = null, l = o.compareCompletions;
438
+ for (let e of n.sort((e, t) => t.score - e.score || l(e.completion, t.completion))) {
439
+ let t = e.completion;
440
+ !c || c.label != t.label || c.detail != t.detail || c.type != null && t.type != null && c.type != t.type || c.apply != t.apply || c.boost != t.boost ? s.push(e) : R(e.completion) > R(c) && (s[s.length - 1] = e), c = e.completion;
441
+ }
442
+ return s;
443
+ }
444
+ var pe = class e {
445
+ constructor(e, t, n, r, i, a) {
446
+ this.options = e, this.attrs = t, this.tooltip = n, this.timestamp = r, this.selected = i, this.disabled = a;
447
+ }
448
+ setSelected(t, n) {
449
+ return t == this.selected || t >= this.options.length ? this : new e(this.options, z(n, t), this.tooltip, this.timestamp, t, this.disabled);
450
+ }
451
+ static build(t, n, r, i, a, o) {
452
+ if (i && !o && t.some((e) => e.isPending)) return i.setDisabled();
453
+ let s = fe(t, n);
454
+ if (!s.length) return i && t.some((e) => e.isPending) ? i.setDisabled() : null;
455
+ let c = n.facet(P).selectOnOpen ? 0 : -1;
456
+ if (i && i.selected != c && i.selected != -1) {
457
+ let e = i.options[i.selected].completion;
458
+ for (let t = 0; t < s.length; t++) if (s[t].completion == e) {
459
+ c = t;
460
+ break;
461
+ }
462
+ }
463
+ return new e(s, z(r, c), {
464
+ pos: t.reduce((e, t) => t.hasResult() ? Math.min(e, t.from) : e, 1e8),
465
+ create: be,
466
+ above: a.aboveCursor
467
+ }, i ? i.timestamp : Date.now(), c, !1);
468
+ }
469
+ map(t) {
470
+ return new e(this.options, this.attrs, {
471
+ ...this.tooltip,
472
+ pos: t.mapPos(this.tooltip.pos)
473
+ }, this.timestamp, this.selected, this.disabled);
474
+ }
475
+ setDisabled() {
476
+ return new e(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
477
+ }
478
+ }, me = class e {
479
+ constructor(e, t, n) {
480
+ this.active = e, this.id = t, this.open = n;
481
+ }
482
+ static start() {
483
+ return new e(ve, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
484
+ }
485
+ update(t) {
486
+ let { state: n } = t, r = n.facet(P), i = (r.override || n.languageDataAt("autocomplete", O(n)).map(ie)).map((e) => (this.active.find((t) => t.source == e) || new V(e, +!!this.active.some((e) => e.state != 0))).update(t, r));
487
+ i.length == this.active.length && i.every((e, t) => e == this.active[t]) && (i = this.active);
488
+ let a = this.open, o = t.effects.some((e) => e.is(U));
489
+ a && t.docChanged && (a = a.map(t.changes)), t.selection || i.some((e) => e.hasResult() && t.changes.touchesRange(e.from, e.to)) || !he(i, this.active) || o ? a = pe.build(i, n, this.id, a, r, o) : a && a.disabled && !i.some((e) => e.isPending) && (a = null), !a && i.every((e) => !e.isPending) && i.some((e) => e.hasResult()) && (i = i.map((e) => e.hasResult() ? new V(e.source, 0) : e));
490
+ for (let e of t.effects) e.is(I) && (a = a && a.setSelected(e.value, this.id));
491
+ return i == this.active && a == this.open ? this : new e(i, this.id, a);
492
+ }
493
+ get tooltip() {
494
+ return this.open ? this.open.tooltip : null;
495
+ }
496
+ get attrs() {
497
+ return this.open ? this.open.attrs : this.active.length ? ge : _e;
498
+ }
499
+ };
500
+ function he(e, t) {
501
+ if (e == t) return !0;
502
+ for (let n = 0, r = 0;;) {
503
+ for (; n < e.length && !e[n].hasResult();) n++;
504
+ for (; r < t.length && !t[r].hasResult();) r++;
505
+ let i = n == e.length, a = r == t.length;
506
+ if (i || a) return i == a;
507
+ if (e[n++].result != t[r++].result) return !1;
508
+ }
509
+ }
510
+ var ge = { "aria-autocomplete": "list" }, _e = {};
511
+ function z(e, t) {
512
+ let n = {
513
+ "aria-autocomplete": "list",
514
+ "aria-haspopup": "listbox",
515
+ "aria-controls": e
516
+ };
517
+ return t > -1 && (n["aria-activedescendant"] = e + "-" + t), n;
518
+ }
519
+ var ve = [];
520
+ function B(e, t) {
521
+ if (e.isUserEvent("input.complete")) {
522
+ let n = e.annotation(A);
523
+ if (n && t.activateOnCompletion(n)) return 12;
524
+ }
525
+ let n = e.isUserEvent("input.type");
526
+ return n && t.activateOnTyping ? 5 : n ? 1 : e.isUserEvent("delete.backward") ? 2 : e.selection ? 8 : e.docChanged ? 16 : 0;
527
+ }
528
+ var V = class e {
529
+ constructor(e, t, n = !1) {
530
+ this.source = e, this.state = t, this.explicit = n;
531
+ }
532
+ hasResult() {
533
+ return !1;
534
+ }
535
+ get isPending() {
536
+ return this.state == 1;
537
+ }
538
+ update(t, n) {
539
+ let r = B(t, n), i = this;
540
+ (r & 8 || r & 16 && this.touches(t)) && (i = new e(i.source, 0)), r & 4 && i.state == 0 && (i = new e(this.source, 1)), i = i.updateFor(t, r);
541
+ for (let n of t.effects) if (n.is(M)) i = new e(i.source, 1, n.value);
542
+ else if (n.is(N)) i = new e(i.source, 0);
543
+ else if (n.is(U)) for (let e of n.value) e.source == i.source && (i = e);
544
+ return i;
545
+ }
546
+ updateFor(e, t) {
547
+ return this.map(e.changes);
548
+ }
549
+ map(e) {
550
+ return this;
551
+ }
552
+ touches(e) {
553
+ return e.changes.touchesRange(O(e.state));
554
+ }
555
+ }, H = class e extends V {
556
+ constructor(e, t, n, r, i, a) {
557
+ super(e, 3, t), this.limit = n, this.result = r, this.from = i, this.to = a;
558
+ }
559
+ hasResult() {
560
+ return !0;
561
+ }
562
+ updateFor(t, n) {
563
+ if (!(n & 3)) return this.map(t.changes);
564
+ let r = this.result;
565
+ r.map && !t.changes.empty && (r = r.map(r, t.changes));
566
+ let i = t.changes.mapPos(this.from), a = t.changes.mapPos(this.to, 1), o = O(t.state);
567
+ if (o > a || !r || n & 2 && (O(t.startState) == this.from || o < this.limit)) return new V(this.source, n & 4 ? 1 : 0);
568
+ let s = t.changes.mapPos(this.limit);
569
+ return ye(r.validFor, t.state, i, a) ? new e(this.source, this.explicit, s, r, i, a) : r.update && (r = r.update(r, i, a, new T(t.state, o, !1))) ? new e(this.source, this.explicit, s, r, r.from, r.to ?? O(t.state)) : new V(this.source, 1, this.explicit);
570
+ }
571
+ map(t) {
572
+ if (t.empty) return this;
573
+ let n = this.result.map ? this.result.map(this.result, t) : this.result;
574
+ return n ? new e(this.source, this.explicit, t.mapPos(this.limit), n, t.mapPos(this.from), t.mapPos(this.to, 1)) : new V(this.source, 0);
575
+ }
576
+ touches(e) {
577
+ return e.changes.touchesRange(this.from, this.to);
578
+ }
579
+ };
580
+ function ye(e, t, n, r) {
581
+ if (!e) return !1;
582
+ let i = t.sliceDoc(n, r);
583
+ return typeof e == "function" ? e(i, n, r, t) : k(e, !0).test(i);
584
+ }
585
+ var U = /*@__PURE__*/ x.define({ map(e, t) {
586
+ return e.map((e) => e.map(t));
587
+ } }), W = /*@__PURE__*/ S.define({
588
+ create() {
589
+ return me.start();
590
+ },
591
+ update(e, t) {
592
+ return e.update(t);
593
+ },
594
+ provide: (t) => [i.from(t, (e) => e.tooltip), e.contentAttributes.from(t, (e) => e.attrs)]
595
+ });
596
+ function G(e, t) {
597
+ let n = t.completion.apply || t.completion.label, r = e.state.field(W).active.find((e) => e.source == t.source);
598
+ return r instanceof H && (typeof n == "string" ? e.dispatch({
599
+ ...re(e.state, n, r.from, r.to),
600
+ annotations: A.of(t.completion)
601
+ }) : n(e, t.completion, r.from, r.to), !0);
602
+ }
603
+ var be = /*@__PURE__*/ ue(W, G);
604
+ function K(e, t = "option") {
605
+ return (n) => {
606
+ let r = n.state.field(W, !1);
607
+ if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(P).interactionDelay) return !1;
608
+ let i = 1, a;
609
+ t == "page" && (a = l(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(a.dom.offsetHeight / a.dom.querySelector("li").offsetHeight) - 1));
610
+ let { length: o } = r.open.options, s = r.open.selected > -1 ? r.open.selected + i * (e ? 1 : -1) : e ? 0 : o - 1;
611
+ return s < 0 ? s = t == "page" ? 0 : o - 1 : s >= o && (s = t == "page" ? o - 1 : 0), n.dispatch({ effects: I.of(s) }), !0;
612
+ };
613
+ }
614
+ var xe = (e) => {
615
+ let t = e.state.field(W, !1);
616
+ return e.state.readOnly || !t || !t.open || t.open.selected < 0 || t.open.disabled || Date.now() - t.open.timestamp < e.state.facet(P).interactionDelay ? !1 : G(e, t.open.options[t.open.selected]);
617
+ }, q = (e) => e.state.field(W, !1) ? (e.dispatch({ effects: M.of(!0) }), !0) : !1, Se = (e) => {
618
+ let t = e.state.field(W, !1);
619
+ return !t || !t.active.some((e) => e.state != 0) ? !1 : (e.dispatch({ effects: N.of(null) }), !0);
620
+ }, Ce = class {
621
+ constructor(e, t) {
622
+ this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
623
+ }
624
+ }, we = 50, Te = 1e3, Ee = /*@__PURE__*/ a.fromClass(class {
625
+ constructor(e) {
626
+ this.view = e, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
627
+ for (let t of e.state.field(W).active) t.isPending && this.startQuery(t);
628
+ }
629
+ update(e) {
630
+ let t = e.state.field(W), n = e.state.facet(P);
631
+ if (!e.selectionSet && !e.docChanged && e.startState.field(W) == t) return;
632
+ let r = e.transactions.some((e) => {
633
+ let t = B(e, n);
634
+ return t & 8 || (e.selection || e.docChanged) && !(t & 3);
635
+ });
636
+ for (let t = 0; t < this.running.length; t++) {
637
+ let n = this.running[t];
638
+ if (r || n.context.abortOnDocChange && e.docChanged || n.updates.length + e.transactions.length > we && Date.now() - n.time > Te) {
639
+ for (let e of n.context.abortListeners) try {
640
+ e();
641
+ } catch (e) {
642
+ d(this.view.state, e);
643
+ }
644
+ n.context.abortListeners = null, this.running.splice(t--, 1);
645
+ } else n.updates.push(...e.transactions);
646
+ }
647
+ this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), e.transactions.some((e) => e.effects.some((e) => e.is(M))) && (this.pendingStart = !0);
648
+ let i = this.pendingStart ? 50 : n.activateOnTypingDelay;
649
+ if (this.debounceUpdate = t.active.some((e) => e.isPending && !this.running.some((t) => t.active.source == e.source)) ? setTimeout(() => this.startUpdate(), i) : -1, this.composing != 0) for (let t of e.transactions) t.isUserEvent("input.type") ? this.composing = 2 : this.composing == 2 && t.selection && (this.composing = 3);
650
+ }
651
+ startUpdate() {
652
+ this.debounceUpdate = -1, this.pendingStart = !1;
653
+ let { state: e } = this.view, t = e.field(W);
654
+ for (let e of t.active) e.isPending && !this.running.some((t) => t.active.source == e.source) && this.startQuery(e);
655
+ this.running.length && t.open && t.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(P).updateSyncTime));
656
+ }
657
+ startQuery(e) {
658
+ let { state: t } = this.view, n = new T(t, O(t), e.explicit, this.view), r = new Ce(e, n);
659
+ this.running.push(r), Promise.resolve(e.source(n)).then((e) => {
660
+ r.context.aborted || (r.done = e || null, this.scheduleAccept());
661
+ }, (e) => {
662
+ this.view.dispatch({ effects: N.of(null) }), d(this.view.state, e);
663
+ });
664
+ }
665
+ scheduleAccept() {
666
+ this.running.every((e) => e.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(P).updateSyncTime));
667
+ }
668
+ accept() {
669
+ this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
670
+ let e = [], t = this.view.state.facet(P), n = this.view.state.field(W);
671
+ for (let r = 0; r < this.running.length; r++) {
672
+ let i = this.running[r];
673
+ if (i.done === void 0) continue;
674
+ if (this.running.splice(r--, 1), i.done) {
675
+ let n = O(i.updates.length ? i.updates[0].startState : this.view.state), r = Math.min(n, i.done.from + +!i.active.explicit), a = new H(i.active.source, i.active.explicit, r, i.done, i.done.from, i.done.to ?? n);
676
+ for (let e of i.updates) a = a.update(e, t);
677
+ if (a.hasResult()) {
678
+ e.push(a);
679
+ continue;
680
+ }
681
+ }
682
+ let a = n.active.find((e) => e.source == i.active.source);
683
+ if (a && a.isPending) {
684
+ if (i.done == null) {
685
+ let n = new V(i.active.source, 0);
686
+ for (let e of i.updates) n = n.update(e, t);
687
+ n.isPending || e.push(n);
688
+ } else this.startQuery(a);
689
+ }
690
+ }
691
+ (e.length || n.open && n.open.disabled) && this.view.dispatch({ effects: U.of(e) });
692
+ }
693
+ }, { eventHandlers: {
694
+ blur(e) {
695
+ let t = this.view.state.field(W, !1);
696
+ if (t && t.tooltip && this.view.state.facet(P).closeOnBlur) {
697
+ let n = t.open && l(this.view, t.open.tooltip);
698
+ n && n.dom.contains(e.relatedTarget) || setTimeout(() => this.view.dispatch({ effects: N.of(null) }), 10);
699
+ }
700
+ },
701
+ compositionstart() {
702
+ this.composing = 1;
703
+ },
704
+ compositionend() {
705
+ this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: M.of(!1) }), 20), this.composing = 0;
706
+ }
707
+ } }), De = typeof navigator == "object" && /*@__PURE__*/ /Win/.test(navigator.platform), Oe = /*@__PURE__*/ b.highest(/*@__PURE__*/ e.domEventHandlers({ keydown(e, t) {
708
+ let n = t.state.field(W, !1);
709
+ if (!n || !n.open || n.open.disabled || n.open.selected < 0 || !e.key || e.key.length > 1 || e.ctrlKey && !(De && e.altKey) || e.metaKey) return !1;
710
+ let r = n.open.options[n.open.selected], i = n.active.find((e) => e.source == r.source), a = r.completion.commitCharacters || i.result.commitCharacters;
711
+ return a && a.indexOf(e.key) > -1 && G(t, r), !1;
712
+ } })), J = /*@__PURE__*/ e.baseTheme({
713
+ ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": {
714
+ fontFamily: "monospace",
715
+ whiteSpace: "nowrap",
716
+ overflow: "hidden auto",
717
+ maxWidth_fallback: "700px",
718
+ maxWidth: "min(700px, 95vw)",
719
+ minWidth: "250px",
720
+ maxHeight: "10em",
721
+ height: "100%",
722
+ listStyle: "none",
723
+ margin: 0,
724
+ padding: 0,
725
+ "& > li, & > completion-section": {
726
+ padding: "1px 3px",
727
+ lineHeight: 1.2
728
+ },
729
+ "& > li": {
730
+ overflowX: "hidden",
731
+ textOverflow: "ellipsis",
732
+ cursor: "pointer"
733
+ },
734
+ "& > completion-section": {
735
+ display: "list-item",
736
+ borderBottom: "1px solid silver",
737
+ paddingLeft: "0.5em",
738
+ opacity: .7
739
+ }
740
+ } },
741
+ "&light .cm-tooltip-autocomplete ul li[aria-selected]": {
742
+ background: "#17c",
743
+ color: "white"
744
+ },
745
+ "&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]": { background: "#777" },
746
+ "&dark .cm-tooltip-autocomplete ul li[aria-selected]": {
747
+ background: "#347",
748
+ color: "white"
749
+ },
750
+ "&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]": { background: "#444" },
751
+ ".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after": {
752
+ content: "\"···\"",
753
+ opacity: .5,
754
+ display: "block",
755
+ textAlign: "center",
756
+ cursor: "pointer"
757
+ },
758
+ ".cm-tooltip.cm-completionInfo": {
759
+ position: "absolute",
760
+ padding: "3px 9px",
761
+ width: "max-content",
762
+ maxWidth: "400px",
763
+ boxSizing: "border-box",
764
+ whiteSpace: "pre-line"
765
+ },
766
+ ".cm-completionInfo.cm-completionInfo-left": { right: "100%" },
767
+ ".cm-completionInfo.cm-completionInfo-right": { left: "100%" },
768
+ ".cm-completionInfo.cm-completionInfo-left-narrow": { right: "30px" },
769
+ ".cm-completionInfo.cm-completionInfo-right-narrow": { left: "30px" },
770
+ "&light .cm-snippetField": { backgroundColor: "#00000022" },
771
+ "&dark .cm-snippetField": { backgroundColor: "#ffffff22" },
772
+ ".cm-snippetFieldPosition": {
773
+ verticalAlign: "text-top",
774
+ width: 0,
775
+ height: "1.15em",
776
+ display: "inline-block",
777
+ margin: "0 -0.7px -.7em",
778
+ borderLeft: "1.4px dotted #888"
779
+ },
780
+ ".cm-completionMatchedText": { textDecoration: "underline" },
781
+ ".cm-completionDetail": {
782
+ marginLeft: "0.5em",
783
+ fontStyle: "italic"
784
+ },
785
+ ".cm-completionIcon": {
786
+ fontSize: "90%",
787
+ width: ".8em",
788
+ display: "inline-block",
789
+ textAlign: "center",
790
+ paddingRight: ".6em",
791
+ opacity: "0.6",
792
+ boxSizing: "content-box"
793
+ },
794
+ ".cm-completionIcon-function, .cm-completionIcon-method": { "&:after": { content: "'ƒ'" } },
795
+ ".cm-completionIcon-class": { "&:after": { content: "'○'" } },
796
+ ".cm-completionIcon-interface": { "&:after": { content: "'◌'" } },
797
+ ".cm-completionIcon-variable": { "&:after": { content: "'𝑥'" } },
798
+ ".cm-completionIcon-constant": { "&:after": { content: "'𝐶'" } },
799
+ ".cm-completionIcon-type": { "&:after": { content: "'𝑡'" } },
800
+ ".cm-completionIcon-enum": { "&:after": { content: "'∪'" } },
801
+ ".cm-completionIcon-property": { "&:after": { content: "'□'" } },
802
+ ".cm-completionIcon-keyword": { "&:after": { content: "'🔑︎'" } },
803
+ ".cm-completionIcon-namespace": { "&:after": { content: "'▢'" } },
804
+ ".cm-completionIcon-text": { "&:after": {
805
+ content: "'abc'",
806
+ fontSize: "50%",
807
+ verticalAlign: "middle"
808
+ } }
809
+ }), ke = class {
810
+ constructor(e, t, n, r) {
811
+ this.field = e, this.line = t, this.from = n, this.to = r;
812
+ }
813
+ }, Ae = class e {
814
+ constructor(e, t, n) {
815
+ this.field = e, this.from = t, this.to = n;
816
+ }
817
+ map(t) {
818
+ let n = t.mapPos(this.from, -1, C.TrackDel), r = t.mapPos(this.to, 1, C.TrackDel);
819
+ return n == null || r == null ? null : new e(this.field, n, r);
820
+ }
821
+ }, je = class e {
822
+ constructor(e, t) {
823
+ this.lines = e, this.fieldPositions = t;
824
+ }
825
+ instantiate(e, n) {
826
+ let r = [], i = [n], a = e.doc.lineAt(n), o = /^\s*/.exec(a.text)[0];
827
+ for (let a of this.lines) {
828
+ if (r.length) {
829
+ let r = o, s = /^\t*/.exec(a)[0].length;
830
+ for (let n = 0; n < s; n++) r += e.facet(t);
831
+ i.push(n + r.length - s), a = r + a.slice(s);
832
+ }
833
+ r.push(a), n += a.length + 1;
834
+ }
835
+ return {
836
+ text: r,
837
+ ranges: this.fieldPositions.map((e) => new Ae(e.field, i[e.line] + e.from, i[e.line] + e.to))
838
+ };
839
+ }
840
+ static parse(t) {
841
+ let n = [], r = [], i = [], a;
842
+ for (let e of t.split(/\r\n?|\n/)) {
843
+ for (; a = /[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);) {
844
+ let t = a[1] ? +a[1] : null, o = a[2] || a[3] || "", s = -1;
845
+ t === 0 && (t = 1e9);
846
+ let c = o.replace(/\\[{}]/g, (e) => e[1]);
847
+ for (let e = 0; e < n.length; e++) (t == null ? c && n[e].name == c : n[e].seq == t) && (s = e);
848
+ if (s < 0) {
849
+ let e = 0;
850
+ for (; e < n.length && (t == null || n[e].seq != null && n[e].seq < t);) e++;
851
+ n.splice(e, 0, {
852
+ seq: t,
853
+ name: c
854
+ }), s = e;
855
+ for (let e of i) e.field >= s && e.field++;
856
+ }
857
+ for (let e of i) if (e.line == r.length && e.from > a.index) {
858
+ let t = a[2] ? 3 + (a[1] || "").length : 2;
859
+ e.from -= t, e.to -= t;
860
+ }
861
+ i.push(new ke(s, r.length, a.index, a.index + c.length)), e = e.slice(0, a.index) + o + e.slice(a.index + a[0].length);
862
+ }
863
+ e = e.replace(/\\([{}])/g, (e, t, n) => {
864
+ for (let e of i) e.line == r.length && e.from > n && (e.from--, e.to--);
865
+ return t;
866
+ }), r.push(e);
867
+ }
868
+ return new e(r, i);
869
+ }
870
+ }, Me = /*@__PURE__*/ o.widget({ widget: /*@__PURE__*/ new class extends s {
871
+ toDOM() {
872
+ let e = document.createElement("span");
873
+ return e.className = "cm-snippetFieldPosition", e;
874
+ }
875
+ ignoreEvent() {
876
+ return !1;
877
+ }
878
+ }() }), Ne = /*@__PURE__*/ o.mark({ class: "cm-snippetField" }), Y = class e {
879
+ constructor(e, t) {
880
+ this.ranges = e, this.active = t, this.deco = o.set(e.map((e) => (e.from == e.to ? Me : Ne).range(e.from, e.to)), !0);
881
+ }
882
+ map(t) {
883
+ let n = [];
884
+ for (let e of this.ranges) {
885
+ let r = e.map(t);
886
+ if (!r) return null;
887
+ n.push(r);
888
+ }
889
+ return new e(n, this.active);
890
+ }
891
+ selectionInsideField(e) {
892
+ return e.ranges.every((e) => this.ranges.some((t) => t.field == this.active && t.from <= e.from && t.to >= e.to));
893
+ }
894
+ }, X = /*@__PURE__*/ x.define({ map(e, t) {
895
+ return e && e.map(t);
896
+ } }), Pe = /*@__PURE__*/ x.define(), Z = /*@__PURE__*/ S.define({
897
+ create() {
898
+ return null;
899
+ },
900
+ update(e, t) {
901
+ for (let n of t.effects) {
902
+ if (n.is(X)) return n.value;
903
+ if (n.is(Pe) && e) return new Y(e.ranges, n.value);
904
+ }
905
+ return e && t.docChanged && (e = e.map(t.changes)), e && t.selection && !e.selectionInsideField(t.selection) && (e = null), e;
906
+ },
907
+ provide: (t) => e.decorations.from(t, (e) => e ? e.deco : o.none)
908
+ });
909
+ function Q(e, t) {
910
+ return c.create(e.filter((e) => e.field == t).map((e) => c.range(e.from, e.to)));
911
+ }
912
+ function Fe(e) {
913
+ let t = je.parse(e);
914
+ return (e, n, r, i) => {
915
+ let { text: a, ranges: o } = t.instantiate(e.state, r), { main: s } = e.state.selection, c = {
916
+ changes: {
917
+ from: r,
918
+ to: i == s.from ? s.to : i,
919
+ insert: p.of(a)
920
+ },
921
+ scrollIntoView: !0,
922
+ annotations: n ? [A.of(n), y.userEvent.of("input.complete")] : void 0
923
+ };
924
+ if (o.length && (c.selection = Q(o, 0)), o.some((e) => e.field > 0)) {
925
+ let t = new Y(o, 0), n = c.effects = [X.of(t)];
926
+ e.state.field(Z, !1) === void 0 && n.push(x.appendConfig.of([
927
+ Z,
928
+ Re,
929
+ Be,
930
+ J
931
+ ]));
932
+ }
933
+ e.dispatch(e.state.update(c));
934
+ };
935
+ }
936
+ function Ie(e) {
937
+ return ({ state: t, dispatch: n }) => {
938
+ let r = t.field(Z, !1);
939
+ if (!r || e < 0 && r.active == 0) return !1;
940
+ let i = r.active + e, a = e > 0 && !r.ranges.some((t) => t.field == i + e);
941
+ return n(t.update({
942
+ selection: Q(r.ranges, i),
943
+ effects: X.of(a ? null : new Y(r.ranges, i)),
944
+ scrollIntoView: !0
945
+ })), !0;
946
+ };
947
+ }
948
+ var Le = [{
949
+ key: "Tab",
950
+ run: /* @__PURE__ */ Ie(1),
951
+ shift: /* @__PURE__ */ Ie(-1)
952
+ }, {
953
+ key: "Escape",
954
+ run: ({ state: e, dispatch: t }) => e.field(Z, !1) ? (t(e.update({ effects: X.of(null) })), !0) : !1
955
+ }], $ = /*@__PURE__*/ h.define({ combine(e) {
956
+ return e.length ? e[0] : Le;
957
+ } }), Re = /*@__PURE__*/ b.highest(/*@__PURE__*/ u.compute([$], (e) => e.facet($)));
958
+ function ze(e, t) {
959
+ return {
960
+ ...t,
961
+ apply: Fe(e)
962
+ };
963
+ }
964
+ var Be = /*@__PURE__*/ e.domEventHandlers({ mousedown(e, t) {
965
+ let n = t.state.field(Z, !1), r;
966
+ if (!n || (r = t.posAtCoords({
967
+ x: e.clientX,
968
+ y: e.clientY
969
+ })) == null) return !1;
970
+ let i = n.ranges.find((e) => e.from <= r && e.to >= r);
971
+ return !i || i.field == n.active ? !1 : (t.dispatch({
972
+ selection: Q(n.ranges, i.field),
973
+ effects: X.of(n.ranges.some((e) => e.field > i.field) ? new Y(n.ranges, i.field) : null),
974
+ scrollIntoView: !0
975
+ }), !0);
976
+ } }), Ve = /*@__PURE__*/ new class extends f {}();
977
+ Ve.startSide = 1, Ve.endSide = -1, typeof navigator == "object" && navigator.userAgent;
978
+ function He(e = {}) {
979
+ return [
980
+ Oe,
981
+ W,
982
+ P.of(e),
983
+ Ee,
984
+ We,
985
+ J
986
+ ];
987
+ }
988
+ var Ue = [
989
+ {
990
+ key: "Ctrl-Space",
991
+ run: q
992
+ },
993
+ {
994
+ mac: "Alt-`",
995
+ run: q
996
+ },
997
+ {
998
+ mac: "Alt-i",
999
+ run: q
1000
+ },
1001
+ {
1002
+ key: "Escape",
1003
+ run: Se
1004
+ },
1005
+ {
1006
+ key: "ArrowDown",
1007
+ run: /*@__PURE__*/ K(!0)
1008
+ },
1009
+ {
1010
+ key: "ArrowUp",
1011
+ run: /*@__PURE__*/ K(!1)
1012
+ },
1013
+ {
1014
+ key: "PageDown",
1015
+ run: /*@__PURE__*/ K(!0, "page")
1016
+ },
1017
+ {
1018
+ key: "PageUp",
1019
+ run: /*@__PURE__*/ K(!1, "page")
1020
+ },
1021
+ {
1022
+ key: "Enter",
1023
+ run: xe
1024
+ }
1025
+ ], We = /*@__PURE__*/ b.highest(/*@__PURE__*/ u.computeN([P], (e) => e.facet(P).defaultKeymap ? [Ue] : []));
1026
+ function Ge(e) {
1027
+ let t = e.field(W, !1);
1028
+ return t && t.active.some((e) => e.isPending) ? "pending" : t && t.active.some((e) => e.state != 0) ? "active" : null;
1029
+ }
1030
+ var Ke = /*@__PURE__*/ new WeakMap();
1031
+ function qe(e) {
1032
+ let t = e.field(W, !1)?.open;
1033
+ if (!t || t.disabled) return [];
1034
+ let n = Ke.get(t.options);
1035
+ return n || Ke.set(t.options, n = t.options.map((e) => e.completion)), n;
1036
+ }
1037
+ export { qe as a, q as c, Ge as i, He as n, ne as o, E as r, ze as s, T as t };