@ncino/web-components 8.0.0-preview.8 → 8.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 (466) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +1 -1
  3. package/dist/_slds/icons/symbols-rtl.svg +1 -1
  4. package/dist/_slds/icons/symbols.svg +1 -1
  5. package/dist/_virtual/axe.js +1 -1
  6. package/dist/_virtual/index_html.js +1 -1
  7. package/dist/_virtual/index_react.js +1 -1
  8. package/dist/components/accordion/gator/base/accordion.gator.js +47 -28
  9. package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
  10. package/dist/components/alert/gator/base/alert.gator.js +3 -3
  11. package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
  12. package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
  13. package/dist/components/avatar/gator/avatar.gator.js +5 -5
  14. package/dist/components/badge/gator/badge.gator.js +2 -2
  15. package/dist/components/banner/gator/banner.gator.js +6 -6
  16. package/dist/components/boolean/boolean.gator.js +5 -5
  17. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +1 -1
  18. package/dist/components/button/gator/button.gator.js +1 -1
  19. package/dist/components/button-card/gator/button-card.gator.js +1 -1
  20. package/dist/components/button-group/gator/button-group.gator.js +1 -1
  21. package/dist/components/card/card.js +1 -1
  22. package/dist/components/card/gator/base/card.gator.js +1 -1
  23. package/dist/components/checkbox/checkbox.gator.js +8 -5
  24. package/dist/components/display-card/gator/display-card.gator.js +8 -10
  25. package/dist/components/guided-nav/gator/guided-nav/guided-nav.gator.js +5 -3
  26. package/dist/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.js +23 -14
  27. package/dist/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.js +9 -7
  28. package/dist/components/headline-card/gator/headline-card.gator.js +3 -3
  29. package/dist/components/icon/gator/icon.gator.js +3 -3
  30. package/dist/components/icon/gator/index.js +1 -1
  31. package/dist/components/icon/gator/templates/brain.js +8 -0
  32. package/dist/components/icon/gator/templates/document-ai.js +11 -0
  33. package/dist/components/icon/gator/templates/flags/flag-kh-cambodia.js +280 -80
  34. package/dist/components/icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js +7 -7
  35. package/dist/components/icon/gator/templates/flags/flag-ru-russian-federation.js +26 -19
  36. package/dist/components/icon/gator/templates/flags/flag-sa-sudi-arabia.js +28 -11
  37. package/dist/components/icon/gator/templates/flags/flag-sv-el-slvador.js +36 -24
  38. package/dist/components/icon/gator/templates/index.js +1 -1
  39. package/dist/components/icon/gator/templates/number-0.js +8 -0
  40. package/dist/components/icon/gator/templates/number-10.js +11 -0
  41. package/dist/components/icon/gator/templates/number-4.js +8 -0
  42. package/dist/components/icon/gator/templates/number-5.js +8 -0
  43. package/dist/components/icon/gator/templates/number-6.js +8 -0
  44. package/dist/components/icon/gator/templates/number-7.js +8 -0
  45. package/dist/components/icon/gator/templates/number-8.js +8 -0
  46. package/dist/components/icon/gator/templates/number-9.js +8 -0
  47. package/dist/components/icon/gator/templates/robot.js +17 -0
  48. package/dist/components/icon-button/gator/icon-button.gator.js +3 -3
  49. package/dist/components/icon-button/icon-button.js +1 -1
  50. package/dist/components/illustration/gator/illustration.gator.js +4 -4
  51. package/dist/components/illustration/gator/templates/add-note.js +1 -1
  52. package/dist/components/illustration/gator/templates/address.js +3 -3
  53. package/dist/components/illustration/gator/templates/appointment-confirmed.js +3 -3
  54. package/dist/components/illustration/gator/templates/assets.js +1 -1
  55. package/dist/components/illustration/gator/templates/auto-money.js +3 -3
  56. package/dist/components/illustration/gator/templates/balloons.js +3 -3
  57. package/dist/components/illustration/gator/templates/bank-account.js +1 -1
  58. package/dist/components/illustration/gator/templates/brief-case.js +1 -1
  59. package/dist/components/illustration/gator/templates/calendar-home.js +3 -3
  60. package/dist/components/illustration/gator/templates/change-data.js +3 -3
  61. package/dist/components/illustration/gator/templates/check-with-pencil.js +3 -3
  62. package/dist/components/illustration/gator/templates/co-borrower.js +1 -1
  63. package/dist/components/illustration/gator/templates/co-borrowers-incomplete.js +1 -1
  64. package/dist/components/illustration/gator/templates/co-borrowers.js +1 -1
  65. package/dist/components/illustration/gator/templates/connectivity.js +1 -1
  66. package/dist/components/illustration/gator/templates/contact-search.js +1 -1
  67. package/dist/components/illustration/gator/templates/conversation-multiple.js +3 -3
  68. package/dist/components/illustration/gator/templates/credit-card.js +3 -3
  69. package/dist/components/illustration/gator/templates/crop-background.js +1 -1
  70. package/dist/components/illustration/gator/templates/crop-page.js +3 -3
  71. package/dist/components/illustration/gator/templates/declarations-legal.js +3 -3
  72. package/dist/components/illustration/gator/templates/deliver.js +1 -1
  73. package/dist/components/illustration/gator/templates/demographic-info.js +3 -3
  74. package/dist/components/illustration/gator/templates/document-add.js +1 -1
  75. package/dist/components/illustration/gator/templates/document-signature.js +1 -1
  76. package/dist/components/illustration/gator/templates/download-app.js +1 -1
  77. package/dist/components/illustration/gator/templates/empty-box.js +1 -1
  78. package/dist/components/illustration/gator/templates/home-search.js +3 -3
  79. package/dist/components/illustration/gator/templates/house-5.js +3 -3
  80. package/dist/components/illustration/gator/templates/house-6.js +3 -3
  81. package/dist/components/illustration/gator/templates/house-fireworks.js +1 -1
  82. package/dist/components/illustration/gator/templates/house-under-construction.js +3 -3
  83. package/dist/components/illustration/gator/templates/house-with-shield.js +3 -3
  84. package/dist/components/illustration/gator/templates/inquiry.js +1 -1
  85. package/dist/components/illustration/gator/templates/locked.js +1 -1
  86. package/dist/components/illustration/gator/templates/make-an-offer.js +1 -1
  87. package/dist/components/illustration/gator/templates/network-error.js +1 -1
  88. package/dist/components/illustration/gator/templates/page-1.js +1 -1
  89. package/dist/components/illustration/gator/templates/page-2.js +1 -1
  90. package/dist/components/illustration/gator/templates/page-3.js +1 -1
  91. package/dist/components/illustration/gator/templates/paper-3.js +3 -3
  92. package/dist/components/illustration/gator/templates/paper-7.js +3 -3
  93. package/dist/components/illustration/gator/templates/person-2.js +3 -3
  94. package/dist/components/illustration/gator/templates/personal-info.js +3 -3
  95. package/dist/components/illustration/gator/templates/price-search.js +3 -3
  96. package/dist/components/illustration/gator/templates/quick-links.js +1 -1
  97. package/dist/components/illustration/gator/templates/register.js +3 -3
  98. package/dist/components/illustration/gator/templates/schedule-home-tour.js +1 -1
  99. package/dist/components/illustration/gator/templates/social-security.js +1 -1
  100. package/dist/components/illustration/gator/templates/start-conversation.js +3 -3
  101. package/dist/components/illustration/gator/templates/status-no-x.js +1 -1
  102. package/dist/components/illustration/gator/templates/status.js +3 -3
  103. package/dist/components/illustration/gator/templates/success.js +3 -3
  104. package/dist/components/illustration/gator/templates/talkluments.js +1 -1
  105. package/dist/components/illustration/gator/templates/thumbs-down-man.js +1 -1
  106. package/dist/components/illustration/gator/templates/transfer.js +1 -1
  107. package/dist/components/illustration/gator/templates/unsecured-line-of-credit.js +3 -3
  108. package/dist/components/illustration/gator/templates/upload-cloud.js +1 -1
  109. package/dist/components/image-card/gator/image-card.gator.js +41 -0
  110. package/dist/components/image-card/image-card.js +1 -0
  111. package/dist/components/image-card/index.js +1 -0
  112. package/dist/components/input/base/input-base.gator.js +12 -8
  113. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +12 -9
  114. package/dist/components/input/gator/help-text/help-text.gator.js +4 -4
  115. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  116. package/dist/components/input/gator/input-date/input-date.gator.js +3 -3
  117. package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +12 -9
  118. package/dist/components/input/gator/input-file/input-file.gator.js +7 -9
  119. package/dist/components/input/gator/input-label/input-label.gator.js +4 -4
  120. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  121. package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
  122. package/dist/components/input/gator/input-search/input-search.gator.js +6 -6
  123. package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
  124. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +4 -4
  125. package/dist/components/input/gator/input-time/input-time.gator.js +4 -4
  126. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  127. package/dist/components/input-rich-text/input-rich-text.slds.js +3 -3
  128. package/dist/components/list/gator/list/list.gator.js +5 -5
  129. package/dist/components/list/gator/list-item/list-item.gator.js +19 -19
  130. package/dist/components/loading-spinner/gator/loading-spinner.gator.js +2 -2
  131. package/dist/components/menu/base/gator/menu.gator.js +3 -3
  132. package/dist/components/modal/gator/modal.gator.js +6 -6
  133. package/dist/components/page-header/gator/page-header.gator.js +4 -4
  134. package/dist/components/panel/gator/panel.gator.js +14 -14
  135. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  136. package/dist/components/popover/gator/popover.gator.js +5 -5
  137. package/dist/components/progress-ring/gator/progress-ring.gator.js +4 -4
  138. package/dist/components/progress-stepper/base/progress-stepper.gator.js +19 -0
  139. package/dist/components/progress-stepper/stepper-item/stepper-item.gator.js +42 -0
  140. package/dist/components/radio/radio.gator.js +5 -5
  141. package/dist/components/radio-group/radio-group.gator.js +16 -13
  142. package/dist/components/selection-box/selection-box.gator.js +6 -9
  143. package/dist/components/skeleton-loader/gator/skeleton-loader.gator.js +1 -1
  144. package/dist/components/skip-link/gator/base/skip-link.gator.js +11 -9
  145. package/dist/components/switch/gator/switch.gator.js +20 -7
  146. package/dist/components/switch/switch.js +1 -1
  147. package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +1 -1
  148. package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
  149. package/dist/components/table/gator/table.gator.js +6 -6
  150. package/dist/components/tabs/gator/tabset/tabset.gator.js +6 -6
  151. package/dist/components/text-detail/gator/text-detail.gator.js +27 -24
  152. package/dist/components/text-link/gator/text-link.gator.js +16 -6
  153. package/dist/components/text-link/text-link.js +1 -1
  154. package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
  155. package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
  156. package/dist/components/tooltip/gator/tooltip.gator.js +2 -2
  157. package/dist/components/tooltip/tooltip.js +1 -1
  158. package/dist/design-tokens.source.json +1 -0
  159. package/dist/generated/locale-codes.d.js +1 -0
  160. package/dist/generated/locale-codes.js +1 -0
  161. package/dist/generated/locales/es-419.d.js +1 -0
  162. package/dist/generated/locales/es-419.js +10 -0
  163. package/dist/generated/locales/fr-CA.d.js +1 -0
  164. package/dist/generated/locales/fr-CA.js +10 -0
  165. package/dist/generated/locales/zh-Hans.d.js +1 -0
  166. package/dist/generated/locales/zh-Hans.js +11 -0
  167. package/dist/index.data.js +1 -1
  168. package/dist/index.gator.js +1 -1
  169. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@46.1.0 → @ckeditor_ckeditor5-alignment@46.1.1}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  170. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@46.1.0 → @ckeditor_ckeditor5-autoformat@46.1.1}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  171. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@46.1.0 → @ckeditor_ckeditor5-autosave@46.1.1}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  172. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@46.1.0 → @ckeditor_ckeditor5-basic-styles@46.1.1}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  173. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@46.1.0 → @ckeditor_ckeditor5-block-quote@46.1.1}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  174. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@46.1.0 → @ckeditor_ckeditor5-clipboard@46.1.1}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
  175. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@46.1.0 → @ckeditor_ckeditor5-cloud-services@46.1.1}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  176. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@46.1.0 → @ckeditor_ckeditor5-code-block@46.1.1}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  177. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@46.1.0 → @ckeditor_ckeditor5-core@46.1.1}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
  178. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@46.1.0 → @ckeditor_ckeditor5-editor-classic@46.1.1}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  179. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@46.1.0 → @ckeditor_ckeditor5-engine@46.1.1}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +1 -1
  180. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@46.1.0 → @ckeditor_ckeditor5-enter@46.1.1}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  181. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@46.1.0 → @ckeditor_ckeditor5-essentials@46.1.1}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  182. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@46.1.0 → @ckeditor_ckeditor5-find-and-replace@46.1.1}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
  183. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@46.1.0 → @ckeditor_ckeditor5-font@46.1.1}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  184. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@46.1.0 → @ckeditor_ckeditor5-heading@46.1.1}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  185. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@46.1.0 → @ckeditor_ckeditor5-highlight@46.1.1}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  186. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@46.1.0 → @ckeditor_ckeditor5-horizontal-line@46.1.1}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  187. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@46.1.0 → @ckeditor_ckeditor5-html-embed@46.1.1}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
  188. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@46.1.0 → @ckeditor_ckeditor5-html-support@46.1.1}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +1 -1
  189. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@46.1.0 → @ckeditor_ckeditor5-image@46.1.1}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
  190. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@46.1.0 → @ckeditor_ckeditor5-indent@46.1.1}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
  191. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@46.1.0 → @ckeditor_ckeditor5-language@46.1.1}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  192. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@46.1.0 → @ckeditor_ckeditor5-link@46.1.1}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -1
  193. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@46.1.0 → @ckeditor_ckeditor5-list@46.1.1}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
  194. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@46.1.0 → @ckeditor_ckeditor5-markdown-gfm@46.1.1}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  195. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@46.1.0 → @ckeditor_ckeditor5-media-embed@46.1.1}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  196. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@46.1.0 → @ckeditor_ckeditor5-mention@46.1.1}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  197. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@46.1.0 → @ckeditor_ckeditor5-page-break@46.1.1}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
  198. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@46.1.0 → @ckeditor_ckeditor5-paragraph@46.1.1}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  199. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paste-from-office@46.1.0 → @ckeditor_ckeditor5-paste-from-office@46.1.1}/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -1
  200. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@46.1.0 → @ckeditor_ckeditor5-remove-format@46.1.1}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  201. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@46.1.0 → @ckeditor_ckeditor5-select-all@46.1.1}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  202. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@46.1.0 → @ckeditor_ckeditor5-show-blocks@46.1.1}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  203. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@46.1.0 → @ckeditor_ckeditor5-source-editing@46.1.1}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
  204. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@46.1.0 → @ckeditor_ckeditor5-special-characters@46.1.1}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
  205. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@46.1.0 → @ckeditor_ckeditor5-style@46.1.1}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  206. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-table@46.1.0 → @ckeditor_ckeditor5-table@46.1.1}/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -1
  207. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@46.1.0 → @ckeditor_ckeditor5-typing@46.1.1}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
  208. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@46.1.0 → @ckeditor_ckeditor5-ui@46.1.1}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
  209. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@46.1.0 → @ckeditor_ckeditor5-undo@46.1.1}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  210. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@46.1.0 → @ckeditor_ckeditor5-upload@46.1.1}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  211. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-utils@46.1.0 → @ckeditor_ckeditor5-utils@46.1.1}/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +1 -1
  212. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@46.1.0 → @ckeditor_ckeditor5-widget@46.1.1}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
  213. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -0
  214. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/html/external.js +1 -0
  215. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/html/index_html.js +1 -0
  216. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/react/external.js +1 -0
  217. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/dist/react/index_react.js +1 -0
  218. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.7/node_modules/@figma/code-connect/package.json.js +1 -0
  219. package/dist/node_modules/.pnpm/axe-core@4.11.0/node_modules/axe-core/axe.js +30 -0
  220. package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +1 -1
  221. package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.js +1 -1
  222. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -1
  223. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/format.js +1 -0
  224. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -0
  225. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
  226. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
  227. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +1 -0
  228. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +1 -1
  229. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/isPossible.js +1 -0
  230. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/metadata.js +1 -1
  231. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/parse.js +1 -0
  232. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.24/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +2 -0
  233. package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  234. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.production.js +9 -0
  235. package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/test/index.js +117 -117
  236. package/dist/packages/web-components/src/components/accordion/gator/base/accordion.gator.scss.js +1 -1
  237. package/dist/packages/web-components/src/components/accordion/gator/group/accordion-group.gator.scss.js +1 -1
  238. package/dist/packages/web-components/src/components/alert/gator/base/alert.gator.scss.js +1 -1
  239. package/dist/packages/web-components/src/components/alert/gator/subtitle/alert-subtitle.gator.scss.js +1 -1
  240. package/dist/packages/web-components/src/components/alert/gator/title/alert-title.gator.scss.js +1 -1
  241. package/dist/packages/web-components/src/components/avatar/gator/avatar.gator.scss.js +1 -1
  242. package/dist/packages/web-components/src/components/badge/gator/badge.gator.scss.js +1 -1
  243. package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -1
  244. package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
  245. package/dist/packages/web-components/src/components/card/gator/base/card.gator.scss.js +1 -1
  246. package/dist/packages/web-components/src/components/card/gator/header/card-header.gator.scss.js +1 -1
  247. package/dist/packages/web-components/src/components/checkbox/checkbox.gator.scss.js +1 -1
  248. package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
  249. package/dist/packages/web-components/src/components/date-picker/base/gator/datepicker.gator.scss.js +1 -1
  250. package/dist/packages/web-components/src/components/date-picker/year-month-selector/year-month-selector.gator.scss.js +1 -1
  251. package/dist/packages/web-components/src/components/fab/gator/fab.gator.scss.js +1 -1
  252. package/dist/packages/web-components/src/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.scss.js +1 -1
  253. package/dist/packages/web-components/src/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.scss.js +1 -1
  254. package/dist/packages/web-components/src/components/icon/gator/icon.gator.scss.js +1 -1
  255. package/dist/packages/web-components/src/components/icon-button/gator/icon-button.gator.scss.js +1 -1
  256. package/dist/packages/web-components/src/components/illustration/gator/illustration.gator.scss.js +1 -1
  257. package/dist/packages/web-components/src/components/image-card/gator/image-card.gator.scss.js +1 -0
  258. package/dist/packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js +1 -1
  259. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.scss.js +1 -1
  260. package/dist/packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js +1 -1
  261. package/dist/packages/web-components/src/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.scss.js +1 -1
  262. package/dist/packages/web-components/src/components/input/gator/input-file/input-file.gator.scss.js +1 -1
  263. package/dist/packages/web-components/src/components/input/gator/input-label/input-label.gator.scss.js +1 -1
  264. package/dist/packages/web-components/src/components/input/gator/input-phone/input-phone.gator.scss.js +1 -1
  265. package/dist/packages/web-components/src/components/input/gator/input-search/input-search.gator.scss.js +1 -1
  266. package/dist/packages/web-components/src/components/input/gator/input-textarea/input-textarea.gator.scss.js +1 -1
  267. package/dist/packages/web-components/src/components/input/input.gator.scss.js +1 -1
  268. package/dist/packages/web-components/src/components/list/gator/list-item/list-item.gator.scss.js +1 -1
  269. package/dist/packages/web-components/src/components/loading-spinner/gator/loading-spinner.gator.scss.js +1 -1
  270. package/dist/packages/web-components/src/components/menu/base/gator/menu.gator.scss.js +1 -1
  271. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
  272. package/dist/packages/web-components/src/components/page-header/gator/page-header.gator.scss.js +1 -1
  273. package/dist/packages/web-components/src/components/panel/gator/panel.gator.scss.js +1 -1
  274. package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -1
  275. package/dist/packages/web-components/src/components/progress-bar/gator/progress-bar.gator.scss.js +1 -1
  276. package/dist/packages/web-components/src/components/progress-ring/gator/progress-ring.gator.scss.js +1 -1
  277. package/dist/packages/web-components/src/components/progress-stepper/base/progress-stepper.gator.scss.js +1 -0
  278. package/dist/packages/web-components/src/components/progress-stepper/stepper-item/stepper-item.gator.scss.js +1 -0
  279. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.scss.js +1 -1
  280. package/dist/packages/web-components/src/components/selector/gator/selector.gator.scss.js +1 -1
  281. package/dist/packages/web-components/src/components/skeleton-loader/gator/skeleton-loader.gator.scss.js +1 -1
  282. package/dist/packages/web-components/src/components/skip-link/gator/base/skip-link.gator.scss.js +1 -1
  283. package/dist/packages/web-components/src/components/skip-link/gator/list-item/skip-link-list-item.gator.scss.js +1 -1
  284. package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
  285. package/dist/packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js +1 -1
  286. package/dist/packages/web-components/src/components/table/gator/table-controls/table-controls.gator.scss.js +1 -1
  287. package/dist/packages/web-components/src/components/table/gator/table-pagination/table-pagination.gator.scss.js +1 -1
  288. package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
  289. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.scss.js +1 -1
  290. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
  291. package/dist/packages/web-components/src/components/text-link/gator/text-link.gator.scss.js +1 -1
  292. package/dist/packages/web-components/src/components/toast/gator/base/toast.gator.scss.js +1 -1
  293. package/dist/packages/web-components/src/components/toast/gator/subtitle/toast-subtitle.gator.scss.js +1 -1
  294. package/dist/packages/web-components/src/components/toast/gator/title/toast-title.gator.scss.js +1 -1
  295. package/dist/packages/web-components/src/components/tooltip/gator/tooltip.gator.scss.js +1 -1
  296. package/dist/packages/web-components/src/tokens/primitive.tokens.scss.js +1 -1
  297. package/dist/packages/web-components/src/tokens/semantic.tokens.scss.js +1 -1
  298. package/dist/packages/web-components/src/utils/data/phone-country-codes.json.js +1 -1
  299. package/dist/types/components/accordion/gator/base/accordion.gator.d.ts +1 -0
  300. package/dist/types/components/accordion/gator/group/accordion-group.gator.d.ts +8 -3
  301. package/dist/types/components/card/card.d.ts +1 -0
  302. package/dist/types/components/chip/chip.d.ts +1 -1
  303. package/dist/types/components/guided-nav/gator/guided-nav-step/guided-nav-step.gator.d.ts +9 -4
  304. package/dist/types/components/guided-nav/gator/guided-nav-substep/guided-nav-substep.gator.d.ts +5 -3
  305. package/dist/types/components/icon/gator/templates/brain.d.ts +1 -0
  306. package/dist/types/components/icon/gator/templates/document-ai.d.ts +1 -0
  307. package/dist/types/components/icon/gator/templates/index.d.ts +11 -0
  308. package/dist/types/components/icon/gator/templates/number-0.d.ts +1 -0
  309. package/dist/types/components/icon/gator/templates/number-10.d.ts +1 -0
  310. package/dist/types/components/icon/gator/templates/number-4.d.ts +1 -0
  311. package/dist/types/components/icon/gator/templates/number-5.d.ts +1 -0
  312. package/dist/types/components/icon/gator/templates/number-6.d.ts +1 -0
  313. package/dist/types/components/icon/gator/templates/number-7.d.ts +1 -0
  314. package/dist/types/components/icon/gator/templates/number-8.d.ts +1 -0
  315. package/dist/types/components/icon/gator/templates/number-9.d.ts +1 -0
  316. package/dist/types/components/icon/gator/templates/robot.d.ts +1 -0
  317. package/dist/types/components/icon-button/gator/icon-button.gator.d.ts +1 -0
  318. package/dist/types/components/icon-button/icon-button.d.ts +1 -0
  319. package/dist/types/components/image-card/gator/image-card.gator.d.ts +30 -0
  320. package/dist/types/components/image-card/gator/image-card.gator.test.d.ts +0 -0
  321. package/dist/types/components/image-card/image-card.d.ts +25 -0
  322. package/dist/types/components/image-card/index.d.ts +1 -0
  323. package/dist/types/components/input/base/input-base.gator.d.ts +8 -7
  324. package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +8 -1
  325. package/dist/types/components/input/gator/help-text/help-text.gator.d.ts +13 -0
  326. package/dist/types/components/input/gator/input-date/input-date.gator.d.ts +2 -2
  327. package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.d.ts +1 -0
  328. package/dist/types/components/input/gator/input-file/input-file.gator.d.ts +1 -1
  329. package/dist/types/components/input/gator/input-label/input-label.gator.d.ts +1 -0
  330. package/dist/types/components/input/gator/input-phone/input-phone.gator.d.ts +1 -1
  331. package/dist/types/components/input/gator/input-time/input-time.gator.d.ts +1 -1
  332. package/dist/types/components/list/gator/list/list.gator.d.ts +2 -1
  333. package/dist/types/components/list/gator/list-item/list-item.gator.d.ts +5 -1
  334. package/dist/types/components/panel/gator/panel.gator.d.ts +1 -1
  335. package/dist/types/components/progress-ring/gator/progress-ring.gator.d.ts +8 -0
  336. package/dist/types/components/progress-stepper/base/progress-stepper.gator.d.ts +19 -0
  337. package/dist/types/components/progress-stepper/base/progress-stepper.gator.test.d.ts +0 -0
  338. package/dist/types/components/progress-stepper/stepper-item/stepper-item.gator.d.ts +46 -0
  339. package/dist/types/components/progress-stepper/stepper-item/stepper-item.gator.test.d.ts +0 -0
  340. package/dist/types/components/selection-box/selection-box.gator.d.ts +6 -1
  341. package/dist/types/components/skeleton-loader/gator/skeleton-loader.gator.d.ts +5 -1
  342. package/dist/types/components/skip-link/gator/base/skip-link.gator.d.ts +1 -1
  343. package/dist/types/components/switch/gator/switch.gator.d.ts +3 -0
  344. package/dist/types/components/switch/switch.d.ts +5 -0
  345. package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts +1 -1
  346. package/dist/types/components/table/gator/table.gator.d.ts +1 -1
  347. package/dist/types/components/tabs/gator/tabset/tabset.gator.d.ts +5 -2
  348. package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +1 -1
  349. package/dist/types/components/text-link/gator/text-link.gator.d.ts +10 -11
  350. package/dist/types/components/text-link/text-link.d.ts +8 -0
  351. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  352. package/dist/types/generated/locale-codes.d.ts +3 -0
  353. package/dist/types/generated/locales/es-419.d.ts +60 -0
  354. package/dist/types/generated/locales/fr-CA.d.ts +60 -0
  355. package/dist/types/generated/locales/zh-Hans.d.ts +60 -0
  356. package/dist/types/index.gator.d.ts +1 -0
  357. package/dist/types/utils/components/slot-placeholder/slot-placeholder.d.ts +2 -0
  358. package/dist/types/utils/data/data-models.d.ts +1 -0
  359. package/dist/types/utils/data/phone-country-codes.json.d.ts +18 -0
  360. package/dist/types/utils/mixins/attribute-deletion.d.ts +0 -9
  361. package/dist/types/utils/mixins/interactive-component.d.ts +4 -0
  362. package/dist/types/utils/phone-utils.d.ts +10 -0
  363. package/dist/types/utils/storybook-args.d.ts +4 -0
  364. package/dist/utils/brand-color-utils.js +1 -1
  365. package/dist/utils/components/slot-placeholder/slot-placeholder.js +15 -6
  366. package/dist/utils/mixins/attribute-deletion.js +1 -1
  367. package/dist/utils/mixins/interactive-component.js +1 -0
  368. package/dist/utils/phone-utils.js +1 -1
  369. package/dist/utils/storybook-args.js +1 -1
  370. package/dist/utils/vitest-a11y-utils.js +1 -1
  371. package/package.json +135 -135
  372. package/web-types.json +405 -170
  373. package/dist/assets/OpenSans-VariableFont.woff2 +0 -0
  374. package/dist/assets/nCino_Avenir.woff2 +0 -0
  375. package/dist/assets/nCino_AvenirBd.woff2 +0 -0
  376. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/connect/helpers.js +0 -1
  377. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/html/external.js +0 -1
  378. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/html/index_html.js +0 -1
  379. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/react/external.js +0 -1
  380. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/dist/react/index_react.js +0 -1
  381. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.5/node_modules/@figma/code-connect/package.json.js +0 -1
  382. package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +0 -30
  383. package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.js +0 -1
  384. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/format.js +0 -2
  385. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -1
  386. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -1
  387. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -1
  388. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -1
  389. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/isPossible.js +0 -1
  390. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/parse.js +0 -1
  391. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.15/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -2
  392. package/dist/node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react.production.js +0 -9
  393. package/dist/packages/web-components/public/styles/gator/gator-global-styles.css.js +0 -1
  394. package/dist/packages/web-components/src/components/alert/gator/alert.tokens.scss.js +0 -1
  395. package/dist/packages/web-components/src/components/avatar/avatar.tokens.scss.js +0 -1
  396. package/dist/packages/web-components/src/components/badge/gator/badge.gator.tokens.scss.js +0 -1
  397. package/dist/packages/web-components/src/components/banner/banner.tokens.scss.js +0 -1
  398. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.tokens.scss.js +0 -1
  399. package/dist/packages/web-components/src/components/input/input.gator.tokens.scss.js +0 -1
  400. package/dist/packages/web-components/src/components/menu/menu.tokens.scss.js +0 -1
  401. package/dist/packages/web-components/src/components/panel/gator/panel.gator.tokens.scss.js +0 -1
  402. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.tokens.scss.js +0 -1
  403. package/dist/packages/web-components/src/components/switch/switch.tokens.scss.js +0 -1
  404. package/dist/packages/web-components/src/components/table/table.tokens.scss.js +0 -1
  405. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js +0 -1
  406. package/dist/packages/web-components/src/components/tooltip/tooltip.tokens.scss.js +0 -1
  407. package/dist/packages/web-components/src/tokens/primitive-new.tokens.scss.js +0 -1
  408. package/dist/packages/web-components/src/tokens/semantic-new.tokens.scss.js +0 -1
  409. package/dist/styles/gator/_gator-grid.css +0 -81
  410. package/dist/styles/gator/_gator-sizing.css +0 -179
  411. package/dist/styles/gator/_gator-typography.css +0 -186
  412. package/dist/styles/gator/fonts/OpenSans-VariableFont.woff2 +0 -0
  413. package/dist/styles/gator/fonts/nCino+Avenir.woff2 +0 -0
  414. package/dist/styles/gator/fonts/nCino+AvenirBd.woff2 +0 -0
  415. package/dist/styles/gator/fonts.css +0 -20
  416. package/dist/styles/gator/gator-global-styles.css +0 -12
  417. package/dist/styles/gator/tokens/_gator-global-tokens.css +0 -4
  418. /package/dist/assets/node_modules/.pnpm/{ckeditor5@46.1.0 → ckeditor5@46.1.1}/node_modules/ckeditor5/dist/ckeditor5.css +0 -0
  419. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@46.1.0 → @ckeditor_ckeditor5-icons@46.1.1}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
  420. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@46.1.0 → @ckeditor_ckeditor5-watchdog@46.1.1}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
  421. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
  422. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
  423. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/fetch.js +0 -0
  424. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
  425. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
  426. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
  427. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -0
  428. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
  429. /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.5 → @figma_code-connect@1.3.7}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
  430. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.3.1_typescript@5.9.2__playwright@1.55.0__87f0b62113e4cf466e19137faba4c80e → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.9.1_typescript@5.9.3__playwright@1.56.1__f267599ff27ed4cacb9e62a386256df6}/node_modules/@vitest/browser/context.js +0 -0
  431. /package/dist/node_modules/.pnpm/{color@5.0.0 → color@5.0.2}/node_modules/color/index.js +0 -0
  432. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
  433. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/constants.js +0 -0
  434. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
  435. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
  436. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
  437. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
  438. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
  439. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
  440. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
  441. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
  442. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
  443. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
  444. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -0
  445. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
  446. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
  447. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
  448. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
  449. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
  450. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
  451. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
  452. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
  453. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
  454. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
  455. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
  456. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
  457. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
  458. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.15 → libphonenumber-js@1.12.24}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
  459. /package/dist/node_modules/.pnpm/{react@19.1.1 → react@19.2.0}/node_modules/react/index.js +0 -0
  460. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/client-logger/index.js +0 -0
  461. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/core-events/index.js +0 -0
  462. /package/dist/node_modules/.pnpm/{storybook@9.1.5_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.3.1_typescript@5.9_72cffe61c3938b770feb5ac395c7392a → storybook@9.1.13_@testing-library_dom@10.4.0_msw@2.7.3_@types_node@24.9.1_typescript@5._a0e195139f137e7eecc50e9c6275adcc}/node_modules/storybook/dist/instrumenter/index.js +0 -0
  463. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  464. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
  465. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -0
  466. /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.3.1_@vitest_browser@3.2.4_@vitest_ui@3._1b07986b91643c89c81b0014d2711937 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.9.1_@vitest_browser@3.2.4_@vitest_ui@3._1eebb5b0859be5c5eee8a8981f7b0151}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -0
