@cloudhal/cli 0.7.3 → 0.8.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 (122) hide show
  1. package/dist/assets/starters/blog/package.json +4 -4
  2. package/dist/assets/studio/assets/{AccountPage-ROeqJul5.js → AccountPage-B1NbMSs-.js} +2 -2
  3. package/dist/assets/studio/assets/{ActivityPage-DbhfOjMJ.js → ActivityPage-Pl6DC5Lm.js} +2 -2
  4. package/dist/assets/studio/assets/{AgentModes-CUkY-BYH.js → AgentModes-MCbUo46B.js} +2 -2
  5. package/dist/assets/studio/assets/{AgentsPage-Bzk3TTIt.js → AgentsPage-DZZPh1t_.js} +2 -2
  6. package/dist/assets/studio/assets/{AnalyticsPage-DO2yYJkV.js → AnalyticsPage-zQw9C-Fh.js} +2 -2
  7. package/dist/assets/studio/assets/{ApprovalsPage-BzdVUeoO.js → ApprovalsPage-gqB5peuS.js} +3 -3
  8. package/dist/assets/studio/assets/{ArticleEditorPage-D0Edo0mQ.js → ArticleEditorPage-FKOHu4_I.js} +3 -3
  9. package/dist/assets/studio/assets/{ArticlesPage-CirFIbrl.js → ArticlesPage-SeX7h5V6.js} +3 -3
  10. package/dist/assets/studio/assets/{AssetPage-CP3ms2io.js → AssetPage-CIHYBgJj.js} +2 -2
  11. package/dist/assets/studio/assets/{Audit-B6kVsxrU.js → Audit-PkoyJwEM.js} +2 -2
  12. package/dist/assets/studio/assets/{AuditBadges-COZ6Ebte.js → AuditBadges-C7wGyOfv.js} +2 -2
  13. package/dist/assets/studio/assets/{AutomationsPage-GDDD3JRY.js → AutomationsPage-DCVOSdW9.js} +2 -2
  14. package/dist/assets/studio/assets/{BlockPropsForm-BeRE-Yon.js → BlockPropsForm-BVcfDp_9.js} +2 -2
  15. package/dist/assets/studio/assets/{BlockSection-Wvvre5Pw.js → BlockSection-C-YKQ-Od.js} +2 -2
  16. package/dist/assets/studio/assets/{BodyChanges-Dwo9_j2X.js → BodyChanges-DYZw7pXV.js} +2 -2
  17. package/dist/assets/studio/assets/{BodyEditor-BlC-6OL1.js → BodyEditor-CRMM43LY.js} +3 -3
  18. package/dist/assets/studio/assets/{BuildPage-DFxvakWR.js → BuildPage-DXLeYZyg.js} +2 -2
  19. package/dist/assets/studio/assets/{CollectionSettingsPage-CKhd8uPU.js → CollectionSettingsPage-78DtngER.js} +3 -3
  20. package/dist/assets/studio/assets/{CollectionsPage-uk2rv30S.js → CollectionsPage-Bet2YJlQ.js} +2 -2
  21. package/dist/assets/studio/assets/{CommandMenu-y_iH0duK.js → CommandMenu-DzEQqSzS.js} +2 -2
  22. package/dist/assets/studio/assets/{CommentThreadControls-DeDu2Ccx.js → CommentThreadControls-DDVP-b2q.js} +2 -2
  23. package/dist/assets/studio/assets/{CommentThreadPage-DMx5y11b.js → CommentThreadPage-DGKbDL8Q.js} +2 -2
  24. package/dist/assets/studio/assets/{CommenterPage-BOk1Yb6a.js → CommenterPage-D69sgGUR.js} +2 -2
  25. package/dist/assets/studio/assets/{Comments-DLXujCGs.js → Comments-B17M2WcB.js} +2 -2
  26. package/dist/assets/studio/assets/{CommentsPage-CtELfrV7.js → CommentsPage-DoMRpZAq.js} +2 -2
  27. package/dist/assets/studio/assets/{ConfirmDialog-2VdVVAQn.js → ConfirmDialog-C6dLXuCP.js} +2 -2
  28. package/dist/assets/studio/assets/{ContentListQuery-C2HCPHhI.js → ContentListQuery-CIAx2mZH.js} +2 -2
  29. package/dist/assets/studio/assets/{Crumbs-BFdxt-c-.js → Crumbs-CaScDbUD.js} +2 -2
  30. package/dist/assets/studio/assets/{DateTimeField-DLEU1gtK.js → DateTimeField-CppdZAhv.js} +2 -2
  31. package/dist/assets/studio/assets/{EditorPreview-D0sgHQTX.js → EditorPreview-Dku2S893.js} +2 -2
  32. package/dist/assets/studio/assets/{Elevation-okhdl9aB.js → Elevation-56GZDGfT.js} +2 -2
  33. package/dist/assets/studio/assets/{ElevationRequest-B42rHMjp.js → ElevationRequest-gnJzFxdk.js} +2 -2
  34. package/dist/assets/studio/assets/{EndedBadge-B_hEjDXo.js → EndedBadge-DZjVag24.js} +2 -2
  35. package/dist/assets/studio/assets/EntryFieldsCard-43BVqpeS.js +2 -0
  36. package/dist/assets/studio/assets/FieldsSection-Dgl10Mks.js +2 -0
  37. package/dist/assets/studio/assets/{ForgotPasswordPage-sz-DHcaa.js → ForgotPasswordPage-DmBvUZ6e.js} +2 -2
  38. package/dist/assets/studio/assets/{Gating-BPA-X9jC.js → Gating-B-6hzJ1t.js} +2 -2
  39. package/dist/assets/studio/assets/{GovernanceDialog-D_cMoPla.js → GovernanceDialog-DVSPfr5p.js} +2 -2
  40. package/dist/assets/studio/assets/{InvitePage-BeUWdJt-.js → InvitePage-Bvs4D5s3.js} +2 -2
  41. package/dist/assets/studio/assets/ListFieldColumns-CRuAr30p.js +2 -0
  42. package/dist/assets/studio/assets/{ListToolbar-B41hIo1I.js → ListToolbar-CAUq24Ub.js} +2 -2
  43. package/dist/assets/studio/assets/ListingSections-D8xsAQ2U.js +2 -0
  44. package/dist/assets/studio/assets/{LoginPage-DonRCagr.js → LoginPage-DyGrlrLL.js} +2 -2
  45. package/dist/assets/studio/assets/{MediaPage-D1-_SEvl.js → MediaPage-DJumCCSI.js} +2 -2
  46. package/dist/assets/studio/assets/{MediaPicker-DI6AJSca.js → MediaPicker-DB1gupOV.js} +2 -2
  47. package/dist/assets/studio/assets/{MediaUpload-VjNO_O-v.js → MediaUpload-Biiy1_iG.js} +2 -2
  48. package/dist/assets/studio/assets/{MembersPage-CHF1cl2r.js → MembersPage-CU5Hj_en.js} +2 -2
  49. package/dist/assets/studio/assets/{Menus-Dx0aYG6M.js → Menus-DoymllgX.js} +2 -2
  50. package/dist/assets/studio/assets/{NavigationPage-Do7fSLSG.js → NavigationPage-DdfSyy8i.js} +2 -2
  51. package/dist/assets/studio/assets/{NewSiteDialog-BjcOqG76.js → NewSiteDialog-DmsXvRDO.js} +2 -2
  52. package/dist/assets/studio/assets/{NotificationItems-0jBXuZ8G.js → NotificationItems-xM2BeU-F.js} +2 -2
  53. package/dist/assets/studio/assets/{OAuthConsentPage-C-wLQO-v.js → OAuthConsentPage-KYRHnJEm.js} +2 -2
  54. package/dist/assets/studio/assets/{PageEditorPage-D93FjJfg.js → PageEditorPage-C_X4H4Lr.js} +3 -3
  55. package/dist/assets/studio/assets/{PagesPage-BosEVwol.js → PagesPage-C9su_kRv.js} +2 -2
  56. package/dist/assets/studio/assets/{PreviewPanel-DeQgZIwr.js → PreviewPanel-O8iCXy9D.js} +2 -2
  57. package/dist/assets/studio/assets/{ProjectPage-BGU0LVLG.js → ProjectPage-3qIyyAmr.js} +2 -2
  58. package/dist/assets/studio/assets/{Readers-CaMHOfdt.js → Readers-CnHqV1mc.js} +3 -3
  59. package/dist/assets/studio/assets/{RedirectDialog-DQK_pspz.js → RedirectDialog-CxSk9tLY.js} +2 -2
  60. package/dist/assets/studio/assets/{RedirectsPage-DO6a0O-n.js → RedirectsPage-Bp5MmS_Z.js} +2 -2
  61. package/dist/assets/studio/assets/{RelativeTime-ey5Dd-2Y.js → RelativeTime-DGrKJ9bo.js} +2 -2
  62. package/dist/assets/studio/assets/{ReleaseApproval-qNAwwaXg.js → ReleaseApproval-zFFEtbeK.js} +2 -2
  63. package/dist/assets/studio/assets/{ReleasePage-DPLcrGia.js → ReleasePage-DrhTsmAy.js} +2 -2
  64. package/dist/assets/studio/assets/{ReleaseParts-CtUgh2xT.js → ReleaseParts-LL6stlrq.js} +2 -2
  65. package/dist/assets/studio/assets/{ResetPasswordPage-B3Hs76o7.js → ResetPasswordPage-DkZ0_O32.js} +2 -2
  66. package/dist/assets/studio/assets/{RowMenu-DGL_yYHS.js → RowMenu-BOwuokr7.js} +2 -2
  67. package/dist/assets/studio/assets/{ScheduleCard-Cp8rNOqN.js → ScheduleCard-D_vgmyRI.js} +2 -2
  68. package/dist/assets/studio/assets/{ScheduleDialog-rwre7wSj.js → ScheduleDialog-C2_yRK4g.js} +2 -2
  69. package/dist/assets/studio/assets/{ScheduleHistoryPage-DnhH8MtW.js → ScheduleHistoryPage-CUDBnu5U.js} +2 -2
  70. package/dist/assets/studio/assets/{ScheduleStatusBadge-Bw7PyJeJ.js → ScheduleStatusBadge-AqImE179.js} +2 -2
  71. package/dist/assets/studio/assets/{Schedules-CfRuBi9v.js → Schedules-D0WPjWE4.js} +2 -2
  72. package/dist/assets/studio/assets/{SchedulesPage-B7FE0WFv.js → SchedulesPage-DeoJOPZ1.js} +2 -2
  73. package/dist/assets/studio/assets/{Seo-EBPbnHAx.js → Seo-DAfoTzyW.js} +2 -2
  74. package/dist/assets/studio/assets/{SeoPreview-D2gpvidq.js → SeoPreview-C8SHvDGT.js} +2 -2
  75. package/dist/assets/studio/assets/{Settings-W4UcyxA7.js → Settings-DN68iZfX.js} +2 -2
  76. package/dist/assets/studio/assets/{SiteOverviewPage-C-8wHzkx.js → SiteOverviewPage-BjZ8zKVl.js} +2 -2
  77. package/dist/assets/studio/assets/{SiteSettingsPage-CchJtqwn.js → SiteSettingsPage-BXKkeW0R.js} +2 -2
  78. package/dist/assets/studio/assets/{SitesPage-D_QqVUu1.js → SitesPage-DnCY-Tt5.js} +2 -2
  79. package/dist/assets/studio/assets/{SkillsPage-430LkG1i.js → SkillsPage-DcGP8Qof.js} +2 -2
  80. package/dist/assets/studio/assets/{SnapshotsPage-BIlYBHdz.js → SnapshotsPage-BG-hX9C_.js} +2 -2
  81. package/dist/assets/studio/assets/{StatTile-Dy6l_k3w.js → StatTile-BYzEgiip.js} +2 -2
  82. package/dist/assets/studio/assets/{StatusActions-DF-bQALR.js → StatusActions-CnXpuTun.js} +3 -3
  83. package/dist/assets/studio/assets/{TableSkeleton-NgsufdX9.js → TableSkeleton-Co0hkn2H.js} +2 -2
  84. package/dist/assets/studio/assets/{TagsMigration-D0mOLm-7.js → TagsMigration-BKhhr-vW.js} +2 -2
  85. package/dist/assets/studio/assets/{TaxonomyPage-CDnlMxul.js → TaxonomyPage-CduvGn70.js} +2 -2
  86. package/dist/assets/studio/assets/{TaxonomySettingsDialog-BkFuzClF.js → TaxonomySettingsDialog-BAZEJpH-.js} +2 -2
  87. package/dist/assets/studio/assets/{TermEditorPage-DP9pJMlQ.js → TermEditorPage-C7b9bBsE.js} +2 -2
  88. package/dist/assets/studio/assets/{TermPickers-ZKwxxNRj.js → TermPickers-DKt8vAmG.js} +2 -2
  89. package/dist/assets/studio/assets/{TranslationList-glBOXvZ_.js → TranslationList-CmTCM-T2.js} +2 -2
  90. package/dist/assets/studio/assets/{TranslationsPage-Dqb8_ysm.js → TranslationsPage-DDiIFhwG.js} +2 -2
  91. package/dist/assets/studio/assets/{blocks-CGhmSv2M.js → blocks-DaRWgHXb.js} +2 -2
  92. package/dist/assets/studio/assets/{body-blocks-CZh36LZ-.js → body-blocks-BvozTe2C.js} +2 -2
  93. package/dist/assets/studio/assets/{charts-io8FuEMX.js → charts-9fgHeg78.js} +2 -2
  94. package/dist/assets/studio/assets/{collapsible-l8g94on4w7qfosmn-BlC4AFYN.js → collapsible-l8g94on4w7qfosmn-BFySg_Yr.js} +2 -2
  95. package/dist/assets/studio/assets/{collection-icons-BAGz-Wz4.js → collection-icons-DMuhuvPI.js} +2 -2
  96. package/dist/assets/studio/assets/{combobox-hdxtsm2gqcxxgfju-CtusPn5x.js → combobox-hdxtsm2gqcxxgfju-DdVVQUTO.js} +2 -2
  97. package/dist/assets/studio/assets/{deleteLabels-CzvNbX7N.js → deleteLabels-BIUfhpp9.js} +2 -2
  98. package/dist/assets/studio/assets/{editor-CoY-eO77.js → editor-DRH2E9yp.js} +2 -2
  99. package/dist/assets/studio/assets/fields-BjjPRpcp.js +4 -0
  100. package/dist/assets/studio/assets/{fields-BbXduSei.js → fields-CiZNKRzo.js} +2 -2
  101. package/dist/assets/studio/assets/{index-CLqaOg62.js → index-Bp67MLBZ.js} +3 -3
  102. package/dist/assets/studio/assets/{layer-dialog-j5ywmzs46ccg6oqy-CcCOc1fd.js → layer-dialog-j5ywmzs46ccg6oqy-JnHrrG-C.js} +2 -2
  103. package/dist/assets/studio/assets/{listings-Yf8jjiwg.js → listings-Cnfewdgu.js} +2 -2
  104. package/dist/assets/studio/assets/{media-DoQQF7zb.js → media-Dfjs2wpG.js} +2 -2
  105. package/dist/assets/studio/assets/props-AphWrHq-.js +2 -0
  106. package/dist/assets/studio/assets/{surfaces-DGCP49mQ.js → surfaces-CML_VFHE.js} +2 -2
  107. package/dist/assets/studio/assets/{tag-input-ohfybx5dbxy3houy-q_8sM2Vi.js → tag-input-ohfybx5dbxy3houy-BahDQamD.js} +2 -2
  108. package/dist/assets/studio/assets/{useCollectionView-BLls1Hph.js → useCollectionView-BvB6apTi.js} +3 -3
  109. package/dist/assets/studio/index.html +2 -2
  110. package/dist/src/commands/fields.js +2 -2
  111. package/dist/src/commands/import-describe.js +1 -0
  112. package/dist/src/commands/import-references.d.ts +3 -0
  113. package/dist/src/commands/import-references.js +55 -0
  114. package/dist/src/commands/import.d.ts +2 -0
  115. package/dist/src/commands/import.js +7 -1
  116. package/package.json +12 -12
  117. package/dist/assets/studio/assets/EntryFieldsCard-BkmP0_xl.js +0 -2
  118. package/dist/assets/studio/assets/FieldsSection-BAxxoh5K.js +0 -2
  119. package/dist/assets/studio/assets/ListFieldColumns-Cbq-qqhG.js +0 -2
  120. package/dist/assets/studio/assets/ListingSections-B2knDGVI.js +0 -2
  121. package/dist/assets/studio/assets/fields-wzbdA9hz.js +0 -4
  122. package/dist/assets/studio/assets/props-mn0mAlcP.js +0 -2
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SourceEditor-W-oKqiEa.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-iRJfyluG.js","assets/w3c-keyname-BOAvb0qz.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./vendor-styling-da1xibnxfkjmtglr-f72JA6U4.js";import{i as n,n as r,r as i}from"./react-iRJfyluG.js";import{t as a}from"./badge-dq8bx752b9dp7dst-BSe3ItaV.js";import{t as o}from"./button-pa1bq9b85hawg41a-CTLAwRb5.js";import{C as s,w as c}from"./tanstack-8GMTaj0M.js";import{t as l}from"./ArrowClockwise.es-CBDiTqBo.js";import{t as u}from"./ArrowCounterClockwise.es-DTfZr_jW.js";import{n as d}from"./skeleton-line-m9dyh126t9k07jvg-C0LAvXNf.js";import{t as f}from"./blockIcon-fWcx8Dfl.js";import{t as p}from"./Image.es-hbodihZN.js";import{t as m}from"./LinkSimple.es-Bmke3KUE.js";import{t as h}from"./ListBullets.es-BRt_pQYZ.js";import{n as g}from"./checkbox-lbo436duy7krxcsk-U7-T3UJ5.js";import{t as _}from"./PencilSimple.es-Op-nnaqy.js";import{t as v}from"./Quotes.es-DyaHmUO_.js";import{t as y}from"./SlidersHorizontal.es-DU9pP_oN.js";import{t as b}from"./Sparkle.es-CFKD1Frb.js";import{t as x}from"./Table.es-CPWQPhl7.js";import{t as S}from"./IconBase.es-BXBadb8L.js";import{t as C}from"./input-c8lv9ulv0kortliq-eB01WT1D.js";import{t as ee}from"./input-h5ox92gf13ge04hp-agw7chIZ.js";import{t as w}from"./toolbar-h213d8e22yjh5cwq-e1jEOiyl.js";import{t as T}from"./switch-cqsvolm7h69z7vgg-g_pP5Vuc.js";import{t as te}from"./tabs-gf57qqf1wcclaejq-DZt0FNBy.js";import{t as ne}from"./preload-helper-BLdHbfdN.js";import{a as re,s as E}from"./blocks-CGhmSv2M.js";import{t as ie}from"./InsetPanel-BCDyegfj.js";import{t as ae}from"./BlockPropsForm-BeRE-Yon.js";import{t as oe}from"./marked.esm-CO-4B_gx.js";import{c as se,i as ce,l as le,o as ue,r as de,s as fe}from"./body-blocks-CZh36LZ-.js";import{u as pe}from"./names-DtgvAZkI.js";import{st as me}from"./index-CLqaOg62.js";import{n as he,t as ge}from"./w3c-keyname-BOAvb0qz.js";var D=e(n(),1),_e=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M140,104V64a12,12,0,0,1,24,0V75l35.51-35.52a12,12,0,0,1,17,17L181,92h11a12,12,0,0,1,0,24H152A12,12,0,0,1,140,104Zm-36,36H64a12,12,0,0,0,0,24H75L39.51,199.51a12,12,0,0,0,17,17L92,181v11a12,12,0,0,0,24,0V152A12,12,0,0,0,104,140Zm77,24h11a12,12,0,0,0,0-24H152a12,12,0,0,0-12,12v40a12,12,0,0,0,24,0V181l35.51,35.52a12,12,0,0,0,17-17ZM104,52A12,12,0,0,0,92,64V75L56.49,39.51a12,12,0,0,0-17,17L75,92H64a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V64A12,12,0,0,0,104,52Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,13.66-5.66L172,72.69l30.34-30.35a8,8,0,0,1,11.32,11.32L183.31,84l14.35,14.34A8,8,0,0,1,192,112H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0-5.66,13.66L72.69,172,42.34,202.34a8,8,0,0,0,11.32,11.32L84,183.31l14.34,14.35A8,8,0,0,0,112,192V152A8,8,0,0,0,104,144Zm3.06-87.39a8,8,0,0,0-8.72,1.73L84,72.69,53.66,42.34A8,8,0,0,0,42.34,53.66L72.69,84,58.34,98.34A8,8,0,0,0,64,112h40a8,8,0,0,0,8-8V64A8,8,0,0,0,107.06,56.61ZM183.31,172l14.35-14.34A8,8,0,0,0,192,144H152a8,8,0,0,0-8,8v40a8,8,0,0,0,13.66,5.66L172,183.31l30.34,30.35a8,8,0,0,0,11.32-11.32Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))]]),ve=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))]]),ye=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M51.51,104.49l-32-32a12,12,0,0,1,0-17l32-32a12,12,0,1,1,17,17L45,64,68.49,87.51a12,12,0,0,1-17,17Zm48,0a12,12,0,0,0,17,0l32-32a12,12,0,0,0,0-17l-32-32a12,12,0,1,0-17,17L123,64,99.51,87.51A12,12,0,0,0,99.51,104.49ZM200,36H180a12,12,0,0,0,0,24h16V196H60V140a12,12,0,0,0-24,0v60a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M200,40H168a16,16,0,0,0-16-16H32A16,16,0,0,0,16,40v80a16,16,0,0,0,16,16h8v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM106.34,61.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L124.69,80Zm-64,24a8,8,0,0,1,0-11.32l24-24A8,8,0,0,1,77.66,61.66L59.31,80,77.66,98.34a8,8,0,0,1-11.32,11.32ZM200,200H56V136h96a16,16,0,0,0,16-16V56h32Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M58.34,101.66l-32-32a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,69.66,37.66L43.31,64,69.66,90.34a8,8,0,0,1-11.32,11.32Zm40,0a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0,0-11.32l-32-32A8,8,0,0,0,98.34,37.66L124.69,64,98.34,90.34A8,8,0,0,0,98.34,101.66ZM200,40H176a8,8,0,0,0,0,16h24V200H56V136a8,8,0,0,0-16,0v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Z`}))]]),be=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z`}))]]),xe=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128ZM128,76h88a12,12,0,0,0,0-24H128a12,12,0,0,0,0,24Zm88,104H128a12,12,0,0,0,0,24h88a12,12,0,0,0,0-24ZM79.51,39.51,56,63l-7.51-7.52a12,12,0,0,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,127l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,191l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM117.66,149.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L80,164.69l26.34-26.35a8,8,0,0,1,11.32,11.32Zm0-64-32,32a8,8,0,0,1-11.32,0l-16-16A8,8,0,0,1,69.66,90.34L80,100.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM192,168H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-64H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z`}))]]),Se=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M84,64A12,12,0,0,1,96,52H216a12,12,0,0,1,0,24H96A12,12,0,0,1,84,64Zm132,52H96a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H96a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM56,52H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Zm0,64H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Zm0,64H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,184H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm120,96H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M88,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Zm128,56H96a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H96a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM56,56H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Z`}))]]),Ce=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM116,76H216a12,12,0,0,0,0-24H116a12,12,0,0,0,0,24ZM216,180H116a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,59.31V104a12,12,0,0,0,24,0V40A12,12,0,0,0,50.64,29.27l-16,8a12,12,0,0,0,9.36,22Zm39.73,96.86a27.7,27.7,0,0,0-11.2-18.63A28.89,28.89,0,0,0,32.9,143a27.71,27.71,0,0,0-4.17,7.54,12,12,0,0,0,22.55,8.21,4,4,0,0,1,.58-1,4.78,4.78,0,0,1,6.5-.82,3.82,3.82,0,0,1,1.61,2.6,3.63,3.63,0,0,1-.77,2.77l-.13.17L30.39,200.82A12,12,0,0,0,40,220H72a12,12,0,0,0,0-24H64l14.28-19.11A27.48,27.48,0,0,0,83.73,156.17Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM56.84,75.58a8,8,0,0,1,3.58-10.74l16-8A8,8,0,0,1,88,64v48a8,8,0,0,1-16,0V76.94l-4.42,2.22A8,8,0,0,1,56.84,75.58ZM92,180a8,8,0,0,1,0,16H68a8,8,0,0,1-6.4-12.8l21.67-28.89A3.92,3.92,0,0,0,84,152a4,4,0,0,0-7.77-1.33,8,8,0,0,1-15.09-5.34,20,20,0,1,1,35,18.53L84,180Zm100,4H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z`}))]]),we=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M185.08,114.46A48,48,0,0,0,148,36H80A12,12,0,0,0,68,48V200a12,12,0,0,0,12,12h80a52,52,0,0,0,25.08-97.54ZM92,60h56a24,24,0,0,1,0,48H92Zm68,128H92V132h68a28,28,0,0,1,0,56Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M168,156a20,20,0,0,1-20,20H96V136h52A20,20,0,0,1,168,156ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM184,156a36,36,0,0,0-18-31.15A36,36,0,0,0,140,64H88a8,8,0,0,0-8,8V184a8,8,0,0,0,8,8h60A36,36,0,0,0,184,156Zm-24-56a20,20,0,0,0-20-20H96v40h44A20,20,0,0,0,160,100Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M178.48,115.7A44,44,0,0,0,148,40H80a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8h80a48,48,0,0,0,18.48-92.3ZM88,56h60a28,28,0,0,1,0,56H88Zm72,136H88V128h72a32,32,0,0,1,0,64Z`}))]]),Te=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M252,180a40,40,0,0,1-68.57,28,12,12,0,1,1,17.14-16.79A16,16,0,1,0,212,164a12,12,0,0,1-9.83-18.88L217,124H192a12,12,0,0,1,0-24h48a12,12,0,0,1,9.83,18.88l-18.34,26.2A40,40,0,0,1,252,180ZM144,44a12,12,0,0,0-12,12v48H52V56a12,12,0,0,0-24,0V176a12,12,0,0,0,24,0V128h80v48a12,12,0,0,0,24,0V56A12,12,0,0,0,144,44Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM128,160a8,8,0,0,1-16,0V128H72v32a8,8,0,0,1-16,0V80a8,8,0,0,1,16,0v32h40V80a8,8,0,0,1,16,0Zm40,24a32,32,0,0,1-21.34-8.15,8,8,0,1,1,10.68-11.92A16,16,0,1,0,168,136a8,8,0,0,1-6.4-12.8L176,104H152a8,8,0,0,1,0-16h40a8,8,0,0,1,6.4,12.8l-16.71,22.28A32,32,0,0,1,168,184Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm73.52,90.63,21-30A8,8,0,0,0,240,104H192a8,8,0,0,0,0,16h32.63l-19.18,27.41A8,8,0,0,0,212,160a20,20,0,1,1-14.29,34,8,8,0,1,0-11.42,11.19A36,36,0,0,0,248,180,36.07,36.07,0,0,0,225.52,146.63Z`}))]]),Ee=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M156,56V176a12,12,0,0,1-24,0V128H52v48a12,12,0,0,1-24,0V56a12,12,0,0,1,24,0v48h80V56a12,12,0,0,1,24,0Zm84,140H216l28.74-38.33A36,36,0,1,0,182.05,124a12,12,0,0,0,22.63,8,11.67,11.67,0,0,1,1.73-3.22,12,12,0,1,1,19.15,14.46L182.4,200.8A12,12,0,0,0,192,220h48a12,12,0,0,0,0-24Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM128,160a8,8,0,0,1-16,0V128H72v32a8,8,0,0,1-16,0V80a8,8,0,0,1,16,0v32h40V80a8,8,0,0,1,16,0Zm64,24H152a8,8,0,0,1-6.4-12.8l36-48a12,12,0,1,0-19.15-14.46,13.06,13.06,0,0,0-2.58,4.81,8,8,0,1,1-15.68-3.18,28.17,28.17,0,1,1,50.2,22.44L168,168h24a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm88,144H208l33.55-44.74a32,32,0,1,0-55.73-29.93,8,8,0,1,0,15.08,5.34,16.28,16.28,0,0,1,2.32-4.3,16,16,0,1,1,25.54,19.27L185.6,203.2A8,8,0,0,0,192,216h48a8,8,0,0,0,0-16Z`}))]]),De=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M204,56a12,12,0,0,1-12,12H160.65l-40,120H144a12,12,0,0,1,0,24H64a12,12,0,0,1,0-24H95.35l40-120H112a12,12,0,0,1,0-24h80A12,12,0,0,1,204,56Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM176,80H153.64l-34.29,96H136a8,8,0,0,1,0,16H80a8,8,0,0,1,0-16h22.36l34.29-96H120a8,8,0,0,1,0-16h56a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M200,56a8,8,0,0,1-8,8H157.77L115.1,192H144a8,8,0,0,1,0,16H64a8,8,0,0,1,0-16H98.23L140.9,64H112a8,8,0,0,1,0-16h80A8,8,0,0,1,200,56Z`}))]]),Oe=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H185.86A41.48,41.48,0,0,1,196,168c0,14.45-7.81,28.32-21.43,38.05C162,215.05,145.44,220,128,220s-34-4.95-46.57-13.95C67.81,196.32,60,182.45,60,168a12,12,0,0,1,24,0c0,15.18,20.15,28,44,28s44-12.82,44-28c0-12.76-9.3-20.18-35.35-28H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM75.11,100a12,12,0,0,0,12-12c0-16,17.58-28,40.89-28,17.36,0,31.37,6.65,37.48,17.78a12,12,0,0,0,21-11.56C176.13,47.3,154.25,36,128,36,91,36,63.11,58.35,63.11,88A12,12,0,0,0,75.11,100Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM82.71,94.58C86,76.57,104.58,64,128,64c18.2,0,33.59,7.41,41.18,19.83a8,8,0,1,1-13.66,8.34C150.94,84.66,140.39,80,128,80c-15.3,0-27.73,7.33-29.55,17.42A8,8,0,0,1,90.59,104a7.76,7.76,0,0,1-1.43-.13A8,8,0,0,1,82.71,94.58ZM192,136H168.29A28.45,28.45,0,0,1,176,156c0,20.19-21.08,36-48,36-23.89,0-43.83-12.78-47.43-30.4a8,8,0,1,1,15.67-3.2c2,9.87,16,17.6,31.76,17.6,17.35,0,32-9.16,32-20,0-9.14-6.76-14.43-25.72-20H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H175.93c9.19,7.11,16.07,17.2,16.07,32,0,13.34-7,25.7-19.75,34.79C160.33,211.31,144.61,216,128,216s-32.33-4.69-44.25-13.21C71,193.7,64,181.34,64,168a8,8,0,0,1,16,0c0,17.35,22,32,48,32s48-14.65,48-32c0-14.85-10.54-23.58-38.77-32H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM76.33,104a8,8,0,0,0,7.61-10.49A17.3,17.3,0,0,1,83.11,88c0-18.24,19.3-32,44.89-32,18.84,0,34.16,7.42,41,19.85a8,8,0,0,0,14-7.7C173.33,50.52,152.77,40,128,40,93.29,40,67.11,60.63,67.11,88a33.73,33.73,0,0,0,1.62,10.49A8,8,0,0,0,76.33,104Z`}))]]),ke=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z`}))]]),Ae=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:_e}));Ae.displayName=`ArrowsInIcon`;var je=Ae,Me=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:ve}));Me.displayName=`ArrowsOutIcon`;var Ne=Me,Pe=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:ye}));Pe.displayName=`CodeBlockIcon`;var Fe=Pe,Ie=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:be}));Ie.displayName=`CodeIcon`;var Le=Ie,Re=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:xe}));Re.displayName=`ListChecksIcon`;var ze=Re,Be=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Se}));Be.displayName=`ListDashesIcon`;var Ve=Be,He=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Ce}));He.displayName=`ListNumbersIcon`;var Ue=He,We=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:we}));We.displayName=`TextBIcon`;var Ge=We,Ke=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Te}));Ke.displayName=`TextHThreeIcon`;var qe=Ke,Je=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Ee}));Je.displayName=`TextHTwoIcon`;var Ye=Je,Xe=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:De}));Xe.displayName=`TextItalicIcon`;var Ze=Xe,Qe=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Oe}));Qe.displayName=`TextStrikethroughIcon`;var $e=Qe,et=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:ke}));et.displayName=`TextTIcon`;var tt=et,nt=Object.defineProperty,rt=(e,t)=>{let n={};for(var r in e)nt(n,r,{get:e[r],enumerable:!0});return t||nt(n,Symbol.toStringTag,{value:`Module`}),n},O=i(),it=e(r(),1),at=c(),ot=s();function st(e){this.content=e}st.prototype={constructor:st,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new st(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new st(n)},addToStart:function(e,t){return new st([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new st(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new st(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=st.from(e),e.size?new st(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=st.from(e),e.size?new st(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=st.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},st.from=function(e){if(e instanceof st)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new st(t)};function ct(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&dt(e.charCodeAt(r-1))&&ut(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ct(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function lt(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&dt(e.charCodeAt(i-1))&&ut(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=lt(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function ut(e){return e>=56320&&e<57344}function dt(e){return e>=55296&&e<56320}var k=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ct(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return lt(this,e,t,n)}findIndex(e){if(e==0)return pt(0,e);if(e==this.size)return pt(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?pt(t+1,i):pt(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};k.empty=new k([],0);var ft={index:0,offset:0};function pt(e,t){return ft.index=e,ft.offset=t,ft}function mt(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!mt(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!mt(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var A=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&mt(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};A.none=[];var ht=class extends Error{},j=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=_t(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(gt(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(k.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};j.empty=new j(k.empty,0,0);function gt(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(gt(a.content,t-i-1,n-i-1)))}function _t(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=_t(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function vt(e,t,n){if(n.openStart>e.depth)throw new ht(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ht(`Inconsistent open depths`);return yt(e,t,n,0)}function yt(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=yt(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return wt(a,Et(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return wt(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Dt(n,e);return wt(a,Tt(e,i,o,t,r))}}function bt(e,t){if(!t.type.compatibleContent(e.type))throw new ht(`Cannot join `+t.type.name+` onto `+e.type.name)}function xt(e,t,n){let r=e.node(n);return bt(r,t.node(n)),r}function St(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ct(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(St(e.nodeAfter,r),a++));for(let e=a;e<o;e++)St(i.child(e),r);t&&t.depth==n&&t.textOffset&&St(t.nodeBefore,r)}function wt(e,t){if(!e.type.validContent(t))throw new ht(`Invalid content for node `+e.type.name);return e.copy(t)}function Tt(e,t,n,r,i){let a=e.depth>i&&xt(e,t,i+1),o=r.depth>i&&xt(n,r,i+1),s=[];return Ct(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(bt(a,o),St(wt(a,Tt(e,t,n,r,i+1)),s)):(a&&St(wt(a,Et(e,t,i+1)),s),Ct(t,n,i,s),o&&St(wt(o,Et(n,r,i+1)),s)),Ct(r,null,i,s),new k(s)}function Et(e,t,n){let r=[];return Ct(null,e,n,r),e.depth>n&&St(wt(xt(e,t,n+1),Et(e,t,n+1)),r),Ct(t,null,n,r),new k(r)}function Dt(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(k.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ot=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return A.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Mt(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=jt.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else jt.set(t,r=new kt);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%At,i}},kt=class{constructor(){this.elts=[],this.i=0}},At=12,jt=new WeakMap,Mt=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Nt=Object.create(null),Pt=class e{constructor(e,t,n,r=A.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&mt(this.attrs,t||e.defaultAttrs||Nt)&&A.sameSet(this.marks,n||A.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return j.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new j(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return vt(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Ot.resolveCached(this,e)}resolveNoCache(e){return Ot.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),It(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=k.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),Lt(this.type.attrs,this.attrs,`node`,this.type.name);let e=A.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];Lt(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!A.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};Pt.prototype.text=void 0;var Ft=class e extends Pt{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):It(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function It(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Lt(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Rt=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new zt(t,n);if(r.next==null)return e.empty;let i=Bt(r);r.next&&r.err(`Unexpected trailing text`);let a=Xt(qt(i));return Zt(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return k.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
2
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./vendor-styling-da1xibnxfkjmtglr-f72JA6U4.js";import{i as n,n as r,r as i}from"./react-iRJfyluG.js";import{t as a}from"./badge-dq8bx752b9dp7dst-BSe3ItaV.js";import{t as o}from"./button-pa1bq9b85hawg41a-CTLAwRb5.js";import{C as s,w as c}from"./tanstack-8GMTaj0M.js";import{t as l}from"./ArrowClockwise.es-CBDiTqBo.js";import{t as u}from"./ArrowCounterClockwise.es-DTfZr_jW.js";import{n as d}from"./skeleton-line-m9dyh126t9k07jvg-C0LAvXNf.js";import{t as f}from"./blockIcon-fWcx8Dfl.js";import{t as p}from"./Image.es-hbodihZN.js";import{t as m}from"./LinkSimple.es-Bmke3KUE.js";import{t as h}from"./ListBullets.es-BRt_pQYZ.js";import{n as g}from"./checkbox-lbo436duy7krxcsk-U7-T3UJ5.js";import{t as _}from"./PencilSimple.es-Op-nnaqy.js";import{t as v}from"./Quotes.es-DyaHmUO_.js";import{t as y}from"./SlidersHorizontal.es-DU9pP_oN.js";import{t as b}from"./Sparkle.es-CFKD1Frb.js";import{t as x}from"./Table.es-CPWQPhl7.js";import{t as S}from"./IconBase.es-BXBadb8L.js";import{t as C}from"./input-c8lv9ulv0kortliq-eB01WT1D.js";import{t as ee}from"./input-h5ox92gf13ge04hp-agw7chIZ.js";import{t as w}from"./toolbar-h213d8e22yjh5cwq-e1jEOiyl.js";import{t as T}from"./switch-cqsvolm7h69z7vgg-g_pP5Vuc.js";import{t as te}from"./tabs-gf57qqf1wcclaejq-DZt0FNBy.js";import{t as ne}from"./preload-helper-BLdHbfdN.js";import{a as re,s as E}from"./blocks-DaRWgHXb.js";import{t as ie}from"./InsetPanel-BCDyegfj.js";import{t as ae}from"./BlockPropsForm-BVcfDp_9.js";import{t as oe}from"./marked.esm-CO-4B_gx.js";import{c as se,i as ce,l as le,o as ue,r as de,s as fe}from"./body-blocks-BvozTe2C.js";import{u as pe}from"./names-DtgvAZkI.js";import{st as me}from"./index-Bp67MLBZ.js";import{n as he,t as ge}from"./w3c-keyname-BOAvb0qz.js";var D=e(n(),1),_e=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M140,104V64a12,12,0,0,1,24,0V75l35.51-35.52a12,12,0,0,1,17,17L181,92h11a12,12,0,0,1,0,24H152A12,12,0,0,1,140,104Zm-36,36H64a12,12,0,0,0,0,24H75L39.51,199.51a12,12,0,0,0,17,17L92,181v11a12,12,0,0,0,24,0V152A12,12,0,0,0,104,140Zm77,24h11a12,12,0,0,0,0-24H152a12,12,0,0,0-12,12v40a12,12,0,0,0,24,0V181l35.51,35.52a12,12,0,0,0,17-17ZM104,52A12,12,0,0,0,92,64V75L56.49,39.51a12,12,0,0,0-17,17L75,92H64a12,12,0,0,0,0,24h40a12,12,0,0,0,12-12V64A12,12,0,0,0,104,52Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,13.66-5.66L172,72.69l30.34-30.35a8,8,0,0,1,11.32,11.32L183.31,84l14.35,14.34A8,8,0,0,1,192,112H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0-5.66,13.66L72.69,172,42.34,202.34a8,8,0,0,0,11.32,11.32L84,183.31l14.34,14.35A8,8,0,0,0,112,192V152A8,8,0,0,0,104,144Zm3.06-87.39a8,8,0,0,0-8.72,1.73L84,72.69,53.66,42.34A8,8,0,0,0,42.34,53.66L72.69,84,58.34,98.34A8,8,0,0,0,64,112h40a8,8,0,0,0,8-8V64A8,8,0,0,0,107.06,56.61ZM183.31,172l14.35-14.34A8,8,0,0,0,192,144H152a8,8,0,0,0-8,8v40a8,8,0,0,0,13.66,5.66L172,183.31l30.34,30.35a8,8,0,0,0,11.32-11.32Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M144,104V64a8,8,0,0,1,16,0V84.69l42.34-42.35a8,8,0,0,1,11.32,11.32L171.31,96H192a8,8,0,0,1,0,16H152A8,8,0,0,1,144,104Zm-40,40H64a8,8,0,0,0,0,16H84.69L42.34,202.34a8,8,0,0,0,11.32,11.32L96,171.31V192a8,8,0,0,0,16,0V152A8,8,0,0,0,104,144Zm67.31,16H192a8,8,0,0,0,0-16H152a8,8,0,0,0-8,8v40a8,8,0,0,0,16,0V171.31l42.34,42.35a8,8,0,0,0,11.32-11.32ZM104,56a8,8,0,0,0-8,8V84.69L53.66,42.34A8,8,0,0,0,42.34,53.66L84.69,96H64a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V64A8,8,0,0,0,104,56Z`}))]]),ve=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z`}))]]),ye=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M51.51,104.49l-32-32a12,12,0,0,1,0-17l32-32a12,12,0,1,1,17,17L45,64,68.49,87.51a12,12,0,0,1-17,17Zm48,0a12,12,0,0,0,17,0l32-32a12,12,0,0,0,0-17l-32-32a12,12,0,1,0-17,17L123,64,99.51,87.51A12,12,0,0,0,99.51,104.49ZM200,36H180a12,12,0,0,0,0,24h16V196H60V140a12,12,0,0,0-24,0v60a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M200,40H168a16,16,0,0,0-16-16H32A16,16,0,0,0,16,40v80a16,16,0,0,0,16,16h8v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM106.34,61.66a8,8,0,0,1,11.32-11.32l24,24a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L124.69,80Zm-64,24a8,8,0,0,1,0-11.32l24-24A8,8,0,0,1,77.66,61.66L59.31,80,77.66,98.34a8,8,0,0,1-11.32,11.32ZM200,200H56V136h96a16,16,0,0,0,16-16V56h32Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M58.34,101.66l-32-32a8,8,0,0,1,0-11.32l32-32A8,8,0,0,1,69.66,37.66L43.31,64,69.66,90.34a8,8,0,0,1-11.32,11.32Zm40,0a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0,0-11.32l-32-32A8,8,0,0,0,98.34,37.66L124.69,64,98.34,90.34A8,8,0,0,0,98.34,101.66ZM200,40H176a8,8,0,0,0,0,16h24V200H56V136a8,8,0,0,0-16,0v64a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Z`}))]]),be=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M71.68,97.22,34.74,128l36.94,30.78a12,12,0,1,1-15.36,18.44l-48-40a12,12,0,0,1,0-18.44l48-40A12,12,0,0,1,71.68,97.22Zm176,21.56-48-40a12,12,0,1,0-15.36,18.44L221.26,128l-36.94,30.78a12,12,0,1,0,15.36,18.44l48-40a12,12,0,0,0,0-18.44ZM164.1,28.72a12,12,0,0,0-15.38,7.18l-64,176a12,12,0,0,0,7.18,15.37A11.79,11.79,0,0,0,96,228a12,12,0,0,0,11.28-7.9l64-176A12,12,0,0,0,164.1,28.72Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM92.8,145.6a8,8,0,1,1-9.6,12.8l-32-24a8,8,0,0,1,0-12.8l32-24a8,8,0,0,1,9.6,12.8L69.33,128Zm58.89-71.4-32,112a8,8,0,1,1-15.38-4.4l32-112a8,8,0,0,1,15.38,4.4Zm53.11,60.2-32,24a8,8,0,0,1-9.6-12.8L186.67,128,163.2,110.4a8,8,0,1,1,9.6-12.8l32,24a8,8,0,0,1,0,12.8Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M69.12,94.15,28.5,128l40.62,33.85a8,8,0,1,1-10.24,12.29l-48-40a8,8,0,0,1,0-12.29l48-40a8,8,0,0,1,10.24,12.3Zm176,27.7-48-40a8,8,0,1,0-10.24,12.3L227.5,128l-40.62,33.85a8,8,0,1,0,10.24,12.29l48-40a8,8,0,0,0,0-12.29ZM162.73,32.48a8,8,0,0,0-10.25,4.79l-64,176a8,8,0,0,0,4.79,10.26A8.14,8.14,0,0,0,96,224a8,8,0,0,0,7.52-5.27l64-176A8,8,0,0,0,162.73,32.48Z`}))]]),xe=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128ZM128,76h88a12,12,0,0,0,0-24H128a12,12,0,0,0,0,24Zm88,104H128a12,12,0,0,0,0,24h88a12,12,0,0,0,0-24ZM79.51,39.51,56,63l-7.51-7.52a12,12,0,0,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,127l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,191l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM117.66,149.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L80,164.69l26.34-26.35a8,8,0,0,1,11.32,11.32Zm0-64-32,32a8,8,0,0,1-11.32,0l-16-16A8,8,0,0,1,69.66,90.34L80,100.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM192,168H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-64H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z`}))]]),Se=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M84,64A12,12,0,0,1,96,52H216a12,12,0,0,1,0,24H96A12,12,0,0,1,84,64Zm132,52H96a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm0,64H96a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM56,52H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Zm0,64H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Zm0,64H40a12,12,0,0,0,0,24H56a12,12,0,0,0,0-24Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,184H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16h8a8,8,0,0,1,0,16Zm120,96H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Zm0-48H104a8,8,0,0,1,0-16h88a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M88,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H96A8,8,0,0,1,88,64Zm128,56H96a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H96a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM56,56H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16H56a8,8,0,0,0,0-16Z`}))]]),Ce=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H116a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM116,76H216a12,12,0,0,0,0-24H116a12,12,0,0,0,0,24ZM216,180H116a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24ZM44,59.31V104a12,12,0,0,0,24,0V40A12,12,0,0,0,50.64,29.27l-16,8a12,12,0,0,0,9.36,22Zm39.73,96.86a27.7,27.7,0,0,0-11.2-18.63A28.89,28.89,0,0,0,32.9,143a27.71,27.71,0,0,0-4.17,7.54,12,12,0,0,0,22.55,8.21,4,4,0,0,1,.58-1,4.78,4.78,0,0,1,6.5-.82,3.82,3.82,0,0,1,1.61,2.6,3.63,3.63,0,0,1-.77,2.77l-.13.17L30.39,200.82A12,12,0,0,0,40,220H72a12,12,0,0,0,0-24H64l14.28-19.11A27.48,27.48,0,0,0,83.73,156.17Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM56.84,75.58a8,8,0,0,1,3.58-10.74l16-8A8,8,0,0,1,88,64v48a8,8,0,0,1-16,0V76.94l-4.42,2.22A8,8,0,0,1,56.84,75.58ZM92,180a8,8,0,0,1,0,16H68a8,8,0,0,1-6.4-12.8l21.67-28.89A3.92,3.92,0,0,0,84,152a4,4,0,0,0-7.77-1.33,8,8,0,0,1-15.09-5.34,20,20,0,1,1,35,18.53L84,180Zm100,4H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Zm0-48H120a8,8,0,0,1,0-16h72a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H104a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM104,72H216a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16ZM216,184H104a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM43.58,55.16,48,52.94V104a8,8,0,0,0,16,0V40a8,8,0,0,0-11.58-7.16l-16,8a8,8,0,0,0,7.16,14.32ZM79.77,156.72a23.73,23.73,0,0,0-9.6-15.95,24.86,24.86,0,0,0-34.11,4.7,23.63,23.63,0,0,0-3.57,6.46,8,8,0,1,0,15,5.47,7.84,7.84,0,0,1,1.18-2.13,8.76,8.76,0,0,1,12-1.59A7.91,7.91,0,0,1,63.93,159a7.64,7.64,0,0,1-1.57,5.78,1,1,0,0,0-.08.11L33.59,203.21A8,8,0,0,0,40,216H72a8,8,0,0,0,0-16H56l19.08-25.53A23.47,23.47,0,0,0,79.77,156.72Z`}))]]),we=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M185.08,114.46A48,48,0,0,0,148,36H80A12,12,0,0,0,68,48V200a12,12,0,0,0,12,12h80a52,52,0,0,0,25.08-97.54ZM92,60h56a24,24,0,0,1,0,48H92Zm68,128H92V132h68a28,28,0,0,1,0,56Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M168,156a20,20,0,0,1-20,20H96V136h52A20,20,0,0,1,168,156ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM184,156a36,36,0,0,0-18-31.15A36,36,0,0,0,140,64H88a8,8,0,0,0-8,8V184a8,8,0,0,0,8,8h60A36,36,0,0,0,184,156Zm-24-56a20,20,0,0,0-20-20H96v40h44A20,20,0,0,0,160,100Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M178.48,115.7A44,44,0,0,0,148,40H80a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8h80a48,48,0,0,0,18.48-92.3ZM88,56h60a28,28,0,0,1,0,56H88Zm72,136H88V128h72a32,32,0,0,1,0,64Z`}))]]),Te=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M252,180a40,40,0,0,1-68.57,28,12,12,0,1,1,17.14-16.79A16,16,0,1,0,212,164a12,12,0,0,1-9.83-18.88L217,124H192a12,12,0,0,1,0-24h48a12,12,0,0,1,9.83,18.88l-18.34,26.2A40,40,0,0,1,252,180ZM144,44a12,12,0,0,0-12,12v48H52V56a12,12,0,0,0-24,0V176a12,12,0,0,0,24,0V128h80v48a12,12,0,0,0,24,0V56A12,12,0,0,0,144,44Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM128,160a8,8,0,0,1-16,0V128H72v32a8,8,0,0,1-16,0V80a8,8,0,0,1,16,0v32h40V80a8,8,0,0,1,16,0Zm40,24a32,32,0,0,1-21.34-8.15,8,8,0,1,1,10.68-11.92A16,16,0,1,0,168,136a8,8,0,0,1-6.4-12.8L176,104H152a8,8,0,0,1,0-16h40a8,8,0,0,1,6.4,12.8l-16.71,22.28A32,32,0,0,1,168,184Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm73.52,90.63,21-30A8,8,0,0,0,240,104H192a8,8,0,0,0,0,16h32.63l-19.18,27.41A8,8,0,0,0,212,160a20,20,0,1,1-14.29,34,8,8,0,1,0-11.42,11.19A36,36,0,0,0,248,180,36.07,36.07,0,0,0,225.52,146.63Z`}))]]),Ee=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M156,56V176a12,12,0,0,1-24,0V128H52v48a12,12,0,0,1-24,0V56a12,12,0,0,1,24,0v48h80V56a12,12,0,0,1,24,0Zm84,140H216l28.74-38.33A36,36,0,1,0,182.05,124a12,12,0,0,0,22.63,8,11.67,11.67,0,0,1,1.73-3.22,12,12,0,1,1,19.15,14.46L182.4,200.8A12,12,0,0,0,192,220h48a12,12,0,0,0,0-24Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM128,160a8,8,0,0,1-16,0V128H72v32a8,8,0,0,1-16,0V80a8,8,0,0,1,16,0v32h40V80a8,8,0,0,1,16,0Zm64,24H152a8,8,0,0,1-6.4-12.8l36-48a12,12,0,1,0-19.15-14.46,13.06,13.06,0,0,0-2.58,4.81,8,8,0,1,1-15.68-3.18,28.17,28.17,0,1,1,50.2,22.44L168,168h24a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm88,144H208l33.55-44.74a32,32,0,1,0-55.73-29.93,8,8,0,1,0,15.08,5.34,16.28,16.28,0,0,1,2.32-4.3,16,16,0,1,1,25.54,19.27L185.6,203.2A8,8,0,0,0,192,216h48a8,8,0,0,0,0-16Z`}))]]),De=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M204,56a12,12,0,0,1-12,12H160.65l-40,120H144a12,12,0,0,1,0,24H64a12,12,0,0,1,0-24H95.35l40-120H112a12,12,0,0,1,0-24h80A12,12,0,0,1,204,56Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM176,80H153.64l-34.29,96H136a8,8,0,0,1,0,16H80a8,8,0,0,1,0-16h22.36l34.29-96H120a8,8,0,0,1,0-16h56a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M200,56a8,8,0,0,1-8,8H157.77L115.1,192H144a8,8,0,0,1,0,16H64a8,8,0,0,1,0-16H98.23L140.9,64H112a8,8,0,0,1,0-16h80A8,8,0,0,1,200,56Z`}))]]),Oe=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H185.86A41.48,41.48,0,0,1,196,168c0,14.45-7.81,28.32-21.43,38.05C162,215.05,145.44,220,128,220s-34-4.95-46.57-13.95C67.81,196.32,60,182.45,60,168a12,12,0,0,1,24,0c0,15.18,20.15,28,44,28s44-12.82,44-28c0-12.76-9.3-20.18-35.35-28H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM75.11,100a12,12,0,0,0,12-12c0-16,17.58-28,40.89-28,17.36,0,31.37,6.65,37.48,17.78a12,12,0,0,0,21-11.56C176.13,47.3,154.25,36,128,36,91,36,63.11,58.35,63.11,88A12,12,0,0,0,75.11,100Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM82.71,94.58C86,76.57,104.58,64,128,64c18.2,0,33.59,7.41,41.18,19.83a8,8,0,1,1-13.66,8.34C150.94,84.66,140.39,80,128,80c-15.3,0-27.73,7.33-29.55,17.42A8,8,0,0,1,90.59,104a7.76,7.76,0,0,1-1.43-.13A8,8,0,0,1,82.71,94.58ZM192,136H168.29A28.45,28.45,0,0,1,176,156c0,20.19-21.08,36-48,36-23.89,0-43.83-12.78-47.43-30.4a8,8,0,1,1,15.67-3.2c2,9.87,16,17.6,31.76,17.6,17.35,0,32-9.16,32-20,0-9.14-6.76-14.43-25.72-20H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H175.93c9.19,7.11,16.07,17.2,16.07,32,0,13.34-7,25.7-19.75,34.79C160.33,211.31,144.61,216,128,216s-32.33-4.69-44.25-13.21C71,193.7,64,181.34,64,168a8,8,0,0,1,16,0c0,17.35,22,32,48,32s48-14.65,48-32c0-14.85-10.54-23.58-38.77-32H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM76.33,104a8,8,0,0,0,7.61-10.49A17.3,17.3,0,0,1,83.11,88c0-18.24,19.3-32,44.89-32,18.84,0,34.16,7.42,41,19.85a8,8,0,0,0,14-7.7C173.33,50.52,152.77,40,128,40,93.29,40,67.11,60.63,67.11,88a33.73,33.73,0,0,0,1.62,10.49A8,8,0,0,0,76.33,104Z`}))]]),ke=new Map([[`bold`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z`}))],[`fill`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z`}))],[`regular`,D.createElement(D.Fragment,null,D.createElement(`path`,{d:`M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z`}))]]),Ae=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:_e}));Ae.displayName=`ArrowsInIcon`;var je=Ae,Me=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:ve}));Me.displayName=`ArrowsOutIcon`;var Ne=Me,Pe=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:ye}));Pe.displayName=`CodeBlockIcon`;var Fe=Pe,Ie=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:be}));Ie.displayName=`CodeIcon`;var Le=Ie,Re=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:xe}));Re.displayName=`ListChecksIcon`;var ze=Re,Be=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Se}));Be.displayName=`ListDashesIcon`;var Ve=Be,He=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Ce}));He.displayName=`ListNumbersIcon`;var Ue=He,We=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:we}));We.displayName=`TextBIcon`;var Ge=We,Ke=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Te}));Ke.displayName=`TextHThreeIcon`;var qe=Ke,Je=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Ee}));Je.displayName=`TextHTwoIcon`;var Ye=Je,Xe=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:De}));Xe.displayName=`TextItalicIcon`;var Ze=Xe,Qe=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:Oe}));Qe.displayName=`TextStrikethroughIcon`;var $e=Qe,et=D.forwardRef((e,t)=>D.createElement(S,{ref:t,...e,weights:ke}));et.displayName=`TextTIcon`;var tt=et,nt=Object.defineProperty,rt=(e,t)=>{let n={};for(var r in e)nt(n,r,{get:e[r],enumerable:!0});return t||nt(n,Symbol.toStringTag,{value:`Module`}),n},O=i(),it=e(r(),1),at=c(),ot=s();function st(e){this.content=e}st.prototype={constructor:st,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new st(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new st(n)},addToStart:function(e,t){return new st([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new st(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new st(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=st.from(e),e.size?new st(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=st.from(e),e.size?new st(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=st.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},st.from=function(e){if(e instanceof st)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new st(t)};function ct(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&dt(e.charCodeAt(r-1))&&ut(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ct(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function lt(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&dt(e.charCodeAt(i-1))&&ut(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=lt(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function ut(e){return e>=56320&&e<57344}function dt(e){return e>=55296&&e<56320}var k=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ct(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return lt(this,e,t,n)}findIndex(e){if(e==0)return pt(0,e);if(e==this.size)return pt(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?pt(t+1,i):pt(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};k.empty=new k([],0);var ft={index:0,offset:0};function pt(e,t){return ft.index=e,ft.offset=t,ft}function mt(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!mt(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!mt(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var A=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&mt(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};A.none=[];var ht=class extends Error{},j=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=_t(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(gt(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(k.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};j.empty=new j(k.empty,0,0);function gt(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(gt(a.content,t-i-1,n-i-1)))}function _t(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=_t(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function vt(e,t,n){if(n.openStart>e.depth)throw new ht(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ht(`Inconsistent open depths`);return yt(e,t,n,0)}function yt(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=yt(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return wt(a,Et(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return wt(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Dt(n,e);return wt(a,Tt(e,i,o,t,r))}}function bt(e,t){if(!t.type.compatibleContent(e.type))throw new ht(`Cannot join `+t.type.name+` onto `+e.type.name)}function xt(e,t,n){let r=e.node(n);return bt(r,t.node(n)),r}function St(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ct(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(St(e.nodeAfter,r),a++));for(let e=a;e<o;e++)St(i.child(e),r);t&&t.depth==n&&t.textOffset&&St(t.nodeBefore,r)}function wt(e,t){if(!e.type.validContent(t))throw new ht(`Invalid content for node `+e.type.name);return e.copy(t)}function Tt(e,t,n,r,i){let a=e.depth>i&&xt(e,t,i+1),o=r.depth>i&&xt(n,r,i+1),s=[];return Ct(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(bt(a,o),St(wt(a,Tt(e,t,n,r,i+1)),s)):(a&&St(wt(a,Et(e,t,i+1)),s),Ct(t,n,i,s),o&&St(wt(o,Et(n,r,i+1)),s)),Ct(r,null,i,s),new k(s)}function Et(e,t,n){let r=[];return Ct(null,e,n,r),e.depth>n&&St(wt(xt(e,t,n+1),Et(e,t,n+1)),r),Ct(t,null,n,r),new k(r)}function Dt(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(k.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ot=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return A.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Mt(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=jt.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else jt.set(t,r=new kt);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%At,i}},kt=class{constructor(){this.elts=[],this.i=0}},At=12,jt=new WeakMap,Mt=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Nt=Object.create(null),Pt=class e{constructor(e,t,n,r=A.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||k.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&mt(this.attrs,t||e.defaultAttrs||Nt)&&A.sameSet(this.marks,n||A.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return j.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new j(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return vt(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Ot.resolveCached(this,e)}resolveNoCache(e){return Ot.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),It(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=k.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),Lt(this.type.attrs,this.attrs,`node`,this.type.name);let e=A.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];Lt(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!A.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};Pt.prototype.text=void 0;var Ft=class e extends Pt{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):It(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function It(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Lt(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var Rt=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new zt(t,n);if(r.next==null)return e.empty;let i=Bt(r);r.next&&r.err(`Unexpected trailing text`);let a=Xt(qt(i));return Zt(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return k.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
3
3
  `)}};Rt.empty=new Rt(!0);var zt=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Bt(e){let t=[];do t.push(Vt(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Vt(e){let t=[];do t.push(Ht(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ht(e){let t=Kt(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Wt(e,t);else break;return t}function Ut(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Wt(e,t){let n=Ut(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Ut(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Gt(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Kt(e){if(e.eat(`(`)){let t=Bt(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Gt(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function qt(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function Jt(e,t){return t-e}function Yt(e,t){let n=[];return r(t),n.sort(Jt);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function Xt(e){let t=Object.create(null);return n(Yt(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);Yt(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Rt(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Jt);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Zt(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function Qt(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function $t(e,t){let n=Object.create(null);for(let r in e){let i=e[r],a=t&&t[r];if(a===void 0){if(i.hasDefault)a=i.default;else throw RangeError(`No value supplied for attribute `+r)}else i.validate&&i.validate(a);n[r]=a}return n}function en(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new rn(e,r,t[r]);return n}var tn=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=en(e,n.attrs),this.defaultAttrs=Qt(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Rt.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:$t(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Pt(this,this.computeAttrs(e),k.from(t),A.setFrom(n))}createChecked(e=null,t,n){return t=k.from(t),this.checkContent(t),new Pt(this,this.computeAttrs(e),t,A.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=k.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(k.empty,!0);return i?new Pt(this,e,t.append(i),A.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:A.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function nn(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var rn=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?nn(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},an=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=en(e,r.attrs),this.excluded=null;let i=Qt(this.attrs);this.instance=i?new A(this,i):null}create(e=null){return!e&&this.instance?this.instance:new A(this,$t(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}},on=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=st.from(e.nodes),t.marks=st.from(e.marks||{}),this.nodes=tn.compile(this.spec.nodes,this),this.marks=an.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Rt.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?sn(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:sn(this,n.split(` `))}this.nodeFromJSON=e=>Pt.fromJSON(this,e),this.markFromJSON=e=>A.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof tn))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ft(n,n.defaultAttrs,e,A.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function sn(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function cn(e){return e.tag!=null}function ln(e){return e.style!=null}var un=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(cn(e))this.tags.push(e);else if(ln(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new yn(this,t,!1);return n.addAll(e,A.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new yn(this,t,!0);return n.addAll(e,A.none,t.from,t.to),j.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(xn(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Sn(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Sn(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},dn={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},fn={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},pn={ol:!0,ul:!0},mn=1,hn=2,gn=4;function _n(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?mn:0)|(t===`full`?hn:0)}var vn=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=A.none,this.match=i||(a&gn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(k.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&mn)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=k.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!dn.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},yn=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=_n(null,t.preserveWhitespace,0)|(n?gn:0);i=r?new vn(r.type,r.attrs,A.none,!0,t.topMatch||r.type.contentMatch,a):n?new vn(null,null,A.none,!0,null,a):new vn(e.schema.topNodeType,null,A.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&hn?`full`:this.localPreserveWS||(r.options&mn)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
4
4
  `);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;pn.hasOwnProperty(a)&&this.parser.normalizeLists&&bn(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:fn.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(dn.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
5
5
  `),t)}ignoreFallback(e,t){e.nodeName!=`BR`||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=A.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Cn(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=_n(e,i,a.options);a.options&gn&&a.content.length==0&&(o|=gn);let s=A.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):Cn(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new vn(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=mn);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function bn(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&pn.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function xn(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Sn(e){let t={};for(let n in e)t[n]=e[n];return t}function Cn(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var wn=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=En(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name])a++;else{if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return En(t).createTextNode(e.text);let{dom:n,contentDOM:r}=An(En(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&An(En(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:An(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Tn(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Tn(e.marks)}};function Tn(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function En(e){return e.document||window.document}var Dn=new WeakMap;function On(e){let t=Dn.get(e);return t===void 0&&Dn.set(e,t=kn(e)),t}function kn(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t])}else for(let t in e)n(e[t])}}return n(e),t}function An(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=On(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=An(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var jn=65535,Mn=2**16;function Nn(e,t){return e+t*Mn}function Pn(e){return e&jn}function Fn(e){return(e-(e&jn))/Mn}var In=1,Ln=2,Rn=4,zn=8,Bn=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&zn)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Rn)>0}},Vn=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Pn(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+Fn(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Nn(o/3,e-s),f=0;return c&&(f|=e==s?Ln:e==u?In:Rn,(t<0?e!=s:e!=u)&&(f|=zn)),new Bn(a,f,d)}r+=l-c}return n?e+r:new Bn(e+r,0,null)}touches(e,t){let n=0,r=Pn(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};Vn.empty=new Vn([]);var Hn=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Bn(e,r,null)}},Un=Object.create(null),Wn=class{getMap(){return Vn.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Un[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Un)throw RangeError(`Duplicate use of step JSON ID `+e);return Un[e]=t,t.prototype.jsonID=e,t}},Gn=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof ht)return e.fail(t.message);throw t}}};function Kn(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Kn(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return k.fromArray(r)}var qn=class e extends Wn{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new j(Kn(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return Gn.fromReplace(e,this.from,this.to,i)}invert(){return new Jn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Wn.jsonID(`addMark`,qn);var Jn=class e extends Wn{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new j(Kn(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Gn.fromReplace(e,this.from,this.to,n)}invert(){return new qn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Wn.jsonID(`removeMark`,Jn);var Yn=class e extends Wn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Gn.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Gn.fromReplace(e,this.pos,this.pos+1,new j(k.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Xn(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Wn.jsonID(`addNodeMark`,Yn);var Xn=class e extends Wn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Gn.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Gn.fromReplace(e,this.pos,this.pos+1,new j(k.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Yn(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Wn.jsonID(`removeNodeMark`,Xn);var Zn=class e extends Wn{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&$n(e,this.from,this.to)?Gn.fail(`Structure replace would overwrite content`):Gn.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Vn([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?j.empty:new j(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?j.empty:new j(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,j.fromJSON(t,n.slice),!!n.structure)}};Zn.MAP_BIAS=1,Wn.jsonID(`replace`,Zn);var Qn=class e extends Wn{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&($n(e,this.from,this.gapFrom)||$n(e,this.gapTo,this.to)))return Gn.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Gn.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Gn.fromReplace(e,this.from,this.to,n):Gn.fail(`Content does not fit in gap`)}getMap(){return new Vn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,j.fromJSON(t,n.slice),n.insert,!!n.structure)}};Wn.jsonID(`replaceAround`,Qn);function $n(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function er(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new Jn(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new qn(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function tr(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof an){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new Jn(t.from,t.to,t.style)))}function nr(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new Zn(s,l,j.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Jn(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new j(k.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Zn(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(k.empty,!0);e.replace(s,s,new j(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function rr(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function ir(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!rr(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function ar(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=k.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=k.from(r.node(e).copy(u)),d++):c--;let f=k.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=k.from(i.node(e).copy(f)),p++):l++;e.step(new Qn(c,l,o,s,new j(u.append(f),d,p),u.size-d,!0))}function or(e,t,n=null,r=e){let i=cr(e,t),a=i&&lr(r,t);return a?i.map(sr).concat({type:t,attrs:n}).concat(a.map(sr)):null}function sr(e){return{type:e,attrs:null}}function cr(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function lr(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function ur(e,t,n){let r=k.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=k.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new Qn(i,a,i,a,new j(r,0,0),n.length,!0))}function dr(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&mr(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&pr(e,t,n,a),nr(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new Qn(c,l,c+1,l-1,new j(k.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&fr(e,t,n,a),!1}})}function fr(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function pr(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
@@ -222,4 +222,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
222
222
 
223
223
  `),replace:n=>{let r=[];if(e.state.doc.forEach((e,t)=>{t>=s&&t+e.nodeSize<=c&&r.push(e.toJSON())}),JSON.stringify(r)!==l)return!1;let i=(t.load(n).doc.content??[]).filter(e=>!(e.type===`paragraph`&&!e.content?.length));return i.length?e.chain().focus().insertContentAt({from:s,to:c},i).run():!1}}}function Mk({editor:e,labels:t,onAskAi:n}){let r=(0,D.useRef)(!1),i=av({editor:e,selector:({editor:e})=>({bold:e.isActive(`bold`),italic:e.isActive(`italic`),strike:e.isActive(`strike`),code:e.isActive(`code`),link:e.isActive(`link`)})}),a=()=>e.chain().focus(),o=[{key:`bold`,label:t.bold,icon:(0,O.jsx)(Ge,{}),active:i.bold,run:()=>a().toggleBold().run()},{key:`italic`,label:t.italic,icon:(0,O.jsx)(Ze,{}),active:i.italic,run:()=>a().toggleItalic().run()},{key:`strike`,label:t.strike,icon:(0,O.jsx)($e,{}),active:i.strike,run:()=>a().toggleStrike().run()},{key:`code`,label:t.code,icon:(0,O.jsx)(Le,{}),active:i.code,run:()=>a().toggleCode().run()}];return(0,O.jsx)(Ak,{editor:e,options:{placement:`top`,offset:8},shouldShow:({editor:e,state:t,view:n})=>r.current||n.hasFocus()&&e.isEditable&&!t.selection.empty&&!(t.selection instanceof P)&&!e.isActive(`codeBlock`),className:`z-40`,children:(0,O.jsxs)(w,{size:`sm`,"aria-label":t.selectionToolbar,className:`rounded-lg bg-kumo-elevated shadow-md ring ring-kumo-line`,"data-selection-toolbar":``,children:[o.map(e=>(0,O.jsx)(ZO,{item:e},e.key)),(0,O.jsx)(qO,{editor:e,labels:t,active:i.link,onOpenChange:e=>{r.current=e}}),n&&t.askAi&&(0,O.jsx)(ZO,{item:{key:`ai`,label:t.askAi,icon:(0,O.jsx)(b,{}),run:n}})]})})}function Nk(e,t){let n=[{key:`paragraph`,label:e.paragraph,keywords:[`text`,`paragraph`,`p`],run:e=>e.chain().focus().setParagraph().run()},{key:`heading2`,label:e.heading2,keywords:[`heading`,`title`,`h2`],run:e=>e.chain().focus().setHeading({level:2}).run()},{key:`heading3`,label:e.heading3,keywords:[`subheading`,`h3`],run:e=>e.chain().focus().setHeading({level:3}).run()},{key:`bulletList`,label:e.bulletList,keywords:[`bullet`,`list`,`ul`],run:e=>e.chain().focus().toggleBulletList().run()},{key:`orderedList`,label:e.orderedList,keywords:[`numbered`,`list`,`ol`],run:e=>e.chain().focus().toggleOrderedList().run()},{key:`taskList`,label:e.taskList,keywords:[`todo`,`task`,`checklist`],run:e=>e.chain().focus().toggleTaskList().run()},{key:`quote`,label:e.quote,keywords:[`quote`,`blockquote`],run:e=>e.chain().focus().toggleBlockquote().run()},{key:`codeBlock`,label:e.codeBlock,keywords:[`code`,`pre`,`snippet`],run:e=>e.chain().focus().toggleCodeBlock().run()},{key:`table`,label:e.table,keywords:[`table`,`grid`],run:e=>e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run()},{key:`rule`,label:e.rule,keywords:[`divider`,`rule`,`line`,`hr`],run:e=>e.chain().focus().setHorizontalRule().run()}];return t&&n.push({key:`image`,label:e.image,keywords:[`image`,`picture`,`photo`,`media`],run:e=>void t(e)}),n}function Pk(e,t,n){return e?e.types.filter(e=>e.where.includes(`body`)).map(e=>{let r=f(e),i=re(e.title,`en`);return{key:`block:${e.name}`,label:re(e.title,t),keywords:[e.name,i,`block`],icon:(0,O.jsx)(r,{}),run:t=>{let r={name:e.name,props:{...e.example.props}},i=e.content===`markdown`?{type:`directiveContainer`,attrs:r,content:e.example.markdown?n(e.example.markdown):[{type:`paragraph`}]}:{type:`directiveLeaf`,attrs:r};t.chain().focus().insertContent(i).run()}}}):[]}var Fk={paragraph:(0,O.jsx)(tt,{}),heading2:(0,O.jsx)(Ye,{}),heading3:(0,O.jsx)(qe,{}),bulletList:(0,O.jsx)(h,{}),orderedList:(0,O.jsx)(Ue,{}),taskList:(0,O.jsx)(ze,{}),quote:(0,O.jsx)(v,{}),codeBlock:(0,O.jsx)(Fe,{}),table:(0,O.jsx)(x,{}),rule:(0,O.jsx)(g,{}),image:(0,O.jsx)(p,{})};function Ik({state:e,labels:n}){let r=(0,D.useRef)(null),i=(0,D.useRef)(e.mount);return(0,D.useEffect)(()=>{if(r.current)return i.current(r.current)},[]),(0,D.useEffect)(()=>{r.current?.querySelector(`[data-index="${e.index}"]`)?.scrollIntoView({block:`nearest`})},[e.index]),(0,it.createPortal)((0,O.jsx)(`div`,{ref:r,role:`listbox`,"aria-label":n.insertMenu,"data-slash-menu":``,className:`fixed top-0 left-0 z-50 max-h-72 w-64 overflow-y-auto rounded-lg bg-kumo-elevated p-1 shadow-lg ring ring-kumo-line`,children:e.items.length===0?(0,O.jsx)(`div`,{className:`px-2 py-1.5`,children:(0,O.jsx)(d,{variant:`secondary`,size:`sm`,children:n.noMatches})}):e.items.map((n,r)=>(0,O.jsxs)(`div`,{role:`option`,tabIndex:-1,"aria-selected":r===e.index,"data-index":r,"data-slash-item":n.key,className:t(`flex cursor-default items-center gap-2 rounded-md px-2 py-1.5 text-sm text-kumo-default`,r===e.index&&`bg-kumo-tint`),onMouseEnter:()=>e.hover(r),onMouseDown:e=>e.preventDefault(),onClick:()=>e.choose(n),onKeyDown:()=>{},children:[(0,O.jsx)(`span`,{className:`flex size-4 items-center justify-center text-kumo-subtle`,children:n.icon??Fk[n.key]}),n.label]},n.key))}),document.body)}var Lk=`cloudhal.editor.spotlight`,Rk=()=>{try{return globalThis.localStorage?.getItem(Lk)===`1`}catch{return!1}},zk=e=>{try{globalThis.localStorage?.setItem(Lk,e?`1`:`0`)}catch{}};function Bk({rootRef:e,editorRef:t,canFocus:n,slash:r}){let[i,a]=(0,D.useState)(!1),o=(0,D.useRef)(null),s=(0,D.useCallback)(()=>{a(!1),requestAnimationFrame(()=>o.current?.focus())},[]),c=(0,D.useCallback)(()=>{i?s():(a(!0),requestAnimationFrame(()=>t.current?.commands.focus()))},[i,s,t.current?.commands.focus]);return(0,D.useEffect)(()=>{if(!i)return;let t=document.documentElement,n=t.style.overflow;t.style.overflow=`hidden`;let a=[];for(let t=e.current;t&&t!==document.body;t=t.parentElement)for(let e of t.parentElement?.children??[])e!==t&&!e.hasAttribute(`inert`)&&e.tagName!==`SCRIPT`&&(e.setAttribute(`inert`,``),a.push(e));let o=e=>{e.key===`Escape`&&!e.defaultPrevented&&!r&&s()};return document.addEventListener(`keydown`,o),()=>{t.style.overflow=n;for(let e of a)e.removeAttribute(`inert`);document.removeEventListener(`keydown`,o)}},[i,r,s,e.current]),(0,D.useEffect)(()=>{if(!n)return;let t=t=>{(t.ctrlKey||t.metaKey)&&t.shiftKey&&t.code===`Backslash`&&(i||e.current?.contains(document.activeElement))&&(t.preventDefault(),c())};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[n,i,c,e.current?.contains]),{focused:i,focusButton:o,toggleFocus:c}}function Vk(e,t,n){let r=n.clipboardData?.getData(`text/plain`)??``,i=n.clipboardData?.getData(`text/html`)??``;if(!r||e.isActive(`codeBlock`)||!Hk(r)||i&&/<(h[1-6]|ul|ol|li|table|blockquote|pre|strong|em|b|i|a|img)[\s>]/i.test(i))return!1;let a=t.load(r).doc.content??[],o=a.length===1?a[0]:void 0,s=o?.type===`paragraph`?o.content??[]:a;return s.length?(e.chain().focus().insertContent(s).run(),!0):!1}function Hk(e){return/^(#{1,6}\s|[-*+]\s|\d+[.)]\s|>\s?|```|~~~|\|.*\|\s*$|- \[[ xX]\]\s)/m.test(e)||/\*\*[^*\n]+\*\*|__[^_\n]+__|`[^`\n]+`|~~[^~\n]+~~/.test(e)||Wk(e)}var Uk=e=>/\s/.test(e);function Wk(e){let t=-1;for(let n=e.indexOf(`](`,0);n!==-1;n=e.indexOf(`](`,n+1)){let r=!1;for(let t=n-1;t>=0&&e[t]!==`]`&&e[t]!==`
224
224
  `;t--)if(e[t]===`[`&&t<n-1){r=!0;break}let i=n+2;if(t<i)for(t=i;t<e.length&&e[t]!==`)`&&!Uk(e[t]);)t++;if(r&&e[t]===`)`&&t>i)return!0}return!1}function Gk(e,n){return{"aria-label":e,"aria-multiline":`true`,role:`textbox`,class:t(`ch-md-content min-w-0 px-3 py-2 outline-none`,n===`sm`?`min-h-32`:`min-h-64`)}}function Kk(e){let{value:t,onChange:n,label:r,labels:i,placeholder:a,resolveSrc:o,size:s,readOnly:c,onPickImage:l,locale:u,onAskAi:d,blocks:f,previewSource:p,setMode:m,setSourceFocus:h,setSlash:g}=e,_=(0,D.useRef)(o);_.current=o;let v=(0,D.useRef)(l);v.current=l;let y=(0,D.useRef)(d);y.current=d;let b=(0,D.useRef)(p);b.current=p;let x=p!==void 0,S=(0,D.useRef)(i);S.current=i;let C=(0,D.useRef)(f);C.current=f;let ee=(0,D.useRef)(null),w=(0,D.useCallback)(async e=>{let t=await v.current?.();t?.src?e.chain().focus().setImage({src:t.src,alt:t.alt??``}).run():e.commands.focus()},[]),T=(0,D.useMemo)(()=>Jg(KO({...a?{placeholder:a}:{}})),[a]),te=(0,D.useMemo)(()=>KO({...a?{placeholder:a}:{},sourceBlock:{badge:i.sourceBadge,hint:i.sourceHint,edit:i.editSource,...i.surfacePreview?{preview:i.surfacePreview}:{},...i.showCode?{showCode:i.showCode}:{},...i.hideCode?{hideCode:i.hideCode}:{}},...x?{previewSource:e=>b.current?.(e)??Promise.resolve(void 0)}:{},onEditSource:e=>{h(e),m(`markdown`)},resolveSrc:e=>_.current?_.current(e):e,spotlight:i.focus!==void 0,slash:{items:()=>[...Nk(S.current,v.current?w:void 0),...Pk(C.current,u,e=>T.load(e).doc.content??[])],onState:g,locale:u}}),[a,i.sourceBadge,i.sourceHint,i.editSource,i.surfacePreview,i.showCode,i.hideCode,x,i.focus,w,u,T,h,g,m]),ne=(0,D.useRef)(T.load(t)),re=(0,D.useRef)(t),E=lv({extensions:te,content:ne.current.doc,editable:!c,immediatelyRender:!0,editorProps:{attributes:Gk(r,s),handlePaste:(e,t)=>{let n=ee.current;return n?Vk(n,T,t):!1}},onUpdate:({editor:e})=>{let t=T.save(e.getJSON(),ne.current.base);t!==re.current&&(re.current=t,n(t))}},[te]);return ee.current=E,(0,D.useEffect)(()=>{E&&t!==re.current&&(ne.current=T.load(t),re.current=t,E.commands.setContent(ne.current.doc,{emitUpdate:!1}))},[E,T,t]),(0,D.useEffect)(()=>{E?.setEditable(!c)},[E,c]),{editor:E,editorRef:ee,codec:T,insertImage:w,askRef:y}}var qk=(0,D.lazy)(()=>ne(()=>import(`./SourceEditor-W-oKqiEa.js`).then(e=>({default:e.SourceEditor})),__vite__mapDeps([0,1,2,3])));function Jk({value:e,onChange:n,label:r,labels:i,placeholder:a,resolveSrc:s,defaultMode:c=`rich`,size:l=`base`,readOnly:u=!1,className:d,onPickImage:f,locale:p=`en`,onAskAi:m,blocks:h,focusActions:g,previewSource:_}){let[v,y]=(0,D.useState)(c),[b,x]=(0,D.useState)(Rk),S=(0,D.useRef)(null),[C,w]=(0,D.useState)(),[ne,re]=(0,D.useState)(null),{editor:E,editorRef:ie,codec:ae,insertImage:oe,askRef:se}=Kk({value:e,onChange:n,label:r,labels:i,placeholder:a,resolveSrc:s,size:l,readOnly:u,onPickImage:f,locale:p,onAskAi:m,blocks:h,previewSource:_,setMode:y,setSourceFocus:w,setSlash:re}),ce=i.focus!==void 0,{focused:le,focusButton:ue,toggleFocus:de}=Bk({rootRef:S,editorRef:ie,canFocus:ce,slash:ne});return(0,O.jsxs)(`div`,{ref:S,className:t(`ch-md-editor grid min-w-0 gap-2`,le&&`fixed inset-0 z-50 content-start overflow-y-auto bg-kumo-base px-4 pt-3 pb-16 sm:px-8`,d),"data-mode":v,"data-focused":le?``:void 0,"data-spotlight":le&&b?``:void 0,...le?{role:`dialog`,"aria-modal":!0,"aria-label":r}:{},children:[(0,O.jsxs)(`div`,{className:t(`flex flex-wrap items-center justify-between gap-2`,le&&`sticky top-0 z-10 mx-auto w-full max-w-3xl border-b border-kumo-line bg-kumo-base py-2`),children:[v===`rich`&&E?(0,O.jsx)(XO,{editor:E,labels:i,disabled:u,onImage:f?()=>void oe(E):void 0}):(0,O.jsx)(`span`,{}),(0,O.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[le&&g,le&&i.spotlight&&v===`rich`&&(0,O.jsx)(T,{size:`sm`,label:i.spotlight,checked:b,onCheckedChange:e=>{x(e),zk(e)}}),v===`rich`&&E&&(0,O.jsx)($O,{editor:E,labels:i}),(0,O.jsx)(te,{variant:`segmented`,size:`sm`,value:v,onValueChange:e=>{w(void 0),y(e)},tabs:[{value:`rich`,label:i.rich},{value:`markdown`,label:i.markdown}]}),ce&&(0,O.jsx)(o,{ref:ue,variant:le?`secondary`:`ghost`,size:`sm`,icon:le?(0,O.jsx)(je,{size:16}):(0,O.jsx)(Ne,{size:16}),"aria-pressed":le,title:i.focusShortcut,onClick:de,"data-testid":`editor-focus`,children:le?i.focusExit??i.focus:i.focus})]})]}),(0,O.jsxs)(`div`,{hidden:v!==`rich`,className:t(`min-w-0 rounded-lg bg-kumo-control ring ring-kumo-line focus-within:ring-kumo-focus`,le&&`mx-auto w-full max-w-3xl bg-kumo-base text-base ring-0 focus-within:ring-0`),children:[(0,O.jsx)(Pv.Provider,{value:h?{...h,locale:p,onEditSource:e=>{w(e),y(`markdown`)}}:void 0,children:(0,O.jsx)(nv,{editor:E})}),E&&v===`rich`&&!u&&(0,O.jsx)(Mk,{editor:E,labels:i,...m&&i.askAi?{onAskAi:()=>{let e=jk(E,ae);e&&se.current?.(e)}}:{}})]}),v===`markdown`&&(0,O.jsx)(D.Suspense,{fallback:(0,O.jsx)(ee,{"aria-label":r,value:e,onValueChange:e=>n(e),autoResize:!0,minRows:l===`sm`?6:12,maxRows:40,readOnly:u,className:`w-full font-mono`}),children:(0,O.jsx)(qk,{value:e,onChange:n,label:r,readOnly:u,minRows:l===`sm`?6:12,selectOnMount:C,...a?{placeholder:a}:{}})}),ne&&v===`rich`&&(0,O.jsx)(Ik,{state:ne,labels:i})]})}export{Jk as MarkdownEditor};
225
- //# sourceMappingURL=editor-CoY-eO77.js.map
225
+ //# sourceMappingURL=editor-DRH2E9yp.js.map
@@ -0,0 +1,4 @@
1
+ import{s as e}from"./blocks-DaRWgHXb.js";import{a as t,n}from"./body-blocks-BvozTe2C.js";import{n as r,t as i}from"./surfaces-CML_VFHE.js";import{f as a,l as o,n as s,o as c,p as l,r as u,u as ee}from"./props-AphWrHq-.js";var te=e=>e===`
2
+ `||e===`\r`||e===`\u2028`||e===`\u2029`,ne=e=>e!==void 0&&/\s/.test(e);function d(e,t){for(let n=t;n<e.length;n++)if(te(e[n]))return n+1;return-1}function f(e,t){let n=``,r=0;for(let i=0;i!==-1;){let a=i;for(;ne(e[a]);)a++;let o=t(e,a),s=a;o!==-1&&(n+=`${e.slice(r,o)}\\`,r=o,s=o+1),i=d(e,s)}return r===0&&n===``?e:n+e.slice(r)}function p(e,t){let n=``,r=0,i=0;for(;;){let a=e.indexOf(t,i);if(a===-1)break;let o=a+t.length,s=e.indexOf(`]`,o);if(s===-1)break;if(e[s+1]!==`(`){i=s+1;continue}let c=e.indexOf(`)`,s+2);if(c===-1)break;n+=e.slice(r,a)+e.slice(o,s),r=i=c+1}return r===0?e:n+e.slice(r)}var m=(e,t)=>({path:e,code:`invalid_value`,message:t});function h(e){let t=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(e);if(!t)return!1;let[n,r,i]=[Number(t[1]),Number(t[2]),Number(t[3])],a=new Date(0);return a.setUTCFullYear(n,r-1,i),a.getUTCFullYear()===n&&a.getUTCMonth()===r-1&&a.getUTCDate()===i}var g=new Map,_;function v(e){let t=g.get(e);if(t!==void 0)return t;_??=new Set(Intl.supportedValuesOf(`timeZone`));let n=_.has(e);if(!n)try{new Intl.DateTimeFormat(`en-US`,{timeZone:e}),n=!0}catch{n=!1}return g.set(e,n),n}function re(e,a,o){let s=[];if(e.includes(`surface`))for(let t of i(e,r({blocks:o})))s.push(m(a,`surface ${t.path}: ${t.message}`));if(e.includes(`::`))for(let r of n(e)){let e=t(o,r)??[];e.length&&s.push(m(a,`${r.name}: ${e.map(e=>`${e.path||`props`} ${e.message}`).join(`; `)}`))}return s}var y={text(e,t,n){let r=e.type===`text`&&e.multiline===!0,i=t;for(let e=0;e<i.length;e++){let t=i.charCodeAt(e);if(t<32&&!(t===10&&r))return[m(n,r?`no control characters but line breaks`:`one line, no control characters`)]}return[]},richText(e,t,n,r){let i=t;return i.length>u.richTextLength?[m(n,`at most ${u.richTextLength} characters`)]:r.blocks?re(i,n,r.blocks):[]},date(e,t,n){return h(t)?[]:[m(n,`a real calendar day (YYYY-MM-DD)`)]},datetime(e,t,n){let r=t,i=[];return h(r.at.slice(0,10))&&Number.isFinite(Date.parse(r.at))||i.push(m(`${n}/at`,`a real instant (RFC 3339 in UTC)`)),v(r.timeZone)||i.push(m(`${n}/timeZone`,`an IANA time zone`)),i},url(e,t,n){return/^\s*asset:/i.test(t)?[m(n,`a link (https, http, mailto, tel, /path or #fragment), not an asset`)]:[]},select(e,t,n){if(e.type!==`select`||!e.multiple)return[];let r=t;return new Set(r).size===r.length?[]:[m(n,`each option at most once`)]},reference(e,t,n){if(e.type!==`reference`||!e.multiple)return[];let r=t;return new Set(r).size===r.length?[]:[m(n,`each entry at most once`)]},repeater(e,t,n,r){if(e.type!==`repeater`||!Array.isArray(t))return[];let i=[];return t.forEach((t,a)=>{e.fields.some(e=>l(t,e.key)!==void 0)||i.push(m(`${n}/${a}`,`an item needs a value`));for(let o of e.fields){let e=l(t,o.key),s=y[o.type];e!==void 0&&s&&i.push(...s(o,e,`${n}/${a}/${o.key}`,r))}}),i}};function ie(e,t){if(e.type===`richText`)return typeof t==`string`?``:t;if(e.type!==`repeater`||!Array.isArray(t))return t;let n=e.fields.filter(e=>e.type===`richText`).map(e=>e.key);return n.length===0?t:t.map(e=>{if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={...e};for(let e of n)typeof t[e]==`string`&&(t[e]=``);return t})}function b(t,n,r,i={}){if(n===null)return[m(r,`null is never stored: leave the key out to remove the value`)];let a=ie(t,n),o=e({type:`object`,properties:{v:s(t)},additionalProperties:!1},{v:a});return o.length?o.map(e=>m(`${r}${e.path.slice(1)}`,e.message)):y[t.type]?.(t,n,r,i)??[]}var x={text:[`richText`,`number`,`select`,`url`],richText:[`text`],number:[`text`],select:[`text`,`select`],url:[`text`],date:[`datetime`],datetime:[`date`]};function S(e,t){return e===t||x[e]?.includes(t)===!0}var C=e=>({ok:!1,reason:e}),w=e=>({ok:!0,value:e}),T=`#>+=-`,ae=/^\d$/;function E(e){return f(f(e.replace(/[\\`*_[\]<>|~&]/g,`\\$&`),(e,t)=>T.includes(e[t]??` `)?t:-1),(e,t)=>{let n=t;for(;ae.test(e[n]??``);)n++;return n>t&&(e[n]===`.`||e[n]===`)`)?n:-1}).replace(/:(?=:)/g,`\\:`)}function D(e,t){let n=[];for(let t of e.split(/\r?\n/)){let e=t.trim();if(e.startsWith("```")||e.startsWith(`~~~`)||e.startsWith(`::`))continue;let r=p(p(e.replace(/^#{1,6}\s+/,``).replace(/^>\s?/,``).replace(/^(?:[-*+]|\d+[.)])\s+/,``),`![`),`[`).replace(/(\*\*|__|~~|\*|_|`)/g,``).replace(/\\([!-/:-@[-`{-~])/g,`$1`).trim();r&&n.push(r)}return n.join(t?`
3
+ `:` `)}var O=new Map;function k(e,t){let n=O.get(e);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),O.set(e,n));let r={};for(let e of n.formatToParts(new Date(t)))e.type!==`literal`&&(r[e.type]=Number(e.value));return r}function A(e,t){let n=k(e,t);return Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second)-Math.floor(t/1e3)*1e3}function oe(e,t){let[n,r,i]=e.split(`-`).map(Number),a=Date.UTC(n,r-1,i),o=a-A(t,a-A(t,a));return new Date(o).toISOString().replace(`.000Z`,`Z`)}function se(e,t){let n=k(t,Date.parse(e)),r=(e,t=2)=>String(e).padStart(t,`0`);return`${r(n.year,4)}-${r(n.month)}-${r(n.day)}`}var j=e=>typeof e==`string`;function M(e,t,n){if(t.type!==`select`)return C(`not a select`);let r=e=>w(e===void 0?void 0:t.multiple?[e]:e);if(j(e)){let i=e.trim();if(!i)return w(void 0);let a=i.toLocaleLowerCase(n.defaultLocale),o=t.options.find(e=>e.value===i)??t.options.find(e=>e.labels[n.defaultLocale]?.trim().toLocaleLowerCase()===a);return o?r(o.value):C(`"${i.slice(0,40)}" is not one of the options`)}return Array.isArray(e)?t.multiple?w(e.length?e:void 0):e.length===0?w(void 0):e.length===1?r(String(e[0])):C(`${e.length} options chosen; a single select keeps one`):C(`not an option value`)}var N={text(e,t,n){return j(e)?t.type===`richText`?w(E(e)):t.type===`url`?w(e.trim()):t.type===`select`?M(e,t,n):t.type===`number`?/^\s*-?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?\s*$/.test(e)?w(Number(e)):C(`"${e.slice(0,40)}" is not a number`):C(`text does not convert to ${t.type}`):C(`not text`)},richText(e,t){return!j(e)||t.type!==`text`?C(`rich text converts to text only`):w(D(e,t.multiline===!0)||void 0)},number(e,t){return typeof e!=`number`||t.type!==`text`?C(`numbers convert to text`):w(String(e))},url(e,t){return!j(e)||t.type!==`text`?C(`links convert to text`):w(e)},select(e,t,n){return t.type===`select`?M(e,t,n):t.type===`text`?j(e)?w(e):Array.isArray(e)?w(e.length?e.join(`, `):void 0):C(`not an option value`):C(`options convert to text or another select`)},date(e,t,n){return!j(e)||t.type!==`datetime`?C(`dates convert to date and time`):w({at:oe(e,n.timeZone),timeZone:n.timeZone})},datetime(e,t){let n=e;return t.type!==`date`||!n||!j(n.at)||!j(n.timeZone)?C(`a date and time converts to a date`):w(se(n.at,n.timeZone))}};function P(e,t,n,r){let i;if(e===t.type&&t.type!==`select`)i=w(n);else if(S(e,t.type)){let a=N[e];try{i=a?a(n,t,r):C(`${e} values do not convert`)}catch{i=C(`the value could not be read`)}}else return C(`${e} values do not convert to ${t.type}`);if(!i.ok||i.value===void 0)return i;let a=b(t,i.value,`v`)[0];return a?C(a.message):i}function F(e){let t=e.migration;if(t)return t.fromKey===void 0?t.fromType===void 0?t.fromLocalized===void 0?`remove`:`localize`:`retype`:`rename`}var I=e=>F(e)===`remove`;function L(e){return{timeZone:e.timeZone??`UTC`,defaultLocale:e.defaultLocale??`en`}}function R(e,t){let n=e.translation;return!n||n.group===e.id||n.source?.siteId!==void 0||t===void 0||t.id!==n.group?!1:(t.translation?.group??t.id)===t.id}function z(e,t){if(!ee(e))return;if(Object.hasOwn(e,t.key))return e[t.key];let n=t.migration?.fromKey;return n&&Object.hasOwn(e,n)?e[n]:void 0}function B(e,t,n){let r=R(t,n);if(!e.localized)return r?{value:z(n?.fields,e),fromOriginal:!0}:{value:z(t.fields,e),fromOriginal:!1};let i=z(t.fields,e);if(i!==void 0||!r)return{value:i,fromOriginal:!1};let a=z(n?.fields,e);return{value:a,fromOriginal:a!==void 0}}function V(e,t,n){let r={};for(let i of c(e,t.collection)){if(I(i)||!o(i.type))continue;let{value:a,fromOriginal:s}=B(i,t,n);if(a===void 0){r[i.key]={def:i,value:void 0,fromOriginal:!1};continue}let c=b(i,a,`fields/${i.key}`)[0];if(!c){r[i.key]={def:i,value:a,fromOriginal:s};continue}let l=i.migration?.fromType,u=l?P(l,i,a,L(e)):void 0;u?.ok?r[i.key]={def:i,value:u.value,fromOriginal:u.value!==void 0&&s}:r[i.key]={def:i,value:void 0,fromOriginal:s,issue:{path:c.path,code:`field_value_unreadable`,message:l?`a ${l} value that does not convert to ${i.type}`:c.message}}}return r}var H={conditions:4,values:20,valueLength:100},U=[`eq`,`ne`,`lt`,`lte`,`gt`,`gte`,`set`,`unset`],W={number:U,date:U,datetime:U,boolean:[`eq`],select:[`eq`,`ne`,`in`,`set`,`unset`],text:[`eq`,`set`,`unset`],url:[`eq`,`set`,`unset`],richText:[`set`,`unset`],image:[`set`,`unset`],reference:[],repeater:[]},G=e=>e===`number`||e===`date`||e===`datetime`,K=e=>Date.parse(e);function q(e,t){let n=e.availability;return n?.from!==void 0&&!(K(n.from)<=t)?`embargoed`:n?.until!==void 0&&!(t<K(n.until))?`expired`:`open`}var J=6e4,Y=60*J,X=36*Y,ce=-12*Y;function le(e,t){let n=new Set;for(let r of[t-X,t,t+X])n.add(A(e,r));return[...n]}function ue(e,t){let[n,r,i]=e.split(`-`).map(Number),a=Date.UTC(n,r-1,i),o;try{o=le(t,a)}catch{return a-ce}let s=o.map(e=>a-e),c=s.filter((e,n)=>A(t,e)===o[n]);return Math.max(...c.length>0?c:s)}function de(e){let[t,n,r]=e.split(`-`).map(Number),i=new Date(0);i.setUTCFullYear(t,n-1,r+1);let a=(e,t=2)=>String(e).padStart(t,`0`);return`${a(i.getUTCFullYear(),4)}-${a(i.getUTCMonth()+1)}-${a(i.getUTCDate())}`}var fe=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function Z(e,t,n,r=0){let i=Number.isFinite(r)&&r>0?r*J:0;if(t.type===`datetime`){if(!fe(e)||typeof e.at!=`string`)return;let t=Date.parse(e.at);return Number.isFinite(t)?t+i:void 0}if(t.type===`date`)return typeof e!=`string`||!h(e)?void 0:ue(de(e),n.timeZone??`UTC`)+i}function pe(e,t,n){let r=e.collections?.[t]?.expiry;if(!r)return;let i=n[r.field];if(!(!i||i.def.type!==`date`&&i.def.type!==`datetime`))return Z(i.value,i.def,e,r.afterMinutes??0)}function me(e,t,n){let r=e.collections?.[t.collection]?.expiry;if(!r)return;let i=pe(e,t.collection,V(e,t,n));return i===void 0?void 0:{at:i,action:r.action}}function he(e,t,n){return e.status!==`published`||q(e,n)!==`open`?`hidden`:t&&!(n<t.at)?t.action===`hide`?`hidden`:`unlisted`:`shown`}var Q=new Map;function $(e,t,n){let r=`${e}|${n}`,i=Q.get(r);if(i===void 0){try{i=t(n)}catch{i=t(`en`)}Q.size>500&&Q.clear(),Q.set(r,i)}return i}var ge=e=>$(`n`,e=>new Intl.NumberFormat(e,{maximumFractionDigits:20}),e),_e=e=>$(`d`,e=>new Intl.DateTimeFormat(e,{year:`numeric`,month:`long`,day:`numeric`,timeZone:`UTC`}),e),ve=(e,t)=>$(`t:${t}`,e=>new Intl.DateTimeFormat(e,{year:`numeric`,month:`long`,day:`numeric`,hour:`numeric`,minute:`2-digit`,timeZone:t,timeZoneName:`short`}),e),ye=e=>$(`l`,e=>new Intl.ListFormat(e,{type:`conjunction`,style:`long`}),e);function be(e,t){if(typeof e!=`string`||!h(e))return``;let[n,r,i]=e.split(`-`).map(Number);return _e(t).format(Date.UTC(n,r-1,i))}function xe(e,t,n){if(typeof e!=`object`||!e)return``;let{at:r,timeZone:i}=e,a=typeof r==`string`?Date.parse(r):NaN;if(Number.isNaN(a))return``;let o=typeof i==`string`&&v(i)?i:`UTC`;return ve(t,n&&v(n)?n:o).format(a)}function Se(e,t,n){let r=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`&&e!==``).map(e=>a(t,e,n.locale,n.defaultLocale??n.locale));return r.length>1?ye(n.locale).format(r):r[0]??``}function Ce(e,t,n){if(e==null)return``;switch(t.type){case`text`:case`url`:return typeof e==`string`?e:``;case`richText`:return typeof e==`string`?D(e,!0):``;case`number`:return typeof e==`number`&&Number.isFinite(e)?ge(n.locale).format(e):``;case`boolean`:{if(typeof e!=`boolean`)return``;let t=n.words??{yes:`Yes`,no:`No`};return e?t.yes:t.no}case`date`:return be(e,n.locale);case`datetime`:return xe(e,n.locale,n.timeZone);case`select`:return Se(e,t,n);default:return``}}export{H as a,I as c,Z as i,S as l,me as n,W as o,he as r,G as s,Ce as t,v as u};
4
+ //# sourceMappingURL=fields-BjjPRpcp.js.map
@@ -1,2 +1,2 @@
1
- import"./fields-wzbdA9hz.js";import{a as e}from"./props-mn0mAlcP.js";import{a as t}from"./api-DucVkJaT.js";function n(e){if(!(e instanceof t))return[];let n=e.body?.details;return Array.isArray(n?.issues)?n.issues.filter(e=>typeof e==`object`&&!!e&&typeof e.path==`string`):[]}function r(e){let t={};for(let n of e){let[e,r]=n.path.split(`/`);e===`fields`&&r&&!t[r]&&(t[r]=n)}return t}var i=/^[a-z][A-Za-z0-9]{0,39}$/;function a(e){let t=e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).replace(/ı/g,`i`).split(/[^A-Za-z0-9]+/).filter(Boolean);for(;t.length>0&&/^[0-9]/.test(t[0]??``);){let e=(t[0]??``).replace(/^[0-9]+/,``);e?t[0]=e:t.shift()}return t.map((e,t)=>t===0?e.toLowerCase():`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}`).join(``).slice(0,40)}function o(t,n){if(!i.test(t))return`pattern`;if(e.has(t))return`reserved`;if(n.includes(t))return`taken`}var s=e=>e===`text`||e===`richText`||e===`url`;function c(e,t,n){let r=t+n;if(r<0||r>=e.length)return[...e];let i=[...e];return[i[t],i[r]]=[i[r],i[t]],i}function l(e,t){let{fields:n,...r}=e,[i,...a]=t;return i?{...r,fields:[i,...a]}:r}function u(e){return e.find(e=>e.migration)?.migration?.id}export{s as a,l as c,o as i,a as n,c as o,r,u as s,n as t};
2
- //# sourceMappingURL=fields-BbXduSei.js.map
1
+ import"./fields-BjjPRpcp.js";import{a as e}from"./props-AphWrHq-.js";import{a as t}from"./api-DucVkJaT.js";function n(e){if(!(e instanceof t))return[];let n=e.body?.details;return Array.isArray(n?.issues)?n.issues.filter(e=>typeof e==`object`&&!!e&&typeof e.path==`string`):[]}function r(e){let t={};for(let n of e){let[e,r]=n.path.split(`/`);e===`fields`&&r&&!t[r]&&(t[r]=n)}return t}var i=/^[a-z][A-Za-z0-9]{0,39}$/;function a(e){let t=e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).replace(/ı/g,`i`).split(/[^A-Za-z0-9]+/).filter(Boolean);for(;t.length>0&&/^[0-9]/.test(t[0]??``);){let e=(t[0]??``).replace(/^[0-9]+/,``);e?t[0]=e:t.shift()}return t.map((e,t)=>t===0?e.toLowerCase():`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}`).join(``).slice(0,40)}function o(t,n){if(!i.test(t))return`pattern`;if(e.has(t))return`reserved`;if(n.includes(t))return`taken`}var s=e=>e===`text`||e===`richText`||e===`url`;function c(e,t,n){let r=t+n;if(r<0||r>=e.length)return[...e];let i=[...e];return[i[t],i[r]]=[i[r],i[t]],i}function l(e,t){let{fields:n,...r}=e,[i,...a]=t;return i?{...r,fields:[i,...a]}:r}function u(e){return e.find(e=>e.migration)?.migration?.id}export{s as a,l as c,o as i,a as n,c as o,r,u as s,n as t};
2
+ //# sourceMappingURL=fields-CiZNKRzo.js.map