@@ -1,4 +1,4 @@
1
- import{Plugin as c,Command as u}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconShowBlocks as d}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as h,MenuBarMenuListItemButtonView as m}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
1
+ import{Plugin as c,Command as u}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconShowBlocks as d}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as h,MenuBarMenuListItemButtonView as m}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class w extends u{constructor(t){super(t),this.affectsData=!1,this.value=!1}execute(){const t="ck-show-blocks",e=this.editor.editing.view;e.change(s=>{for(const o of e.document.roots)o.hasClass(t)?(s.removeClass(t,o),this.value=!1):(s.addClass(t,o),this.value=!0)})}}class g extends c{static get pluginName(){return"ShowBlocksEditing"}static get isOfficialPlugin(){return!0}init(){const{editor:t}=this;t.commands.add("showBlocks",new w(t))}}class B extends c{static get pluginName(){return"ShowBlocksUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("showBlocks",()=>{const e=this._createButton(h);return e.set({tooltip:!0,icon:d}),e}),t.ui.componentFactory.add("menuBar:showBlocks",()=>this._createButton(m))}_createButton(t){const e=this.editor,s=e.locale,o=e.commands.get("showBlocks"),i=new t(s),a=s.t;return i.set({label:a("Show blocks"),isToggleable:!0,role:"menuitemcheckbox"}),i.bind("isEnabled").to(o),i.bind("isOn").to(o,"value",o,"isEnabled",(l,r)=>l&&r),this.listenTo(i,"execute",()=>{e.execute("showBlocks"),e.editing.view.focus()}),i}}class S extends c{static get pluginName(){return"ShowBlocks"}static get isOfficialPlugin(){return!0}static get requires(){return[g,B]}}export{S as ShowBlocks,w as ShowBlocksCommand,g as ShowBlocksEditing,B as ShowBlocksUI};
@@ -1,4 +1,4 @@
1
- import{Plugin as g,PendingActions as l}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconSource as f}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as p,MenuBarMenuListItemButtonView as E}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ElementReplacer as b,CKEditorError as _,createElement as u,formatHtml as w}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as g,PendingActions as l}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconSource as f}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as p,MenuBarMenuListItemButtonView as E}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ElementReplacer as b,CKEditorError as _,createElement as u,formatHtml as w}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */const d="SourceEditingMode";class M extends g{static get pluginName(){return"SourceEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[l]}_elementReplacer;_replacedRoots;_dataFromRoots;constructor(e){super(e),this.set("isSourceEditingMode",!1),this._elementReplacer=new b,this._replacedRoots=new Map,this._dataFromRoots=new Map,e.config.define("sourceEditing.allowCollaborationFeatures",!1)}init(){this._checkCompatibility();const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("sourceEditing",()=>{const i=this._createButton(p);return i.set({label:t("Source"),icon:f,tooltip:!0,class:"ck-source-editing-button"}),i}),e.ui.componentFactory.add("menuBar:sourceEditing",()=>{const i=this._createButton(E);return i.set({label:t("Show source"),role:"menuitemcheckbox"}),i}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(i,o,n)=>{n?(this._hideVisibleDialog(),this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(i,o,n)=>this._handleReadOnlyMode(!n)),this.listenTo(e,"change:isReadOnly",(i,o,n)=>this._handleReadOnlyMode(n))),e.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}updateEditorData(){const e=this.editor,t={};for(const[i,o]of this._replacedRoots){const n=this._dataFromRoots.get(i),s=o.dataset.value;n!==s&&(t[i]=s,this._dataFromRoots.set(i,s))}Object.keys(t).length&&e.data.set(t,{batchType:{isUndoable:!0},suppressErrorInCollaboration:!0})}_checkCompatibility(){const e=this.editor,t=e.config.get("sourceEditing.allowCollaborationFeatures");if(!t&&e.plugins.has("RealTimeCollaborativeEditing"))throw new _("source-editing-incompatible-with-real-time-collaboration",null);!t&&["CommentsEditing","TrackChangesEditing","RevisionHistory"].some(o=>e.plugins.has(o))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),e.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}_showSourceEditing(){const e=this.editor,t=e.editing.view,i=e.model;i.change(o=>{o.setSelection(null),o.removeSelectionAttribute(i.document.selection.getAttributeKeys())});for(const[o,n]of t.domRoots){const s=R(e.data.get({rootName:o})),r=u(n.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),c=u(n.ownerDocument,"div",{class:"ck-source-editing-area","data-value":s},[r]);r.value=s,r.setSelectionRange(0,0),r.addEventListener("input",()=>{c.dataset.value=r.value,e.ui.update()}),t.change(h=>{const m=t.document.getRoot(o);h.addClass("ck-hidden",m)}),e.ui.setEditableElement("sourceEditing:"+o,r),this._replacedRoots.set(o,c),this._elementReplacer.replace(n,c),this._dataFromRoots.set(o,s)}this._hideDocumentOutline(),this._refreshAnnotationsVisibility(),this._focusSourceEditing()}_hideSourceEditing(){const t=this.editor.editing.view;this.updateEditorData(),t.change(i=>{for(const[o]of this._replacedRoots)i.removeClass("ck-hidden",t.document.getRoot(o))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),this._showDocumentOutline(),this._refreshAnnotationsVisibility(),t.focus()}_hideDocumentOutline(){this.editor.plugins.has("DocumentOutlineUI")&&(this.editor.plugins.get("DocumentOutlineUI").view.element.style.display="none")}_showDocumentOutline(){this.editor.plugins.has("DocumentOutlineUI")&&(this.editor.plugins.get("DocumentOutlineUI").view.element.style.display="")}_refreshAnnotationsVisibility(){this.editor.plugins.has("Annotations")&&this.editor.plugins.get("Annotations").refreshVisibility()}_focusSourceEditing(){const e=this.editor,[t]=this._replacedRoots.values(),i=t.querySelector("textarea");e.editing.view.document.isFocused=!1,i.focus()}_disableCommands(){const e=this.editor;for(const t of e.commands.commands())t.forceDisabled(d);e.plugins.has("CommentsArchiveUI")&&e.plugins.get("CommentsArchiveUI").forceDisabled(d)}_enableCommands(){const e=this.editor;for(const t of e.commands.commands())t.clearForceDisabled(d);e.plugins.has("CommentsArchiveUI")&&e.plugins.get("CommentsArchiveUI").clearForceDisabled(d)}_handleReadOnlyMode(e){if(this.isSourceEditingMode)for(const[,t]of this._replacedRoots)t.querySelector("textarea").readOnly=e}_isAllowedToHandleSourceEditingMode(){const t=this.editor.ui.view.editable;return t&&!t.hasExternalElement}_hideVisibleDialog(){if(this.editor.plugins.has("Dialog")){const e=this.editor.plugins.get("Dialog");e.isOpen&&e.hide()}}_createButton(e){const t=this.editor,i=new e(t.locale);return i.set({withText:!0,isToggleable:!0}),i.bind("isOn").to(this,"isSourceEditingMode"),i.bind("isEnabled").to(this,"isEnabled",t,"isReadOnly",t.plugins.get(l),"hasAny",(o,n,s)=>!(!o||n||s)),this.listenTo(i,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),i}}function R(a){return S(a)?w(a):a}function S(a){return a.startsWith("<")}export{M as SourceEditing};
@@ -1,4 +1,4 @@
1
- import{Plugin as o}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Typing as f}from"../../../../../@ckeditor_ckeditor5-typing@46.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{IconSpecialCharacters as b}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as k,ButtonView as g,MenuBarMenuListItemButtonView as C,DialogViewPosition as _,View as h,LabeledFieldView as y,createLabeledDropdown as x,UIModel as v,addListToDropdown as V,addKeyboardHandlingForGrid as T,FocusCycler as S}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as w,Collection as D,FocusTracker as p,KeystrokeHandler as m,global as G}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as o}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Typing as f}from"../../../../../@ckeditor_ckeditor5-typing@46.1.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{IconSpecialCharacters as b}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{Dialog as k,ButtonView as g,MenuBarMenuListItemButtonView as C,DialogViewPosition as _,View as h,LabeledFieldView as y,createLabeledDropdown as x,UIModel as v,addListToDropdown as V,addKeyboardHandlingForGrid as T,FocusCycler as S}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as w,Collection as D,FocusTracker as p,KeystrokeHandler as m,global as G}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class P extends h{tiles;focusTracker;keystrokes;constructor(e){super(e),this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}}),this.focusTracker=new p,this.keystrokes=new m,T({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>G.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(e,t){const a=new g(this.locale);return a.set({label:e,withText:!0,class:"ck-character-grid__tile"}),a.extendTemplate({attributes:{title:t},on:{mouseover:a.bindTemplate.to("mouseover"),focus:a.bindTemplate.to("focus")}}),a.on("mouseover",()=>{this.fire("tileHover",{name:t,character:e})}),a.on("focus",()=>{this.fire("tileFocus",{name:t,character:e})}),a.on("execute",()=>{this.fire("execute",{name:t,character:e})}),a}render(){super.render();for(const e of this.tiles)this.focusTracker.add(e.element);this.tiles.on("change",(e,{added:t,removed:a})=>{if(t.length>0)for(const r of t)this.focusTracker.add(r.element);if(a.length>0)for(const r of a)this.focusTracker.remove(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}focus(){this.tiles.first.focus()}}class q extends h{constructor(e){super(e);const t=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",I),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:t.to("name",a=>a||"​")}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:t.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function I(c){return c===null?"":"U+"+("0000"+c.codePointAt(0).toString(16)).slice(-4)}class N extends h{items;focusTracker;keystrokes;_focusCycler;categoriesView;gridView;infoView;constructor(e,t,a,r){super(e),this.categoriesView=t,this.gridView=a,this.infoView=r,this.items=this.createCollection(),this.focusTracker=new p,this.keystrokes=new m,this._focusCycler=new S({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",children:[this.categoriesView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.categoriesView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.categoriesView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}class A extends h{_groupNames;_dropdownView;constructor(e,t){super(e),this.set("currentGroupName",Array.from(t.entries())[0][0]),this._groupNames=t,this._dropdownView=new y(e,x),this.setTemplate({tag:"div",attributes:{class:["ck","ck-character-categories"]},children:[this._dropdownView]})}render(){super.render(),this._setupDropdown()}focus(){this._dropdownView.focus()}_setupDropdown(){const e=new D;for(const[r,i]of this._groupNames){const s={type:"button",model:new v({name:r,label:i,role:"menuitemradio",withText:!0})};s.model.bind("isOn").to(this,"currentGroupName",l=>l===r),e.add(s)}const t=this.locale.t,a=t("Category");this._dropdownView.set({label:a,isEmpty:!1}),this._dropdownView.fieldView.panelPosition=this.locale.uiLanguageDirection==="rtl"?"se":"sw",this._dropdownView.fieldView.buttonView.set({withText:!0,tooltip:a,ariaLabel:a,ariaLabelledBy:void 0,isOn:!1}),this._dropdownView.fieldView.buttonView.bind("label").to(this,"currentGroupName",r=>this._groupNames.get(r)),this._dropdownView.fieldView.on("execute",({source:r})=>{this.currentGroupName=r.name}),V(this._dropdownView.fieldView,e,{ariaLabel:a,role:"menu"})}}const u="All";class K extends o{_characters;_groups;_allSpecialCharactersGroupLabel;static get requires(){return[f,k]}static get pluginName(){return"SpecialCharacters"}static get isOfficialPlugin(){return!0}constructor(e){super(e);const t=e.t;this._characters=new Map,this._groups=new Map,this._allSpecialCharactersGroupLabel=t("All")}init(){const e=this.editor;e.ui.componentFactory.add("specialCharacters",()=>{const t=this._createDialogButton(g);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:specialCharacters",()=>this._createDialogButton(C))}addItems(e,t,a={label:e}){if(e===u)throw new w("special-character-invalid-group-name",null);const r=this._getGroup(e,a.label);for(const i of t)r.items.add(i.title),this._characters.set(i.title,i.character)}getGroups(){const e=Array.from(this._groups.keys()),t=this.editor.config.get("specialCharacters.order")||[],a=t.find(r=>!e.includes(r));if(a)throw new w("special-character-invalid-order-group-name",null,{invalidGroup:a});return new Set([...t,...e])}getCharactersForGroup(e){if(e===u)return new Set(this._characters.keys());const t=this._groups.get(e);if(t)return t.items}getCharacter(e){return this._characters.get(e)}_getGroup(e,t){return this._groups.has(e)||this._groups.set(e,{items:new Set,label:t}),this._groups.get(e)}_updateGrid(e,t){t.tiles.clear();const a=this.getCharactersForGroup(e);for(const r of a){const i=this.getCharacter(r);t.tiles.add(t.createTile(i,r))}}_createDropdownPanelContent(e){const t=Array.from(this.getGroups()).map(l=>[l,this._groups.get(l).label]),a=new Map([[u,this._allSpecialCharactersGroupLabel],...t]),r=new A(e,a),i=new P(e),s=new q(e);return i.on("tileHover",(l,n)=>{s.set(n)}),i.on("tileFocus",(l,n)=>{s.set(n)}),r.on("change:currentGroupName",(l,n,d)=>{this._updateGrid(d,i)}),this._updateGrid(r.currentGroupName,i),{categoriesView:r,gridView:i,infoView:s}}_createDialogButton(e){const t=this.editor,a=t.locale,r=new e(t.locale),i=t.commands.get("insertText"),s=a.t,l=this.editor.plugins.get("Dialog");return r.set({label:s("Special characters"),icon:b,isToggleable:!0}),r.bind("isOn").to(l,"id",n=>n==="specialCharacters"),r.bind("isEnabled").to(i,"isEnabled"),r.on("execute",()=>{if(l.id==="specialCharacters"){l.hide();return}this._showDialog()}),r}_showDialog(){const e=this.editor,t=e.plugins.get("Dialog"),a=e.locale,r=a.t,{categoriesView:i,gridView:s,infoView:l}=this._createDropdownPanelContent(a),n=new N(a,i,s,l);s.on("execute",(d,L)=>{e.execute("insertText",{text:L.character})}),t.show({id:"specialCharacters",title:r("Special characters"),className:"ck-special-characters",content:n,position:_.EDITOR_TOP_SIDE})}}class E extends o{static get pluginName(){return"SpecialCharactersArrows"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Arrows",[{title:t("leftwards simple arrow"),character:"←"},{title:t("rightwards simple arrow"),character:"→"},{title:t("upwards simple arrow"),character:"↑"},{title:t("downwards simple arrow"),character:"↓"},{title:t("leftwards double arrow"),character:"⇐"},{title:t("rightwards double arrow"),character:"⇒"},{title:t("upwards double arrow"),character:"⇑"},{title:t("downwards double arrow"),character:"⇓"},{title:t("leftwards dashed arrow"),character:"⇠"},{title:t("rightwards dashed arrow"),character:"⇢"},{title:t("upwards dashed arrow"),character:"⇡"},{title:t("downwards dashed arrow"),character:"⇣"},{title:t("leftwards arrow to bar"),character:"⇤"},{title:t("rightwards arrow to bar"),character:"⇥"},{title:t("upwards arrow to bar"),character:"⤒"},{title:t("downwards arrow to bar"),character:"⤓"},{title:t("up down arrow with base"),character:"↨"},{title:t("back with leftwards arrow above"),character:"🔙"},{title:t("end with leftwards arrow above"),character:"🔚"},{title:t("on with exclamation mark with left right arrow above"),character:"🔛"},{title:t("soon with rightwards arrow above"),character:"🔜"},{title:t("top with upwards arrow above"),character:"🔝"}],{label:t("Arrows")})}}class M extends o{static get pluginName(){return"SpecialCharactersText"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Text",[{character:"‹",title:t("Single left-pointing angle quotation mark")},{character:"›",title:t("Single right-pointing angle quotation mark")},{character:"«",title:t("Left-pointing double angle quotation mark")},{character:"»",title:t("Right-pointing double angle quotation mark")},{character:"‘",title:t("Left single quotation mark")},{character:"’",title:t("Right single quotation mark")},{character:"“",title:t("Left double quotation mark")},{character:"”",title:t("Right double quotation mark")},{character:"‚",title:t("Single low-9 quotation mark")},{character:"„",title:t("Double low-9 quotation mark")},{character:"¡",title:t("Inverted exclamation mark")},{character:"¿",title:t("Inverted question mark")},{character:"‥",title:t("Two dot leader")},{character:"…",title:t("Horizontal ellipsis")},{character:"‡",title:t("Double dagger")},{character:"‰",title:t("Per mille sign")},{character:"‱",title:t("Per ten thousand sign")},{character:"‼",title:t("Double exclamation mark")},{character:"⁈",title:t("Question exclamation mark")},{character:"⁉",title:t("Exclamation question mark")},{character:"⁇",title:t("Double question mark")},{character:"©",title:t("Copyright sign")},{character:"®",title:t("Registered sign")},{character:"™",title:t("Trade mark sign")},{character:"§",title:t("Section sign")},{character:"¶",title:t("Paragraph sign")},{character:"⁋",title:t("Reversed paragraph sign")}],{label:t("Text")})}}class O extends o{static get pluginName(){return"SpecialCharactersMathematical"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:t("Less-than sign")},{character:">",title:t("Greater-than sign")},{character:"≤",title:t("Less-than or equal to")},{character:"≥",title:t("Greater-than or equal to")},{character:"–",title:t("En dash")},{character:"—",title:t("Em dash")},{character:"¯",title:t("Macron")},{character:"‾",title:t("Overline")},{character:"°",title:t("Degree sign")},{character:"−",title:t("Minus sign")},{character:"±",title:t("Plus-minus sign")},{character:"÷",title:t("Division sign")},{character:"⁄",title:t("Fraction slash")},{character:"×",title:t("Multiplication sign")},{character:"ƒ",title:t("Latin small letter f with hook")},{character:"∫",title:t("Integral")},{character:"∑",title:t("N-ary summation")},{character:"∞",title:t("Infinity")},{character:"√",title:t("Square root")},{character:"∼",title:t("Tilde operator")},{character:"≅",title:t("Approximately equal to")},{character:"≈",title:t("Almost equal to")},{character:"≠",title:t("Not equal to")},{character:"≡",title:t("Identical to")},{character:"∈",title:t("Element of")},{character:"∉",title:t("Not an element of")},{character:"∋",title:t("Contains as member")},{character:"∏",title:t("N-ary product")},{character:"∧",title:t("Logical and")},{character:"∨",title:t("Logical or")},{character:"¬",title:t("Not sign")},{character:"∩",title:t("Intersection")},{character:"∪",title:t("Union")},{character:"∂",title:t("Partial differential")},{character:"∀",title:t("For all")},{character:"∃",title:t("There exists")},{character:"∅",title:t("Empty set")},{character:"∇",title:t("Nabla")},{character:"∗",title:t("Asterisk operator")},{character:"∝",title:t("Proportional to")},{character:"∠",title:t("Angle")},{character:"¼",title:t("Vulgar fraction one quarter")},{character:"½",title:t("Vulgar fraction one half")},{character:"¾",title:t("Vulgar fraction three quarters")}],{label:t("Mathematical")})}}class F extends o{static get pluginName(){return"SpecialCharactersLatin"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Latin",[{character:"Ā",title:t("Latin capital letter a with macron")},{character:"ā",title:t("Latin small letter a with macron")},{character:"Ă",title:t("Latin capital letter a with breve")},{character:"ă",title:t("Latin small letter a with breve")},{character:"Ą",title:t("Latin capital letter a with ogonek")},{character:"ą",title:t("Latin small letter a with ogonek")},{character:"Ć",title:t("Latin capital letter c with acute")},{character:"ć",title:t("Latin small letter c with acute")},{character:"Ĉ",title:t("Latin capital letter c with circumflex")},{character:"ĉ",title:t("Latin small letter c with circumflex")},{character:"Ċ",title:t("Latin capital letter c with dot above")},{character:"ċ",title:t("Latin small letter c with dot above")},{character:"Č",title:t("Latin capital letter c with caron")},{character:"č",title:t("Latin small letter c with caron")},{character:"Ď",title:t("Latin capital letter d with caron")},{character:"ď",title:t("Latin small letter d with caron")},{character:"Đ",title:t("Latin capital letter d with stroke")},{character:"đ",title:t("Latin small letter d with stroke")},{character:"Ē",title:t("Latin capital letter e with macron")},{character:"ē",title:t("Latin small letter e with macron")},{character:"Ĕ",title:t("Latin capital letter e with breve")},{character:"ĕ",title:t("Latin small letter e with breve")},{character:"Ė",title:t("Latin capital letter e with dot above")},{character:"ė",title:t("Latin small letter e with dot above")},{character:"Ę",title:t("Latin capital letter e with ogonek")},{character:"ę",title:t("Latin small letter e with ogonek")},{character:"Ě",title:t("Latin capital letter e with caron")},{character:"ě",title:t("Latin small letter e with caron")},{character:"Ĝ",title:t("Latin capital letter g with circumflex")},{character:"ĝ",title:t("Latin small letter g with circumflex")},{character:"Ğ",title:t("Latin capital letter g with breve")},{character:"ğ",title:t("Latin small letter g with breve")},{character:"Ġ",title:t("Latin capital letter g with dot above")},{character:"ġ",title:t("Latin small letter g with dot above")},{character:"Ģ",title:t("Latin capital letter g with cedilla")},{character:"ģ",title:t("Latin small letter g with cedilla")},{character:"Ĥ",title:t("Latin capital letter h with circumflex")},{character:"ĥ",title:t("Latin small letter h with circumflex")},{character:"Ħ",title:t("Latin capital letter h with stroke")},{character:"ħ",title:t("Latin small letter h with stroke")},{character:"Ĩ",title:t("Latin capital letter i with tilde")},{character:"ĩ",title:t("Latin small letter i with tilde")},{character:"Ī",title:t("Latin capital letter i with macron")},{character:"ī",title:t("Latin small letter i with macron")},{character:"Ĭ",title:t("Latin capital letter i with breve")},{character:"ĭ",title:t("Latin small letter i with breve")},{character:"Į",title:t("Latin capital letter i with ogonek")},{character:"į",title:t("Latin small letter i with ogonek")},{character:"İ",title:t("Latin capital letter i with dot above")},{character:"ı",title:t("Latin small letter dotless i")},{character:"IJ",title:t("Latin capital ligature ij")},{character:"ij",title:t("Latin small ligature ij")},{character:"Ĵ",title:t("Latin capital letter j with circumflex")},{character:"ĵ",title:t("Latin small letter j with circumflex")},{character:"Ķ",title:t("Latin capital letter k with cedilla")},{character:"ķ",title:t("Latin small letter k with cedilla")},{character:"ĸ",title:t("Latin small letter kra")},{character:"Ĺ",title:t("Latin capital letter l with acute")},{character:"ĺ",title:t("Latin small letter l with acute")},{character:"Ļ",title:t("Latin capital letter l with cedilla")},{character:"ļ",title:t("Latin small letter l with cedilla")},{character:"Ľ",title:t("Latin capital letter l with caron")},{character:"ľ",title:t("Latin small letter l with caron")},{character:"Ŀ",title:t("Latin capital letter l with middle dot")},{character:"ŀ",title:t("Latin small letter l with middle dot")},{character:"Ł",title:t("Latin capital letter l with stroke")},{character:"ł",title:t("Latin small letter l with stroke")},{character:"Ń",title:t("Latin capital letter n with acute")},{character:"ń",title:t("Latin small letter n with acute")},{character:"Ņ",title:t("Latin capital letter n with cedilla")},{character:"ņ",title:t("Latin small letter n with cedilla")},{character:"Ň",title:t("Latin capital letter n with caron")},{character:"ň",title:t("Latin small letter n with caron")},{character:"ʼn",title:t("Latin small letter n preceded by apostrophe")},{character:"Ŋ",title:t("Latin capital letter eng")},{character:"ŋ",title:t("Latin small letter eng")},{character:"Ō",title:t("Latin capital letter o with macron")},{character:"ō",title:t("Latin small letter o with macron")},{character:"Ŏ",title:t("Latin capital letter o with breve")},{character:"ŏ",title:t("Latin small letter o with breve")},{character:"Ő",title:t("Latin capital letter o with double acute")},{character:"ő",title:t("Latin small letter o with double acute")},{character:"Œ",title:t("Latin capital ligature oe")},{character:"œ",title:t("Latin small ligature oe")},{character:"Ŕ",title:t("Latin capital letter r with acute")},{character:"ŕ",title:t("Latin small letter r with acute")},{character:"Ŗ",title:t("Latin capital letter r with cedilla")},{character:"ŗ",title:t("Latin small letter r with cedilla")},{character:"Ř",title:t("Latin capital letter r with caron")},{character:"ř",title:t("Latin small letter r with caron")},{character:"Ś",title:t("Latin capital letter s with acute")},{character:"ś",title:t("Latin small letter s with acute")},{character:"Ŝ",title:t("Latin capital letter s with circumflex")},{character:"ŝ",title:t("Latin small letter s with circumflex")},{character:"Ş",title:t("Latin capital letter s with cedilla")},{character:"ş",title:t("Latin small letter s with cedilla")},{character:"Š",title:t("Latin capital letter s with caron")},{character:"š",title:t("Latin small letter s with caron")},{character:"Ţ",title:t("Latin capital letter t with cedilla")},{character:"ţ",title:t("Latin small letter t with cedilla")},{character:"Ť",title:t("Latin capital letter t with caron")},{character:"ť",title:t("Latin small letter t with caron")},{character:"Ŧ",title:t("Latin capital letter t with stroke")},{character:"ŧ",title:t("Latin small letter t with stroke")},{character:"Ũ",title:t("Latin capital letter u with tilde")},{character:"ũ",title:t("Latin small letter u with tilde")},{character:"Ū",title:t("Latin capital letter u with macron")},{character:"ū",title:t("Latin small letter u with macron")},{character:"Ŭ",title:t("Latin capital letter u with breve")},{character:"ŭ",title:t("Latin small letter u with breve")},{character:"Ů",title:t("Latin capital letter u with ring above")},{character:"ů",title:t("Latin small letter u with ring above")},{character:"Ű",title:t("Latin capital letter u with double acute")},{character:"ű",title:t("Latin small letter u with double acute")},{character:"Ų",title:t("Latin capital letter u with ogonek")},{character:"ų",title:t("Latin small letter u with ogonek")},{character:"Ŵ",title:t("Latin capital letter w with circumflex")},{character:"ŵ",title:t("Latin small letter w with circumflex")},{character:"Ŷ",title:t("Latin capital letter y with circumflex")},{character:"ŷ",title:t("Latin small letter y with circumflex")},{character:"Ÿ",title:t("Latin capital letter y with diaeresis")},{character:"Ź",title:t("Latin capital letter z with acute")},{character:"ź",title:t("Latin small letter z with acute")},{character:"Ż",title:t("Latin capital letter z with dot above")},{character:"ż",title:t("Latin small letter z with dot above")},{character:"Ž",title:t("Latin capital letter z with caron")},{character:"ž",title:t("Latin small letter z with caron")},{character:"ſ",title:t("Latin small letter long s")}],{label:t("Latin")})}}class R extends o{static get pluginName(){return"SpecialCharactersCurrency"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:t("Dollar sign")},{character:"€",title:t("Euro sign")},{character:"¥",title:t("Yen sign")},{character:"£",title:t("Pound sign")},{character:"¢",title:t("Cent sign")},{character:"₠",title:t("Euro-currency sign")},{character:"₡",title:t("Colon sign")},{character:"₢",title:t("Cruzeiro sign")},{character:"₣",title:t("French franc sign")},{character:"₤",title:t("Lira sign")},{character:"¤",title:t("Currency sign")},{character:"₿",title:t("Bitcoin sign")},{character:"₥",title:t("Mill sign")},{character:"₦",title:t("Naira sign")},{character:"₧",title:t("Peseta sign")},{character:"₨",title:t("Rupee sign")},{character:"₩",title:t("Won sign")},{character:"₪",title:t("New sheqel sign")},{character:"₫",title:t("Dong sign")},{character:"₭",title:t("Kip sign")},{character:"₮",title:t("Tugrik sign")},{character:"₯",title:t("Drachma sign")},{character:"₰",title:t("German penny sign")},{character:"₱",title:t("Peso sign")},{character:"₲",title:t("Guarani sign")},{character:"₳",title:t("Austral sign")},{character:"₴",title:t("Hryvnia sign")},{character:"₵",title:t("Cedi sign")},{character:"₶",title:t("Livre tournois sign")},{character:"₷",title:t("Spesmilo sign")},{character:"₸",title:t("Tenge sign")},{character:"₹",title:t("Indian rupee sign")},{character:"₺",title:t("Turkish lira sign")},{character:"₻",title:t("Nordic mark sign")},{character:"₼",title:t("Manat sign")},{character:"₽",title:t("Ruble sign")}],{label:t("Currency")})}}class Q extends o{static get pluginName(){return"SpecialCharactersEssentials"}static get isOfficialPlugin(){return!0}static get requires(){return[R,M,O,E,F]}}export{K as SpecialCharacters,E as SpecialCharactersArrows,R as SpecialCharactersCurrency,Q as SpecialCharactersEssentials,F as SpecialCharactersLatin,O as SpecialCharactersMathematical,M as SpecialCharactersText,A as _SpecialCharactersCategoriesView,P as _SpecialCharactersGridView,q as _SpecialCharactersInfoView,N as _SpecialCharactersView};
@@ -1,4 +1,4 @@
1
- import{Plugin as h,Command as k}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as _,View as g,ViewCollection as w,FocusCycler as A,LabelView as V,addKeyboardHandlingForGrid as B,ButtonView as F}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as T,logWarning as v,FocusTracker as S,KeystrokeHandler as b}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{findAttributeRange as U,findAttributeRangeBound as E}from"../../../../../@ckeditor_ckeditor5-typing@46.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{isObject as x}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
1
+ import{Plugin as h,Command as k}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{createDropdown as _,View as g,ViewCollection as w,FocusCycler as A,LabelView as V,addKeyboardHandlingForGrid as B,ButtonView as F}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as T,logWarning as v,FocusTracker as S,KeystrokeHandler as b}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{findAttributeRange as U,findAttributeRangeBound as E}from"../../../../../@ckeditor_ckeditor5-typing@46.1.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{isObject as x}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class C extends F{styleDefinition;previewView;constructor(e,t){super(e),this.styleDefinition=t,this.previewView=this._createPreview(),this.set({label:t.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const e=new g(this.locale);return e.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[this.styleDefinition.previewTemplate]}),e}}class G extends g{focusTracker;keystrokes;children;constructor(e,t){super(e),this.focusTracker=new S,this.keystrokes=new b,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const s of t){const i=new C(e,s);this.children.add(i)}this.on("change:activeStyles",()=>{for(const s of this.children)s.isOn=this.activeStyles.includes(s.styleDefinition.name)}),this.on("change:enabledStyles",()=>{for(const s of this.children)s.isEnabled=this.enabledStyles.includes(s.styleDefinition.name)}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const e of this.children)this.focusTracker.add(e.element);B({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}class y extends g{gridView;labelView;constructor(e,t,s){super(e),this.labelView=new V(e),this.labelView.text=t,this.gridView=new G(e,s),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}class D extends g{focusTracker;keystrokes;children;blockStylesGroupView;inlineStylesGroupView;_focusables;_focusCycler;constructor(e,t){super(e);const s=e.t;this.focusTracker=new S,this.keystrokes=new b,this.children=this.createCollection(),this.blockStylesGroupView=new y(e,s("Block styles"),t.block),this.inlineStylesGroupView=new y(e,s("Text styles"),t.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new w,this._focusCycler=new A({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),t.block.length&&this.children.add(this.blockStylesGroupView),t.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}const P=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class d extends h{_htmlSupport;static get pluginName(){return"StyleUtils"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this.decorate("isStyleEnabledForBlock"),this.decorate("isStyleActiveForBlock"),this.decorate("getAffectedBlocks"),this.decorate("isStyleEnabledForInlineSelection"),this.decorate("isStyleActiveForInlineSelection"),this.decorate("getAffectedInlineSelectable"),this.decorate("getStylePreview"),this.decorate("configureGHSDataFilter")}init(){this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport")}normalizeConfig(e,t=[]){const s={block:[],inline:[]};for(const i of t){const l=[],o=[];for(const n of e.getDefinitionsForView(i.element)){const u="appliesToBlock"in n?n.appliesToBlock:!1;if(n.isBlock||u){if(typeof u=="string")l.push(u);else if(n.isBlock){const a=n;l.push(n.model),a.paragraphLikeModel&&l.push(a.paragraphLikeModel)}}else o.push(n.model)}const c=this.getStylePreview(i,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);l.length?s.block.push({...i,previewTemplate:c,modelElements:l,isBlock:!0}):s.inline.push({...i,previewTemplate:c,ghsAttributes:o})}return s}isStyleEnabledForBlock(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);return s.schema.checkAttribute(t,i)?e.modelElements.includes(t.name):!1}isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this.hasAllClasses(i,e.classes)}getAffectedBlocks(e,t){return e.modelElements.includes(t.name)?[t]:null}isStyleEnabledForInlineSelection(e,t){const s=this.editor.model;for(const i of e.ghsAttributes)if(s.schema.checkAttributeInSelection(t,i))return!0;return!1}isStyleActiveForInlineSelection(e,t){for(const s of e.ghsAttributes){const i=this._getValueFromFirstAllowedNode(t,s);if(this.hasAllClasses(i,e.classes))return!0}return!1}getAffectedInlineSelectable(e,t){return t}getStylePreview(e,t){const{element:s,classes:i}=e;return{tag:N(s)?s:"div",attributes:{class:i},children:t}}hasAllClasses(e,t){return x(e)&&H(e)&&t.every(s=>e.classes.includes(s))}configureGHSDataFilter({block:e,inline:t}){const s=this.editor.plugins.get("DataFilter");s.loadAllowedConfig(e.map(m)),s.loadAllowedConfig(t.map(m))}_getValueFromFirstAllowedNode(e,t){const i=this.editor.model.schema;if(e.isCollapsed)return e.getAttribute(t);for(const l of e.getRanges())for(const o of l.getItems())if(i.checkAttribute(o,t))return o.getAttribute(t);return null}}function H(r){return!!r.classes&&Array.isArray(r.classes)}function N(r){return!P.includes(r)}function m({element:r,classes:e}){return{name:r,classes:e}}class I extends h{static get pluginName(){return"StyleUI"}static get isOfficialPlugin(){return!0}static get requires(){return[d]}init(){const e=this.editor,t=e.plugins.get("DataSchema"),s=e.plugins.get("StyleUtils"),i=e.config.get("style.definitions"),l=s.normalizeConfig(t,i);e.ui.componentFactory.add("style",o=>{const c=o.t,n=_(o),u=e.commands.get("style");return n.once("change:isOpen",()=>{const a=new D(o,l);n.panelView.children.add(a),a.delegate("execute").to(n),a.bind("activeStyles").to(u,"value"),a.bind("enabledStyles").to(u,"enabledStyles")}),n.bind("isEnabled").to(u),n.buttonView.withText=!0,n.buttonView.bind("label").to(u,"value",a=>a.length>1?c("Multiple styles"):a.length===1?a[0]:c("Styles")),n.bind("class").to(u,"value",a=>{const f=["ck-style-dropdown"];return a.length>1&&f.push("ck-style-dropdown_multiple-active"),f.join(" ")}),n.on("execute",a=>{e.execute("style",{styleName:a.source.styleDefinition.name}),e.editing.view.focus()}),n})}}class L extends k{_styleDefinitions;_styleUtils;constructor(e,t){super(e),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=t,this._styleUtils=this.editor.plugins.get(d)}refresh(){const e=this.editor.model,t=e.document.selection,s=new Set,i=new Set;for(const o of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(o,t)&&i.add(o.name),this._styleUtils.isStyleActiveForInlineSelection(o,t)&&s.add(o.name);const l=T(t.getSelectedBlocks())||t.getFirstPosition().parent;if(l){const o=l.getAncestors({includeSelf:!0,parentFirst:!0});for(const c of o){if(c.is("rootElement"))break;for(const n of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(n,c)&&(i.add(n.name),this._styleUtils.isStyleActiveForBlock(n,c)&&s.add(n.name));if(e.schema.isObject(c))break}}this.enabledStyles=Array.from(i).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(s).sort():[]}execute({styleName:e,forceValue:t}){if(!this.enabledStyles.includes(e)){v("style-command-executed-with-incorrect-style-name");return}const s=this.editor.model,i=s.document.selection,l=this.editor.plugins.get("GeneralHtmlSupport"),o=[...this._styleDefinitions.inline,...this._styleDefinitions.block],c=o.filter(({name:a})=>this.value.includes(a)),n=o.find(({name:a})=>a==e),u=t===void 0?!this.value.includes(n.name):t;s.change(()=>{let a;O(n)?a=this._findAffectedBlocks(z(i),n):a=[this._styleUtils.getAffectedInlineSelectable(n,i)];for(const f of a)u?l.addModelHtmlClass(n.element,n.classes,f):l.removeModelHtmlClass(n.element,R(c,n),f)})}_findAffectedBlocks(e,t){const s=new Set;for(const i of e){const l=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of l){if(o.is("rootElement"))break;const c=this._styleUtils.getAffectedBlocks(t,o);if(c){for(const n of c)s.add(n);break}}}return s}}function R(r,e){return r.reduce((t,s)=>s.name===e.name?t:t.filter(i=>!s.classes.includes(i)),e.classes)}function O(r){return"isBlock"in r}function z(r){const e=Array.from(r.getSelectedBlocks());return e.length?e:[r.getFirstPosition().parent]}class M extends h{_listUtils;_styleUtils;_htmlSupport;static get pluginName(){return"ListStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[d,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("ListEditing")&&(this._styleUtils=e.plugins.get(d),this._listUtils=this.editor.plugins.get("ListUtils"),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(t,[s,i])=>{this._isStyleEnabledForBlock(s,i)&&(t.return=!0,t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForBlock",(t,[s,i])=>{this._isStyleActiveForBlock(s,i)&&(t.return=!0,t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(t,[s,i])=>{const l=this._getAffectedBlocks(s,i);l&&(t.return=l,t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",(t,[s,i])=>{const l=this._getStylePreview(s,i);l&&(t.return=l,t.stop())},{priority:"high"}))}_isStyleEnabledForBlock(e,t){const s=this.editor.model;if(!["ol","ul","li"].includes(e.element)||!this._listUtils.isListItemBlock(t))return!1;const i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if(e.element=="ol"||e.element=="ul"){if(!s.schema.checkAttribute(t,i))return!1;const o=this._listUtils.isNumberedListType(t.getAttribute("listType"))?"ol":"ul";return e.element==o}else return s.schema.checkAttribute(t,i)}_isStyleActiveForBlock(e,t){const s=this._htmlSupport.getGhsAttributeNameForElement(e.element),i=t.getAttribute(s);return this._styleUtils.hasAllClasses(i,e.classes)}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?e.element=="li"?this._listUtils.expandListBlocksToCompleteItems(t,{withNested:!1}):this._listUtils.expandListBlocksToCompleteList(t):null}_getStylePreview(e,t){const{element:s,classes:i}=e;return s=="ol"||s=="ul"?{tag:s,attributes:{class:i},children:[{tag:"li",children:t}]}:s=="li"?{tag:"ol",children:[{tag:s,attributes:{class:i},children:t}]}:null}}class q extends h{_tableUtils;_styleUtils;static get pluginName(){return"TableStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[d]}init(){const e=this.editor;e.plugins.has("TableEditing")&&(this._styleUtils=e.plugins.get(d),this._tableUtils=this.editor.plugins.get("TableUtils"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(t,[s,i])=>{this._isApplicable(s,i)&&(t.return=this._isStyleEnabledForBlock(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(t,[s,i])=>{this._isApplicable(s,i)&&(t.return=this._getAffectedBlocks(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"configureGHSDataFilter",(t,[{block:s}])=>{this.editor.plugins.get("DataFilter").loadAllowedConfig(s.filter(l=>l.element=="figcaption").map(l=>({name:"caption",classes:l.classes})))}))}_isApplicable(e,t){return["td","th"].includes(e.element)?t.name=="tableCell":["thead","tbody"].includes(e.element)?t.name=="table":!1}_isStyleEnabledForBlock(e,t){if(["td","th"].includes(e.element)){const s=this._tableUtils.getCellLocation(t),l=t.parent.parent,o=l.getAttribute("headingRows")||0,c=l.getAttribute("headingColumns")||0,n=s.row<o||s.column<c;return e.element=="th"?n:!n}if(["thead","tbody"].includes(e.element)){const s=t.getAttribute("headingRows")||0;return e.element=="thead"?s>0:s<this._tableUtils.getRows(t)}/* istanbul ignore next -- @preserve */return!1}_getAffectedBlocks(e,t){return this._isStyleEnabledForBlock(e,t)?[t]:null}}class j extends h{_styleUtils;_htmlSupport;static get pluginName(){return"LinkStyleSupport"}static get isOfficialPlugin(){return!0}static get requires(){return[d,"GeneralHtmlSupport"]}init(){const e=this.editor;e.plugins.has("LinkEditing")&&(this._styleUtils=e.plugins.get(d),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForInlineSelection",(t,[s,i])=>{s.element=="a"&&(t.return=this._isStyleEnabled(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForInlineSelection",(t,[s,i])=>{s.element=="a"&&(t.return=this._isStyleActive(s,i),t.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedInlineSelectable",(t,[s,i])=>{if(s.element!="a")return;const l=this._getAffectedSelectable(s,i);l&&(t.return=l,t.stop())},{priority:"high"}))}_isStyleEnabled(e,t){const s=this.editor.model;if(t.isCollapsed)return t.hasAttribute("linkHref");for(const i of t.getRanges())for(const l of i.getItems())if((l.is("$textProxy")||s.schema.isInline(l))&&l.hasAttribute("linkHref"))return!0;return!1}_isStyleActive(e,t){const s=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(e.element);if(t.isCollapsed){if(t.hasAttribute("linkHref")){const l=t.getAttribute(i);if(this._styleUtils.hasAllClasses(l,e.classes))return!0}return!1}for(const l of t.getRanges())for(const o of l.getItems())if((o.is("$textProxy")||s.schema.isInline(o))&&o.hasAttribute("linkHref")){const c=o.getAttribute(i);return this._styleUtils.hasAllClasses(c,e.classes)}return!1}_getAffectedSelectable(e,t){const s=this.editor.model;if(t.isCollapsed){const l=t.getAttribute("linkHref");return U(t.getFirstPosition(),"linkHref",l,s)}const i=[];for(const l of t.getRanges()){const o=s.createRange(p(l.start,"linkHref",!0,s),p(l.end,"linkHref",!1,s));for(const c of o.getItems())(c.is("$textProxy")||s.schema.isInline(c))&&c.hasAttribute("linkHref")&&i.push(this.editor.model.createRangeOn(c))}return $(i)}}function p(r,e,t,s){const i=r.textNode||(t?r.nodeAfter:r.nodeBefore);if(!i||!i.hasAttribute(e))return r;const l=i.getAttribute(e);return E(r,e,l,t,s)}function $(r){for(let e=1;e<r.length;e++){const t=r[e-1].getJoined(r[e]);t&&r.splice(--e,2,t)}return r}class J extends h{static get pluginName(){return"StyleEditing"}static get isOfficialPlugin(){return!0}static get requires(){return["GeneralHtmlSupport",d,M,q,j]}init(){const e=this.editor,t=e.plugins.get("DataSchema"),s=e.plugins.get("StyleUtils"),i=e.config.get("style.definitions"),l=s.normalizeConfig(t,i);e.commands.add("style",new L(e,l)),s.configureGHSDataFilter(l)}}class Z extends h{static get pluginName(){return"Style"}static get isOfficialPlugin(){return!0}static get requires(){return[J,I]}}export{j as LinkStyleSupport,M as ListStyleSupport,Z as Style,L as StyleCommand,J as StyleEditing,I as StyleUI,d as StyleUtils,q as TableStyleSupport,C as _StyleGridButtonView,G as _StyleGridView,y as _StyleGroupView,D as _StylePanelView};
@@ -1,4 +1,4 @@
1
- import{Plugin as y,Command as v}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as lo,WidgetToolbarRepository as Ue,toWidgetEditable as pt,isWidget as io,toWidget as so}from"../../../../../@ckeditor_ckeditor5-widget@46.1.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{Collection as Ct,first as Le,getLocalizedArrowKeyCodeDirection as ro,DomEmitterMixin as ao,global as ie,Rect as se,toUnit as co,CKEditorError as je,KeystrokeHandler as ge,FocusTracker as be}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconTable as Ge,IconTableColumn as uo,IconTableRow as ho,IconTableMergeCell as mo,IconCaption as go,IconTableCellProperties as bo,IconTableProperties as fo,IconCheck as wt,IconCancel as Tt,IconObjectInlineRight as po,IconObjectCenter as Co,IconObjectInlineLeft as wo,IconAlignBottom as To,IconAlignMiddle as _o,IconAlignTop as yo,IconAlignJustify as Ao,IconAlignRight as vo,IconAlignCenter as So,IconAlignLeft as Ro}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{createDropdown as te,MenuBarMenuView as Io,SwitchButtonView as xo,addListToDropdown as We,ButtonView as P,ContextualBalloon as re,normalizeColorOptions as ae,getLocalizedColorOptions as ce,clickOutsideHandler as _t,SplitButtonView as Vo,View as F,addKeyboardHandlingForGrid as ko,UIModel as yt,ViewCollection as Be,FocusCycler as Ne,FormHeaderView as At,FormRowView as R,submitHandler as vt,LabelView as L,LabeledFieldView as I,createLabeledDropdown as St,createLabeledInputText as D,ToolbarView as Te,BalloonPanelView as N,InputTextView as Po,ColorSelectorView as Eo}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ClipboardMarkersUtils as Ce,ClipboardPipeline as $e}from"../../../../../@ckeditor_ckeditor5-clipboard@46.1.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{enableViewPlaceholder as Lo,ModelElement as Wo,addBorderStylesRules as Rt,addPaddingStylesRules as Bo,addBackgroundStylesRules as It,DomEventObserver as No,isColorStyleValue as Do,isLengthStyleValue as xt,isPercentageStyleValue as Fo}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{debounce as Vt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isEqual as Ke}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isEqual.js";import{throttle as Mo}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";import{isObject as Oo}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
1
+ import{Plugin as y,Command as v}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as lo,WidgetToolbarRepository as Ue,toWidgetEditable as pt,isWidget as io,toWidget as so}from"../../../../../@ckeditor_ckeditor5-widget@46.1.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{Collection as Ct,first as Le,getLocalizedArrowKeyCodeDirection as ro,DomEmitterMixin as ao,global as ie,Rect as se,toUnit as co,CKEditorError as je,KeystrokeHandler as ge,FocusTracker as be}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconTable as Ge,IconTableColumn as uo,IconTableRow as ho,IconTableMergeCell as mo,IconCaption as go,IconTableCellProperties as bo,IconTableProperties as fo,IconCheck as wt,IconCancel as Tt,IconObjectInlineRight as po,IconObjectCenter as Co,IconObjectInlineLeft as wo,IconAlignBottom as To,IconAlignMiddle as _o,IconAlignTop as yo,IconAlignJustify as Ao,IconAlignRight as vo,IconAlignCenter as So,IconAlignLeft as Ro}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{createDropdown as te,MenuBarMenuView as Io,SwitchButtonView as xo,addListToDropdown as We,ButtonView as P,ContextualBalloon as re,normalizeColorOptions as ae,getLocalizedColorOptions as ce,clickOutsideHandler as _t,SplitButtonView as Vo,View as F,addKeyboardHandlingForGrid as ko,UIModel as yt,ViewCollection as Be,FocusCycler as Ne,FormHeaderView as At,FormRowView as R,submitHandler as vt,LabelView as L,LabeledFieldView as I,createLabeledDropdown as St,createLabeledInputText as D,ToolbarView as Te,BalloonPanelView as N,InputTextView as Po,ColorSelectorView as Eo}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ClipboardMarkersUtils as Ce,ClipboardPipeline as $e}from"../../../../../@ckeditor_ckeditor5-clipboard@46.1.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{enableViewPlaceholder as Lo,ModelElement as Wo,addBorderStylesRules as Rt,addPaddingStylesRules as Bo,addBackgroundStylesRules as It,DomEventObserver as No,isColorStyleValue as Do,isLengthStyleValue as xt,isPercentageStyleValue as Fo}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{debounce as Vt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isEqual as Ke}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isEqual.js";import{throttle as Mo}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";import{isObject as Oo}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */function De(i,e){const{modelAttribute:t,styleName:o,attributeName:n,attributeType:l,viewElement:s,defaultValue:r,shouldUpcast:a=()=>!0,reduceBoxSides:c=!1}=e;i.for("upcast").attributeToAttribute({view:{name:s,styles:{[o]:/[\s\S]+/}},model:{key:t,value:(d,u,h)=>{if(!a(d))return;const g=k(r,"",h),m=d.getNormalizedStyle(o),b=c?ne(m):m;if(g!==b)return b;u.consumable.consume(d,{styles:o})}}}),n&&i.for("upcast").attributeToAttribute({view:{name:s,attributes:{[n]:/.+/}},model:{key:t,value:(d,u,h)=>{if(d.name=="figure"||d.hasStyle(o)||d.name=="table"&&d.parent.name=="figure"&&d.parent.hasStyle(o))return;const g=k(r,"",h);let m=d.getAttribute(n);if(m&&l=="length"&&!m.endsWith("px")&&(m+="px"),g!==m)return m;u.consumable.consume(d,{attributes:n})}}})}function _e(i,e,t,o){i.for("upcast").add(n=>n.on("element:"+e,(l,s,r)=>{if(!s.modelRange)return;const a=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter(b=>s.viewItem.hasStyle(b));if(!a.length)return;const c={styles:a};if(!r.consumable.test(s.viewItem,c))return;const d=[...s.modelRange.getItems({shallow:!0})].pop(),u=d.findAncestor("table",{includeSelf:!0});let h=o;u&&u.getAttribute("tableType")=="layout"&&(h={style:"none",color:"",width:""}),r.consumable.consume(s.viewItem,c);const g={style:s.viewItem.getNormalizedStyle("border-style"),color:s.viewItem.getNormalizedStyle("border-color"),width:s.viewItem.getNormalizedStyle("border-width")},m={style:ne(g.style),color:ne(g.color),width:ne(g.width)};m.style!==h.style&&r.writer.setAttribute(t.style,m.style,d),m.color!==h.color&&r.writer.setAttribute(t.color,m.color,d),m.width!==h.width&&r.writer.setAttribute(t.width,m.width,d)}))}function $(i,e){const{modelElement:t,modelAttribute:o,styleName:n}=e;i.for("downcast").attributeToAttribute({model:{name:t,key:o},view:l=>({key:"style",value:{[n]:l}})})}function oe(i,e){const{modelAttribute:t,styleName:o}=e;i.for("downcast").add(n=>n.on(`attribute:${t}:table`,(l,s,r)=>{const{item:a,attributeNewValue:c}=s,{mapper:d,writer:u}=r;if(!r.consumable.consume(s.item,l.name))return;const h=[...d.toViewElement(a).getChildren()].find(g=>g.is("element","table"));c?u.setStyle(o,c,h):u.removeStyle(o,h)}))}function k(i,e,t){const o=t.modelRange&&Le(t.modelRange.getItems({shallow:!0})),n=o&&o.is("element")&&o.findAncestor("table",{includeSelf:!0});return n&&n.getAttribute("tableType")==="layout"?e:i}function ne(i){if(!i)return;const e=["top","right","bottom","left"];if(!e.every(l=>i[l]))return i;const o=i.top;return e.every(l=>i[l]===o)?o:i}function _(i,e,t,o,n=1){e!=null&&n!==void 0&&n!==null&&e>n?o.setAttribute(i,e,t):o.removeAttribute(i,t)}function M(i,e,t={}){const o=i.createElement("tableCell",t);return i.insertElement("paragraph",o),i.insert(o,e),o}function ye(i,e){const t=e.parent.parent,o=parseInt(t.getAttribute("headingColumns")||"0"),{column:n}=i.getCellLocation(e);return!!o&&n<o}function le(i,e,t){const{modelAttribute:o}=t;i.extend("tableCell",{allowAttributes:[o]}),i.setAttributeProperties(o,{isFormatting:!0}),De(e,{viewElement:/^(td|th)$/,...t}),$(e,{modelElement:"tableCell",...t})}function W(i){const e=i.getSelectedElement();return e&&e.is("element","table")?e:i.getFirstPosition().findAncestor("table")}function zo(){return i=>{i.on("element:figure",(e,t,o)=>{if(!o.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const n=jo(t.viewItem);if(!n||!o.consumable.test(n,{name:!0}))return;o.consumable.consume(t.viewItem,{name:!0,classes:"table"});const l=o.convertItem(n,t.modelCursor),s=Le(l.modelRange.getItems());if(!s){o.consumable.revert(t.viewItem,{name:!0,classes:"table"});return}o.convertChildren(t.viewItem,o.writer.createPositionAt(s,"end")),o.updateConversionResult(s,t)})}}function Ho(){return i=>{i.on("element:table",(e,t,o)=>{const n=t.viewItem;if(!o.consumable.test(n,{name:!0}))return;const{rows:l,headingRows:s,headingColumns:r}=Go(n),a={};r&&(a.headingColumns=r),s&&(a.headingRows=s);const c=o.writer.createElement("table",a);if(o.safeInsert(c,t.modelCursor)){if(o.consumable.consume(n,{name:!0}),l.forEach(d=>o.convertItem(d,o.writer.createPositionAt(c,"end"))),o.convertChildren(n,o.writer.createPositionAt(c,"end")),c.isEmpty){const d=o.writer.createElement("tableRow");o.writer.insert(d,o.writer.createPositionAt(c,"end")),M(o.writer,o.writer.createPositionAt(d,"end"))}o.updateConversionResult(c,t)}})}}function Uo(){return i=>{i.on("element:tr",(e,t)=>{t.viewItem.isEmpty&&t.modelCursor.index==0&&e.stop()},{priority:"high"})}}function qe(i){return e=>{e.on(`element:${i}`,(t,o,{writer:n})=>{if(!o.modelRange)return;const l=o.modelRange.start.nodeAfter,s=n.createPositionAt(l,0);if(o.viewItem.isEmpty){n.insertElement("paragraph",s);return}const r=Array.from(l.getChildren());if(r.every(a=>a.is("element","$marker"))){const a=n.createElement("paragraph");n.insert(a,n.createPositionAt(l,0));for(const c of r)n.move(n.createRangeOn(c),n.createPositionAt(a,"end"))}},{priority:"low"})}}function jo(i){for(const e of i.getChildren())if(e.is("element","table"))return e}function Go(i){let e=0,t;const o=[],n=[];let l;for(const s of Array.from(i.getChildren())){if(s.name!=="tbody"&&s.name!=="thead"&&s.name!=="tfoot")continue;s.name==="thead"&&!l&&(l=s);const r=Array.from(s.getChildren()).filter(c=>c.is("element","tr"));let a=null;for(const c of r){const d=Array.from(c.getChildren()).filter(u=>u.is("element","td")||u.is("element","th"));if(l&&s===l||s.name==="tbody"&&d.length>0&&(a===null||d.length===a)&&d.every(u=>u.is("element","th")))e++,o.push(c);else{n.push(c);const u=$o(c);(!t||u<t)&&(t=u)}a=Math.max(a||0,d.length)}}return{headingRows:e,headingColumns:t||0,rows:[...o,...n]}}function $o(i){let e=0,t=0;const o=Array.from(i.getChildren()).filter(n=>n.name==="th"||n.name==="td");for(;t<o.length&&o[t].name==="th";){const n=o[t],l=parseInt(n.getAttribute("colspan")||"1");e=e+l,t++}return e}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as k,Command as z}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as y,ObservableMixin as V,env as E,count as Y,isInsideSurrogatePair as J,isInsideCombinedSymbol as X,isInsideEmojiSequence as Z,EventInfo as ee}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{_tryFixingModelRange as $,BubblingEventInfo as D,ViewDocumentDomEventData as S,Observer as W,MouseObserver as te,TouchObserver as ne,ModelLiveRange as ie,FocusObserver as se}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{escapeRegExp as oe}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";import{debounce as re}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
1
+ import{Plugin as k,Command as z}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as y,ObservableMixin as V,env as E,count as Y,isInsideSurrogatePair as J,isInsideCombinedSymbol as X,isInsideEmojiSequence as Z,EventInfo as ee}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{_tryFixingModelRange as $,BubblingEventInfo as D,ViewDocumentDomEventData as S,Observer as W,MouseObserver as te,TouchObserver as ne,ModelLiveRange as ie,FocusObserver as se}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{escapeRegExp as oe}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";import{debounce as re}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  *//**
@@ -1,4 +1,4 @@
1
- import{getEnvKeystrokeText as Y,uid as Q,env as A,delay as Lt,createElement as x,KeystrokeHandler as E,FocusTracker as b,toUnit as te,global as d,Rect as T,DomEmitterMixin as ie,ObservableMixin as se,Collection as pe,isIterable as xe,CKEditorError as v,getOptimalPosition as me,logWarning as C,EmitterMixin as Ze,getVisualViewportOffset as K,isVisible as O,isNode as Je,priorities as Ft,isText as At,ResizeObserver as et,toArray as oe,first as Dt,parseBase64EncodedObject as tt,isRange as St}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Plugin as we,ContextPlugin as Mt}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconAccessibility as Ee,IconCancel as it,IconDropdownArrow as ne,IconDragIndicator as Nt,IconPilcrow as Wt,IconThreeVerticalDots as be,IconText as Gt,IconPlus as Rt,IconParagraph as Ht,IconImportExport as zt,IconBold as Ut,IconAlignLeft as $t,IconCheck as st,IconPreviousArrow as Kt,IconNextArrow as jt,IconColorPalette as Xt,IconEraser as qt,IconProjectLogo as Yt,IconColorTileCheck as Qt}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import Ie from"../../../../../color-parse@2.0.2/node_modules/color-parse/index.js";import ot from"../../../../../color-convert@3.1.0/node_modules/color-convert/index.js";import{HexBase as Zt}from"../../../../../vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js";import"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{assignIn as Jt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{isObject as Z}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{cloneDeep as ge}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{debounce as fe}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isElement as _e}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{cloneDeepWith as ei}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{throttle as ti}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
1
+ import{getEnvKeystrokeText as Y,uid as Q,env as A,delay as Lt,createElement as x,KeystrokeHandler as E,FocusTracker as b,toUnit as te,global as d,Rect as T,DomEmitterMixin as ie,ObservableMixin as se,Collection as pe,isIterable as xe,CKEditorError as v,getOptimalPosition as me,logWarning as C,EmitterMixin as Ze,getVisualViewportOffset as K,isVisible as O,isNode as Je,priorities as Ft,isText as At,ResizeObserver as et,toArray as oe,first as Dt,parseBase64EncodedObject as tt,isRange as St}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Plugin as we,ContextPlugin as Mt}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconAccessibility as Ee,IconCancel as it,IconDropdownArrow as ne,IconDragIndicator as Nt,IconPilcrow as Wt,IconThreeVerticalDots as be,IconText as Gt,IconPlus as Rt,IconParagraph as Ht,IconImportExport as zt,IconBold as Ut,IconAlignLeft as $t,IconCheck as st,IconPreviousArrow as Kt,IconNextArrow as jt,IconColorPalette as Xt,IconEraser as qt,IconProjectLogo as Yt,IconColorTileCheck as Qt}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import Ie from"../../../../../color-parse@2.0.2/node_modules/color-parse/index.js";import ot from"../../../../../color-convert@3.1.0/node_modules/color-convert/index.js";import{HexBase as Zt}from"../../../../../vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js";import"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{assignIn as Jt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/assignIn.js";import{isObject as Z}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{cloneDeep as ge}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeep.js";import{debounce as fe}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isElement as _e}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{cloneDeepWith as ei}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{throttle as ti}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class B extends pe{_parentElement;constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(t,i,o)=>{this._renderViewIntoCollectionParent(i,o)}),this.on("remove",(t,i)=>{i.element&&this._parentElement&&i.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!ii(e))throw new v("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const i of this)for(const o of e)i.delegate(o).to(t);this.on("add",(i,o)=>{for(const n of e)o.delegate(n).to(t)}),this.on("remove",(i,o)=>{for(const n of e)o.stopDelegating(n,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}remove(e){return super.remove(e)}}function ii(s){return s.every(e=>typeof e=="string")}const si="http://www.w3.org/1999/xhtml";class V extends Ze(){ns;tag;text;attributes;children;eventListeners;_isRendered;_revertData;constructor(e){super(),Object.assign(this,Pe(Oe(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData=Fe(),this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new v("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){function*e(t){if(t.children)for(const i of t.children)J(i)?yield i:ke(i)&&(yield*e(i))}yield*e(this)}static bind(e,t){return{to(i,o){return new oi({eventNameOrFunction:i,attribute:i,observable:e,emitter:t,callback:o})},if(i,o,n){return new nt({observable:e,emitter:t,attribute:i,valueIfTrue:o,callback:n})}}}static extend(e,t){if(e._isRendered)throw new v("template-extend-render",[this,e]);ct(e,Pe(Oe(t)))}_renderNode(e){let t;if(e.node?t=this.tag&&this.text:t=this.tag?this.text:!this.text,t)throw new v("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||si,this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),j(this.text)?this._bindToObservable({schema:this.text,updater:ri(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,i=e.revertData;for(const o in this.attributes){const n=t.getAttribute(o),r=this.attributes[o];i&&(i.attributes[o]=n);const a=Le(r)?r[0].ns:null;if(j(r)){const l=Le(r)?r[0].value:r;i&&Ae(o)&&l.unshift(n),this._bindToObservable({schema:l,updater:li(t,o,a),data:e})}else if(o=="style"&&typeof r[0]!="string")this._renderStyleAttribute(r[0],e);else{i&&n&&Ae(o)&&r.unshift(n);const l=r.map(c=>c&&(c.value||c)).reduce((c,u)=>c.concat(u),[]).reduce(at,"");M(l)||t.setAttributeNS(a,o,l)}}}_renderStyleAttribute(e,t){const i=t.node;for(const o in e){const n=e[o];j(n)?this._bindToObservable({schema:[n],updater:ai(i,o),data:t}):i.style[o]=n}}_renderElementChildren(e){const t=e.node,i=e.intoFragment?document.createDocumentFragment():t,o=e.isApplying;let n=0;for(const r of this.children)if(Te(r)){if(!o){r.setParent(t);for(const a of r)i.appendChild(a.element)}}else if(J(r))o||(r.isRendered||r.render(),i.appendChild(r.element));else if(Je(r))i.appendChild(r);else if(o){const a=e.revertData,l=Fe();a.children.push(l),r._renderNode({intoFragment:!1,node:i.childNodes[n++],isApplying:!0,revertData:l})}else i.appendChild(r.render());e.intoFragment&&t.appendChild(i)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const i=this.eventListeners[t].map(o=>{const[n,r]=t.split("@");return o.activateDomEventListener(n,r,e)});e.revertData&&e.revertData.bindings.push(i)}}_bindToObservable({schema:e,updater:t,data:i}){const o=i.revertData;rt(e,t,i);const n=e.filter(r=>!M(r)).filter(r=>r.observable).map(r=>r.activateAttributeListener(e,t,i));o&&o.bindings.push(n)}_revertTemplateFromNode(e,t){for(const o of t.bindings)for(const n of o)n();if(t.text){e.textContent=t.text;return}const i=e;for(const o in t.attributes){const n=t.attributes[o];n===null?i.removeAttribute(o):i.setAttribute(o,n)}for(let o=0;o<t.children.length;++o)this._revertTemplateFromNode(i.childNodes[o],t.children[o])}}class H{attribute;observable;emitter;callback;constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,i){const o=()=>rt(e,t,i);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,o),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,o)}}}class oi extends H{eventNameOrFunction;constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,i){const o=(n,r)=>{(!t||r.target.matches(t))&&(typeof this.eventNameOrFunction=="function"?this.eventNameOrFunction(r):this.observable.fire(this.eventNameOrFunction,r))};return this.emitter.listenTo(i.node,e,o),()=>{this.emitter.stopListening(i.node,e,o)}}}class nt extends H{valueIfTrue;constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){const t=super.getValue(e);return M(t)?!1:this.valueIfTrue||!0}}function j(s){return s?(s.value&&(s=s.value),Array.isArray(s)?s.some(j):s instanceof H):!1}function ni(s,e){return s.map(t=>t instanceof H?t.getValue(e):t)}function rt(s,e,{node:t}){const i=ni(s,t);let o;s.length==1&&s[0]instanceof nt?o=i[0]:o=i.reduce(at,""),M(o)?e.remove():e.set(o)}function ri(s){return{set(e){s.textContent=e},remove(){s.textContent=""}}}function li(s,e,t){return{set(i){s.setAttributeNS(t,e,i)},remove(){s.removeAttributeNS(t,e)}}}function ai(s,e){return{set(t){s.style[e]=t},remove(){s.style[e]=null}}}function Oe(s){return ei(s,t=>{if(t&&(t instanceof H||ke(t)||J(t)||Te(t)))return t})}function Pe(s){if(typeof s=="string"?s=ui(s):s.text&&di(s),s.on&&(s.eventListeners=hi(s.on),delete s.on),!s.text){s.attributes&&ci(s.attributes);const e=[];if(s.children)if(Te(s.children))e.push(s.children);else for(const t of s.children)ke(t)||J(t)||Je(t)?e.push(t):e.push(new V(t));s.children=e}return s}function ci(s){for(const e in s)s[e].value&&(s[e].value=oe(s[e].value)),lt(s,e)}function hi(s){for(const e in s)lt(s,e);return s}function ui(s){return{text:[s]}}function di(s){s.text=oe(s.text)}function lt(s,e){s[e]=oe(s[e])}function at(s,e){return M(e)?s:M(s)?e:`${s} ${e}`}function Be(s,e){for(const t in e)s[t]?s[t].push(...e[t]):s[t]=e[t]}function ct(s,e){if(e.attributes&&(s.attributes||(s.attributes={}),Be(s.attributes,e.attributes)),e.eventListeners&&(s.eventListeners||(s.eventListeners={}),Be(s.eventListeners,e.eventListeners)),e.text&&s.text.push(...e.text),e.children&&e.children.length){if(s.children.length!=e.children.length)throw new v("ui-template-extend-children-mismatch",s);let t=0;for(const i of e.children)ct(s.children[t++],i)}}function M(s){return!s&&s!==0}function J(s){return s instanceof h}function ke(s){return s instanceof V}function Te(s){return s instanceof B}function Le(s){return Z(s[0])&&s[0].ns}function Fe(){return{children:[],bindings:[],attributes:{}}}function Ae(s){return s=="class"||s=="style"}class h extends ie(se()){element;isRendered;locale;t;template;_viewCollections;_unboundChildren;_bindTemplate;constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new pe,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,i)=>{i.locale=e,i.t=e&&e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=V.bind(this,this)}createCollection(e){const t=new B(e);return this._viewCollections.add(t),t}registerChild(e){xe(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){xe(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new V(e)}extendTemplate(e){V.extend(this.template,e)}render(){if(this.isRendered)throw new v("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}const De={POLITE:"polite",ASSERTIVE:"assertive"};class fi{editor;view;constructor(e){this.editor=e,e.once("ready",()=>{for(const t of Object.values(De))this.announce("",t)})}announce(e,t=De.POLITE){const i=this.editor;if(!i.ui.view)return;this.view||(this.view=new pi(i.locale),i.ui.view.body.add(this.view));const{politeness:o,isUnsafeHTML:n}=typeof t=="string"?{politeness:t}:t;let r=this.view.regionViews.find(a=>a.politeness===o);r||(r=new mi(i,o),this.view.regionViews.add(r)),r.announce({announcement:e,isUnsafeHTML:n})}}class pi extends h{regionViews;constructor(e){super(e),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class mi extends h{politeness;_domConverter;_pruneAnnouncementsInterval;constructor(e,t){super(e.locale),this.setTemplate({tag:"div",attributes:{"aria-live":t,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),e.on("destroy",()=>{this._pruneAnnouncementsInterval!==null&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)}),this.politeness=t,this._domConverter=e.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval(()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()},5e3)}announce({announcement:e,isUnsafeHTML:t}){if(!e.trim().length)return;const i=document.createElement("li");t?this._domConverter.setContentOf(i,e):i.innerText=e,this._listElement.appendChild(i)}get _listElement(){return this.element.querySelector("ul")}}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformOperationSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as p,IconRedo as f}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
1
+ import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformOperationSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as p,IconRedo as f}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class g extends _{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,o)=>{o[1]={...o[1]};const s=o[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,o)=>{o[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,o={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,o){const s=this.editor.model,i=s.document,n=[],d=t.map(r=>r.getTransformedByOperations(o)),h=d.flat();for(const r of d){const l=r.filter(c=>c.root!=i.graveyard).filter(c=>!C(c,h));l.length&&(k(l),n.push(l[0]))}n.length&&s.change(r=>{r.setSelection(n,{backward:e})})}_undo(t,e){const o=this.editor.model,s=o.document;this._createdBatches.add(e);const i=t.operations.slice().filter(n=>n.isDocumentOperation);i.reverse();for(const n of i){const d=n.baseVersion+1,h=Array.from(s.history.getOperations(d)),l=B([n.getReversed()],h,{useRelations:!0,document:this.editor.model.document,forceWeakRemove:!0}).operationsA;for(let c of l){const m=c.affectedSelectable;m&&!o.canEditAt(m)&&(c=new b(c.baseVersion)),e.addOperation(c),o.applyOperation(c),s.history.setOperationAsUndone(n,c)}}}}function k(a){a.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<a.length;t++){const o=a[t-1].getJoined(a[t],!0);o&&(t--,a.splice(t,2,o))}}function C(a,t){return t.some(e=>e!==a&&e.containsRange(a,!0))}class T extends g{execute(t=null){const e=t?this._stack.findIndex(i=>i.batch==t):this._stack.length-1,o=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const i=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,i)}),this.fire("revert",o.batch,s),this.refresh()}}class U extends g{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(s);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)}),this.refresh()}}class O extends u{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t;this._undoCommand=new T(t),this._redoCommand=new U(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(o,s)=>{const i=s[0];if(!i.isDocumentOperation)return;const n=i.batch,d=this._redoCommand.createdBatches.has(n),h=this._undoCommand.createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(d?this._undoCommand.addBatch(n):h||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(o,s,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class w extends u{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,o=t.t,s=e.uiLanguageDirection=="ltr"?p:f,i=e.uiLanguageDirection=="ltr"?f:p;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",i)}_addButtonsToFactory(t,e,o,s){const i=this.editor;i.ui.componentFactory.add(t,()=>{const n=this._createButton(y,t,e,o,s);return n.set({tooltip:!0}),n}),i.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(R,t,e,o,s))}_createButton(t,e,o,s,i){const n=this.editor,d=n.locale,h=n.commands.get(e),r=new t(d);return r.set({label:o,icon:i,keystroke:s}),r.bind("isEnabled").to(h,"isEnabled"),this.listenTo(r,"execute",()=>{n.execute(e),n.editing.view.focus()}),r}}class L extends u{static get requires(){return[O,w]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}export{U as RedoCommand,L as Undo,T as UndoCommand,O as UndoEditing,g as UndoRedoBaseCommand,w as UndoUI};
@@ -1,4 +1,4 @@
1
- import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as u,logWarning as c,ObservableMixin as p,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
1
+ import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as u,logWarning as c,ObservableMixin as p,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class _ extends p(){total;_reader;_data;constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((r,s)=>{t.onload=()=>{const a=t.result;this._data=a,r(a)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class n extends h{loaders=new u;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[o]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return c("filerepository-no-upload-adapter"),null;const t=new l(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(r=>{this._loadersMap.set(r,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let r=0;for(const s of this.loaders)r+=s.uploaded;this.uploaded=r}),t.on("change:uploadTotal",()=>{let r=0;for(const s of this.loaders)s.uploadTotal&&(r+=s.uploadTotal);this.uploadTotal=r}),t}destroyLoader(e){const t=e instanceof l?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((r,s)=>{r===t&&this._loadersMap.delete(s)})}_updatePendingAction(){const e=this.editor.plugins.get(o);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,r=s=>`${t("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=e.add(r(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",r)}}else e.remove(this._pendingAction),this._pendingAction=null}}class l extends p(){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=g(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new _,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,s)=>s?r/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new d("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if(this.status!=="reading")throw this.status;return this.status="idle",e}).catch(e=>{throw e==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:e)})}upload(){if(this.status!="idle")throw new d("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{throw this.status==="aborted"?"aborted":(this.status="error",e)})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?e=="reading"?this._reader.abort():e=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((r,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then(a=>{t.isFulfilled=!0,r(a)}).catch(a=>{t.isFulfilled=!0,s(a)})}),t}}class b extends h{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}static get isOfficialPlugin(){return!0}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new f(e)}}let f=class{loader;reader;constructor(e){this.loader=e}upload(){return new Promise((e,t)=>{const r=this.reader=new window.FileReader;r.addEventListener("load",()=>{e({default:r.result})}),r.addEventListener("error",s=>{t(s)}),r.addEventListener("abort",()=>{t()}),this.loader.file.then(s=>{r.readAsDataURL(s)})})}abort(){this.reader.abort()}};export{b as Base64UploadAdapter,_ as FileReader,n as FileRepository};
@@ -21,7 +21,7 @@ import{isObject as Ot}from"../../../../../es-toolkit@1.39.5/node_modules/es-tool
21
21
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
22
22
  */const ne="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class d extends Error{context;data;constructor(t,n,i,s){super(ie(t,i,s)),this.name="CKEditorError",this.context=n,this.data=i,s&&(this.stack=s.stack)}is(t){return t==="CKEditorError"}static rethrowUnexpectedError(t,n){throw t.is&&t.is("CKEditorError")?t:new d("unexpected-error",n,void 0,t)}}function un(e,t){console.warn(...At(e,t))}function dn(e,t){console.error(...At(e,t))}function It(e){return`
23
23
  Read more: ${ne}#error-${e}`}function ie(e,t,n){const i=new WeakSet,o=t?` ${JSON.stringify(t,(a,c)=>{if(typeof c=="object"&&c!==null){if(i.has(c))return`[object ${c.constructor.name}]`;i.add(c)}return c})}`:"",r=It(e),l=n?`
24
- Original error: ${n.name}: ${n.message}`:"";return e+o+r+l}function At(e,t){const n=It(e);return t?[e,t,n]:[e,n]}const se="46.1.0",hn=new Date(2025,8,10);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=se;const A=Symbol("listeningTo"),G=Symbol("emitterId"),E=Symbol("delegations"),oe=I(Object);function I(e){if(!e)return oe;class t extends e{on(i,s,o){this.listenTo(this,i,s,o)}once(i,s,o){let r=!1;const l=(a,...c)=>{r||(r=!0,a.off(),s.call(this,a,...c))};this.listenTo(this,i,l,o)}off(i,s){this.stopListening(this,i,s)}listenTo(i,s,o,r={}){let l,a;this[A]||(this[A]={});const c=this[A];O(i)||Ct(i);const f=O(i);(l=c[f])||(l=c[f]={emitter:i,callbacks:{}}),(a=l.callbacks[s])||(a=l.callbacks[s]=[]),a.push(o),fe(this,i,s,o,r)}stopListening(i,s,o){const r=this[A];let l=i&&O(i);const a=r&&l?r[l]:void 0,c=a&&s?a.callbacks[s]:void 0;if(!(!r||i&&!a||s&&!c))if(o)W(this,i,s,o),c.indexOf(o)!==-1&&(c.length===1?delete a.callbacks[s]:W(this,i,s,o));else if(c){for(;o=c.pop();)W(this,i,s,o);delete a.callbacks[s]}else if(a){for(s in a.callbacks)this.stopListening(i,s);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[A]}}fire(i,...s){try{const o=i instanceof H?i:new H(this,i),r=o.name;let l=ae(this,r);if(o.path.push(this),l){l=l.slice();for(let c=0;c<l.length;c++){const f=l[c].callback;if(f.call(this,o,...s),o.off.called&&(delete o.off.called,this._removeEventListener(r,f)),o.stop.called)break}}const a=this[E];if(a){const c=a.get(r),f=a.get("*");c&&lt(c,o,s),f&&lt(f,o,s)}return o.return}catch(o){/* istanbul ignore next -- @preserve */d.rethrowUnexpectedError(o,this)}}delegate(...i){return{to:(s,o)=>{this[E]||(this[E]=new Map),i.forEach(r=>{const l=this[E].get(r);l?l.set(s,o):this[E].set(r,new Map([[s,o]]))})}}}stopDelegating(i,s){if(this[E])if(!i)this[E].clear();else if(!s)this[E].delete(i);else{const o=this[E].get(i);o&&o.delete(s)}}_addEventListener(i,s,o){ce(this,i);const r=q(this,i),l=U.get(o.priority),a={callback:s,priority:l};for(const c of r)ee(c,a)}_removeEventListener(i,s){const o=q(this,i);for(const r of o)for(let l=0;l<r.length;l++)r[l].callback==s&&(r.splice(l,1),l--)}}return t}function re(e,t){const n=e[A];return n&&n[t]?n[t].emitter:null}function Ct(e,t){e[G]||(e[G]=t||X())}function O(e){return e[G]}function Lt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function le(){return{callbacks:[],childEvents:[]}}function ce(e,t){const n=Lt(e);if(n[t])return;let i=t,s=null;const o=[];for(;i!==""&&!n[i];)n[i]=le(),o.push(n[i]),s&&n[i].childEvents.push(s),s=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of o)r.callbacks=n[i].callbacks.slice();n[i].childEvents.push(s)}}function q(e,t){const n=Lt(e)[t];if(!n)return[];let i=[n.callbacks];for(let s=0;s<n.childEvents.length;s++){const o=q(e,n.childEvents[s]);i=i.concat(o)}return i}function ae(e,t){if(!e._events)return null;let n=t;do{const i=e._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const s=n.lastIndexOf(":");n=s>-1?n.substring(0,s):""}while(n);return null}function lt(e,t,n){for(let[i,s]of e){s?typeof s=="function"&&(s=s(t.name)):s=t.name;const o=new H(t.source,s);o.path=[...t.path],i.fire(o,...n)}}function fe(e,t,n,i,s){t._addEventListener?t._addEventListener(n,i,s):e._addEventListener.call(t,n,i,s)}function W(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}const S=Symbol("observableProperties"),R=Symbol("boundObservables"),V=Symbol("boundProperties"),x=Symbol("decoratedMethods"),ct=Symbol("decoratedOriginal"),ue=kt(I());function kt(e){if(!e)return ue;class t extends e{set(i,s){if(Ot(i)){Object.keys(i).forEach(r=>{this.set(r,i[r])},this);return}K(this);const o=this[S];if(i in this&&!o.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return o.get(i)},set(r){const l=o.get(i);let a=this.fire(`set:${i}`,i,r,l);a===void 0&&(a=r),(l!==a||!o.has(i))&&(o.set(i,a),this.fire(`change:${i}`,i,a,l))}}),this[i]=s}bind(...i){if(!i.length||!at(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);K(this);const s=this[V];i.forEach(r=>{if(s.has(r))throw new d("observable-bind-rebind",this)});const o=new Map;return i.forEach(r=>{const l={property:r,to:[]};s.set(r,l),o.set(r,l)}),{to:de,toMany:he,_observable:this,_bindProperties:i,_to:[],_bindings:o}}unbind(...i){if(!this[S])return;const s=this[V],o=this[R];if(i.length){if(!at(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(r=>{const l=s.get(r);l&&(l.to.forEach(([a,c])=>{const f=o.get(a),u=f[c];u.delete(l),u.size||delete f[c],Object.keys(f).length||(o.delete(a),this.stopListening(a,"change"))}),s.delete(r))})}else o.forEach((r,l)=>{this.stopListening(l,"change")}),o.clear(),s.clear()}decorate(i){K(this);const s=this[i];if(!s)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(o,r)=>{o.return=s.apply(this,r)}),this[i]=function(...o){return this.fire(i,o)},this[i][ct]=s,this[x]||(this[x]=[]),this[x].push(i)}stopListening(i,s,o){if(!i&&this[x]){for(const r of this[x])this[r]=this[r][ct];delete this[x]}super.stopListening(i,s,o)}[S];[x];[V];[R]}return t}function K(e){e[S]||(Object.defineProperty(e,S,{value:new Map}),Object.defineProperty(e,R,{value:new Map}),Object.defineProperty(e,V,{value:new Map}))}function de(...e){const t=ge(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&t.callback)throw new d("observable-bind-to-extra-callback",this);t.to.forEach(s=>{if(s.properties.length&&s.properties.length!==i)throw new d("observable-bind-to-properties-length",this);s.properties.length||(s.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),_e(this._observable,this._to),be(this),this._bindProperties.forEach(s=>{Mt(this._observable,s)})}function he(e,t,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...pe(e,t),n)}function pe(e,t){const n=e.map(i=>[i,t]);return Array.prototype.concat.apply([],n)}function at(e){return e.every(t=>typeof t=="string")}function ge(...e){if(!e.length)throw new d("observable-bind-to-parse-error",null);const t={to:[]};let n;return typeof e[e.length-1]=="function"&&(t.callback=e.pop()),e.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},t.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),t}function me(e,t,n,i){const s=e[R],o=s.get(n),r=o||{};r[i]||(r[i]=new Set),r[i].add(t),o||s.set(n,r)}function be(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(s=>{t=s.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([s.observable,t]),me(e._observable,n,s.observable,t)})})}function Mt(e,t){const i=e[V].get(t);let s;i.callback?s=i.callback.apply(e,i.to.map(o=>o[0][o[1]])):(s=i.to[0],s=s[0][s[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=s:e.set(t,s)}function _e(e,t){t.forEach(n=>{const i=e[R];let s;i.get(n.observable)||e.listenTo(n.observable,"change",(o,r)=>{s=i.get(n.observable)[r],s&&s.forEach(l=>{Mt(e,l.property)})})})}/**
24
+ Original error: ${n.name}: ${n.message}`:"";return e+o+r+l}function At(e,t){const n=It(e);return t?[e,t,n]:[e,n]}const se="46.1.1",hn=new Date(2025,8,15);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=se;const A=Symbol("listeningTo"),G=Symbol("emitterId"),E=Symbol("delegations"),oe=I(Object);function I(e){if(!e)return oe;class t extends e{on(i,s,o){this.listenTo(this,i,s,o)}once(i,s,o){let r=!1;const l=(a,...c)=>{r||(r=!0,a.off(),s.call(this,a,...c))};this.listenTo(this,i,l,o)}off(i,s){this.stopListening(this,i,s)}listenTo(i,s,o,r={}){let l,a;this[A]||(this[A]={});const c=this[A];O(i)||Ct(i);const f=O(i);(l=c[f])||(l=c[f]={emitter:i,callbacks:{}}),(a=l.callbacks[s])||(a=l.callbacks[s]=[]),a.push(o),fe(this,i,s,o,r)}stopListening(i,s,o){const r=this[A];let l=i&&O(i);const a=r&&l?r[l]:void 0,c=a&&s?a.callbacks[s]:void 0;if(!(!r||i&&!a||s&&!c))if(o)W(this,i,s,o),c.indexOf(o)!==-1&&(c.length===1?delete a.callbacks[s]:W(this,i,s,o));else if(c){for(;o=c.pop();)W(this,i,s,o);delete a.callbacks[s]}else if(a){for(s in a.callbacks)this.stopListening(i,s);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[A]}}fire(i,...s){try{const o=i instanceof H?i:new H(this,i),r=o.name;let l=ae(this,r);if(o.path.push(this),l){l=l.slice();for(let c=0;c<l.length;c++){const f=l[c].callback;if(f.call(this,o,...s),o.off.called&&(delete o.off.called,this._removeEventListener(r,f)),o.stop.called)break}}const a=this[E];if(a){const c=a.get(r),f=a.get("*");c&&lt(c,o,s),f&&lt(f,o,s)}return o.return}catch(o){/* istanbul ignore next -- @preserve */d.rethrowUnexpectedError(o,this)}}delegate(...i){return{to:(s,o)=>{this[E]||(this[E]=new Map),i.forEach(r=>{const l=this[E].get(r);l?l.set(s,o):this[E].set(r,new Map([[s,o]]))})}}}stopDelegating(i,s){if(this[E])if(!i)this[E].clear();else if(!s)this[E].delete(i);else{const o=this[E].get(i);o&&o.delete(s)}}_addEventListener(i,s,o){ce(this,i);const r=q(this,i),l=U.get(o.priority),a={callback:s,priority:l};for(const c of r)ee(c,a)}_removeEventListener(i,s){const o=q(this,i);for(const r of o)for(let l=0;l<r.length;l++)r[l].callback==s&&(r.splice(l,1),l--)}}return t}function re(e,t){const n=e[A];return n&&n[t]?n[t].emitter:null}function Ct(e,t){e[G]||(e[G]=t||X())}function O(e){return e[G]}function Lt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function le(){return{callbacks:[],childEvents:[]}}function ce(e,t){const n=Lt(e);if(n[t])return;let i=t,s=null;const o=[];for(;i!==""&&!n[i];)n[i]=le(),o.push(n[i]),s&&n[i].childEvents.push(s),s=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of o)r.callbacks=n[i].callbacks.slice();n[i].childEvents.push(s)}}function q(e,t){const n=Lt(e)[t];if(!n)return[];let i=[n.callbacks];for(let s=0;s<n.childEvents.length;s++){const o=q(e,n.childEvents[s]);i=i.concat(o)}return i}function ae(e,t){if(!e._events)return null;let n=t;do{const i=e._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const s=n.lastIndexOf(":");n=s>-1?n.substring(0,s):""}while(n);return null}function lt(e,t,n){for(let[i,s]of e){s?typeof s=="function"&&(s=s(t.name)):s=t.name;const o=new H(t.source,s);o.path=[...t.path],i.fire(o,...n)}}function fe(e,t,n,i,s){t._addEventListener?t._addEventListener(n,i,s):e._addEventListener.call(t,n,i,s)}function W(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}const S=Symbol("observableProperties"),R=Symbol("boundObservables"),V=Symbol("boundProperties"),x=Symbol("decoratedMethods"),ct=Symbol("decoratedOriginal"),ue=kt(I());function kt(e){if(!e)return ue;class t extends e{set(i,s){if(Ot(i)){Object.keys(i).forEach(r=>{this.set(r,i[r])},this);return}K(this);const o=this[S];if(i in this&&!o.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return o.get(i)},set(r){const l=o.get(i);let a=this.fire(`set:${i}`,i,r,l);a===void 0&&(a=r),(l!==a||!o.has(i))&&(o.set(i,a),this.fire(`change:${i}`,i,a,l))}}),this[i]=s}bind(...i){if(!i.length||!at(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);K(this);const s=this[V];i.forEach(r=>{if(s.has(r))throw new d("observable-bind-rebind",this)});const o=new Map;return i.forEach(r=>{const l={property:r,to:[]};s.set(r,l),o.set(r,l)}),{to:de,toMany:he,_observable:this,_bindProperties:i,_to:[],_bindings:o}}unbind(...i){if(!this[S])return;const s=this[V],o=this[R];if(i.length){if(!at(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(r=>{const l=s.get(r);l&&(l.to.forEach(([a,c])=>{const f=o.get(a),u=f[c];u.delete(l),u.size||delete f[c],Object.keys(f).length||(o.delete(a),this.stopListening(a,"change"))}),s.delete(r))})}else o.forEach((r,l)=>{this.stopListening(l,"change")}),o.clear(),s.clear()}decorate(i){K(this);const s=this[i];if(!s)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(o,r)=>{o.return=s.apply(this,r)}),this[i]=function(...o){return this.fire(i,o)},this[i][ct]=s,this[x]||(this[x]=[]),this[x].push(i)}stopListening(i,s,o){if(!i&&this[x]){for(const r of this[x])this[r]=this[r][ct];delete this[x]}super.stopListening(i,s,o)}[S];[x];[V];[R]}return t}function K(e){e[S]||(Object.defineProperty(e,S,{value:new Map}),Object.defineProperty(e,R,{value:new Map}),Object.defineProperty(e,V,{value:new Map}))}function de(...e){const t=ge(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&t.callback)throw new d("observable-bind-to-extra-callback",this);t.to.forEach(s=>{if(s.properties.length&&s.properties.length!==i)throw new d("observable-bind-to-properties-length",this);s.properties.length||(s.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),_e(this._observable,this._to),be(this),this._bindProperties.forEach(s=>{Mt(this._observable,s)})}function he(e,t,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...pe(e,t),n)}function pe(e,t){const n=e.map(i=>[i,t]);return Array.prototype.concat.apply([],n)}function at(e){return e.every(t=>typeof t=="string")}function ge(...e){if(!e.length)throw new d("observable-bind-to-parse-error",null);const t={to:[]};let n;return typeof e[e.length-1]=="function"&&(t.callback=e.pop()),e.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},t.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),t}function me(e,t,n,i){const s=e[R],o=s.get(n),r=o||{};r[i]||(r[i]=new Set),r[i].add(t),o||s.set(n,r)}function be(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(s=>{t=s.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([s.observable,t]),me(e._observable,n,s.observable,t)})})}function Mt(e,t){const i=e[V].get(t);let s;i.callback?s=i.callback.apply(e,i.to.map(o=>o[0][o[1]])):(s=i.to[0],s=s[0][s[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=s:e.set(t,s)}function _e(e,t){t.forEach(n=>{const i=e[R];let s;i.get(n.observable)||e.listenTo(n.observable,"change",(o,r)=>{s=i.get(n.observable)[r],s&&s.forEach(l=>{Mt(e,l.property)})})})}/**
25
25
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
26
26
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
27
27
  */class pn{_replacedElements;constructor(){this._replacedElements=[]}replace(t,n){this._replacedElements.push({element:t,newElement:n}),t.style.display="none",n&&t.parentNode.insertBefore(n,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:n})=>{t.style.display="",n&&n.remove()}),this._replacedElements=[]}}/**
@@ -1,4 +1,4 @@
1
- import{Plugin as E}from"../../../../../@ckeditor_ckeditor5-core@46.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{MouseObserver as H,PointerObserver as K,ModelTreeWalker as j}from"../../../../../@ckeditor_ckeditor5-engine@46.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Delete as D}from"../../../../../@ckeditor_ckeditor5-typing@46.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{keyCodes as S,env as T,getLocalizedArrowKeyCodeDirection as $,logWarning as U,CKEditorError as I,isForwardArrowKeyCode as q,getRangeFromMouseEvent as G,global as k,DomEmitterMixin as Y,toArray as O,Rect as b,ObservableMixin as F,compareArrays as X,EmitterMixin as J}from"../../../../../@ckeditor_ckeditor5-utils@46.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconReturnArrow as Q,IconDragHandle as Z}from"../../../../../@ckeditor_ckeditor5-icons@46.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ContextualBalloon as ee,ToolbarView as te,BalloonPanelView as ie,IconView as oe,Template as C,View as ne}from"../../../../../@ckeditor_ckeditor5-ui@46.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{Enter as se}from"../../../../../@ckeditor_ckeditor5-enter@46.1.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{throttle as re}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
1
+ import{Plugin as E}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{MouseObserver as H,PointerObserver as K,ModelTreeWalker as j}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Delete as D}from"../../../../../@ckeditor_ckeditor5-typing@46.1.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{keyCodes as S,env as T,getLocalizedArrowKeyCodeDirection as $,logWarning as U,CKEditorError as I,isForwardArrowKeyCode as q,getRangeFromMouseEvent as G,global as k,DomEmitterMixin as Y,toArray as O,Rect as b,ObservableMixin as F,compareArrays as X,EmitterMixin as J}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconReturnArrow as Q,IconDragHandle as Z}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ContextualBalloon as ee,ToolbarView as te,BalloonPanelView as ie,IconView as oe,Template as C,View as ne}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{Enter as se}from"../../../../../@ckeditor_ckeditor5-enter@46.1.1/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{throttle as re}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */class le extends J(){_stack=[];add(e,t){const i=this._stack,o=i[0];this._insertDescriptor(e);const n=i[0];o!==n&&!P(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}remove(e,t){const i=this._stack,o=i[0];this._removeDescriptor(e);const n=i[0];o!==n&&!P(o,n)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:n,writer:t})}_insertDescriptor(e){const t=this._stack,i=t.findIndex(n=>n.id===e.id);if(P(e,t[i]))return;i>-1&&t.splice(i,1);let o=0;for(;t[o]&&ce(t[o],e);)o++;t.splice(o,0,e)}_removeDescriptor(e){const t=this._stack,i=t.findIndex(o=>o.id===e);i>-1&&t.splice(i,1)}}function P(s,e){return s&&e&&s.priority==e.priority&&v(s.classes)==v(e.classes)}function ce(s,e){return s.priority>e.priority?!0:s.priority<e.priority?!1:v(s.classes)>v(e.classes)}function v(s){return Array.isArray(s)?s.sort().join(","):s}const ae="ck-widget",A="ck-widget_selected";function p(s){return s.is("element")?!!s.getCustomProperty("widget"):!1}function et(s,e,t={}){if(!s.is("containerElement"))throw new I("widget-to-widget-wrong-element-type",null,{element:s});return e.setAttribute("contenteditable","false",s),e.addClass(ae,s),e.setCustomProperty("widget",!0,s),s.getFillerOffset=pe,e.setCustomProperty("widgetLabel",[],s),t.label&&ue(s,t.label),t.hasSelectionHandle&&fe(s,e),N(s,e),s}function de(s,e,t){if(e.classes&&t.addClass(O(e.classes),s),e.attributes)for(const i in e.attributes)t.setAttribute(i,e.attributes[i],s)}function he(s,e,t){if(e.classes&&t.removeClass(O(e.classes),s),e.attributes)for(const i in e.attributes)t.removeAttribute(i,s)}function N(s,e,t=de,i=he){const o=new le;o.on("change:top",(l,c)=>{c.oldDescriptor&&i(s,c.oldDescriptor,c.writer),c.newDescriptor&&t(s,c.newDescriptor,c.writer)});const n=(l,c,a)=>o.add(c,a),r=(l,c,a)=>o.remove(c,a);e.setCustomProperty("addHighlight",n,s),e.setCustomProperty("removeHighlight",r,s)}function ue(s,e){s.getCustomProperty("widgetLabel").push(e)}function ge(s){return s.getCustomProperty("widgetLabel").reduce((t,i)=>typeof i=="function"?t?t+". "+i():i():t?t+". "+i:i,"")}function tt(s,e,t={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],s),t.withAriaRole!==!1&&e.setAttribute("role","textbox",s),s.isReadOnly||e.setAttribute("tabindex","-1",s),t.label&&e.setAttribute("aria-label",t.label,s),e.setAttribute("contenteditable",s.isReadOnly?"false":"true",s),s.on("change:isReadOnly",(i,o,n)=>{e.setAttribute("contenteditable",n?"false":"true",s),n?e.removeAttribute("tabindex",s):e.setAttribute("tabindex","-1",s)}),s.on("change:isFocused",(i,o,n)=>{n?e.addClass("ck-editor__nested-editable_focused",s):e.removeClass("ck-editor__nested-editable_focused",s)}),N(s,e),s}function it(s,e){const t=s.getSelectedElement();if(t){const i=w(s);if(i)return e.createRange(e.createPositionAt(t,i))}return e.schema.findOptimalInsertionRange(s)}function pe(){return null}function fe(s,e){const t=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(i){const o=this.toDomElement(i),n=new oe;return n.set("content",Z),n.render(),o.appendChild(n.element),o});e.insert(e.createPositionAt(s,0),t),e.addClass(["ck-widget_with-selection-handle"],s)}function me(s){const e=l=>{const{width:c,paddingLeft:a,paddingRight:h}=l.ownerDocument.defaultView.getComputedStyle(l);return parseFloat(c)-(parseFloat(a)||0)-(parseFloat(h)||0)},t=s.parentElement;if(!t)return 0;let i=e(t);const o=5;let n=0,r=t;for(;isNaN(i);){if(r=r.parentElement,++n>o)return 0;i=e(r)}return i}function we(s,e=new b(s)){const t=me(s);return t?e.width/t*100:0}const m="widget-type-around";function _(s,e,t){return!!s&&p(s)&&!t.isInline(e)}function _e(s){return s.closest(".ck-widget__type-around__button")}function be(s){return s.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function ye(s,e){const t=s.closest(".ck-widget");return e.mapDomToView(t)}function w(s){return s.getAttribute(m)}const M=["before","after"],ve=new DOMParser().parseFromString(Q,"image/svg+xml").firstChild,R="ck-widget__type-around_disabled";class Ee extends E{_currentFakeCaretModelElement=null;static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[se,D]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(i,o,n)=>{t.change(r=>{for(const l of t.document.roots)n?r.removeClass(R,l):r.addClass(R,l)}),n||e.model.change(r=>{r.removeSelectionAttribute(m)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const i=this.editor,o=i.editing.view,n=i.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);i.execute("insertParagraph",{position:i.model.createPositionAt(e,t),attributes:n}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(e,t,i,o){this.listenTo(e,t,(...n)=>{this.isEnabled&&i(...n)},o)}_insertParagraphAccordingToFakeCaretPosition(){const i=this.editor.model.document.selection,o=w(i);if(!o)return!1;const n=i.getSelectedElement();return this._insertParagraph(n,o),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,i=e.locale.t,o={before:i("Insert paragraph before block"),after:i("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(n,r,l)=>{const c=l.mapper.toViewElement(r.item);c&&_(c,r.item,t)&&(Pe(l.writer,o,c),c.getCustomProperty("widgetLabel").push(()=>this.isEnabled?i("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,i=t.document.selection,o=t.schema,n=e.editing.view;this._listenToIfEnabled(n.document,"arrowKey",(l,c)=>{this._handleArrowKeyPress(l,c)},{context:[p,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(l,c)=>{c.directChange&&e.model.change(a=>{a.removeSelectionAttribute(m)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const l=i.getSelectedElement();if(l){const c=e.editing.mapper.toViewElement(l);if(_(c,l,o))return}e.model.change(c=>{c.removeSelectionAttribute(m)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(l,c,a)=>{const h=a.writer;if(this._currentFakeCaretModelElement){const f=a.mapper.toViewElement(this._currentFakeCaretModelElement);f&&(h.removeClass(M.map(r),f),this._currentFakeCaretModelElement=null)}const d=c.selection.getSelectedElement();if(!d)return;const g=a.mapper.toViewElement(d);if(!_(g,d,o))return;const u=w(c.selection);u&&(h.addClass(r(u),g),this._currentFakeCaretModelElement=d)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(l,c,a)=>{a||e.model.change(h=>{h.removeSelectionAttribute(m)})});function r(l){return`ck-widget_type-around_show-fake-caret_${l}`}}_handleArrowKeyPress(e,t){const i=this.editor,o=i.model,n=o.document.selection,r=o.schema,l=i.editing.view,c=t.keyCode,a=q(c,i.locale.contentLanguageDirection),h=l.document.selection.getSelectedElement(),d=i.editing.mapper.toModelElement(h);let g;_(h,d,r)?g=this._handleArrowKeyPressOnSelectedWidget(a):n.isCollapsed?g=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):t.shiftKey||(g=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),g&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const i=this.editor.model,o=i.document.selection,n=w(o);return i.change(r=>{if(n){if(!(n===(e?"after":"before")))return r.removeSelectionAttribute(m),!0}else return r.setSelectionAttribute(m,e?"after":"before"),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,i=t.model,o=i.schema,n=t.plugins.get("Widget"),r=n._getObjectElementNextToSelection(e),l=t.editing.mapper.toViewElement(r);return _(l,r,o)?(i.change(c=>{n._setSelectionOverElement(r),c.setSelectionAttribute(m,e?"before":"after")}),!0):!1}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,i=t.model,o=i.schema,n=t.editing.mapper,r=i.document.selection,l=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter,c=n.toViewElement(l);return _(c,l,o)?(i.change(a=>{a.setSelection(l,"on"),a.setSelectionAttribute(m,e?"after":"before")}),!0):!1}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(i,o)=>{const n=_e(o.domTarget);if(!n)return;const r=be(n),l=ye(n,t.domConverter),c=e.editing.mapper.toModelElement(l);this._insertParagraph(c,r),o.preventDefault(),i.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(o,n)=>{if(o.eventPhase!="atTarget")return;const r=t.getSelectedElement(),l=e.editing.mapper.toViewElement(r),c=e.model.schema;let a;this._insertParagraphAccordingToFakeCaretPosition()?a=!0:_(l,r,c)&&(this._insertParagraph(r,n.isSoft?"before":"after"),a=!0),a&&(n.preventDefault(),o.stop())},{context:p})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(i,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=t.selection)},{priority:"high"}),T.isAndroid?this._listenToIfEnabled(t,"keydown",(i,o)=>{o.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"highest"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,i=e.model,o=i.schema;this._listenToIfEnabled(t.document,"delete",(n,r)=>{if(n.eventPhase!="atTarget")return;const l=w(i.document.selection);if(!l)return;const c=r.direction,a=i.document.selection.getSelectedElement(),h=l==="before",d=c=="forward";if(h===d)e.execute("delete",{selection:i.createSelection(a,"on")});else{const u=o.getNearestSelectionRange(i.createPositionAt(a,l),c);if(u)if(!u.isCollapsed)i.change(f=>{f.setSelection(u),e.execute(d?"deleteForward":"delete")});else{const f=i.createSelection(u.start);if(i.modifySelection(f,{direction:c}),!f.focus.isEqual(u.start))i.change(y=>{y.setSelection(u),e.execute(d?"deleteForward":"delete")});else{const y=Ce(o,u.start.parent);i.deleteContent(i.createSelection(y,"on"),{doNotAutoparagraph:!0})}}}r.preventDefault(),n.stop()},{context:p})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,i=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(o,[n,r])=>{if(r&&!r.is("documentSelection"))return;const l=w(i);if(l)return o.stop(),t.change(c=>{const a=i.getSelectedElement(),h=t.createPositionAt(a,l),d=c.createSelection(h),g=t.insertContent(n,d);return c.setSelection(d),g})},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(o,n)=>{const[,r,l={}]=n;if(r&&!r.is("documentSelection"))return;const c=w(i);c&&(l.findOptimalPosition=c,n[3]=l)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(o,[n])=>{if(n&&!n.is("documentSelection"))return;w(i)&&o.stop()},{priority:"high"})}}function Pe(s,e,t){const i=s.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(o){const n=this.toDomElement(o);return Se(n,e),Te(n),n});s.insert(s.createPositionAt(t,"end"),i)}function Se(s,e){for(const t of M){const i=new C({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${t}`],title:e[t],"aria-hidden":"true"},children:[s.ownerDocument.importNode(ve,!0)]});s.appendChild(i.render())}}function Te(s){const e=new C({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});s.appendChild(e.render())}function Ce(s,e){let t=e;for(const i of e.getAncestors({parentFirst:!0})){if(i.childCount>1||s.isLimit(i))break;t=i}return t}function ke(s){const e=s.model;return(t,i)=>{const o=i.keyCode==S.arrowup,n=i.keyCode==S.arrowdown,r=i.shiftKey,l=e.document.selection;if(!o&&!n)return;const c=n;if(r&&We(l,c))return;const a=Ae(s,l,c);if(a){if(a.isCollapsed){if(l.isCollapsed)return;if(r)return}(a.isCollapsed||Re(s,a,c))&&(e.change(h=>{const d=c?a.end:a.start;if(r){const g=e.createSelection(l.anchor);g.setFocus(d),h.setSelection(g)}else h.setSelection(d)}),t.stop(),i.preventDefault(),i.stopPropagation())}}}function Ae(s,e,t){const i=s.model;if(t){const o=e.isCollapsed?e.focus:e.getLastPosition(),n=W(i,o,"forward");if(!n)return null;const r=i.createRange(o,n),l=x(i.schema,r,"backward");return l?i.createRange(o,l):null}else{const o=e.isCollapsed?e.focus:e.getFirstPosition(),n=W(i,o,"backward");if(!n)return null;const r=i.createRange(n,o),l=x(i.schema,r,"forward");return l?i.createRange(l,o):null}}function W(s,e,t){const i=s.schema,o=s.createRangeIn(e.root),n=t=="forward"?"elementStart":"elementEnd";for(const{previousPosition:r,item:l,type:c}of o.getWalker({startPosition:e,direction:t})){if(i.isLimit(l)&&!i.isInline(l))return r;if(c==n&&i.isBlock(l))return null}return null}function x(s,e,t){const i=t=="backward"?e.end:e.start;if(s.checkChild(i,"$text"))return i;for(const{nextPosition:o}of e.getWalker({direction:t}))if(s.checkChild(o,"$text"))return o;return null}function Re(s,e,t){const i=s.model,o=s.view.domConverter;if(t){const a=i.createSelection(e.start);i.modifySelection(a),!a.focus.isAtEnd&&!e.start.isEqual(a.focus)&&(e=i.createRange(a.focus,e.end))}const n=s.mapper.toViewRange(e),r=o.viewRangeToDom(n),l=b.getDomRangeRects(r);let c;for(const a of l){if(c===void 0){c=Math.round(a.bottom);continue}if(Math.round(a.top)>=c)return!1;c=Math.max(c,Math.round(a.bottom))}return!0}function We(s,e){return!s.isCollapsed&&s.isBackward==e}class ot extends E{_previouslySelected=new Set;static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[Ee,D]}init(){const e=this.editor,t=e.editing.view,i=t.document,o=e.t;this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{const c=l.writer,a=r.selection;if(a.isCollapsed)return;const h=a.getSelectedElement();if(!h)return;const d=e.editing.mapper.toViewElement(h);p(d)&&l.consumable.consume(a,"selection")&&c.setSelection(c.createRangeOn(d),{fake:!0,label:ge(d)})}),this.editor.editing.downcastDispatcher.on("selection",(n,r,l)=>{this._clearPreviouslySelectedWidgets(l.writer);const c=l.writer,a=c.document.selection;let h=null;for(const d of a.getRanges())for(const g of d){const u=g.item;p(u)&&!Ve(u,h)&&(c.addClass(A,u),this._previouslySelected.add(u),h=u)}},{priority:"low"}),t.addObserver(H),t.addObserver(K),this.listenTo(i,"mousedown",(...n)=>this._onMousedown(...n)),this.listenTo(i,"pointerdown",(...n)=>this._onPointerdown(...n)),this.listenTo(i,"arrowKey",(...n)=>{this._handleSelectionChangeOnArrowKeyPress(...n)},{context:[p,"$text"]}),this.listenTo(i,"arrowKey",(...n)=>{this._preventDefaultOnArrowKeyPress(...n)},{context:"$root"}),this.listenTo(i,"arrowKey",ke(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",(n,r)=>{this._handleDelete(r.direction=="forward")&&(r.preventDefault(),n.stop())},{context:"$root"}),this.listenTo(i,"tab",(n,r)=>{n.eventPhase=="atTarget"&&(r.shiftKey||this._selectFirstNestedEditable()&&(r.preventDefault(),n.stop()))},{context:p,priority:"low"}),this.listenTo(i,"tab",(n,r)=>{r.shiftKey&&this._selectAncestorWidget()&&(r.preventDefault(),n.stop())},{priority:"low"}),this.listenTo(i,"keydown",(n,r)=>{r.keystroke==S.esc&&this._selectAncestorWidget()&&(r.preventDefault(),n.stop())},{priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:o("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:o("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:o("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:o("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:o("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:o("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const i=t.target;i&&t.domEvent.detail>=3&&this._selectBlockContent(i)&&t.preventDefault()}_onPointerdown(e,t){if(!t.domEvent.isPrimary)return;const i=this.editor,o=i.editing.view,n=o.document;let r=t.target;if(!r)return;if(!p(r)){const c=xe(r);if(!c)return;if(p(c))r=c;else{const a=ze(o,t);if(a&&p(a))r=a;else return}}(T.isAndroid||T.isiOS)&&t.preventDefault(),n.isFocused||o.focus();const l=i.editing.mapper.toModelElement(r);this._setSelectionOverElement(l)}_selectBlockContent(e){const t=this.editor,i=t.model,o=t.editing.mapper,n=i.schema,r=o.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),l=He(o.toModelElement(r),i.schema);return l?(i.change(c=>{const a=n.isLimit(l)?null:De(c.createPositionAfter(l),n),h=c.createPositionAt(l,0),d=a?c.createPositionAt(a,0):c.createPositionAt(l,"end");c.setSelection(c.createRange(h,d))}),!0):!1}_handleSelectionChangeOnArrowKeyPress(e,t){const i=t.keyCode,o=this.editor.model,n=o.schema,r=o.document.selection,l=r.getSelectedElement(),c=$(i,this.editor.locale.contentLanguageDirection),a=c=="down"||c=="right",h=c=="up"||c=="down";if(l&&n.isObject(l)){const g=a?r.getLastPosition():r.getFirstPosition(),u=n.getNearestSelectionRange(g,a?"forward":"backward");u&&(o.change(f=>{f.setSelection(u)}),t.preventDefault(),e.stop());return}if(!r.isCollapsed&&!t.shiftKey){const g=r.getFirstPosition(),u=r.getLastPosition(),f=g.nodeAfter,y=u.nodeBefore;(f&&n.isObject(f)||y&&n.isObject(y))&&(o.change(B=>{B.setSelection(a?u:g)}),t.preventDefault(),e.stop());return}if(!r.isCollapsed)return;const d=this._getObjectElementNextToSelection(a);if(d&&n.isObject(d)){if(n.isInline(d)&&h)return;this._setSelectionOverElement(d),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const i=this.editor.model,o=i.schema,n=i.document.selection.getSelectedElement();n&&o.isObject(n)&&(t.preventDefault(),e.stop())}_handleDelete(e){const i=this.editor.model.document.selection;if(!this.editor.model.canEditAt(i)||!i.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);if(o)return this.editor.model.change(n=>{let r=i.anchor.parent;for(;r.isEmpty;){const l=r;r=l.parent,n.remove(l)}this._setSelectionOverElement(o)}),!0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,i=t.schema,o=t.document.selection,n=t.createSelection(o);if(t.modifySelection(n,{direction:e?"forward":"backward"}),n.isEqual(o))return null;const r=e?n.focus.nodeBefore:n.focus.nodeAfter;return r&&i.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(A,t);this._previouslySelected.clear()}_selectFirstNestedEditable(){const e=this.editor,i=this.editor.editing.view.document;for(const o of i.selection.getFirstRange().getItems())if(o.is("editableElement")){const n=e.editing.mapper.toModelElement(o);/* istanbul ignore next -- @preserve */if(!n)continue;const r=e.model.createPositionAt(n,0),l=e.model.schema.getNearestSelectionRange(r,"forward");return e.model.change(c=>{c.setSelection(l)}),!0}return!1}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,o=e.editing.view.document.selection.getFirstPosition().parent,r=(o.is("$text")?o.parent:o).findAncestor(p);if(!r)return!1;const l=t.toModelElement(r);/* istanbul ignore next -- @preserve */return l?(e.model.change(c=>{c.setSelection(l,"on")}),!0):!1}}function xe(s){let e=s;for(;e;){if(e.is("editableElement")||p(e))return e;e=e.parent}return null}function ze(s,e){const t=G(e.domEvent);let i=null;if(t?i=s.domConverter.domRangeToView(t):i=s.createRange(s.createPositionAt(e.target,0)),!i)return null;const o=i.start;if(!o.parent)return null;let n=o.parent;return o.parent.is("editableElement")&&(o.isAtEnd&&o.nodeBefore?n=o.nodeBefore:o.isAtStart&&o.nodeAfter&&(n=o.nodeAfter)),n.is("$text")?n.parent:n}function Ve(s,e){return e?Array.from(s.getAncestors()).includes(e):!1}function He(s,e){for(const t of s.getAncestors({includeSelf:!0,parentFirst:!0})){if(e.checkChild(t,"$text"))return t;if(e.isLimit(t)&&!e.isObject(t))break}return null}function De(s,e){const t=new j({startPosition:s});for(const{item:i}of t){if(e.isLimit(i)||!i.is("element"))return null;if(e.checkChild(i,"$text"))return i}return null}class nt extends E{_toolbarDefinitions=new Map;_balloon;static get requires(){return[ee]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",i=>{Ie(e.editing.view.document.selection)&&i.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:i,getRelatedElement:o,balloonClassName:n="ck-toolbar-container",positions:r}){if(!i.length){U("widget-toolbar-no-items",{toolbarId:e});return}const l=this.editor,c=l.t,a=new te(l.locale);if(a.ariaLabel=t||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new I("widget-toolbar-duplicated",this,{toolbarId:e});const h={view:a,getRelatedElement:o,balloonClassName:n,itemsConfig:i,positions:r,initialized:!1};l.ui.addToolbar(a,{isContextual:!0,beforeFocus:()=>{const d=o(l.editing.view.document.selection);d&&this._showToolbar(h,d)},afterBlur:()=>{this._hideToolbar(h)}}),this._toolbarDefinitions.set(e,h)}_updateToolbarsVisibility(){let e=0,t=null,i=null;for(const o of this._toolbarDefinitions.values()){const n=o.getRelatedElement(this.editor.editing.view.document.selection);if(!this.isEnabled||!n)this._isToolbarInBalloon(o)&&this._hideToolbar(o);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(o)&&this._hideToolbar(o);else{const r=n.getAncestors().length;r>e&&(e=r,t=n,i=o)}}i&&this._showToolbar(i,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?z(this.editor,t,e.positions):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:L(this.editor,t,e.positions),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const i of this._toolbarDefinitions.values())if(this._isToolbarVisible(i)){const o=i.getRelatedElement(this.editor.editing.view.document.selection);z(this.editor,o,e.positions)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function z(s,e,t){const i=s.plugins.get("ContextualBalloon"),o=L(s,e,t);i.updatePosition(o)}function L(s,e,t){const i=s.editing.view,o=ie.defaultPositions;return{target:i.domConverter.mapViewToDom(e),positions:t||[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}function Ie(s){const e=s.getSelectedElement();return!!(e&&p(e))}class Oe extends F(){_referenceCoordinates;_options;_originalWidth;_originalHeight;_originalWidthPercents;_aspectRatio;constructor(e){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,i){const o=new b(t);this.activeHandlePosition=Me(e),this._referenceCoordinates=Fe(t,Le(this.activeHandlePosition)),this._originalWidth=o.width,this._originalHeight=o.height,this._aspectRatio=o.width/o.height;const n=i.style.width;n&&n.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(n):this._originalWidthPercents=we(i,o)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function Fe(s,e){const t=new b(s),i=e.split("-"),o={x:i[1]=="right"?t.right:t.left,y:i[0]=="bottom"?t.bottom:t.top};return o.x+=s.ownerDocument.defaultView.scrollX,o.y+=s.ownerDocument.defaultView.scrollY,o}function Ne(s){return`ck-widget__resizer__handle-${s}`}function Me(s){const e=["top-left","top-right","bottom-right","bottom-left"];for(const t of e)if(s.classList.contains(Ne(t)))return t}function Le(s){const e=s.split("-"),t={top:"bottom",bottom:"top",left:"right",right:"left"};return`${t[e[0]]}-${t[e[1]]}`}class Be extends ne{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",t=>t?`ck-orientation-${t}`:"")],style:{display:e.if("_isVisible","none",t=>!t)}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",(i,o)=>i!==null&&o!==null),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(i,o,n)=>e.unit==="px"?`${i}×${o}`:`${n}%`),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",(i,o,n)=>o<50||n<50?"above-center":i)}_dismiss(){this.unbind(),this._isVisible=!1}}class V extends F(){_state;_sizeView;_options;_viewResizerWrapper=null;_initialViewWidth;constructor(e){super(),this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(t,i)=>t&&i),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",t=>{!this.state.proposedWidth&&!this.state.proposedWidthPercents&&(this._cleanup(),t.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(t=>{t.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(t=>{t.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change(o=>{const n=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(r){const l=this.toDomElement(r);return e._appendHandles(l),e._appendSizeUI(l),l});o.insert(o.createPositionAt(t,"end"),n),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=n,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(e){this._state=new Oe(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change(a=>{const h=this._options.unit||"%",d=(h==="%"?t.widthPercents:t.width)+h;a.setStyle("width",d,this._options.viewElement)});const o=this._getHandleHost(),n=new b(o),r=Math.round(n.width),l=Math.round(n.height),c=new b(o);t.width=Math.round(c.width),t.height=Math.round(c.height),this.redraw(n),this.state.update({...t,handleHostWidth:r,handleHostHeight:l})}commit(){const e=this._options.unit||"%",t=(e==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(t)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!$e(t))return;const i=t.parentElement,o=this._getHandleHost(),n=this._viewResizerWrapper,r=[n.getStyle("width"),n.getStyle("height"),n.getStyle("left"),n.getStyle("top")];let l;if(i.isSameNode(o)){const c=e||new b(o);l=[c.width+"px",c.height+"px",void 0,void 0]}else l=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];X(r,l)!=="same"&&this._options.editor.editing.view.change(c=>{c.setStyle({width:l[0],height:l[1],left:l[2],top:l[3]},n)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){const t=this.state,i=je(e),o=this._options.isCentered?this._options.isCentered(this):!0,n={x:t._referenceCoordinates.x-(i.x+t.originalWidth),y:i.y-t.originalHeight-t._referenceCoordinates.y};o&&t.activeHandlePosition.endsWith("-right")&&(n.x=i.x-(t._referenceCoordinates.x+t.originalWidth)),o&&(n.x*=2);let r=Math.abs(t.originalWidth+n.x),l=Math.abs(t.originalHeight+n.y);return(r/t.aspectRatio>l?"width":"height")=="width"?l=r/t.aspectRatio:r=l*t.aspectRatio,{width:Math.round(r),height:Math.round(l),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*r*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const i of t)e.appendChild(new C({tag:"div",attributes:{class:`ck-widget__resizer__handle ${Ke(i)}`}}).render())}_appendSizeUI(e){this._sizeView=new Be,this._sizeView.render(),e.appendChild(this._sizeView.element)}}function Ke(s){return`ck-widget__resizer__handle-${s}`}function je(s){return{x:s.pageX,y:s.pageY}}function $e(s){return s&&s.ownerDocument&&s.ownerDocument.contains(s)}class st extends E{_resizers=new Map;_observer;_redrawSelectedResizerThrottled;static get pluginName(){return"WidgetResize"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.editing,t=k.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(H),this._observer=new(Y()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=re(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[o,n]of this._resizers)o.isAttached()||(this._resizers.delete(o),n.destroy())},{priority:"lowest"}),this._observer.listenTo(k.window,"resize",this._redrawSelectedResizerThrottled);const i=this.editor.editing.view.document.selection;i.on("change",()=>{const o=i.getSelectedElement(),n=this.getResizerByViewElement(o)||null;n?this.select(n):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new V(e),i=this.editor.plugins;if(t.attach(),i.has("WidgetToolbarRepository")){const r=i.get("WidgetToolbarRepository");t.on("begin",()=>{r.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{r.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{r.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);const n=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(n)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const i=t.domTarget;V.isResizeHandle(i)&&(this._activeResizer=this._getResizerByHandle(i)||null,this._activeResizer&&(this._activeResizer.begin(i),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}export{ae as WIDGET_CLASS_NAME,A as WIDGET_SELECTED_CLASS_NAME,ot as Widget,le as WidgetHighlightStack,st as WidgetResize,Oe as WidgetResizeState,V as WidgetResizer,nt as WidgetToolbarRepository,Ee as WidgetTypeAround,m as _WIDGET_TYPE_AROUND_SELECTION_ATTRIBUTE,Be as _WidgetSizeView,_e as _getClosestWidgetTypeAroundDomButton,ye as _getClosestWidgetViewElement,be as _getWidgetTypeAroundButtonPosition,w as _getWidgetTypeAroundFakeCaretPosition,me as calculateResizeHostAncestorWidth,we as calculateResizeHostPercentageWidth,it as findOptimalInsertionRange,ge as getLabel,_ as isTypeAroundWidget,p as isWidget,N as setHighlightHandling,ue as setLabel,et as toWidget,tt as toWidgetEditable,ke as verticalWidgetNavigationHandler};
@@ -0,0 +1 @@
1
+ import{__exports as a}from"../../../../../../../../_virtual/helpers.js";import M from"../../../../../../../../_virtual/___vite-browser-external.js";import{__require as j}from"../common/logging.js";var g;function $(){return g?a:(g=1,(function(i){var m={},_=a&&a.__createBinding||(Object.create?(function(n,e,t,o){o===void 0&&(o=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,o,r)}):(function(n,e,t,o){o===void 0&&(o=t),n[o]=e[t]})),v=a&&a.__setModuleDefault||(Object.create?(function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}):function(n,e){n.default=e}),h=a&&a.__importStar||(function(){var n=function(e){return n=Object.getOwnPropertyNames||function(t){var o=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[o.length]=r);return o},n(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o=n(e),r=0;r<o.length;r++)o[r]!=="default"&&_(t,e,o[r]);return v(t,e),t}})();Object.defineProperty(i,"__esModule",{value:!0}),i.validateNodeId=void 0,i.isComponent=f,i.parseNodeIds=b,i.parseFileKey=O,i.findComponentsInDocument=P,i.figmaUrlOfComponent=w,i.normalizePropName=C,i.exitWithFeedbackMessage=p;const y=h(M),l=j(),N=/^I?[0-9]+:[0-9]+(;[0-9]+:[0-9]+)*$/;function f(n){return n.type==="COMPONENT"||n.type==="COMPONENT_SET"}const I=function(n){const e=n.replace("-",":");return N.test(e)||(l.logger.error(`Invalid figma node URL: the provided node-id "${n}" is invalid`),p(1)),e};i.validateNodeId=I;function b(n){const e=[];for(const t of n){const r=y.parse(t,!0).query["node-id"];if(r&&typeof r=="string"){const u=(0,i.validateNodeId)(r);e.push(u)}else if(Array.isArray(r))for(const u of r){const d=(0,i.validateNodeId)(u);e.push(d)}}return e}function O(n){return n.match(/(?:file|design)\/([a-zA-Z0-9]+)/)?.[1]}function P(n,e){const t=[],o=n.children;for(const r of o){if(r.type!=="CANVAS")continue;const u=r.id,d=r.name,s=r.children;for(;s.length>0;){const c=s.pop();if(e&&e.includes(c.id)){if(!f(c))throw new Error("Specified node is not a component or a component set");t.push({...c,pageId:u,pageName:d})}!e&&f(c)&&t.push({...c,pageId:u,pageName:d}),Array.isArray(c.children)&&!f(c)&&s.push(...c.children)}}return t}function w(n,e){const t=m.FILE_URL||"https://figma.com/file/",r=n.id.replace(":","-").replace(":","-");return`${t}${e}/?node-id=${r}`}function C(n){return n.replace(/#[0-9:]*/g,"")}function p(n){l.logger.info("Please raise any bugs or feedback at https://github.com/figma/code-connect/issues."),process.exit(n)}})(a),a)}export{$ as __require};
@@ -0,0 +1 @@
1
+ import{__exports as t}from"../../../../../../../../_virtual/external.js";import{__require as l}from"../connect/external_types.js";var i;function y(){return i?t:(i=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.textContent=e.className=e.nestedProps=e.string=e.enum=e.boolean=void 0,e.instanceType=r,e.instance=r,e.connect=a,e.children=c;const n=l();Object.defineProperty(e,"boolean",{enumerable:!0,get:function(){return n.booleanType}}),Object.defineProperty(e,"enum",{enumerable:!0,get:function(){return n.enumType}}),Object.defineProperty(e,"string",{enumerable:!0,get:function(){return n.stringType}}),Object.defineProperty(e,"nestedProps",{enumerable:!0,get:function(){return n.nestedPropsType}}),Object.defineProperty(e,"className",{enumerable:!0,get:function(){return n.classNameType}}),Object.defineProperty(e,"textContent",{enumerable:!0,get:function(){return n.textContentType}});function a(u,o){}function c(u){return{__tag:"HtmlTemplateString"}}function r(u){return{__tag:"HtmlTemplateString"}}})(t),t)}export{y as __require};
@@ -0,0 +1 @@
1
+ import{__exports as t}from"../../../../../../../../_virtual/index_html2.js";import{__require as p}from"./external.js";import{__require as g}from"./template_literal.js";import{__require as v}from"../connect/index_common.js";var o;function j(){if(o)return t;o=1;var l=t&&t.__createBinding||(Object.create?(function(u,e,i,r){r===void 0&&(r=i);var n=Object.getOwnPropertyDescriptor(e,i);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(u,r,n)}):(function(u,e,i,r){r===void 0&&(r=i),u[r]=e[i]})),_=t&&t.__setModuleDefault||(Object.create?(function(u,e){Object.defineProperty(u,"default",{enumerable:!0,value:e})}):function(u,e){u.default=e}),f=t&&t.__importStar||(function(){var u=function(e){return u=Object.getOwnPropertyNames||function(i){var r=[];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[r.length]=n);return r},u(e)};return function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var r=u(e),n=0;n<r.length;n++)r[n]!=="default"&&l(i,e,r[n]);return _(i,e),i}})();Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.client=t.figma=void 0;const c=f(p()),m=g(),s=(0,v().getClient)();t.client=s;const a=c;t.figma=a;const d=m.html;return t.html=d,t.default=a,t}export{j as __require};
@@ -0,0 +1 @@
1
+ import{__exports as a}from"../../../../../../../../_virtual/external3.js";import{__require as s}from"../../../../../../react@19.2.0/node_modules/react/index.js";import{__require as p}from"../connect/external_types.js";var f;function P(){return f?a:(f=1,(function(t){var o=a&&a.__createBinding||(Object.create?(function(i,e,r,n){n===void 0&&(n=r);var u=Object.getOwnPropertyDescriptor(e,r);(!u||("get"in u?!e.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(i,n,u)}):(function(i,e,r,n){n===void 0&&(n=r),i[n]=e[r]})),l=a&&a.__setModuleDefault||(Object.create?(function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}):function(i,e){i.default=e}),_=a&&a.__importStar||(function(){var i=function(e){return i=Object.getOwnPropertyNames||function(r){var n=[];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[n.length]=u);return n},i(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=i(e),u=0;u<n.length;u++)n[u]!=="default"&&o(r,e,n[u]);return l(r,e),r}})();Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.textContent=t.className=t.nestedProps=t.string=t.enum=t.boolean=void 0,t.connect=d,t.children=y;const b=_(s()),c=p();Object.defineProperty(t,"boolean",{enumerable:!0,get:function(){return c.booleanType}}),Object.defineProperty(t,"enum",{enumerable:!0,get:function(){return c.enumType}}),Object.defineProperty(t,"string",{enumerable:!0,get:function(){return c.stringType}}),Object.defineProperty(t,"nestedProps",{enumerable:!0,get:function(){return c.nestedPropsType}}),Object.defineProperty(t,"className",{enumerable:!0,get:function(){return c.classNameType}}),Object.defineProperty(t,"textContent",{enumerable:!0,get:function(){return c.textContentType}}),Object.defineProperty(t,"instance",{enumerable:!0,get:function(){return c.instanceType}});function d(i,e,r){}function y(i){return b.createElement("div")}})(a),a)}export{P as __require};
@@ -0,0 +1 @@
1
+ import{__exports as n}from"../../../../../../../../_virtual/index_react2.js";import{__require as s}from"./external.js";import{__require as p}from"../connect/index_common.js";var o;function O(){if(o)return n;o=1;var c=n&&n.__createBinding||(Object.create?(function(u,e,i,r){r===void 0&&(r=i);var t=Object.getOwnPropertyDescriptor(e,i);(!t||("get"in t?!e.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(u,r,t)}):(function(u,e,i,r){r===void 0&&(r=i),u[r]=e[i]})),f=n&&n.__setModuleDefault||(Object.create?(function(u,e){Object.defineProperty(u,"default",{enumerable:!0,value:e})}):function(u,e){u.default=e}),_=n&&n.__importStar||(function(){var u=function(e){return u=Object.getOwnPropertyNames||function(i){var r=[];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(r[r.length]=t);return r},u(e)};return function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var r=u(e),t=0;t<r.length;t++)r[t]!=="default"&&c(i,e,r[t]);return f(i,e),i}})();Object.defineProperty(n,"__esModule",{value:!0}),n.client=n.figma=void 0;const l=_(s()),d=(0,p().getClient)();n.client=d;const a=l;return n.figma=a,n.default=a,n}export{O as __require};
@@ -0,0 +1 @@
1
+ const e="1.3.7",o={version:e};export{o as default,e as version};